Home
last modified time | relevance | path

Searched refs:nranges (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/vfio/lib/
H A Diova_allocator.c27 u32 nranges; in iova_allocator_init() local
29 ranges = iommu_iova_ranges(iommu, &nranges); in iova_allocator_init()
36 .nranges = nranges, in iova_allocator_init()
59 VFIO_ASSERT_LT(allocator->range_idx, allocator->nranges, in iova_allocator_alloc()
H A Diommu.c312 u32 *nranges) in vfio_iommu_iova_ranges() argument
335 *nranges = cap_range->nr_iovas; in vfio_iommu_iova_ranges()
343 u32 *nranges) in iommufd_iova_ranges() argument
363 *nranges = query.num_iovas; in iommufd_iova_ranges()
382 struct iommu_iova_range *iommu_iova_ranges(struct iommu *iommu, u32 *nranges) in iommu_iova_ranges() argument
387 ranges = iommufd_iova_ranges(iommu, nranges); in iommu_iova_ranges()
389 ranges = vfio_iommu_iova_ranges(iommu, nranges); in iommu_iova_ranges()
394 VFIO_ASSERT_GT(*nranges, 0); in iommu_iova_ranges()
397 qsort(ranges, *nranges, sizeof(*ranges), iova_range_comp); in iommu_iova_ranges()
400 for (u32 i = 1; i < *nranges; i++) { in iommu_iova_ranges()
/linux/arch/sparc/prom/
H A Dranges.c21 struct linux_prom_ranges *rangep, int nranges) in prom_adjust_regs() argument
26 for (rngc = 0; rngc < nranges; rngc++) in prom_adjust_regs()
29 if (rngc == nranges) /* oops */ in prom_adjust_regs()
/linux/arch/s390/boot/
H A Dphysmem_info.c277 unsigned int nranges = from_ranges ?: physmem_info.range_count; in __physmem_alloc_range() local
283 while (nranges) { in __physmem_alloc_range()
284 __get_physmem_range(nranges - 1, &range_start, &range_end, false); in __physmem_alloc_range()
291 nranges--; in __physmem_alloc_range()
300 *ranges_left = nranges; in __physmem_alloc_range()
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dffa.c346 u32 nranges) in __ffa_host_share_ranges() argument
350 for (i = 0; i < nranges; ++i) { in __ffa_host_share_ranges()
366 u32 nranges) in __ffa_host_unshare_ranges() argument
370 for (i = 0; i < nranges; ++i) { in __ffa_host_unshare_ranges()
386 u32 nranges) in ffa_host_share_ranges() argument
388 u32 nshared = __ffa_host_share_ranges(ranges, nranges); in ffa_host_share_ranges()
391 if (nshared != nranges) { in ffa_host_share_ranges()
400 u32 nranges) in ffa_host_unshare_ranges() argument
402 u32 nunshared = __ffa_host_unshare_ranges(ranges, nranges); in ffa_host_unshare_ranges()
405 if (nunshared != nranges) { in ffa_host_unshare_ranges()
/linux/drivers/pinctrl/
H A Dpinctrl-microchip-sgpio.c604 int i, nranges, ret; in microchip_sgpio_get_ports() local
607 nranges = device_property_count_u32(dev, range_property_name); in microchip_sgpio_get_ports()
608 if (nranges < 2 || nranges % 2 || nranges > ARRAY_SIZE(range_params)) { in microchip_sgpio_get_ports()
610 nranges == -EINVAL ? "Missing" : "Invalid", in microchip_sgpio_get_ports()
616 range_params, nranges); in microchip_sgpio_get_ports()
622 for (i = 0; i < nranges; i += 2) { in microchip_sgpio_get_ports()
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Diova_allocator.h13 u32 nranges; member
H A Diommu.h62 struct iommu_iova_range *iommu_iova_ranges(struct iommu *iommu, u32 *nranges);
/linux/tools/testing/selftests/vfio/
H A Dvfio_dma_mapping_test.c229 u32 nranges; in FIXTURE_SETUP() local
243 ranges = iommu_iova_ranges(self->iommu, &nranges); in FIXTURE_SETUP()
245 last_iova = ranges[nranges - 1].last; in FIXTURE_SETUP()
/linux/mm/
H A Dcma_debug.c56 for (r = 0; r < cma->nranges; r++) { in cma_maxchunk_get()
179 for (r = 0; r < cma->nranges; r++) { in cma_debugfs_add_one()
H A Dcma.h50 int nranges; member
/linux/drivers/gpio/
H A Dgpio-tangier.h73 unsigned int nranges; member
H A Dgpio-merrifield.c102 priv->pin_info.nranges = ARRAY_SIZE(mrfld_gpio_ranges); in mrfld_gpio_probe()
H A Dgpio-tangier.c399 for (i = 0; i < priv->pin_info.nranges; i++) { in tng_gpio_add_pin_ranges()
/linux/arch/m68k/include/asm/
H A Doplib.h280 struct linux_prom_ranges *rangep, int nranges);
/linux/drivers/net/ethernet/sun/
H A Dsunhme.h493 int nranges; member
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common-v2.c92 end = rc->nranges - 1; in mtk_hw_pin_field_lookup()
/linux/drivers/base/regmap/
H A Dregmap.c62 unsigned int nranges) in regmap_reg_in_ranges() argument
67 for (i = 0, r = ranges; i < nranges; i++, r++) in regmap_reg_in_ranges()