Lines Matching refs:memory
202 struct agp_memory *memory; in drm_agp_alloc() local
213 if (!(memory = agp_allocate_memory(dev->agp->bridge, pages, type))) { in drm_agp_alloc()
218 entry->handle = (unsigned long)memory->key + 1; in drm_agp_alloc()
219 entry->memory = memory; in drm_agp_alloc()
222 list_add(&entry->head, &dev->agp->memory); in drm_agp_alloc()
225 request->physical = memory->physical; in drm_agp_alloc()
254 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_agp_lookup_entry()
284 ret = drm_unbind_agp(entry->memory); in drm_agp_unbind()
326 if ((retcode = drm_bind_agp(entry->memory, page))) in drm_agp_bind()
367 drm_unbind_agp(entry->memory); in drm_agp_free()
371 drm_free_agp(entry->memory, entry->pages); in drm_agp_free()
420 INIT_LIST_HEAD(&head->memory); in drm_agp_init()
448 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { in drm_agp_clear()
450 drm_unbind_agp(entry->memory); in drm_agp_clear()
451 drm_free_agp(entry->memory, entry->pages); in drm_agp_clear()
454 INIT_LIST_HEAD(&dev->agp->memory); in drm_agp_clear()