Lines Matching refs:aper

909 	struct marvel_agp_aperture *aper;  in marvel_agp_setup()  local
914 aper = kmalloc(sizeof(*aper), GFP_KERNEL); in marvel_agp_setup()
915 if (aper == NULL) return -ENOMEM; in marvel_agp_setup()
917 aper->arena = agp->hose->sg_pci; in marvel_agp_setup()
918 aper->pg_count = alpha_agpgart_size / PAGE_SIZE; in marvel_agp_setup()
919 aper->pg_start = iommu_reserve(aper->arena, aper->pg_count, in marvel_agp_setup()
920 aper->pg_count - 1); in marvel_agp_setup()
922 if (aper->pg_start < 0) { in marvel_agp_setup()
924 kfree(aper); in marvel_agp_setup()
929 aper->arena->dma_base + aper->pg_start * PAGE_SIZE; in marvel_agp_setup()
930 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup()
931 agp->aperture.sysdata = aper; in marvel_agp_setup()
939 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup() local
942 status = iommu_release(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
946 iommu_unbind(aper->arena, aper->pg_start, aper->pg_count); in marvel_agp_cleanup()
947 status = iommu_release(aper->arena, aper->pg_start, in marvel_agp_cleanup()
948 aper->pg_count); in marvel_agp_cleanup()
953 kfree(aper); in marvel_agp_cleanup()
1024 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_bind_memory() local
1025 return iommu_bind(aper->arena, aper->pg_start + pg_start, in marvel_agp_bind_memory()
1032 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_unbind_memory() local
1033 return iommu_unbind(aper->arena, aper->pg_start + pg_start, in marvel_agp_unbind_memory()
1040 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_translate() local
1041 unsigned long baddr = addr - aper->arena->dma_base; in marvel_agp_translate()
1050 pte = aper->arena->ptes[baddr >> PAGE_SHIFT]; in marvel_agp_translate()