Home
last modified time | relevance | path

Searched refs:reg_data (Results 1 – 25 of 145) sorted by relevance

123456

/linux-6.12.1/drivers/clk/rockchip/
Dclk-cpu.c59 const struct rockchip_cpuclk_reg_data *reg_data; member
86 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_recalc_rate() local
87 u32 clksel0 = readl_relaxed(cpuclk->reg_base + reg_data->core_reg[0]); in rockchip_cpuclk_recalc_rate()
89 clksel0 >>= reg_data->div_core_shift[0]; in rockchip_cpuclk_recalc_rate()
90 clksel0 &= reg_data->div_core_mask[0]; in rockchip_cpuclk_recalc_rate()
155 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_pre_rate_change() local
182 if (alt_div > reg_data->div_core_mask[0]) { in rockchip_cpuclk_pre_rate_change()
184 __func__, alt_div, reg_data->div_core_mask[0]); in rockchip_cpuclk_pre_rate_change()
185 alt_div = reg_data->div_core_mask[0]; in rockchip_cpuclk_pre_rate_change()
198 for (i = 0; i < reg_data->num_cores; i++) { in rockchip_cpuclk_pre_rate_change()
[all …]
/linux-6.12.1/drivers/power/supply/
Dmax14577_charger.c51 u8 reg_data; in max14577_get_charger_state() local
64 ret = max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, &reg_data); in max14577_get_charger_state()
68 if ((reg_data & CHGCTRL2_MBCHOSTEN_MASK) == 0) { in max14577_get_charger_state()
73 ret = max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, &reg_data); in max14577_get_charger_state()
77 if (reg_data & STATUS3_CGMBC_MASK) { in max14577_get_charger_state()
79 if (reg_data & STATUS3_EOC_MASK) in max14577_get_charger_state()
124 u8 reg_data; in max14577_get_online() local
128 ret = max14577_read_reg(rmap, MAX14577_MUIC_REG_STATUS2, &reg_data); in max14577_get_online()
132 reg_data = ((reg_data & STATUS2_CHGTYP_MASK) >> STATUS2_CHGTYP_SHIFT); in max14577_get_online()
133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
[all …]
Drt5033_charger.c46 unsigned int reg_data; in rt5033_get_charger_state() local
52 regmap_read(regmap, RT5033_REG_CHG_STAT, &reg_data); in rt5033_get_charger_state()
54 switch (reg_data & RT5033_CHG_STAT_MASK) { in rt5033_get_charger_state()
81 unsigned int reg_data; in rt5033_get_charger_type() local
84 regmap_read(regmap, RT5033_REG_CHG_STAT, &reg_data); in rt5033_get_charger_type()
86 switch (reg_data & RT5033_CHG_STAT_TYPE_MASK) { in rt5033_get_charger_type()
103 unsigned int state, reg_data, data; in rt5033_get_charger_current_limit() local
105 regmap_read(regmap, RT5033_REG_CHG_CTRL5, &reg_data); in rt5033_get_charger_current_limit()
107 state = (reg_data & RT5033_CHGCTRL5_ICHG_MASK) in rt5033_get_charger_current_limit()
119 unsigned int state, reg_data, data; in rt5033_get_charger_const_voltage() local
[all …]
/linux-6.12.1/drivers/watchdog/
Dmlx_wdt.c58 struct mlxreg_core_data *reg_data; in mlxreg_wdt_check_card_reset() local
68 reg_data = &wdt->pdata->data[wdt->reset_idx]; in mlxreg_wdt_check_card_reset()
69 rc = regmap_read(wdt->regmap, reg_data->reg, &regval); in mlxreg_wdt_check_card_reset()
71 if (regval & ~reg_data->mask) { in mlxreg_wdt_check_card_reset()
82 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; in mlxreg_wdt_start() local
84 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_start()
85 BIT(reg_data->bit)); in mlxreg_wdt_start()
91 struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->action_idx]; in mlxreg_wdt_stop() local
93 return regmap_update_bits(wdt->regmap, reg_data->reg, ~reg_data->mask, in mlxreg_wdt_stop()
94 ~BIT(reg_data->bit)); in mlxreg_wdt_stop()
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dspm.c84 const struct spm_reg_data *reg_data; member
259 if (drv->reg_data->reg_offset[reg]) in spm_register_write()
261 drv->reg_data->reg_offset[reg]); in spm_register_write()
270 if (!drv->reg_data->reg_offset[reg]) in spm_register_write_sync()
275 drv->reg_data->reg_offset[reg]); in spm_register_write_sync()
277 drv->reg_data->reg_offset[reg]); in spm_register_write_sync()
287 return readl_relaxed(drv->reg_base + drv->reg_data->reg_offset[reg]); in spm_register_read()
296 start_index = drv->reg_data->start_index[mode]; in spm_set_low_power_mode()
312 return smp_call_function_single(drv->reg_cpu, drv->reg_data->set_vdd, drv, true); in spm_set_voltage_sel()
425 if (!drv->reg_data->set_vdd) in spm_register_regulator()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/e1000e/
D80003es2lan.c730 u32 reg_data; in e1000_init_hw_80003es2lan() local
776 reg_data = er32(TXDCTL(0)); in e1000_init_hw_80003es2lan()
777 reg_data = ((reg_data & ~E1000_TXDCTL_WTHRESH) | in e1000_init_hw_80003es2lan()
779 ew32(TXDCTL(0), reg_data); in e1000_init_hw_80003es2lan()
782 reg_data = er32(TXDCTL(1)); in e1000_init_hw_80003es2lan()
783 reg_data = ((reg_data & ~E1000_TXDCTL_WTHRESH) | in e1000_init_hw_80003es2lan()
785 ew32(TXDCTL(1), reg_data); in e1000_init_hw_80003es2lan()
788 reg_data = er32(TCTL); in e1000_init_hw_80003es2lan()
789 reg_data |= E1000_TCTL_RTLC; in e1000_init_hw_80003es2lan()
790 ew32(TCTL, reg_data); in e1000_init_hw_80003es2lan()
[all …]
/linux-6.12.1/drivers/regulator/
Dmax14577-regulator.c19 u8 reg_data; in max14577_reg_is_enabled() local
23 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL2, &reg_data); in max14577_reg_is_enabled()
24 if ((reg_data & CHGCTRL2_MBCHOSTEN_MASK) == 0) in max14577_reg_is_enabled()
26 max14577_read_reg(rmap, MAX14577_CHG_REG_STATUS3, &reg_data); in max14577_reg_is_enabled()
27 if ((reg_data & STATUS3_CGMBC_MASK) == 0) in max14577_reg_is_enabled()
38 u8 reg_data; in max14577_reg_get_current_limit() local
47 max14577_read_reg(rmap, MAX14577_CHG_REG_CHG_CTRL4, &reg_data); in max14577_reg_get_current_limit()
49 if ((reg_data & CHGCTRL4_MBCICHWRCL_MASK) == 0) in max14577_reg_get_current_limit()
52 reg_data = ((reg_data & CHGCTRL4_MBCICHWRCH_MASK) >> in max14577_reg_get_current_limit()
54 return limits->high_start + reg_data * limits->high_step; in max14577_reg_get_current_limit()
[all …]
Dmax77693-regulator.c57 const struct chg_reg_data *reg_data = rdev_get_drvdata(rdev); in max77693_chg_get_current_limit() local
64 ret = regmap_read(rdev->regmap, reg_data->linear_reg, &reg); in max77693_chg_get_current_limit()
68 sel = reg & reg_data->linear_mask; in max77693_chg_get_current_limit()
71 if (sel <= reg_data->min_sel) in max77693_chg_get_current_limit()
74 sel -= reg_data->min_sel; in max77693_chg_get_current_limit()
76 val = chg_min_uA + reg_data->uA_step * sel; in max77693_chg_get_current_limit()
86 const struct chg_reg_data *reg_data = rdev_get_drvdata(rdev); in max77693_chg_set_current_limit() local
90 while (chg_min_uA + reg_data->uA_step * sel < min_uA) in max77693_chg_set_current_limit()
93 if (chg_min_uA + reg_data->uA_step * sel > max_uA) in max77693_chg_set_current_limit()
97 sel += reg_data->min_sel; in max77693_chg_set_current_limit()
[all …]
Dqcom-labibb-regulator.c767 const struct labibb_regulator_data *reg_data; in qcom_labibb_regulator_probe() local
778 reg_data = device_get_match_data(&pdev->dev); in qcom_labibb_regulator_probe()
779 if (!reg_data) in qcom_labibb_regulator_probe()
782 for (; reg_data->name; reg_data++) { in qcom_labibb_regulator_probe()
789 ret = regmap_read(reg_regmap, reg_data->base + REG_PERPH_TYPE, in qcom_labibb_regulator_probe()
799 WARN_ON(type != reg_data->type)) in qcom_labibb_regulator_probe()
809 reg_data->name); in qcom_labibb_regulator_probe()
814 reg_data->name); in qcom_labibb_regulator_probe()
838 vreg->base = reg_data->base; in qcom_labibb_regulator_probe()
839 vreg->type = reg_data->type; in qcom_labibb_regulator_probe()
[all …]
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/fw/
Ddbg.c1041 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_prph_mac_iter() argument
1044 struct iwl_fw_ini_region_tlv *reg = (void *)reg_data->reg_tlv->data; in iwl_dump_ini_prph_mac_iter()
1054 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_prph_mac_block_iter() argument
1057 struct iwl_fw_ini_region_tlv *reg = (void *)reg_data->reg_tlv->data; in iwl_dump_ini_prph_mac_block_iter()
1115 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_prph_phy_iter() argument
1118 struct iwl_fw_ini_region_tlv *reg = (void *)reg_data->reg_tlv->data; in iwl_dump_ini_prph_phy_iter()
1128 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_prph_phy_block_iter() argument
1131 struct iwl_fw_ini_region_tlv *reg = (void *)reg_data->reg_tlv->data; in iwl_dump_ini_prph_phy_block_iter()
1141 struct iwl_dump_ini_region_data *reg_data, in iwl_dump_ini_csr_iter() argument
1144 struct iwl_fw_ini_region_tlv *reg = (void *)reg_data->reg_tlv->data; in iwl_dump_ini_csr_iter()
[all …]
/linux-6.12.1/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c152 u32 reg_data; in xemaclite_enable_interrupts() local
155 reg_data = xemaclite_readl(drvdata->base_addr + XEL_TSR_OFFSET); in xemaclite_enable_interrupts()
156 xemaclite_writel(reg_data | XEL_TSR_XMIT_IE_MASK, in xemaclite_enable_interrupts()
175 u32 reg_data; in xemaclite_disable_interrupts() local
181 reg_data = xemaclite_readl(drvdata->base_addr + XEL_TSR_OFFSET); in xemaclite_disable_interrupts()
182 xemaclite_writel(reg_data & (~XEL_TSR_XMIT_IE_MASK), in xemaclite_disable_interrupts()
186 reg_data = xemaclite_readl(drvdata->base_addr + XEL_RSR_OFFSET); in xemaclite_disable_interrupts()
187 xemaclite_writel(reg_data & (~XEL_RSR_RECV_IE_MASK), in xemaclite_disable_interrupts()
310 u32 reg_data; in xemaclite_send_data() local
321 reg_data = xemaclite_readl(addr + XEL_TSR_OFFSET); in xemaclite_send_data()
[all …]
/linux-6.12.1/drivers/usb/isp1760/
Disp1760-if.c39 u32 reg_data; in isp1761_pci_init() local
75 reg_data = 0; in isp1761_pci_init()
76 while ((reg_data != 0xFACE) && retry_count) { in isp1761_pci_init()
82 reg_data = readl(iobase + ISP176x_HC_SCRATCH) & 0x0000ffff; in isp1761_pci_init()
92 if (reg_data != 0xFACE) { in isp1761_pci_init()
93 dev_err(&dev->dev, "scratch register mismatch %x\n", reg_data); in isp1761_pci_init()
115 reg_data = readl(iobase + PLX_INT_CSR_REG); in isp1761_pci_init()
116 reg_data |= 0x900; in isp1761_pci_init()
117 writel(reg_data, iobase + PLX_INT_CSR_REG); in isp1761_pci_init()
/linux-6.12.1/drivers/char/xilinx_hwicap/
Dfifo_icap.c359 u32 reg_data; in fifo_icap_reset() local
364 reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); in fifo_icap_reset()
367 reg_data | XHI_CR_SW_RESET_MASK); in fifo_icap_reset()
370 reg_data & (~XHI_CR_SW_RESET_MASK)); in fifo_icap_reset()
380 u32 reg_data; in fifo_icap_flush_fifo() local
385 reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); in fifo_icap_flush_fifo()
388 reg_data | XHI_CR_FIFO_CLR_MASK); in fifo_icap_flush_fifo()
391 reg_data & (~XHI_CR_FIFO_CLR_MASK)); in fifo_icap_flush_fifo()
/linux-6.12.1/drivers/clk/ti/
Dclkctrl.c514 const struct omap_clkctrl_reg_data *reg_data; in _ti_omap4_clkctrl_setup() local
644 reg_data = data->regs; in _ti_omap4_clkctrl_setup()
646 while (reg_data->parent) { in _ti_omap4_clkctrl_setup()
647 if ((reg_data->flags & CLKF_SOC_MASK) && in _ti_omap4_clkctrl_setup()
648 (reg_data->flags & soc_mask) == 0) { in _ti_omap4_clkctrl_setup()
649 reg_data++; in _ti_omap4_clkctrl_setup()
657 hw->enable_reg.ptr = provider->base + reg_data->offset; in _ti_omap4_clkctrl_setup()
659 _ti_clkctrl_setup_subclks(provider, node, reg_data, in _ti_omap4_clkctrl_setup()
662 if (reg_data->flags & CLKF_SW_SUP) in _ti_omap4_clkctrl_setup()
664 if (reg_data->flags & CLKF_HW_SUP) in _ti_omap4_clkctrl_setup()
[all …]
/linux-6.12.1/drivers/thermal/intel/int340x_thermal/
Dprocessor_thermal_mbox.c44 u32 reg_data; in send_mbox_write_cmd() local
54 reg_data = BIT_ULL(MBOX_BUSY_BIT) | id; in send_mbox_write_cmd()
55 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_write_cmd()
63 u32 reg_data; in send_mbox_read_cmd() local
72 reg_data = BIT_ULL(MBOX_BUSY_BIT) | id; in send_mbox_read_cmd()
73 writel(reg_data, (proc_priv->mmio_base + MBOX_OFFSET_INTERFACE)); in send_mbox_read_cmd()
/linux-6.12.1/drivers/extcon/
Dextcon-ptn5150.c74 unsigned int port_status, reg_data, vbus; in ptn5150_check_state() local
78 ret = regmap_read(info->regmap, PTN5150_REG_CC_STATUS, &reg_data); in ptn5150_check_state()
84 port_status = FIELD_GET(PTN5150_REG_CC_PORT_ATTACHMENT, reg_data); in ptn5150_check_state()
95 vbus = FIELD_GET(PTN5150_REG_CC_VBUS_DETECTION, reg_data); in ptn5150_check_state()
183 unsigned int reg_data, vendor_id, version_id; in ptn5150_init_dev_type() local
186 ret = regmap_read(info->regmap, PTN5150_REG_DEVICE_ID, &reg_data); in ptn5150_init_dev_type()
192 vendor_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VENDOR, reg_data); in ptn5150_init_dev_type()
193 version_id = FIELD_GET(PTN5150_REG_DEVICE_ID_VERSION, reg_data); in ptn5150_init_dev_type()
198 ret = regmap_read(info->regmap, PTN5150_REG_INT_STATUS, &reg_data); in ptn5150_init_dev_type()
206 ret = regmap_read(info->regmap, PTN5150_REG_INT_REG_STATUS, &reg_data); in ptn5150_init_dev_type()
Dextcon-sm5502.c30 struct reg_data { struct
66 struct reg_data *reg_data; member
74 static struct reg_data sm5502_reg_data[] = {
102 static struct reg_data sm5504_reg_data[] = {
644 unsigned int reg_data, vendor_id, version_id; in sm5502_init_dev_type() local
648 ret = regmap_read(info->regmap, SM5502_REG_DEVICE_ID, &reg_data); in sm5502_init_dev_type()
655 vendor_id = ((reg_data & SM5502_REG_DEVICE_ID_VENDOR_MASK) >> in sm5502_init_dev_type()
657 version_id = ((reg_data & SM5502_REG_DEVICE_ID_VERSION_MASK) >> in sm5502_init_dev_type()
667 if (!info->type->reg_data[i].invert) in sm5502_init_dev_type()
668 val |= ~info->type->reg_data[i].val; in sm5502_init_dev_type()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dmt6660.c49 u8 reg_data[4]; in mt6660_reg_write() local
53 reg_data[size - i - 1] = (val >> (8 * i)) & 0xff; in mt6660_reg_write()
55 return i2c_smbus_write_i2c_block_data(chip->i2c, reg, size, reg_data); in mt6660_reg_write()
64 u32 reg_data = 0; in mt6660_reg_read() local
70 reg_data <<= 8; in mt6660_reg_read()
71 reg_data |= data[i]; in mt6660_reg_read()
73 *val = reg_data; in mt6660_reg_read()
334 u16 reg_data = 0; in mt6660_component_aif_hw_params() local
347 reg_data = 3; in mt6660_component_aif_hw_params()
350 reg_data = 2; in mt6660_component_aif_hw_params()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Dnbio_v2_3.c497 uint32_t reg_data = 0; in nbio_v2_3_apply_lc_spc_mode_wa() local
504 reg_data = RREG32_PCIE(smnPCIE_LC_LINK_WIDTH_CNTL); in nbio_v2_3_apply_lc_spc_mode_wa()
505 link_width = (reg_data & PCIE_LC_LINK_WIDTH_CNTL__LC_LINK_WIDTH_RD_MASK) in nbio_v2_3_apply_lc_spc_mode_wa()
513 reg_data = RREG32_PCIE(smnPCIE_LC_CNTL6); in nbio_v2_3_apply_lc_spc_mode_wa()
514 reg_data &= ~PCIE_LC_CNTL6__LC_SPC_MODE_8GT_MASK; in nbio_v2_3_apply_lc_spc_mode_wa()
515 reg_data |= (0x2 << PCIE_LC_CNTL6__LC_SPC_MODE_8GT__SHIFT); in nbio_v2_3_apply_lc_spc_mode_wa()
516 WREG32_PCIE(smnPCIE_LC_CNTL6, reg_data); in nbio_v2_3_apply_lc_spc_mode_wa()
522 uint32_t reg_data = 0; in nbio_v2_3_apply_l1_link_width_reconfig_wa() local
527 reg_data = RREG32_PCIE(smnPCIE_LC_LINK_WIDTH_CNTL); in nbio_v2_3_apply_l1_link_width_reconfig_wa()
528 reg_data |= PCIE_LC_LINK_WIDTH_CNTL__LC_L1_RECONFIG_EN_MASK; in nbio_v2_3_apply_l1_link_width_reconfig_wa()
[all …]
Daqua_vanjaram.c765 struct amdgpu_smn_reg_data *reg_data; in aqua_vanjaram_read_pcie_state() local
786 reg_data = pcie_regs->smn_reg_values; in aqua_vanjaram_read_pcie_state()
793 aqua_read_smn(adev, reg_data, start_addr + n * incrx); in aqua_vanjaram_read_pcie_state()
794 ++reg_data; in aqua_vanjaram_read_pcie_state()
854 struct amdgpu_smn_reg_data *reg_data; in aqua_vanjaram_read_xgmi_state() local
881 reg_data = xgmi_regs->smn_reg_values; in aqua_vanjaram_read_xgmi_state()
890 adev, reg_data, in aqua_vanjaram_read_xgmi_state()
894 ++reg_data; in aqua_vanjaram_read_xgmi_state()
897 p = reg_data; in aqua_vanjaram_read_xgmi_state()
928 struct amdgpu_smn_reg_data *reg_data; in aqua_vanjaram_read_wafl_state() local
[all …]
/linux-6.12.1/drivers/staging/vt6656/
Drf.c198 u8 reg_data[4]; in vnt_rf_write_embedded() local
202 reg_data[0] = (u8)data; in vnt_rf_write_embedded()
203 reg_data[1] = (u8)(data >> 8); in vnt_rf_write_embedded()
204 reg_data[2] = (u8)(data >> 16); in vnt_rf_write_embedded()
205 reg_data[3] = (u8)(data >> 24); in vnt_rf_write_embedded()
208 ARRAY_SIZE(reg_data), reg_data); in vnt_rf_write_embedded()
/linux-6.12.1/drivers/edac/
Dqcom_edac.c209 struct llcc_edac_reg_data reg_data = edac_reg_data[err_type]; in dump_syn_reg_values() local
216 for (i = 0; i < reg_data.reg_cnt; i++) { in dump_syn_reg_values()
224 reg_data.name, i, synd_val); in dump_syn_reg_values()
232 err_cnt &= reg_data.count_mask; in dump_syn_reg_values()
233 err_cnt >>= reg_data.count_shift; in dump_syn_reg_values()
235 reg_data.name, err_cnt); in dump_syn_reg_values()
242 err_ways &= reg_data.ways_mask; in dump_syn_reg_values()
243 err_ways >>= reg_data.ways_shift; in dump_syn_reg_values()
246 reg_data.name, err_ways); in dump_syn_reg_values()
/linux-6.12.1/drivers/net/wireless/ath/wcn36xx/
Ddxe.c262 int reg_data = 0; in wcn36xx_dxe_enable_ch_int() local
266 &reg_data); in wcn36xx_dxe_enable_ch_int()
268 reg_data |= wcn_ch; in wcn36xx_dxe_enable_ch_int()
272 (int)reg_data); in wcn36xx_dxe_enable_ch_int()
278 int reg_data = 0; in wcn36xx_dxe_disable_ch_int() local
282 &reg_data); in wcn36xx_dxe_disable_ch_int()
284 reg_data &= ~wcn_ch; in wcn36xx_dxe_disable_ch_int()
288 (int)reg_data); in wcn36xx_dxe_disable_ch_int()
902 int reg_data = 0, ret; in wcn36xx_dxe_init() local
904 reg_data = WCN36XX_DXE_REG_RESET; in wcn36xx_dxe_init()
[all …]
/linux-6.12.1/drivers/iio/adc/
Dpac1934.c269 struct reg_data { struct
311 struct reg_data chip_reg_data;
597 struct reg_data *reg_data; in pac1934_reg_snapshot() local
621 reg_data = &info->chip_reg_data; in pac1934_reg_snapshot()
625 (u8 *)reg_data->meas_regs, PAC1934_MEAS_REG_LEN); in pac1934_reg_snapshot()
634 samp_rate = samp_rate_map_tbl[((reg_data->ctrl_regs[PAC1934_CTRL_LAT_REG_OFF]) >> 6)]; in pac1934_reg_snapshot()
637 ctrl_regs_tmp = reg_data->ctrl_regs[PAC1934_CHANNEL_DIS_LAT_REG_OFF]; in pac1934_reg_snapshot()
638 offset_reg_data_p = &reg_data->meas_regs[PAC1934_ACC_REG_LEN]; in pac1934_reg_snapshot()
653 reg_data->vpower_acc[cnt] = sign_extend64(tmp_energy, 47); in pac1934_reg_snapshot()
655 reg_data->vpower_acc[cnt] = tmp_energy; in pac1934_reg_snapshot()
[all …]
/linux-6.12.1/sound/soc/tegra/
Dtegra210_peq.c59 unsigned int reg_data, unsigned int ram_offset, in tegra210_peq_read_ram() argument
77 regmap_read(regmap, reg_data, &data[i]); in tegra210_peq_read_ram()
81 unsigned int reg_data, unsigned int ram_offset, in tegra210_peq_write_ram() argument
95 regmap_write(regmap, reg_data, data[i]); in tegra210_peq_write_ram()
152 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_get() local
157 tegra210_peq_read_ram(ope->peq_regmap, reg_ctrl, reg_data, in tegra210_peq_ram_get()
175 u32 reg_data = reg_ctrl + cmpnt->val_bytes; in tegra210_peq_ram_put() local
183 tegra210_peq_write_ram(ope->peq_regmap, reg_ctrl, reg_data, in tegra210_peq_ram_put()

123456