Lines Matching refs:agp
57 if (!dev->agp || !dev->agp->acquired) in drm_agp_info()
60 kern = &dev->agp->agp_info; in drm_agp_info()
100 if (!dev->agp) in drm_agp_acquire()
102 if (dev->agp->acquired) in drm_agp_acquire()
104 if (!(dev->agp->bridge = agp_backend_acquire(dev->pdev))) in drm_agp_acquire()
106 dev->agp->acquired = 1; in drm_agp_acquire()
140 if (!dev->agp || !dev->agp->acquired) in drm_agp_release()
142 agp_backend_release(dev->agp->bridge); in drm_agp_release()
143 dev->agp->acquired = 0; in drm_agp_release()
166 if (!dev->agp || !dev->agp->acquired) in drm_agp_enable()
169 dev->agp->mode = mode.mode; in drm_agp_enable()
170 agp_enable(dev->agp->bridge, mode.mode); in drm_agp_enable()
171 dev->agp->enabled = 1; in drm_agp_enable()
204 if (!dev->agp || !dev->agp->acquired) in drm_agp_alloc()
211 if (!(memory = agp_allocate_memory(dev->agp->bridge, pages, type))) { in drm_agp_alloc()
220 list_add(&entry->head, &dev->agp->memory); in drm_agp_alloc()
252 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_agp_lookup_entry()
276 if (!dev->agp || !dev->agp->acquired) in drm_agp_unbind()
317 if (!dev->agp || !dev->agp->acquired) in drm_agp_bind()
326 entry->bound = dev->agp->base + (page << PAGE_SHIFT); in drm_agp_bind()
328 dev->agp->base, entry->bound); in drm_agp_bind()
360 if (!dev->agp || !dev->agp->acquired) in drm_agp_free()
439 if (!dev->agp) in drm_legacy_agp_clear()
444 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { in drm_legacy_agp_clear()
450 INIT_LIST_HEAD(&dev->agp->memory); in drm_legacy_agp_clear()
452 if (dev->agp->acquired) in drm_legacy_agp_clear()
455 dev->agp->acquired = 0; in drm_legacy_agp_clear()
456 dev->agp->enabled = 0; in drm_legacy_agp_clear()
478 mem = agp_allocate_memory(dev->agp->bridge, num_pages, in drm_agp_bind_pages()