Home
last modified time | relevance | path

Searched refs:geometry (Results 1 - 25 of 86) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/iommu/
H A Dsprd-iommu.c132 return ((domain->geometry.aperture_end - in sprd_iommu_pgt_size()
133 domain->geometry.aperture_start + 1) >> in sprd_iommu_pgt_size()
150 dom->domain.geometry.aperture_start = 0; in sprd_iommu_domain_alloc()
151 dom->domain.geometry.aperture_end = SZ_256M - 1; in sprd_iommu_domain_alloc()
152 dom->domain.geometry.force_aperture = true; in sprd_iommu_domain_alloc()
168 val = dom->domain.geometry.aperture_start >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_first_vpn()
183 val = (dom->domain.geometry.aperture_end - in sprd_iommu_vpn_range()
184 dom->domain.geometry.aperture_start) >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_vpn_range()
298 unsigned long start = domain->geometry.aperture_start; in sprd_iommu_map()
299 unsigned long end = domain->geometry in sprd_iommu_map()
[all...]
H A Ds390-iommu.c58 s390_domain->domain.geometry.force_aperture = true; in s390_domain_alloc()
59 s390_domain->domain.geometry.aperture_start = 0; in s390_domain_alloc()
60 s390_domain->domain.geometry.aperture_end = ZPCI_TABLE_SIZE_RT - 1; in s390_domain_alloc()
116 if (WARN_ON(domain->geometry.aperture_start > zdev->end_dma || in s390_iommu_attach_device()
117 domain->geometry.aperture_end < zdev->start_dma)) in s390_iommu_attach_device()
326 if (iova < s390_domain->domain.geometry.aperture_start || in s390_iommu_map_pages()
327 (iova + size - 1) > s390_domain->domain.geometry.aperture_end) in s390_iommu_map_pages()
356 if (iova < domain->geometry.aperture_start || in s390_iommu_iova_to_phys()
357 iova > domain->geometry.aperture_end) in s390_iommu_iova_to_phys()
389 if (WARN_ON(iova < s390_domain->domain.geometry in s390_iommu_unmap_pages()
[all...]
H A Dfsl_pamu_domain.c77 /* Set the geometry parameters for a LIODN */
86 * Configure the omi_index at the geometry setup time. in pamu_set_liodn()
175 if (iova < domain->geometry.aperture_start || in fsl_pamu_iova_to_phys()
176 iova > domain->geometry.aperture_end) in fsl_pamu_iova_to_phys()
210 /* default geometry 64 GB i.e. maximum system address */ in fsl_pamu_domain_alloc()
211 dma_domain->iommu_domain. geometry.aperture_start = 0; in fsl_pamu_domain_alloc()
212 dma_domain->iommu_domain.geometry.aperture_end = (1ULL << 36) - 1; in fsl_pamu_domain_alloc()
213 dma_domain->iommu_domain.geometry.force_aperture = true; in fsl_pamu_domain_alloc()
H A 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()
H A Dvirtio-iommu.c47 struct iommu_domain_geometry geometry; member
386 u64 iova = vdomain->domain.geometry.aperture_start; in viommu_domain_map_identity()
387 u64 limit = vdomain->domain.geometry.aperture_end; in viommu_domain_map_identity()
684 domain->geometry = viommu->geometry; in viommu_domain_finalise()
1160 viommu->geometry = (struct iommu_domain_geometry) { in viommu_probe()
1188 order_base_2(viommu->geometry.aperture_end)); in viommu_probe()
/kernel/linux/linux-5.10/drivers/iommu/
H A Ds390-iommu.c114 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device()
115 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device()
116 domain->geometry.force_aperture = true; in s390_iommu_attach_device()
118 } else if (domain->geometry.aperture_start != zdev->start_dma || in s390_iommu_attach_device()
119 domain->geometry.aperture_end != zdev->end_dma) { in s390_iommu_attach_device()
210 if (dma_addr < s390_domain->domain.geometry.aperture_start || in s390_iommu_update_trans()
211 dma_addr + size > s390_domain->domain.geometry.aperture_end) in s390_iommu_update_trans()
283 if (iova < domain->geometry.aperture_start || in s390_iommu_iova_to_phys()
284 iova > domain->geometry.aperture_end) in s390_iommu_iova_to_phys()
H A Dfsl_pamu_domain.c63 geom = &dma_domain->iommu_domain.geometry; in get_phys_addr()
66 pr_debug("Number of windows/geometry not configured for the domain\n"); in get_phys_addr()
121 phys_addr_t wnd_addr = dma_domain->iommu_domain.geometry.aperture_start; in map_win()
170 wnd_addr = dma_domain->iommu_domain.geometry.aperture_start; in update_liodn()
217 /* Set the geometry parameters for a LIODN */
230 * Configure the omi_index at the geometry setup time. in pamu_set_liodn()
384 if (iova < domain->geometry.aperture_start || in fsl_pamu_iova_to_phys()
385 iova > domain->geometry.aperture_end) in fsl_pamu_iova_to_phys()
421 /* defaul geometry 64 GB i.e. maximum system address */ in fsl_pamu_domain_alloc()
422 dma_domain->iommu_domain. geometry in fsl_pamu_domain_alloc()
[all...]
H A 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()
H A Ddma-iommu.c321 if (domain->geometry.force_aperture) { in iommu_dma_init_domain()
322 if (base > domain->geometry.aperture_end || in iommu_dma_init_domain()
323 base + size <= domain->geometry.aperture_start) { in iommu_dma_init_domain()
329 domain->geometry.aperture_start >> order); in iommu_dma_init_domain()
429 if (domain->geometry.force_aperture) in iommu_dma_alloc_iova()
430 dma_limit = min(dma_limit, (u64)domain->geometry.aperture_end); in iommu_dma_alloc_iova()
H A Dvirtio-iommu.c48 struct iommu_domain_geometry geometry; member
634 domain->geometry = viommu->geometry; in viommu_domain_finalise()
1045 viommu->geometry = (struct iommu_domain_geometry) { in viommu_probe()
1096 order_base_2(viommu->geometry.aperture_end)); in viommu_probe()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Ddev.c267 struct iommu_domain_geometry *geometry; in host1x_iommu_attach() local
289 geometry = &host->domain->geometry; in host1x_iommu_attach()
290 start = geometry->aperture_start & host->info->dma_mask; in host1x_iommu_attach()
291 end = geometry->aperture_end & host->info->dma_mask; in host1x_iommu_attach()
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
H A Drockchip_drm_drv.c78 struct iommu_domain_geometry *geometry; in rockchip_drm_init_iommu() local
88 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
89 start = geometry->aperture_start; in rockchip_drm_init_iommu()
90 end = geometry->aperture_end; in rockchip_drm_init_iommu()
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
H A 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()
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/
H A 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()
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/
H A Drockchip_drm_drv.c104 struct iommu_domain_geometry *geometry; in rockchip_drm_init_iommu() local
114 geometry = &private->domain->geometry; in rockchip_drm_init_iommu()
115 start = geometry->aperture_start; in rockchip_drm_init_iommu()
116 end = geometry->aperture_end; in rockchip_drm_init_iommu()
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Ddev.c374 struct iommu_domain_geometry *geometry; in host1x_iommu_attach() local
396 geometry = &host->domain->geometry; in host1x_iommu_attach()
397 start = geometry->aperture_start & host->info->dma_mask; in host1x_iommu_attach()
398 end = geometry->aperture_end & host->info->dma_mask; in host1x_iommu_attach()
/kernel/liteos_a/drivers/block/disk/src/
H A Ddisk.c994 struct geometry info; in los_disk_ioctl()
1018 if ((bops == NULL) || (bops->geometry == NULL) || in los_disk_ioctl()
1019 (bops->geometry(disk->dev, &info) != 0)) { in los_disk_ioctl()
1160 struct geometry info; in los_part_ioctl()
1190 if ((bops == NULL) || (bops->geometry == NULL) || in los_part_ioctl()
1191 (bops->geometry(part->dev, &info) != 0)) { in los_part_ioctl()
1268 static OsBcache *DiskCacheInit(UINT32 diskID, const struct geometry *diskInfo, struct Vnode *blkDriver) in DiskCacheInit()
1312 static VOID DiskStructInit(const CHAR *diskName, INT32 diskID, const struct geometry *diskInfo, in DiskStructInit()
1418 struct geometry *diskInfo, struct Vnode *blkDriver) in OsDiskInitSub()
1449 struct geometry diskInf in los_disk_init()
[all...]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dvirtio_blk.h41 } geometry; member
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dvirtio_blk.h36 #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */
65 /* geometry of the device (if VIRTIO_BLK_F_GEOMETRY) */
70 } geometry; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dvirtio_blk.h50 } geometry; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dvirtio_blk.h50 } geometry; member
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/adreno/
H A Dadreno_gpu.c206 struct iommu_domain_geometry *geometry; in adreno_iommu_create_address_space() local
215 geometry = msm_iommu_get_geometry(mmu); in adreno_iommu_create_address_space()
216 if (IS_ERR(geometry)) in adreno_iommu_create_address_space()
217 return ERR_CAST(geometry); in adreno_iommu_create_address_space()
224 start = max_t(u64, SZ_16M, geometry->aperture_start); in adreno_iommu_create_address_space()
225 size = geometry->aperture_end - start + 1; in adreno_iommu_create_address_space()
/kernel/linux/linux-6.6/drivers/iommu/iommufd/
H A Dio_pagetable.c843 const struct iommu_domain_geometry *geometry = &domain->geometry; in iopt_table_add_domain() local
881 if (geometry->aperture_start != 0) { in iopt_table_add_domain()
882 rc = iopt_reserve_iova(iopt, 0, geometry->aperture_start - 1, in iopt_table_add_domain()
887 if (geometry->aperture_end != ULONG_MAX) { in iopt_table_add_domain()
888 rc = iopt_reserve_iova(iopt, geometry->aperture_end + 1, in iopt_table_add_domain()
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-core.h106 /* forced geometry settings */
107 struct hd_geometry geometry; member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dvirtio_blk.h36 #define VIRTIO_BLK_F_GEOMETRY 4 /* Legacy geometry available */
67 /* geometry of the device (if VIRTIO_BLK_F_GEOMETRY) */
72 } geometry; member

Completed in 22 milliseconds

1234