Searched refs:gart_info (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/
H A Dati_pcigart.c42 struct drm_ati_pcigart_info *gart_info) drm_ati_alloc_pcigart_table()
44 gart_info->table_handle = drm_pci_alloc(dev, gart_info->table_size, drm_ati_alloc_pcigart_table()
46 if (gart_info->table_handle == NULL) drm_ati_alloc_pcigart_table()
53 struct drm_ati_pcigart_info *gart_info) drm_ati_free_pcigart_table()
55 drm_pci_free(dev, gart_info->table_handle); drm_ati_free_pcigart_table()
56 gart_info->table_handle = NULL; drm_ati_free_pcigart_table()
59 int drm_ati_pcigart_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) drm_ati_pcigart_cleanup() argument
72 if (gart_info->bus_addr) { drm_ati_pcigart_cleanup()
74 max_pages = (gart_info->table_size / sizeof(u32)); drm_ati_pcigart_cleanup()
85 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) drm_ati_pcigart_cleanup()
86 gart_info->bus_addr = 0; drm_ati_pcigart_cleanup()
89 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN && drm_ati_pcigart_cleanup()
90 gart_info->table_handle) { drm_ati_pcigart_cleanup()
91 drm_ati_free_pcigart_table(dev, gart_info); drm_ati_pcigart_cleanup()
98 int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) drm_ati_pcigart_init() argument
100 struct drm_local_map *map = &gart_info->mapping; drm_ati_pcigart_init()
114 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) { drm_ati_pcigart_init()
117 if (pci_set_dma_mask(dev->pdev, gart_info->table_mask)) { drm_ati_pcigart_init()
119 (unsigned long long)gart_info->table_mask); drm_ati_pcigart_init()
124 ret = drm_ati_alloc_pcigart_table(dev, gart_info); drm_ati_pcigart_init()
130 pci_gart = gart_info->table_handle->vaddr; drm_ati_pcigart_init()
131 address = gart_info->table_handle->vaddr; drm_ati_pcigart_init()
132 bus_address = gart_info->table_handle->busaddr; drm_ati_pcigart_init()
134 address = gart_info->addr; drm_ati_pcigart_init()
135 bus_address = gart_info->bus_addr; drm_ati_pcigart_init()
142 max_ati_pages = (gart_info->table_size / sizeof(u32)); drm_ati_pcigart_init()
147 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) { drm_ati_pcigart_init()
160 drm_ati_pcigart_cleanup(dev, gart_info); drm_ati_pcigart_init()
170 switch(gart_info->gart_reg_if) { drm_ati_pcigart_init()
182 if (gart_info->gart_table_location == drm_ati_pcigart_init()
200 gart_info->addr = address; drm_ati_pcigart_init()
201 gart_info->bus_addr = bus_address; drm_ati_pcigart_init()
41 drm_ati_alloc_pcigart_table(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) drm_ati_alloc_pcigart_table() argument
52 drm_ati_free_pcigart_table(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) drm_ati_free_pcigart_table() argument
/linux-4.4.14/include/drm/
H A Dati_pcigart.h26 struct drm_ati_pcigart_info * gart_info);
28 struct drm_ati_pcigart_info * gart_info);
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_cp.c916 (long)dev_priv->gart_info.bus_addr, radeon_set_igpgart()
936 temp = dev_priv->gart_info.bus_addr & 0xfffff000; radeon_set_igpgart()
937 temp |= (upper_32_bits(dev_priv->gart_info.bus_addr) & 0xff) << 4; radeon_set_igpgart()
988 (long)dev_priv->gart_info.bus_addr, rs600_set_igpgart()
1012 dev_priv->gart_info.bus_addr); rs600_set_igpgart()
1062 (long)dev_priv->gart_info.bus_addr, radeon_set_pciegart()
1067 dev_priv->gart_info.bus_addr); radeon_set_pciegart()
1114 RADEON_WRITE(RADEON_AIC_PT_BASE, dev_priv->gart_info.bus_addr); radeon_set_pcigart()
1134 struct drm_ati_pcigart_info *gart_info = &dev_priv->gart_info; radeon_setup_pcigart_surface() local
1153 vp->lower = gart_info->bus_addr; radeon_setup_pcigart_surface()
1154 vp->upper = vp->lower + gart_info->table_size; radeon_setup_pcigart_surface()
1468 dev_priv->gart_info.table_mask = DMA_BIT_MASK(32); radeon_do_init_cp()
1471 dev_priv->gart_info.bus_addr = radeon_do_init_cp()
1473 dev_priv->gart_info.mapping.offset = radeon_do_init_cp()
1475 dev_priv->gart_info.mapping.size = radeon_do_init_cp()
1476 dev_priv->gart_info.table_size; radeon_do_init_cp()
1478 drm_legacy_ioremap_wc(&dev_priv->gart_info.mapping, dev); radeon_do_init_cp()
1479 dev_priv->gart_info.addr = radeon_do_init_cp()
1480 dev_priv->gart_info.mapping.handle; radeon_do_init_cp()
1483 dev_priv->gart_info.gart_reg_if = DRM_ATI_GART_PCIE; radeon_do_init_cp()
1485 dev_priv->gart_info.gart_reg_if = DRM_ATI_GART_PCI; radeon_do_init_cp()
1486 dev_priv->gart_info.gart_table_location = radeon_do_init_cp()
1490 dev_priv->gart_info.addr, radeon_do_init_cp()
1494 dev_priv->gart_info.gart_reg_if = DRM_ATI_GART_IGP; radeon_do_init_cp()
1496 dev_priv->gart_info.gart_reg_if = DRM_ATI_GART_PCI; radeon_do_init_cp()
1497 dev_priv->gart_info.gart_table_location = radeon_do_init_cp()
1499 dev_priv->gart_info.addr = NULL; radeon_do_init_cp()
1500 dev_priv->gart_info.bus_addr = 0; radeon_do_init_cp()
1514 ret = drm_ati_pcigart_init(dev, &dev_priv->gart_info); radeon_do_init_cp()
1527 r600_page_table_cleanup(dev, &dev_priv->gart_info); radeon_do_init_cp()
1529 drm_ati_pcigart_cleanup(dev, &dev_priv->gart_info); radeon_do_init_cp()
1587 if (dev_priv->gart_info.bus_addr) { radeon_do_cleanup_cp()
1591 r600_page_table_cleanup(dev, &dev_priv->gart_info); radeon_do_cleanup_cp()
1593 if (!drm_ati_pcigart_cleanup(dev, &dev_priv->gart_info)) radeon_do_cleanup_cp()
1598 if (dev_priv->gart_info.gart_table_location == DRM_ATI_GART_FB) radeon_do_cleanup_cp()
1600 drm_legacy_ioremapfree(&dev_priv->gart_info.mapping, dev); radeon_do_cleanup_cp()
1601 dev_priv->gart_info.addr = NULL; radeon_do_cleanup_cp()
2181 dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; radeon_driver_firstopen()
H A Dr600_cp.c151 void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) r600_page_table_cleanup() argument
161 if (gart_info->bus_addr) { r600_page_table_cleanup()
162 max_pages = (gart_info->table_size / sizeof(u64)); r600_page_table_cleanup()
172 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) r600_page_table_cleanup()
173 gart_info->bus_addr = 0; r600_page_table_cleanup()
181 struct drm_ati_pcigart_info *gart_info = &dev_priv->gart_info; r600_page_table_init() local
182 struct drm_local_map *map = &gart_info->mapping; r600_page_table_init()
192 max_ati_pages = (gart_info->table_size / sizeof(u64)); r600_page_table_init()
208 r600_page_table_cleanup(dev, gart_info); r600_page_table_init()
305 RADEON_WRITE(R600_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR, dev_priv->gart_info.bus_addr >> 12); r600_vm_init()
477 RADEON_WRITE(R700_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR, dev_priv->gart_info.bus_addr >> 12); r700_vm_init()
1967 if (dev_priv->gart_info.bus_addr) r600_do_cleanup_cp()
1968 r600_page_table_cleanup(dev, &dev_priv->gart_info); r600_do_cleanup_cp()
1970 if (dev_priv->gart_info.gart_table_location == DRM_ATI_GART_FB) { r600_do_cleanup_cp()
1971 drm_legacy_ioremapfree(&dev_priv->gart_info.mapping, dev); r600_do_cleanup_cp()
1972 dev_priv->gart_info.addr = NULL; r600_do_cleanup_cp()
2221 dev_priv->gart_info.table_mask = DMA_BIT_MASK(32); r600_do_init_cp()
2231 dev_priv->gart_info.bus_addr = r600_do_init_cp()
2233 dev_priv->gart_info.mapping.offset = r600_do_init_cp()
2235 dev_priv->gart_info.mapping.size = r600_do_init_cp()
2236 dev_priv->gart_info.table_size; r600_do_init_cp()
2238 drm_legacy_ioremap_wc(&dev_priv->gart_info.mapping, dev); r600_do_init_cp()
2239 if (!dev_priv->gart_info.mapping.handle) { r600_do_init_cp()
2245 dev_priv->gart_info.addr = r600_do_init_cp()
2246 dev_priv->gart_info.mapping.handle; r600_do_init_cp()
2249 dev_priv->gart_info.addr, r600_do_init_cp()
H A Dradeon_state.c3163 dev_priv->gart_info.table_size = sp->value; radeon_cp_setparam()
3164 if (dev_priv->gart_info.table_size < RADEON_PCIGART_TABLE_SIZE) radeon_cp_setparam()
3165 dev_priv->gart_info.table_size = RADEON_PCIGART_TABLE_SIZE; radeon_cp_setparam()
H A Dradeon_drv.h277 struct drm_ati_pcigart_info gart_info; member in struct:drm_radeon_private
454 extern void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info);
/linux-4.4.14/drivers/gpu/drm/r128/
H A Dr128_cce.c558 dev_priv->gart_info.table_mask = DMA_BIT_MASK(32); r128_do_init_cce()
559 dev_priv->gart_info.gart_table_location = DRM_ATI_GART_MAIN; r128_do_init_cce()
560 dev_priv->gart_info.table_size = R128_PCIGART_TABLE_SIZE; r128_do_init_cce()
561 dev_priv->gart_info.addr = NULL; r128_do_init_cce()
562 dev_priv->gart_info.bus_addr = 0; r128_do_init_cce()
563 dev_priv->gart_info.gart_reg_if = DRM_ATI_GART_PCI; r128_do_init_cce()
564 if (!drm_ati_pcigart_init(dev, &dev_priv->gart_info)) { r128_do_init_cce()
570 R128_WRITE(R128_PCI_GART_PAGE, dev_priv->gart_info.bus_addr); r128_do_init_cce()
616 if (dev_priv->gart_info.bus_addr) r128_do_cleanup_cce()
618 &dev_priv->gart_info)) r128_do_cleanup_cce()
H A Dr128_drv.h126 struct drm_ati_pcigart_info gart_info; member in struct:drm_r128_private

Completed in 267 milliseconds