Lines Matching refs:entry
77 * If this capability entry ID is cap, then we are done.
210 drm_agp_mem_t *entry;
219 entry = malloc(sizeof(*entry), DRM_MEM_AGPLISTS, M_NOWAIT | M_ZERO);
220 if (entry == NULL)
230 free(entry, DRM_MEM_AGPLISTS);
234 entry->handle = handle;
235 entry->bound = 0;
236 entry->pages = pages;
237 entry->prev = NULL;
238 entry->next = dev->agp->memory;
240 dev->agp->memory->prev = entry;
241 dev->agp->memory = entry;
243 agp_memory_info(dev->agp->agpdev, entry->handle, &info);
245 request->handle = (unsigned long) entry->handle;
271 drm_agp_mem_t *entry;
273 for (entry = dev->agp->memory; entry; entry = entry->next) {
274 if (entry->handle == handle) return entry;
281 drm_agp_mem_t *entry;
287 entry = drm_agp_lookup_entry(dev, (void *)request->handle);
288 if (entry == NULL || !entry->bound)
292 retcode = drm_agp_unbind_memory(entry->handle);
296 entry->bound = 0;
318 drm_agp_mem_t *entry;
327 entry = drm_agp_lookup_entry(dev, (void *)request->handle);
328 if (entry == NULL || entry->bound)
334 retcode = drm_agp_bind_memory(entry->handle, page);
337 entry->bound = dev->agp->base + (page << PAGE_SHIFT);
359 drm_agp_mem_t *entry;
364 entry = drm_agp_lookup_entry(dev, (void*)request->handle);
365 if (entry == NULL)
368 if (entry->prev)
369 entry->prev->next = entry->next;
371 dev->agp->memory = entry->next;
372 if (entry->next)
373 entry->next->prev = entry->prev;
376 if (entry->bound)
377 drm_agp_unbind_memory(entry->handle);
378 drm_agp_free_memory(entry->handle);
381 free(entry, DRM_MEM_AGPLISTS);