/openbmc/qemu/linux-user/ |
H A D | mmap.c | 174 int prot1, ret, page_flags, nranges; in target_mprotect() local 196 nranges = 0; in target_mprotect() 209 starts[nranges] = host_start; in target_mprotect() 210 lens[nranges] = host_page_size; in target_mprotect() 211 prots[nranges] = prot1; in target_mprotect() 212 nranges++; in target_mprotect() 222 starts[nranges] = host_start; in target_mprotect() 223 lens[nranges] = host_page_size; in target_mprotect() 224 prots[nranges] = prot1; in target_mprotect() 225 nranges++; in target_mprotect() [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | ffa.c | 293 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 D | physmem_info.c | 251 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 D | ranges.c | 21 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 D | of.c | 286 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 D | pinctrl-mtk-common.h | 10 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), } 112 unsigned int nranges; member
|
H A D | pinctrl-mtk-common.c | 87 e = c + rc->nranges; in mtk_hw_pin_field_lookup()
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-microchip-sgpio.c | 607 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 D | core.c | 430 unsigned nranges) in pinctrl_add_gpio_ranges() argument 434 for (i = 0; i < nranges; i++) in pinctrl_add_gpio_ranges()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-moore.h | 27 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
|
H A D | pinctrl-paris.h | 29 #define MTK_RANGE(_a) { .range = (_a), .nranges = ARRAY_SIZE(_a), }
|
H A D | pinctrl-mtk-common-v2.h | 181 unsigned int nranges; member
|
H A D | pinctrl-mtk-common-v2.c | 90 end = rc->nranges - 1; in mtk_hw_pin_field_lookup()
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-tangier.h | 72 unsigned int nranges; member
|
H A D | gpio-merrifield.c | 101 priv->pin_info.nranges = ARRAY_SIZE(mrfld_gpio_ranges); in mrfld_gpio_probe()
|
H A D | gpio-tangier.c | 416 for (i = 0; i < priv->pin_info.nranges; i++) { in tng_gpio_add_pin_ranges()
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_mvebu.c | 363 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 D | oplib.h | 278 struct linux_prom_ranges *rangep, int nranges);
|
/openbmc/linux/include/linux/pinctrl/ |
H A D | pinctrl.h | 196 unsigned nranges);
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | sunhme.h | 493 int nranges; member
|
H A D | sunhme.c | 2293 qp->nranges = 0; in quattro_pci_find()
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-mvebu.c | 1184 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 D | regmap.h | 1309 unsigned int nranges);
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap.c | 62 unsigned int nranges) in regmap_reg_in_ranges() argument 67 for (i = 0, r = ranges; i < nranges; i++, r++) in regmap_reg_in_ranges()
|