Lines Matching defs:memory
191 * Allocate AGP memory.
200 * memory via agp_allocate_memory() and creates a drm_agp_mem entry for it.
205 struct agp_memory *memory;
217 memory = agp_allocate_memory(dev->agp->bridge, pages, type);
218 if (!memory) {
223 entry->handle = (unsigned long)memory->key + 1;
224 entry->memory = memory;
227 list_add(&entry->head, &dev->agp->memory);
230 request->physical = memory->physical;
246 * Search for the AGP memory entry associated with a handle.
249 * \param handle AGP memory handle.
252 * Walks through drm_agp_head::memory until finding a matching handle.
259 list_for_each_entry(entry, &dev->agp->memory, head) {
267 * Unbind AGP memory from the GATT (ioctl).
275 * Verifies the AGP device is present and acquired, looks-up the AGP memory
288 ret = drm_unbind_agp(entry->memory);
305 * Bind AGP memory into the GATT (ioctl)
313 * Verifies the AGP device is present and has been acquired and that no memory
314 * is currently bound into the GATT. Looks-up the AGP memory entry and passes
329 retcode = drm_bind_agp(entry->memory, page);
349 * Free AGP memory (ioctl).
358 * AGP memory entry. If the memory is currently bound, unbind it via
372 drm_unbind_agp(entry->memory);
376 drm_free_agp(entry->memory, entry->pages);
426 INIT_LIST_HEAD(&head->memory);
454 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) {
456 drm_unbind_agp(entry->memory);
457 drm_free_agp(entry->memory, entry->pages);
460 INIT_LIST_HEAD(&dev->agp->memory);