/linux-6.12.1/drivers/clk/rockchip/ |
D | softrst.c | 17 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/ |
D | phy-cadence-sierra.c | 359 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 …]
|
D | phy-cadence-torrent.c | 427 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/ |
D | intel_guc_capture.c | 274 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/ |
D | gpio-adnp.c | 186 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/ |
D | exynos-srom.c | 161 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/ |
D | clk-exynos5-subcmu.c | 22 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()
|
D | clk.c | 25 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/ |
D | regmap-irq.c | 95 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/ |
D | qos.c | 85 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/ |
D | irq-davinci-cp-intc.c | 161 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/ |
D | hdmi_phy.c | 17 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/ |
D | aqua_vanjaram.c | 730 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/ |
D | floppy_32.h | 283 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/ |
D | pr.c | 248 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/ |
D | leds-mc13783.c | 26 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,
|
D | leds-acer-a500.c | 42 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/ |
D | imx-weim.c | 145 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/ |
D | max77541.c | 28 .num_regs = 1, 46 .num_regs = 1, 62 .num_regs = 1, 78 .num_regs = 1,
|
D | intel_soc_pmic_bxtwc.c | 146 .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/ |
D | ptrace.c | 235 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/ |
D | ltc2941-battery-gauge.c | 98 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/ |
D | ltc2945.c | 264 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/ |
D | xe_gt_sriov_vf.c | 703 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/ |
D | tegra210_mbdrc.c | 316 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()
|