Lines Matching refs:head
220 list_add(&entry->head, &dev->agp->memory); in drm_legacy_agp_alloc()
252 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_legacy_agp_lookup_entry()
355 list_del(&entry->head); in drm_legacy_agp_free()
387 struct drm_agp_head *head = NULL; in drm_legacy_agp_init() local
389 head = kzalloc(sizeof(*head), GFP_KERNEL); in drm_legacy_agp_init()
390 if (!head) in drm_legacy_agp_init()
392 head->bridge = agp_find_bridge(pdev); in drm_legacy_agp_init()
393 if (!head->bridge) { in drm_legacy_agp_init()
394 head->bridge = agp_backend_acquire(pdev); in drm_legacy_agp_init()
395 if (!head->bridge) { in drm_legacy_agp_init()
396 kfree(head); in drm_legacy_agp_init()
399 agp_copy_info(head->bridge, &head->agp_info); in drm_legacy_agp_init()
400 agp_backend_release(head->bridge); in drm_legacy_agp_init()
402 agp_copy_info(head->bridge, &head->agp_info); in drm_legacy_agp_init()
404 if (head->agp_info.chipset == NOT_SUPPORTED) { in drm_legacy_agp_init()
405 kfree(head); in drm_legacy_agp_init()
408 INIT_LIST_HEAD(&head->memory); in drm_legacy_agp_init()
409 head->cant_use_aperture = head->agp_info.cant_use_aperture; in drm_legacy_agp_init()
410 head->page_mask = head->agp_info.page_mask; in drm_legacy_agp_init()
411 head->base = head->agp_info.aper_base; in drm_legacy_agp_init()
412 return head; in drm_legacy_agp_init()
436 list_for_each_entry_safe(entry, tempe, &dev->agp->memory, head) { in drm_legacy_agp_clear()