Lines Matching defs:memory
188 * Allocate AGP memory.
193 * memory via agp_allocate_memory() and creates a drm_agp_mem entry for it.
198 struct agp_memory *memory;
210 memory = agp_allocate_memory(dev->agp->bridge, pages, type);
211 if (!memory) {
216 entry->handle = (unsigned long)memory->key + 1;
217 entry->memory = memory;
220 list_add(&entry->head, &dev->agp->memory);
223 request->physical = memory->physical;
239 * Search for the AGP memory entry associated with a handle.
242 * \param handle AGP memory handle.
245 * Walks through drm_agp_head::memory until finding a matching handle.
252 list_for_each_entry(entry, &dev->agp->memory, head) {
260 * Unbind AGP memory from the GATT (ioctl).
264 * Verifies the AGP device is present and acquired, looks-up the AGP memory
277 ret = agp_unbind_memory(entry->memory);
294 * Bind AGP memory into the GATT (ioctl)
298 * Verifies the AGP device is present and has been acquired and that no memory
299 * is currently bound into the GATT. Looks-up the AGP memory entry and passes
314 retcode = agp_bind_memory(entry->memory, page);
334 * Free AGP memory (ioctl).
339 * AGP memory entry. If the memory is currently bound, unbind it via
353 agp_unbind_memory(entry->memory);
357 agp_free_memory(entry->memory);
408 INIT_LIST_HEAD(&head->memory);
436 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) {
438 agp_unbind_memory(entry->memory);
439 agp_free_memory(entry->memory);
442 INIT_LIST_HEAD(&dev->agp->memory);