Home
last modified time | relevance | path

Searched refs:num_regs (Results 1 – 25 of 164) sorted by relevance

1234567

/linux-6.6.21/arch/ia64/include/uapi/asm/
Drse.h58 ia64_rse_skip_regs (unsigned long *addr, long num_regs) in ia64_rse_skip_regs() argument
60 long delta = ia64_rse_slot_num(addr) + num_regs; in ia64_rse_skip_regs()
62 if (num_regs < 0) in ia64_rse_skip_regs()
64 return addr + num_regs + delta/0x3f; in ia64_rse_skip_regs()
/linux-6.6.21/drivers/clk/rockchip/
Dsoftrst.c17 int num_regs; member
93 unsigned int num_regs, in rockchip_register_softrst_lut() argument
108 softrst->num_regs = num_regs; in rockchip_register_softrst_lut()
114 softrst->rcdev.nr_resets = num_regs; in rockchip_register_softrst_lut()
116 softrst->rcdev.nr_resets = num_regs * softrst->num_per_reg; in rockchip_register_softrst_lut()
/linux-6.6.21/drivers/phy/cadence/
Dphy-cadence-torrent.c423 u32 num_regs; member
2305 u32 num_regs; in cdns_torrent_phy_init() local
2328 num_regs = link_cmn_vals->num_regs; in cdns_torrent_phy_init()
2337 for (i = 1; i < num_regs; i++) in cdns_torrent_phy_init()
2348 num_regs = xcvr_diag_vals->num_regs; in cdns_torrent_phy_init()
2351 for (j = 0; j < num_regs; j++) in cdns_torrent_phy_init()
2364 num_regs = pcs_cmn_vals->num_regs; in cdns_torrent_phy_init()
2366 for (i = 0; i < num_regs; i++) in cdns_torrent_phy_init()
2378 num_regs = phy_pma_cmn_vals->num_regs; in cdns_torrent_phy_init()
2380 for (i = 0; i < num_regs; i++) in cdns_torrent_phy_init()
[all …]
Dphy-cadence-sierra.c358 u32 num_regs; member
549 u32 num_regs; in cdns_sierra_phy_init() local
563 num_regs = pcs_cmn_vals->num_regs; in cdns_sierra_phy_init()
565 for (i = 0; i < num_regs; i++) in cdns_sierra_phy_init()
573 num_regs = phy_pma_ln_vals->num_regs; in cdns_sierra_phy_init()
576 for (j = 0; j < num_regs; j++) in cdns_sierra_phy_init()
585 num_regs = pma_cmn_vals->num_regs; in cdns_sierra_phy_init()
587 for (i = 0; i < num_regs; i++) in cdns_sierra_phy_init()
595 num_regs = pma_ln_vals->num_regs; in cdns_sierra_phy_init()
598 for (j = 0; j < num_regs; j++) in cdns_sierra_phy_init()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_capture.c278 const struct __guc_mmio_reg_descr_group *rootlist, int num_regs) in __alloc_ext_regs() argument
282 list = kcalloc(num_regs, sizeof(struct __guc_mmio_reg_descr), GFP_KERNEL); in __alloc_ext_regs()
287 newlist->num_regs = num_regs; in __alloc_ext_regs()
432 for (i = 0; i < num_entries && i < match->num_regs; ++i) { in guc_capture_list_init()
441 for (i = match->num_regs, j = 0; i < num_entries && in guc_capture_list_init()
442 i < (match->num_regs + matchext->num_regs) && in guc_capture_list_init()
443 j < matchext->num_regs; ++i, ++j) { in guc_capture_list_init()
461 int num_regs; in guc_cap_list_num_regs() local
467 num_regs = match->num_regs; in guc_cap_list_num_regs()
471 num_regs += matchext->num_regs; in guc_cap_list_num_regs()
[all …]
/linux-6.6.21/drivers/gpio/
Dgpio-adnp.c186 unsigned int num_regs = 1 << adnp->reg_shift, i, j; in adnp_gpio_dbg_show() local
189 for (i = 0; i < num_regs; i++) { in adnp_gpio_dbg_show()
245 unsigned int num_regs, i; in adnp_irq() local
247 num_regs = 1 << adnp->reg_shift; in adnp_irq()
249 for (i = 0; i < num_regs; i++) { in adnp_irq()
366 unsigned int num_regs = 1 << adnp->reg_shift, i; in adnp_irq_bus_unlock() local
370 for (i = 0; i < num_regs; i++) in adnp_irq_bus_unlock()
390 unsigned int num_regs = 1 << adnp->reg_shift, i; in adnp_irq_setup() local
404 adnp->irq_enable = devm_kcalloc(chip->parent, num_regs, 6, in adnp_irq_setup()
409 adnp->irq_level = adnp->irq_enable + (num_regs * 1); in adnp_irq_setup()
[all …]
/linux-6.6.21/drivers/memory/samsung/
Dexynos-srom.c161 unsigned int num_regs) in exynos_srom_save() argument
163 for (; num_regs > 0; --num_regs, ++rd) in exynos_srom_save()
169 unsigned int num_regs) in exynos_srom_restore() argument
171 for (; num_regs > 0; --num_regs, ++rd) in exynos_srom_restore()
/linux-6.6.21/drivers/clk/samsung/
Dclk-exynos5-subcmu.c22 unsigned int num_regs) in exynos5_subcmu_clk_save() argument
24 for (; num_regs > 0; --num_regs, ++rd) { in exynos5_subcmu_clk_save()
33 unsigned int num_regs) in exynos5_subcmu_clk_restore() argument
35 for (; num_regs > 0; --num_regs, ++rd) in exynos5_subcmu_clk_restore()
Dclk.c25 unsigned int num_regs) in samsung_clk_save() argument
27 for (; num_regs > 0; --num_regs, ++rd) in samsung_clk_save()
33 unsigned int num_regs) in samsung_clk_restore() argument
35 for (; num_regs > 0; --num_regs, ++rd) in samsung_clk_restore()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dqos.c85 int *num_regs) in otx2_config_sched_shaping() argument
91 otx2_qos_get_regaddr(node, cfg, *num_regs); in otx2_config_sched_shaping()
94 cfg->regval[*num_regs] = node->parent->schq << 16; in otx2_config_sched_shaping()
95 (*num_regs)++; in otx2_config_sched_shaping()
99 cfg->regval[*num_regs] = node->prio << 24 | in otx2_config_sched_shaping()
101 (*num_regs)++; in otx2_config_sched_shaping()
107 cfg->regval[*num_regs] = in otx2_config_sched_shaping()
113 cfg->regval[*num_regs] = node->parent->child_dwrr_prio << 24 | in otx2_config_sched_shaping()
116 (*num_regs)++; in otx2_config_sched_shaping()
121 cfg->regval[*num_regs] = in otx2_config_sched_shaping()
[all …]
/linux-6.6.21/drivers/base/regmap/
Dregmap-irq.c95 for (i = 0; i < d->chip->num_regs; i++) { in regmap_irq_sync_unlock()
112 for (i = 0; i < d->chip->num_regs; i++) { in regmap_irq_sync_unlock()
322 for (i = 0; i < subreg->num_regs; i++) { in read_sub_irq_data()
364 memset32(data->status_buf, GENMASK(31, 0), chip->num_regs); in regmap_irq_thread()
369 size = chip->num_regs * sizeof(unsigned int); in regmap_irq_thread()
372 chip->num_main_status_bits : chip->num_regs; in regmap_irq_thread()
422 chip->num_regs); in regmap_irq_thread()
429 for (i = 0; i < data->chip->num_regs; i++) { in regmap_irq_thread()
447 for (i = 0; i < data->chip->num_regs; i++) { in regmap_irq_thread()
462 for (i = 0; i < data->chip->num_regs; i++) in regmap_irq_thread()
[all …]
/linux-6.6.21/drivers/irqchip/
Dirq-davinci-cp-intc.c162 unsigned int num_regs = BITS_TO_LONGS(config->num_irqs); in davinci_cp_intc_do_init() local
187 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
196 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
204 num_regs = (config->num_irqs + 3) >> 2; /* 4 channels per register */ in davinci_cp_intc_do_init()
205 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
/linux-6.6.21/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy.c17 phy->regs = devm_kcalloc(dev, cfg->num_regs, sizeof(phy->regs[0]), in msm_hdmi_phy_resource_init()
27 for (i = 0; i < cfg->num_regs; i++) in msm_hdmi_phy_resource_init()
30 ret = devm_regulator_bulk_get(dev, cfg->num_regs, phy->regs); in msm_hdmi_phy_resource_init()
63 ret = regulator_bulk_enable(cfg->num_regs, phy->regs); in msm_hdmi_phy_resource_enable()
88 regulator_bulk_disable(cfg->num_regs, phy->regs); in msm_hdmi_phy_resource_disable()
/linux-6.6.21/arch/sparc/include/asm/
Dfloppy_32.h283 int num_regs; in sun_floppy_init() local
313 num_regs = prom_getproperty(fd_node, "reg", (char *) fd_regs, sizeof(fd_regs)); in sun_floppy_init()
314 num_regs = (num_regs / sizeof(fd_regs[0])); in sun_floppy_init()
315 prom_apply_obio_ranges(fd_regs, num_regs); in sun_floppy_init()
/linux-6.6.21/drivers/leds/
Dleds-mc13783.c25 int num_regs; member
130 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
215 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe()
278 .num_regs = 6,
285 .num_regs = 4,
292 .num_regs = 1,
Dleds-acer-a500.c42 unsigned int num_regs = 1; in a500_ec_led_brightness_set() local
56 num_regs = 2; in a500_ec_led_brightness_set()
62 return regmap_multi_reg_write(led->rmap, control_seq, num_regs); in a500_ec_led_brightness_set()
/linux-6.6.21/drivers/nvme/host/
Dpr.c249 int ret, i, num_regs; in nvme_pr_read_reservation() local
262 num_regs = get_unaligned_le16(&tmp_rse.regctl); in nvme_pr_read_reservation()
263 if (!num_regs) { in nvme_pr_read_reservation()
268 rse_len = struct_size(rse, regctl_eds, num_regs); in nvme_pr_read_reservation()
277 if (num_regs != get_unaligned_le16(&rse->regctl)) { in nvme_pr_read_reservation()
285 for (i = 0; i < num_regs; i++) { in nvme_pr_read_reservation()
/linux-6.6.21/drivers/bus/
Dimx-weim.c142 int reg_idx, num_regs; in weim_timing_setup() local
166 num_regs = of_property_count_elems_of_size(np, "reg", OF_REG_SIZE); in weim_timing_setup()
167 if (num_regs < 0) in weim_timing_setup()
168 return num_regs; in weim_timing_setup()
169 if (!num_regs) in weim_timing_setup()
171 for (reg_idx = 0; reg_idx < num_regs; reg_idx++) { in weim_timing_setup()
Dintel-ixp4xx-eb.c286 int num_regs; in ixp4xx_exp_setup_child() local
292 num_regs = of_property_count_elems_of_size(np, "reg", IXP4XX_OF_REG_SIZE); in ixp4xx_exp_setup_child()
293 if (num_regs <= 0) in ixp4xx_exp_setup_child()
296 of_node_full_name(np), num_regs); in ixp4xx_exp_setup_child()
301 for (i = 0; i < num_regs; i++) { in ixp4xx_exp_setup_child()
/linux-6.6.21/drivers/mfd/
Dmax77541.c28 .num_regs = 1,
46 .num_regs = 1,
62 .num_regs = 1,
78 .num_regs = 1,
Dintel_soc_pmic_bxtwc.c147 .num_regs = 1,
156 .num_regs = 1,
165 .num_regs = 1,
174 .num_regs = 1,
183 .num_regs = 1,
192 .num_regs = 2,
201 .num_regs = 1,
/linux-6.6.21/drivers/power/supply/
Dltc2941-battery-gauge.c98 enum ltc294x_reg reg, u8 *buf, int num_regs) in ltc294x_read_regs() argument
109 msgs[1].len = num_regs; in ltc294x_read_regs()
116 reg, num_regs, ERR_PTR(ret)); in ltc294x_read_regs()
121 __func__, reg, num_regs, *buf); in ltc294x_read_regs()
127 enum ltc294x_reg reg, const u8 *buf, int num_regs) in ltc294x_write_regs() argument
132 ret = i2c_smbus_write_i2c_block_data(client, reg_start, num_regs, buf); in ltc294x_write_regs()
135 reg, num_regs, ERR_PTR(ret)); in ltc294x_write_regs()
140 __func__, reg, num_regs, *buf); in ltc294x_write_regs()
/linux-6.6.21/arch/mips/kernel/
Dptrace.c235 unsigned start, num_regs, i; in gpr32_set() local
239 num_regs = count / sizeof(u32); in gpr32_set()
241 if (start + num_regs > ELF_NGREG) in gpr32_set()
249 for (i = start; i < num_regs; i++) { in gpr32_set()
300 unsigned start, num_regs, i; in gpr64_set() local
304 num_regs = count / sizeof(u64); in gpr64_set()
306 if (start + num_regs > ELF_NGREG) in gpr64_set()
314 for (i = start; i < num_regs; i++) { in gpr64_set()
726 unsigned int start, num_regs, i; in dsp32_set() local
736 num_regs = count / sizeof(u32); in dsp32_set()
[all …]
/linux-6.6.21/drivers/hwmon/
Dltc2945.c264 int num_regs; in ltc2945_value_store() local
281 num_regs = 3; in ltc2945_value_store()
286 num_regs = 2; in ltc2945_value_store()
288 ret = regmap_bulk_write(regmap, reg, regbuf, num_regs); in ltc2945_value_store()
300 int num_regs = is_power_reg(reg) ? 3 : 2; in ltc2945_history_store() local
316 ret = regmap_bulk_write(regmap, reg, buf_min, num_regs); in ltc2945_history_store()
338 ret = regmap_bulk_write(regmap, reg, buf_max, num_regs); in ltc2945_history_store()
/linux-6.6.21/sound/soc/tegra/
Dtegra210_mbdrc.c316 for (i = 0; i < params->soc.num_regs; i++, regs += cmpnt->val_bytes) { in tegra210_mbdrc_band_params_get()
338 for (i = 0; i < params->soc.num_regs; i++, regs += cmpnt->val_bytes) { in tegra210_mbdrc_band_params_put()
358 u32 num_regs = params->soc.num_regs; in tegra210_mbdrc_threshold_get() local
362 for (i = 0; i < num_regs; i += 4, regs += cmpnt->val_bytes) { in tegra210_mbdrc_threshold_get()
386 u32 num_regs = params->soc.num_regs; in tegra210_mbdrc_threshold_put() local
390 for (i = 0; i < num_regs; i += 4, regs += cmpnt->val_bytes) { in tegra210_mbdrc_threshold_put()
418 memset(data, 0, params->soc.num_regs * cmpnt->val_bytes); in tegra210_mbdrc_biquad_coeffs_get()
434 params->shift, data, params->soc.num_regs); in tegra210_mbdrc_biquad_coeffs_put()
445 uinfo->count = params->num_regs * sizeof(u32); in tegra210_mbdrc_param_info()

1234567