Home
last modified time | relevance | path

Searched refs:geometry (Results 1 – 25 of 40) sorted by relevance

12

/drivers/iommu/
Dsprd-iommu.c130 return ((domain->geometry.aperture_end - in sprd_iommu_pgt_size()
131 domain->geometry.aperture_start + 1) >> in sprd_iommu_pgt_size()
148 dom->domain.geometry.aperture_start = 0; in sprd_iommu_domain_alloc()
149 dom->domain.geometry.aperture_end = SZ_256M - 1; in sprd_iommu_domain_alloc()
150 dom->domain.geometry.force_aperture = true; in sprd_iommu_domain_alloc()
166 val = dom->domain.geometry.aperture_start >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_first_vpn()
181 val = (dom->domain.geometry.aperture_end - in sprd_iommu_vpn_range()
182 dom->domain.geometry.aperture_start) >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_vpn_range()
300 unsigned long start = domain->geometry.aperture_start; in sprd_iommu_map()
301 unsigned long end = domain->geometry.aperture_end; in sprd_iommu_map()
[all …]
Ds390-iommu.c121 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device()
122 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device()
123 domain->geometry.force_aperture = true; in s390_iommu_attach_device()
125 } else if (domain->geometry.aperture_start != zdev->start_dma || in s390_iommu_attach_device()
126 domain->geometry.aperture_end != zdev->end_dma) { in s390_iommu_attach_device()
218 if (dma_addr < s390_domain->domain.geometry.aperture_start || in s390_iommu_update_trans()
219 dma_addr + size > s390_domain->domain.geometry.aperture_end) in s390_iommu_update_trans()
291 if (iova < domain->geometry.aperture_start || in s390_iommu_iova_to_phys()
292 iova > domain->geometry.aperture_end) in s390_iommu_iova_to_phys()
Dfsl_pamu_domain.c174 if (iova < domain->geometry.aperture_start || in fsl_pamu_iova_to_phys()
175 iova > domain->geometry.aperture_end) in fsl_pamu_iova_to_phys()
210 dma_domain->iommu_domain. geometry.aperture_start = 0; in fsl_pamu_domain_alloc()
211 dma_domain->iommu_domain.geometry.aperture_end = (1ULL << 36) - 1; in fsl_pamu_domain_alloc()
212 dma_domain->iommu_domain.geometry.force_aperture = true; in fsl_pamu_domain_alloc()
Dtegra-gart.c153 domain->geometry.aperture_start = gart_handle->iovmm_base; in gart_iommu_domain_alloc()
154 domain->geometry.aperture_end = gart_handle->iovmm_end - 1; in gart_iommu_domain_alloc()
155 domain->geometry.force_aperture = true; in gart_iommu_domain_alloc()
Dvirtio-iommu.c48 struct iommu_domain_geometry geometry; member
628 domain->geometry = viommu->geometry; in viommu_domain_finalise()
1048 viommu->geometry = (struct iommu_domain_geometry) { in viommu_probe()
1096 order_base_2(viommu->geometry.aperture_end)); in viommu_probe()
Ddma-iommu.c380 if (domain->geometry.force_aperture) { in iommu_dma_init_domain()
381 if (base > domain->geometry.aperture_end || in iommu_dma_init_domain()
382 limit < domain->geometry.aperture_start) { in iommu_dma_init_domain()
388 domain->geometry.aperture_start >> order); in iommu_dma_init_domain()
487 if (domain->geometry.force_aperture) in iommu_dma_alloc_iova()
488 dma_limit = min(dma_limit, (u64)domain->geometry.aperture_end); in iommu_dma_alloc_iova()
Dapple-dart.c437 domain->geometry.aperture_start = 0; in apple_dart_finalize_domain()
438 domain->geometry.aperture_end = DMA_BIT_MASK(32); in apple_dart_finalize_domain()
439 domain->geometry.force_aperture = true; in apple_dart_finalize_domain()
Dsun50i-iommu.c619 sun50i_domain->domain.geometry.aperture_start = 0; in sun50i_iommu_domain_alloc()
620 sun50i_domain->domain.geometry.aperture_end = DMA_BIT_MASK(32); in sun50i_iommu_domain_alloc()
621 sun50i_domain->domain.geometry.force_aperture = true; in sun50i_iommu_domain_alloc()
Dmsm_iommu.c318 priv->domain.geometry.aperture_start = 0; in msm_iommu_domain_alloc()
319 priv->domain.geometry.aperture_end = (1ULL << 32) - 1; in msm_iommu_domain_alloc()
320 priv->domain.geometry.force_aperture = true; in msm_iommu_domain_alloc()
Dtegra-smmu.c317 as->domain.geometry.aperture_start = 0; in tegra_smmu_domain_alloc()
318 as->domain.geometry.aperture_end = 0xffffffff; in tegra_smmu_domain_alloc()
319 as->domain.geometry.force_aperture = true; in tegra_smmu_domain_alloc()
Dmtk_iommu.c435 dom->domain.geometry.aperture_start = region->iova_base; in mtk_iommu_domain_finalise()
436 dom->domain.geometry.aperture_end = region->iova_base + region->size - 1; in mtk_iommu_domain_finalise()
437 dom->domain.geometry.force_aperture = true; in mtk_iommu_domain_finalise()
Dexynos-iommu.c771 domain->domain.geometry.aperture_start = 0; in exynos_iommu_domain_alloc()
772 domain->domain.geometry.aperture_end = ~0UL; in exynos_iommu_domain_alloc()
773 domain->domain.geometry.force_aperture = true; in exynos_iommu_domain_alloc()
Drockchip-iommu.c1065 rk_domain->domain.geometry.aperture_start = 0; in rk_iommu_domain_alloc()
1066 rk_domain->domain.geometry.aperture_end = DMA_BIT_MASK(32); in rk_iommu_domain_alloc()
1067 rk_domain->domain.geometry.force_aperture = true; in rk_iommu_domain_alloc()
/drivers/gpu/drm/rockchip/
Drockchip_drm_drv.c79 struct iommu_domain_geometry *geometry; in rockchip_drm_init_iommu() local
89 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
90 start = geometry->aperture_start; in rockchip_drm_init_iommu()
91 end = geometry->aperture_end; in rockchip_drm_init_iommu()
/drivers/staging/media/ipu3/
Dipu3-mmu.c63 struct imgu_mmu_info geometry; member
68 return container_of(info, struct imgu_mmu, geometry); in to_imgu_mmu()
481 mmu->geometry.aperture_start = 0; in imgu_mmu_init()
482 mmu->geometry.aperture_end = DMA_BIT_MASK(IPU3_MMU_ADDRESS_BITS); in imgu_mmu_init()
484 return &mmu->geometry; in imgu_mmu_init()
/drivers/gpu/host1x/
Ddev.c273 struct iommu_domain_geometry *geometry; in host1x_iommu_attach() local
295 geometry = &host->domain->geometry; in host1x_iommu_attach()
296 start = geometry->aperture_start & host->info->dma_mask; in host1x_iommu_attach()
297 end = geometry->aperture_end & host->info->dma_mask; in host1x_iommu_attach()
/drivers/staging/media/tegra-vde/
Diommu.c29 end = vde->domain->geometry.aperture_end; in tegra_vde_iommu_map()
/drivers/md/
Ddm-core.h106 struct hd_geometry geometry; member
Ddm-ioctl.c1047 struct hd_geometry geometry; in dev_set_geometry() local
1076 geometry.cylinders = indata[0]; in dev_set_geometry()
1077 geometry.heads = indata[1]; in dev_set_geometry()
1078 geometry.sectors = indata[2]; in dev_set_geometry()
1079 geometry.start = indata[3]; in dev_set_geometry()
1081 r = dm_set_geometry(md, &geometry); in dev_set_geometry()
/drivers/memstick/core/
Dms_block.h152 struct hd_geometry geometry; member
/drivers/block/
Dvirtio_blk.c436 geometry.cylinders, &geo->cylinders); in virtblk_getgeo()
438 geometry.heads, &geo->heads); in virtblk_getgeo()
440 geometry.sectors, &geo->sectors); in virtblk_getgeo()
/drivers/block/rnbd/
DREADME72 a 32 bit device id to be used for IOs and device "geometry" related
/drivers/vhost/
Dvdpa.c954 } else if (v->domain && v->domain->geometry.force_aperture) { in vhost_vdpa_set_iova_range()
955 range->first = v->domain->geometry.aperture_start; in vhost_vdpa_set_iova_range()
956 range->last = v->domain->geometry.aperture_end; in vhost_vdpa_set_iova_range()
/drivers/iommu/arm/arm-smmu/
Dqcom_iommu.c261 domain->geometry.aperture_end = (1ULL << pgtbl_cfg.ias) - 1; in qcom_iommu_init_domain()
262 domain->geometry.force_aperture = true; in qcom_iommu_init_domain()
/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c218 start = max_t(u64, SZ_16M, iommu->geometry.aperture_start); in adreno_iommu_create_address_space()
219 size = iommu->geometry.aperture_end - start + 1; in adreno_iommu_create_address_space()

12