Home
last modified time | relevance | path

Searched refs:nregs (Results 1 – 25 of 81) sorted by relevance

1234

/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dzt_regs.c49 if (zt->nregs == 0) { in zt_regs_run()
55 head->size, zt->nregs); in zt_regs_run()
58 zeros = malloc(ZT_SIG_REGS_SIZE(zt->nregs)); in zt_regs_run()
60 fprintf(stderr, "Out of memory, nregs=%u\n", zt->nregs); in zt_regs_run()
63 memset(zeros, 0, ZT_SIG_REGS_SIZE(zt->nregs)); in zt_regs_run()
66 ZT_SIG_REGS_SIZE(zt->nregs)) != 0) { in zt_regs_run()
H A Dtestcases.c117 if (zt->nregs == 0) { in validate_zt_context()
123 if (zt->head.size != ZT_SIG_CONTEXT_SIZE(zt->nregs)) { in validate_zt_context()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_hynix.c27 int nregs; member
53 int nregs; member
115 (retry_mode * hynix->read_retry->nregs); in hynix_nand_setup_read_retry()
205 for (i = 0; i < info->nregs; i++) { in hynix_read_rr_otp()
263 int val_offs = (mode * nregs) + reg; in hynix_mlc_1xnm_rr_value()
264 int set_size = nmodes * nregs; in hynix_mlc_1xnm_rr_value()
293 u8 nregs, nmodes; in hynix_mlc_1xnm_rr_init() local
311 &nregs); in hynix_mlc_1xnm_rr_init()
322 for (j = 0; j < nregs; j++) { in hynix_mlc_1xnm_rr_init()
323 u8 *val = rr->values + (i * nregs); in hynix_mlc_1xnm_rr_init()
[all …]
/openbmc/u-boot/drivers/gpio/
H A D74x164_gpio.c34 u32 nregs; member
54 ret = dm_spi_xfer(dev, priv->nregs * 8, priv->buffer, NULL, in gen_74x164_write_conf()
65 uint bank = priv->nregs - 1 - offset / 8; in gen_74x164_get_value()
75 uint bank = priv->nregs - 1 - offset / 8; in gen_74x164_set_value()
143 priv->nregs = fdtdec_get_int(fdt, node, "registers-number", 1); in gen_74x164_probe()
144 priv->buffer = calloc(priv->nregs, sizeof(u8)); in gen_74x164_probe()
151 priv->buffer, priv->nregs); in gen_74x164_probe()
162 uc_priv->gpio_count = priv->nregs * 8; in gen_74x164_probe()
/openbmc/linux/drivers/nvmem/
H A Dimx-iim.c24 unsigned int nregs; member
56 .nregs = 2 * 32,
60 .nregs = 3 * 32,
64 .nregs = 4 * 32,
68 .nregs = 4 * 32 + 16,
124 cfg.size = drvdata->nregs; in imx_iim_probe()
H A Dimx-ocotp.c487 .nregs = 128,
494 .nregs = 64,
501 .nregs = 80,
508 .nregs = 128,
515 .nregs = 144,
522 .nregs = 80,
529 .nregs = 64,
536 .nregs = 256,
542 .nregs = 256,
549 .nregs = 256,
[all …]
H A Dimx-ocotp-scu.c36 int nregs; member
56 .nregs = 800,
67 .nregs = 800,
145 if (count > (priv->data->nregs - index)) in imx_scu_ocotp_read()
146 count = priv->data->nregs - index; in imx_scu_ocotp_read()
256 imx_scu_ocotp_nvmem_config.size = 4 * priv->data->nregs; in imx_scu_ocotp_probe()
/openbmc/linux/arch/sparc/prom/
H A Dranges.c20 static void prom_adjust_regs(struct linux_prom_registers *regp, int nregs, in prom_adjust_regs() argument
25 for (regc = 0; regc < nregs; regc++) { in prom_adjust_regs()
58 void prom_apply_obio_ranges(struct linux_prom_registers *regs, int nregs) in prom_apply_obio_ranges() argument
61 prom_adjust_regs(regs, nregs, promlib_obio_ranges, num_obio_ranges); in prom_apply_obio_ranges()
89 struct linux_prom_registers *regs, int nregs) in prom_apply_generic_ranges() argument
112 prom_adjust_regs(regs, nregs, ranges, num_ranges); in prom_apply_generic_ranges()
/openbmc/linux/tools/perf/arch/x86/util/
H A Dunwind-libdw.c13 unsigned nregs; in libdw__arch_set_initial_registers() local
31 nregs = 9; in libdw__arch_set_initial_registers()
50 nregs = 17; in libdw__arch_set_initial_registers()
53 return dwfl_thread_state_registers(thread, 0, nregs, dwarf_regs); in libdw__arch_set_initial_registers()
/openbmc/linux/drivers/irqchip/
H A Dqcom-irq-combiner.c35 u32 nregs; member
55 for (reg = 0; reg < combiner->nregs; reg++) { in combiner_handle_irq()
199 ctx->combiner->regs[ctx->combiner->nregs].addr = vaddr; in get_registers_cb()
201 ctx->combiner->nregs++; in get_registers_cb()
228 int nregs; in combiner_probe() local
231 nregs = count_registers(pdev); in combiner_probe()
232 if (nregs <= 0) { in combiner_probe()
237 combiner = devm_kzalloc(&pdev->dev, struct_size(combiner, regs, nregs), in combiner_probe()
/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-m31.c82 unsigned int nregs; member
152 int nregs; member
193 for (i = 0; i < qphy->nregs; i++) { in m31usb_phy_init()
248 qphy->nregs = data->nregs; in m31usb_phy_probe()
273 .nregs = ARRAY_SIZE(m31_ipq5332_regs),
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dcmd.c62 int carl9170_read_mreg(struct ar9170 *ar, const int nregs, in carl9170_read_mreg() argument
70 for (i = 0; i < nregs; i++) in carl9170_read_mreg()
77 4 * nregs, (u8 *)offs, in carl9170_read_mreg()
78 4 * nregs, (u8 *)res); in carl9170_read_mreg()
88 for (i = 0; i < nregs; i++) in carl9170_read_mreg()
/openbmc/qemu/target/arm/
H A Dgdbstub.c114 int nregs = cpu_isar_feature(aa32_simd_r32, cpu) ? 32 : 16; in vfp_gdb_get_reg() local
117 if (reg < nregs) { in vfp_gdb_get_reg()
122 nregs += 16; in vfp_gdb_get_reg()
123 if (reg < nregs) { in vfp_gdb_get_reg()
128 switch (reg - nregs) { in vfp_gdb_get_reg()
139 int nregs = cpu_isar_feature(aa32_simd_r32, cpu) ? 32 : 16; in vfp_gdb_set_reg() local
141 if (reg < nregs) { in vfp_gdb_set_reg()
146 nregs += 16; in vfp_gdb_set_reg()
147 if (reg < nregs) { in vfp_gdb_set_reg()
154 switch (reg - nregs) { in vfp_gdb_set_reg()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_debugfs.c73 regset->nregs = ARRAY_SIZE(debug_regs); in cc_debugfs_init()
92 verset->nregs = ARRAY_SIZE(ver_sig_regs); in cc_debugfs_init()
95 verset->nregs = ARRAY_SIZE(pid_cid_regs); in cc_debugfs_init()
/openbmc/linux/drivers/gpio/
H A Dgpio-74x164.c103 u32 nregs; in gen_74x164_probe() local
115 ret = device_property_read_u32(&spi->dev, "registers-number", &nregs); in gen_74x164_probe()
121 chip = devm_kzalloc(&spi->dev, sizeof(*chip) + nregs, GFP_KERNEL); in gen_74x164_probe()
139 chip->registers = nregs; in gen_74x164_probe()
/openbmc/linux/arch/m68k/include/asm/
H A Doplib.h277 extern void prom_adjust_regs(struct linux_prom_registers *regp, int nregs,
285 extern void prom_apply_obio_ranges(struct linux_prom_registers *obioregs, int nregs);
289 struct linux_prom_registers *sbusregs, int nregs);
/openbmc/linux/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-xp.c544 int i, nregs; in armada_xp_pinctrl_suspend() local
546 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_suspend()
548 for (i = 0; i < nregs; i++) in armada_xp_pinctrl_suspend()
558 int i, nregs; in armada_xp_pinctrl_resume() local
560 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_resume()
562 for (i = 0; i < nregs; i++) in armada_xp_pinctrl_resume()
571 int nregs; in armada_xp_pinctrl_probe() local
622 nregs = DIV_ROUND_UP(soc->nmodes, MVEBU_MPPS_PER_REG); in armada_xp_pinctrl_probe()
624 mpp_saved_regs = devm_kmalloc_array(&pdev->dev, nregs, sizeof(u32), in armada_xp_pinctrl_probe()
/openbmc/linux/arch/sparc/include/asm/
H A Doplib_32.h169 void prom_apply_obio_ranges(struct linux_prom_registers *obioregs, int nregs);
173 struct linux_prom_registers *sbusregs, int nregs);
/openbmc/linux/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-core.c33 unsigned int nregs; member
709 r->nregs); in uniphier_pinctrl_suspend()
725 r->nregs); in uniphier_pinctrl_resume()
747 unsigned int nregs; in uniphier_pinctrl_add_reg_region() local
752 nregs = DIV_ROUND_UP(count * width, 32); in uniphier_pinctrl_add_reg_region()
754 region = devm_kzalloc(dev, struct_size(region, vals, nregs), in uniphier_pinctrl_add_reg_region()
760 region->nregs = nregs; in uniphier_pinctrl_add_reg_region()
/openbmc/linux/arch/powerpc/include/asm/
H A Delf.h42 int i, nregs = min(sizeof(*regs) / sizeof(unsigned long), \
44 for (i = 0; i < nregs; i++) \
/openbmc/qemu/hw/ssi/
H A Daspeed_smc.c1440 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2400_fmc_class_init()
1526 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2500_fmc_class_init()
1562 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2500_spi1_class_init()
1598 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2500_spi2_class_init()
1686 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2600_fmc_class_init()
1726 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2600_spi1_class_init()
1767 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_2600_spi2_class_init()
1850 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_1030_fmc_class_init()
1889 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_1030_spi1_class_init()
1927 asc->nregs = ASPEED_SMC_R_MAX; in aspeed_1030_spi2_class_init()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dxhci-debugfs.c116 size_t nregs, struct dentry *parent, in xhci_debugfs_regset() argument
134 regset->nregs = nregs; in xhci_debugfs_regset()
147 size_t psic, nregs = n; in xhci_debugfs_extcap_regset() local
154 nregs = min(4 + psic, n); in xhci_debugfs_extcap_regset()
157 xhci_debugfs_regset(xhci, offset, regs, nregs, in xhci_debugfs_extcap_regset()
/openbmc/u-boot/include/
H A Dkgdb.h35 int nregs; member
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1803 for (i = 0; i < nregs; i++) { in save_args()
1813 for (i = 0; i < nregs; i++) { in restore_args()
1832 int nregs, u32 flags) in prepare_trampoline() argument
1890 stack_size += nregs * 8; in prepare_trampoline()
1934 emit(A64_MOVZ(1, A64_R(10), nregs, 0), ctx); in prepare_trampoline()
1938 save_args(ctx, args_off, nregs); in prepare_trampoline()
1965 restore_args(ctx, args_off, nregs); in prepare_trampoline()
1994 restore_args(ctx, args_off, nregs); in prepare_trampoline()
2035 int nregs = m->nr_args; in arch_prepare_bpf_trampoline() local
2046 nregs += (m->arg_size[i] + 7) / 8 - 1; in arch_prepare_bpf_trampoline()
[all …]
/openbmc/linux/include/linux/
H A Ddebugfs.h36 int nregs; member
153 int nregs, void __iomem *base, char *prefix);
337 int nregs, void __iomem *base, char *prefix)

1234