Home
last modified time | relevance | path

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

12345678

/linux-6.12.1/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.12.1/drivers/phy/cadence/
Dphy-cadence-sierra.c359 u32 num_regs; member
550 u32 num_regs; in cdns_sierra_phy_init() local
564 num_regs = pcs_cmn_vals->num_regs; in cdns_sierra_phy_init()
566 for (i = 0; i < num_regs; i++) in cdns_sierra_phy_init()
574 num_regs = phy_pma_ln_vals->num_regs; in cdns_sierra_phy_init()
577 for (j = 0; j < num_regs; j++) in cdns_sierra_phy_init()
586 num_regs = pma_cmn_vals->num_regs; in cdns_sierra_phy_init()
588 for (i = 0; i < num_regs; i++) in cdns_sierra_phy_init()
596 num_regs = pma_ln_vals->num_regs; in cdns_sierra_phy_init()
599 for (j = 0; j < num_regs; j++) in cdns_sierra_phy_init()
[all …]
Dphy-cadence-torrent.c427 u32 num_regs; member
2321 u32 num_regs; in cdns_torrent_phy_init() local
2347 num_regs = link_cmn_vals->num_regs; in cdns_torrent_phy_init()
2356 for (i = 1; i < num_regs; i++) in cdns_torrent_phy_init()
2367 num_regs = xcvr_diag_vals->num_regs; in cdns_torrent_phy_init()
2370 for (j = 0; j < num_regs; j++) in cdns_torrent_phy_init()
2383 num_regs = pcs_cmn_vals->num_regs; in cdns_torrent_phy_init()
2385 for (i = 0; i < num_regs; i++) in cdns_torrent_phy_init()
2397 num_regs = phy_pma_cmn_vals->num_regs; in cdns_torrent_phy_init()
2399 for (i = 0; i < num_regs; i++) in cdns_torrent_phy_init()
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_capture.c274 const struct __guc_mmio_reg_descr_group *rootlist, int num_regs) in __alloc_ext_regs() argument
278 list = kcalloc(num_regs, sizeof(struct __guc_mmio_reg_descr), GFP_KERNEL); in __alloc_ext_regs()
283 newlist->num_regs = num_regs; in __alloc_ext_regs()
428 for (i = 0; i < num_entries && i < match->num_regs; ++i) { in guc_capture_list_init()
437 for (i = match->num_regs, j = 0; i < num_entries && in guc_capture_list_init()
438 i < (match->num_regs + matchext->num_regs) && in guc_capture_list_init()
439 j < matchext->num_regs; ++i, ++j) { in guc_capture_list_init()
457 int num_regs; in guc_cap_list_num_regs() local
463 num_regs = match->num_regs; in guc_cap_list_num_regs()
467 num_regs += matchext->num_regs; in guc_cap_list_num_regs()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/irqchip/
Dirq-davinci-cp-intc.c161 unsigned int num_regs = BITS_TO_LONGS(config->num_irqs); in davinci_cp_intc_do_init() local
186 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
195 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
203 num_regs = (config->num_irqs + 3) >> 2; /* 4 channels per register */ in davinci_cp_intc_do_init()
204 for (offset = 0; offset < num_regs; offset++) in davinci_cp_intc_do_init()
/linux-6.12.1/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.12.1/drivers/gpu/drm/amd/amdgpu/
Daqua_vanjaram.c730 uint32_t num_regs; member
763 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_pcie_state() local
791 num_regs = pcie_reg_addrs[r].num_regs; in aqua_vanjaram_read_pcie_state()
792 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_pcie_state()
852 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_xgmi_state() local
886 num_regs = xgmi_reg_addrs[r].num_regs; in aqua_vanjaram_read_xgmi_state()
888 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_xgmi_state()
926 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_wafl_state() local
960 num_regs = wafl_reg_addrs[r].num_regs; in aqua_vanjaram_read_wafl_state()
961 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_wafl_state()
[all …]
/linux-6.12.1/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.12.1/drivers/nvme/host/
Dpr.c248 int ret, i, num_regs; in nvme_pr_read_reservation() local
261 num_regs = get_unaligned_le16(&tmp_rse.regctl); in nvme_pr_read_reservation()
262 if (!num_regs) { in nvme_pr_read_reservation()
267 rse_len = struct_size(rse, regctl_eds, num_regs); in nvme_pr_read_reservation()
276 if (num_regs != get_unaligned_le16(&rse->regctl)) { in nvme_pr_read_reservation()
284 for (i = 0; i < num_regs; i++) { in nvme_pr_read_reservation()
/linux-6.12.1/drivers/leds/
Dleds-mc13783.c26 int num_regs; member
132 leds->devtype->num_regs); in mc13xxx_led_probe_dt()
213 for (i = 0; i < devtype->num_regs; i++) { in mc13xxx_led_probe()
274 .num_regs = 6,
281 .num_regs = 4,
288 .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.12.1/drivers/bus/
Dimx-weim.c145 int reg_idx, num_regs; in weim_timing_setup() local
169 num_regs = of_property_count_elems_of_size(np, "reg", OF_REG_SIZE); in weim_timing_setup()
170 if (num_regs < 0) in weim_timing_setup()
171 return num_regs; in weim_timing_setup()
172 if (!num_regs) in weim_timing_setup()
174 for (reg_idx = 0; reg_idx < num_regs; reg_idx++) { in weim_timing_setup()
/linux-6.12.1/drivers/mfd/
Dmax77541.c28 .num_regs = 1,
46 .num_regs = 1,
62 .num_regs = 1,
78 .num_regs = 1,
Dintel_soc_pmic_bxtwc.c146 .num_regs = 1,
155 .num_regs = 1,
164 .num_regs = 1,
173 .num_regs = 1,
182 .num_regs = 1,
191 .num_regs = 2,
200 .num_regs = 1,
/linux-6.12.1/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.12.1/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.12.1/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.12.1/drivers/gpu/drm/xe/
Dxe_gt_sriov_vf.c703 static int vf_prepare_runtime_info(struct xe_gt *gt, unsigned int num_regs) in vf_prepare_runtime_info() argument
706 unsigned int regs_size = round_up(num_regs, 4); in vf_prepare_runtime_info()
712 if (num_regs <= gt->sriov.vf.runtime.regs_size) { in vf_prepare_runtime_info()
713 memset(regs, 0, num_regs * sizeof(*regs)); in vf_prepare_runtime_info()
714 gt->sriov.vf.runtime.num_regs = num_regs; in vf_prepare_runtime_info()
720 gt->sriov.vf.runtime.num_regs = 0; in vf_prepare_runtime_info()
729 gt->sriov.vf.runtime.num_regs = num_regs; in vf_prepare_runtime_info()
789 } else if (unlikely(start + num > gt->sriov.vf.runtime.num_regs)) { in vf_query_runtime_info()
816 unsigned int size = gt->sriov.vf.runtime.num_regs; in vf_show_runtime_info()
867 return bsearch(&key, runtime->regs, runtime->num_regs, sizeof(key), in vf_lookup_reg()
[all …]
/linux-6.12.1/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()

12345678