/linux/drivers/gpu/drm/i915/gt/uc/ |
H A 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/drivers/clk/rockchip/ |
H A 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/drivers/gpio/ |
H A 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/drivers/memory/samsung/ |
H A 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/drivers/clk/samsung/ |
H A 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()
|
H A 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/arch/x86/kernel/cpu/mce/ |
H A D | apei.c | 71 unsigned int cpu, num_regs; in apei_smca_report_x86_error() local 96 num_regs = ctx_info->reg_arr_size >> 3; in apei_smca_report_x86_error() 97 if (!num_regs) in apei_smca_report_x86_error() 122 if (num_regs > 15) in apei_smca_report_x86_error() 123 num_regs = 15; in apei_smca_report_x86_error() 125 switch (num_regs) { in apei_smca_report_x86_error()
|
/linux/drivers/base/regmap/ |
H A 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 chip->num_main_status_bits : chip->num_regs; in regmap_irq_thread() 371 memset32(data->status_buf, 0, chip->num_regs); in regmap_irq_thread() 419 chip->num_regs); in regmap_irq_thread() 426 for (i = 0; i < data->chip->num_regs; i++) { in regmap_irq_thread() 444 for (i = 0; i < data->chip->num_regs; i++) { in regmap_irq_thread() 459 for (i = 0; i < data->chip->num_regs; i++) in regmap_irq_thread() [all …]
|
/linux/drivers/irqchip/ |
H A 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/drivers/gpu/drm/msm/hdmi/ |
H A 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/drivers/leds/ |
H A 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,
|
H A 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/arch/sparc/include/asm/ |
H A 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/drivers/bus/ |
H A 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()
|
H A D | intel-ixp4xx-eb.c | 286 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/drivers/nvme/host/ |
H A D | pr.c | 276 int ret, i, num_regs; in nvme_pr_read_reservation() local 289 num_regs = get_unaligned_le16(&tmp_rse.regctl); in nvme_pr_read_reservation() 290 if (!num_regs) { in nvme_pr_read_reservation() 295 rse_len = struct_size(rse, regctl_eds, num_regs); in nvme_pr_read_reservation() 304 if (num_regs != get_unaligned_le16(&rse->regctl)) { in nvme_pr_read_reservation() 312 for (i = 0; i < num_regs; i++) { in nvme_pr_read_reservation()
|
/linux/drivers/mfd/ |
H A D | max77541.c | 28 .num_regs = 1, 46 .num_regs = 1, 62 .num_regs = 1, 78 .num_regs = 1,
|
H A D | intel_soc_pmic_bxtwc.c | 157 .num_regs = 1, 167 .num_regs = 1, 177 .num_regs = 1, 187 .num_regs = 1, 197 .num_regs = 1, 207 .num_regs = 2, 217 .num_regs = 1,
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | aqua_vanjaram.c | 852 uint32_t num_regs; member 885 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_pcie_state() local 913 num_regs = pcie_reg_addrs[r].num_regs; in aqua_vanjaram_read_pcie_state() 914 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_pcie_state() 974 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_xgmi_state() local 1008 num_regs = xgmi_reg_addrs[r].num_regs; in aqua_vanjaram_read_xgmi_state() 1010 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_xgmi_state() 1048 uint32_t start_addr, incrx, num_regs, szbuf; in aqua_vanjaram_read_wafl_state() local 1082 num_regs = wafl_reg_addrs[r].num_regs; in aqua_vanjaram_read_wafl_state() 1083 for (n = 0; n < num_regs; n++) { in aqua_vanjaram_read_wafl_state() [all …]
|
/linux/arch/mips/kernel/ |
H A 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/drivers/power/supply/ |
H A 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/drivers/hwmon/ |
H A 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/drivers/gpu/drm/xe/ |
H A 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/sound/soc/tegra/ |
H A 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()
|
/linux/drivers/media/i2c/ccs/ |
H A D | ccs-reg-access.c | 112 static int __ccs_static_data_read_ro_reg(struct ccs_reg *regs, size_t num_regs, in __ccs_static_data_read_ro_reg() argument 118 for (i = 0; i < num_regs; i++, regs++) { in __ccs_static_data_read_ro_reg() 234 size_t num_regs) in ccs_write_data_regs() argument 239 for (i = 0; i < num_regs; i++, regs++) { in ccs_write_data_regs()
|