Lines Matching refs:aper

862 	struct marvel_agp_aperture *aper;  in marvel_agp_setup()  local
867 aper = kmalloc(sizeof(*aper), GFP_KERNEL); in marvel_agp_setup()
868 if (aper == NULL) return -ENOMEM; in marvel_agp_setup()
870 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
871 aper->pg_count = alpha_agpgart_size / PAGE_SIZE; in marvel_agp_setup()
872 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in marvel_agp_setup()
873 aper->pg_count - 1); in marvel_agp_setup()
875 if (aper->pg_start < 0) { in marvel_agp_setup()
877 kfree(aper); in marvel_agp_setup()
882 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in marvel_agp_setup()
883 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup()
884 agp->aperture.sysdata = aper; in marvel_agp_setup()
892 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup() local
895 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
899 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
900 status = iommu_release(aper->arena, aper->pg_start, in marvel_agp_cleanup()
901 aper->pg_count); in marvel_agp_cleanup()
906 kfree(aper); in marvel_agp_cleanup()
977 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_bind_memory() local
978 return iommu_bind(aper->arena, aper->pg_start + pg_start, in marvel_agp_bind_memory()
985 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_unbind_memory() local
986 return iommu_unbind(aper->arena, aper->pg_start + pg_start, in marvel_agp_unbind_memory()
993 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_translate() local
994 unsigned long baddr = addr - aper->arena->dma_base; in marvel_agp_translate()
1003 pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; in marvel_agp_translate()