Lines Matching refs:gart_info

46 				       struct drm_ati_pcigart_info *gart_info)  in drm_ati_alloc_pcigart_table()  argument
53 dmah->size = gart_info->table_size; in drm_ati_alloc_pcigart_table()
64 gart_info->table_handle = dmah; in drm_ati_alloc_pcigart_table()
69 struct drm_ati_pcigart_info *gart_info) in drm_ati_free_pcigart_table() argument
71 drm_dma_handle_t *dmah = gart_info->table_handle; in drm_ati_free_pcigart_table()
76 gart_info->table_handle = NULL; in drm_ati_free_pcigart_table()
79 int drm_ati_pcigart_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) in drm_ati_pcigart_cleanup() argument
93 if (gart_info->bus_addr) { in drm_ati_pcigart_cleanup()
95 max_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_cleanup()
106 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) in drm_ati_pcigart_cleanup()
107 gart_info->bus_addr = 0; in drm_ati_pcigart_cleanup()
110 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN && in drm_ati_pcigart_cleanup()
111 gart_info->table_handle) { in drm_ati_pcigart_cleanup()
112 drm_ati_free_pcigart_table(dev, gart_info); in drm_ati_pcigart_cleanup()
118 int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *gart_info) in drm_ati_pcigart_init() argument
120 struct drm_local_map *map = &gart_info->mapping; in drm_ati_pcigart_init()
135 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) { in drm_ati_pcigart_init()
138 if (dma_set_mask(&pdev->dev, gart_info->table_mask)) { in drm_ati_pcigart_init()
140 (unsigned long long)gart_info->table_mask); in drm_ati_pcigart_init()
145 ret = drm_ati_alloc_pcigart_table(dev, gart_info); in drm_ati_pcigart_init()
151 pci_gart = gart_info->table_handle->vaddr; in drm_ati_pcigart_init()
152 address = gart_info->table_handle->vaddr; in drm_ati_pcigart_init()
153 bus_address = gart_info->table_handle->busaddr; in drm_ati_pcigart_init()
155 address = gart_info->addr; in drm_ati_pcigart_init()
156 bus_address = gart_info->bus_addr; in drm_ati_pcigart_init()
163 max_ati_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_init()
168 if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) { in drm_ati_pcigart_init()
181 drm_ati_pcigart_cleanup(dev, gart_info); in drm_ati_pcigart_init()
193 switch(gart_info->gart_reg_if) { in drm_ati_pcigart_init()
205 if (gart_info->gart_table_location == in drm_ati_pcigart_init()
225 gart_info->addr = address; in drm_ati_pcigart_init()
226 gart_info->bus_addr = bus_address; in drm_ati_pcigart_init()