Lines Matching refs:agp
58 struct drm_agp_head *agp = dev->agp;
60 (void) ldi_close(agp->agpgart_lh, FEXCL, kcred);
61 ldi_ident_release(agp->agpgart_li);
80 if (!dev->agp || !dev->agp->acquired)
83 agpinfo = &dev->agp->agp_info;
121 if (!dev->agp)
123 if (dev->agp->acquired)
127 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_ACQUIRE,
133 dev->agp->acquired = 1;
165 if (!dev->agp || !dev->agp->acquired)
169 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_RELEASE,
175 dev->agp->acquired = 0;
197 if (!dev->agp || !dev->agp->acquired)
200 dev->agp->mode = mode.mode;
205 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_SETUP,
211 dev->agp->enabled = 1;
242 if (!dev->agp || !dev->agp->acquired)
253 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_ALLOCATE,
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) {
318 if (!dev->agp || !dev->agp->acquired)
329 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_UNBIND,
366 if (!dev->agp || !dev->agp->acquired)
377 "agp_base=0x%lx", key, page, dev->agp->base);
381 entry->bound = dev->agp->base + (page << PAGE_SHIFT);
383 dev->agp->base, entry->bound);
413 if (!dev->agp || !dev->agp->acquired)
424 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_DEALLOCATE,
512 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_BIND,
526 if (!dev->agp || !dev->agp->acquired)
535 if (ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_UNBIND,
566 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_PAGES_BIND,
592 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_PAGES_UNBIND,
605 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_FLUSHCHIPSET,
626 ret = ldi_ioctl(dev->agp->agpgart_lh, AGPIOC_RW_GTT,