Lines Matching refs:aper
592 struct titan_agp_aperture *aper; in titan_agp_setup() local
597 aper = kmalloc(sizeof(struct titan_agp_aperture), GFP_KERNEL); in titan_agp_setup()
598 if (aper == NULL) in titan_agp_setup()
601 aper->arena = agp->hose->sg_pci; in titan_agp_setup()
602 aper->pg_count = alpha_agpgart_size / PAGE_SIZE; in titan_agp_setup()
603 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in titan_agp_setup()
604 aper->pg_count - 1); in titan_agp_setup()
605 if (aper->pg_start < 0) { in titan_agp_setup()
607 kfree(aper); in titan_agp_setup()
612 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in titan_agp_setup()
613 agp->aperture.size = aper->pg_count * PAGE_SIZE; in titan_agp_setup()
614 agp->aperture.sysdata = aper; in titan_agp_setup()
622 struct titan_agp_aperture *aper = agp->aperture.sysdata; in titan_agp_cleanup() local
625 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup()
629 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in titan_agp_cleanup()
630 status = iommu_release(aper->arena, aper->pg_start, in titan_agp_cleanup()
631 aper->pg_count); in titan_agp_cleanup()
636 kfree(aper); in titan_agp_cleanup()
685 struct titan_agp_aperture *aper = agp->aperture.sysdata; in titan_agp_bind_memory() local
686 return iommu_bind(aper->arena, aper->pg_start + pg_start, in titan_agp_bind_memory()
693 struct titan_agp_aperture *aper = agp->aperture.sysdata; in titan_agp_unbind_memory() local
694 return iommu_unbind(aper->arena, aper->pg_start + pg_start, in titan_agp_unbind_memory()
701 struct titan_agp_aperture *aper = agp->aperture.sysdata; in titan_agp_translate() local
702 unsigned long baddr = addr - aper->arena->dma_base; in titan_agp_translate()
711 pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; in titan_agp_translate()