Home
last modified time | relevance | path

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

/openbmc/qemu/linux-user/
H A Dmmap.c172 int prot1, ret, page_flags, nranges; in target_mprotect() local
194 nranges = 0; in target_mprotect()
207 starts[nranges] = host_start; in target_mprotect()
209 prots[nranges] = prot1; in target_mprotect()
210 nranges++; in target_mprotect()
222 prots[nranges] = prot1; in target_mprotect()
223 nranges++; in target_mprotect()
239 prots[nranges] = prot1; in target_mprotect()
240 nranges++; in target_mprotect()
249 nranges++; in target_mprotect()
[all …]
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dffa.c293 u32 nranges) in __ffa_host_share_ranges() argument
297 for (i = 0; i < nranges; ++i) { in __ffa_host_share_ranges()
313 u32 nranges) in __ffa_host_unshare_ranges() argument
317 for (i = 0; i < nranges; ++i) { in __ffa_host_unshare_ranges()
333 u32 nranges) in ffa_host_share_ranges() argument
335 u32 nshared = __ffa_host_share_ranges(ranges, nranges); in ffa_host_share_ranges()
338 if (nshared != nranges) { in ffa_host_share_ranges()
347 u32 nranges) in ffa_host_unshare_ranges() argument
349 u32 nunshared = __ffa_host_unshare_ranges(ranges, nranges); in ffa_host_unshare_ranges()
352 if (nunshared != nranges) { in ffa_host_unshare_ranges()
/openbmc/linux/arch/s390/boot/
H A Dphysmem_info.c251 unsigned int nranges = from_ranges ?: physmem_info.range_count; in __physmem_alloc_range() local
257 while (nranges) { in __physmem_alloc_range()
258 __get_physmem_range(nranges - 1, &range_start, &range_end, false); in __physmem_alloc_range()
265 nranges--; in __physmem_alloc_range()
274 *ranges_left = nranges; in __physmem_alloc_range()
/openbmc/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()
/openbmc/linux/drivers/misc/cxl/
H A Dof.c286 int len, nranges, i; in read_adapter_irq_config() local
297 nranges = len / (2 * sizeof(int)); in read_adapter_irq_config()
298 if (nranges == 0 || (nranges * 2 * sizeof(int)) != len) in read_adapter_irq_config()
301 adapter->guest->irq_avail = kcalloc(nranges, sizeof(struct irq_avail), in read_adapter_irq_config()
307 for (i = 0; i < nranges; i++) { in read_adapter_irq_config()
321 adapter->guest->irq_nranges = nranges; in read_adapter_irq_config()
/openbmc/u-boot/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-common.h10 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
112 unsigned int nranges; member
H A Dpinctrl-mtk-common.c87 e = c + rc->nranges; in mtk_hw_pin_field_lookup()
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-microchip-sgpio.c607 int i, nranges, ret; in microchip_sgpio_get_ports() local
610 nranges = device_property_count_u32(dev, range_property_name); in microchip_sgpio_get_ports()
611 if (nranges < 2 || nranges % 2 || nranges > ARRAY_SIZE(range_params)) { in microchip_sgpio_get_ports()
613 nranges == -EINVAL ? "Missing" : "Invalid", in microchip_sgpio_get_ports()
619 range_params, nranges); in microchip_sgpio_get_ports()
625 for (i = 0; i < nranges; i += 2) { in microchip_sgpio_get_ports()
H A Dcore.c427 unsigned nranges) in pinctrl_add_gpio_ranges() argument
431 for (i = 0; i < nranges; i++) in pinctrl_add_gpio_ranges()
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-moore.h27 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
H A Dpinctrl-paris.h29 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
H A Dpinctrl-mtk-common-v2.h181 unsigned int nranges; member
H A Dpinctrl-mtk-common-v2.c90 end = rc->nranges - 1; in mtk_hw_pin_field_lookup()
/openbmc/linux/drivers/gpio/
H A Dgpio-tangier.h72 unsigned int nranges; member
H A Dgpio-merrifield.c101 priv->pin_info.nranges = ARRAY_SIZE(mrfld_gpio_ranges); in mrfld_gpio_probe()
H A Dgpio-tangier.c416 for (i = 0; i < priv->pin_info.nranges; i++) { in tng_gpio_add_pin_ranges()
/openbmc/u-boot/drivers/pci/
H A Dpci_mvebu.c363 int rlen, nranges, rangesz, pna, i; in mvebu_get_tgt_attr() local
380 nranges = rlen / sizeof(__be32) / rangesz; in mvebu_get_tgt_attr()
382 for (i = 0; i < nranges; i++, range += rangesz) { in mvebu_get_tgt_attr()
/openbmc/linux/arch/m68k/include/asm/
H A Doplib.h278 struct linux_prom_ranges *rangep, int nranges);
/openbmc/linux/include/linux/pinctrl/
H A Dpinctrl.h196 unsigned nranges);
/openbmc/linux/drivers/net/ethernet/sun/
H A Dsunhme.h493 int nranges; member
H A Dsunhme.c2293 qp->nranges = 0; in quattro_pci_find()
/openbmc/linux/drivers/pci/controller/
H A Dpci-mvebu.c1184 int rlen, nranges, rangesz, pna, i; in mvebu_get_tgt_attr() local
1195 nranges = rlen / sizeof(__be32) / rangesz; in mvebu_get_tgt_attr()
1197 for (i = 0; i < nranges; i++, range += rangesz) { in mvebu_get_tgt_attr()
/openbmc/linux/include/linux/
H A Dregmap.h1309 unsigned int nranges);
/openbmc/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()