Lines Matching refs:memory
200 struct agp_memory *memory; in drm_agp_alloc() local
211 if (!(memory = agp_allocate_memory(dev->agp->bridge, pages, type))) { in drm_agp_alloc()
216 entry->handle = (unsigned long)memory->key + 1; in drm_agp_alloc()
217 entry->memory = memory; in drm_agp_alloc()
220 list_add(&entry->head, &dev->agp->memory); in drm_agp_alloc()
223 request->physical = memory->physical; in drm_agp_alloc()
252 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_agp_lookup_entry()
282 ret = drm_unbind_agp(entry->memory); in drm_agp_unbind()
324 if ((retcode = drm_bind_agp(entry->memory, page))) in drm_agp_bind()
365 drm_unbind_agp(entry->memory); in drm_agp_free()
369 drm_free_agp(entry->memory, entry->pages); in drm_agp_free()
418 INIT_LIST_HEAD(&head->memory); in drm_agp_init()
446 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { in drm_agp_clear()
448 drm_unbind_agp(entry->memory); in drm_agp_clear()
449 drm_free_agp(entry->memory, entry->pages); in drm_agp_clear()
452 INIT_LIST_HEAD(&dev->agp->memory); in drm_agp_clear()