Lines Matching defs:memory
208 * Allocate AGP memory.
217 * memory via agp_allocate_memory() and creates a drm_agp_mem entry for it.
222 struct agp_memory *memory;
234 memory = agp_allocate_memory(dev->agp->bridge, pages, type);
235 if (!memory) {
242 entry->handle = (unsigned long)memory->am_id + 1;
244 entry->handle = (unsigned long)memory->key + 1;
246 entry->memory = memory;
249 list_add(&entry->head, &dev->agp->memory);
255 agp_memory_info(dev->agp->bridge, memory, &info);
259 request->physical = memory->physical;
276 * Search for the AGP memory entry associated with a handle.
279 * \param handle AGP memory handle.
282 * Walks through drm_agp_head::memory until finding a matching handle.
289 list_for_each_entry(entry, &dev->agp->memory, head) {
297 * Unbind AGP memory from the GATT (ioctl).
305 * Verifies the AGP device is present and acquired, looks-up the AGP memory
319 ret = drm_unbind_agp(dev->agp->bridge, entry->memory);
321 ret = drm_unbind_agp(entry->memory);
339 * Bind AGP memory into the GATT (ioctl)
347 * Verifies the AGP device is present and has been acquired and that no memory
348 * is currently bound into the GATT. Looks-up the AGP memory entry and passes
364 if ((retcode = drm_bind_agp(dev->agp->bridge, entry->memory, page)))
367 retcode = drm_bind_agp(entry->memory, page);
388 * Free AGP memory (ioctl).
397 * AGP memory entry. If the memory is currently bound, unbind it via
412 drm_unbind_agp(dev->agp->bridge, entry->memory);
414 drm_unbind_agp(entry->memory);
420 drm_free_agp(dev->agp->bridge, entry->memory, entry->pages);
422 drm_free_agp(entry->memory, entry->pages);
476 INIT_LIST_HEAD(&head->memory);
510 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) {
513 drm_unbind_agp(dev->agp->bridge, entry->memory);
514 drm_free_agp(dev->agp->bridge, entry->memory, entry->pages);
517 drm_unbind_agp(entry->memory);
518 drm_free_agp(entry->memory, entry->pages);
522 INIT_LIST_HEAD(&dev->agp->memory);