Lines Matching defs:head
264 list_add(&entry->head, &dev->agp->memory, (caddr_t)entry);
294 list_for_each_entry(entry, struct drm_agp_mem, &dev->agp->memory, head) {
420 list_del(&entry->head);
455 struct drm_agp_head *head = NULL;
458 if (!(head = kmalloc(sizeof(*head), GFP_KERNEL)))
460 (void) memset((void *)head, 0, sizeof(*head));
461 ret = ldi_ident_from_dip(dev->devinfo, &head->agpgart_li);
468 &head->agpgart_lh, head->agpgart_li);
474 ret = ldi_ioctl(head->agpgart_lh, AGPIOC_INFO,
475 (intptr_t)&head->agp_info, FKIOCTL, kcred, &rval);
480 INIT_LIST_HEAD(&head->memory);
481 head->base = head->agp_info.agpi_aperbase;
482 return head;
485 (void) ldi_close(head->agpgart_lh, FEXCL, kcred);
487 ldi_ident_release(head->agpgart_li);
489 kfree(head, sizeof(*head));