/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | zl38060.c | 21 #include <linux/regmap.h> 86 struct regmap *regmap; member 91 static int zl38_fw_issue_command(struct regmap *regmap, u16 cmd) in zl38_fw_issue_command() argument 96 err = regmap_read_poll_timeout(regmap, REG_SEMA_FLAGS, val, in zl38_fw_issue_command() 101 err = regmap_write(regmap, REG_CMD, cmd); in zl38_fw_issue_command() 104 err = regmap_update_bits(regmap, REG_SEMA_FLAGS, SEMA_FLAGS_BOOT_CMD, in zl38_fw_issue_command() 109 return regmap_read_poll_timeout(regmap, REG_CMD, val, !val, 10000, in zl38_fw_issue_command() 113 static int zl38_fw_go(struct regmap *regma argument 124 zl38_fw_enter_boot_mode(struct regmap *regmap) zl38_fw_enter_boot_mode() argument 139 zl38_fw_send_data(struct regmap *regmap, u32 addr, const void *data, u16 len) zl38_fw_send_data() argument 151 zl38_fw_send_xaddr(struct regmap *regmap, const void *data) zl38_fw_send_xaddr() argument 162 zl38_load_firmware(struct device *dev, struct regmap *regmap) zl38_load_firmware() argument 210 zl38_software_reset(struct regmap *regmap) zl38_software_reset() argument 393 struct regmap *regmap = gpiochip_get_data(c); chip_gpio_set() local 401 struct regmap *regmap = gpiochip_get_data(c); chip_gpio_get() local 415 struct regmap *regmap = gpiochip_get_data(c); chip_direction_input() local 424 struct regmap *regmap = gpiochip_get_data(c); chip_direction_output() local 445 zl38_check_revision(struct device *dev, struct regmap *regmap) zl38_check_revision() argument [all...] |
H A D | mt6359.c | 24 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ffe); in mt6359_set_playback_gpio() 25 regmap_write(priv->regmap, MT6359_GPIO_MODE2_SET, 0x0249); in mt6359_set_playback_gpio() 28 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x6); in mt6359_set_playback_gpio() 29 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x1); in mt6359_set_playback_gpio() 39 regmap_write(priv->regmap, MT6359_GPIO_MODE2_CLR, 0x0ff8); in mt6359_reset_playback_gpio() 40 regmap_update_bits(priv->regmap, MT6359_GPIO_DIR0, 0x7 << 9, 0x0); in mt6359_reset_playback_gpio() 46 regmap_write(priv->regmap, MT6359_GPIO_MODE3_CLR, 0x0e00); in mt6359_set_capture_gpio() 47 regmap_write(priv->regmap, MT6359_GPIO_MODE3_SET, 0x0200); in mt6359_set_capture_gpio() 49 regmap_write(priv->regmap, MT6359_GPIO_MODE4_CLR, 0x003f); in mt6359_set_capture_gpio() 50 regmap_write(priv->regmap, MT6359_GPIO_MODE4_SE in mt6359_set_capture_gpio() [all...] |
H A D | cs35l35.c | 23 #include <linux/regmap.h> 199 regmap_update_bits(cs35l35->regmap, CS35L35_CLK_CTL1, in cs35l35_sdin_event() 202 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 205 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 209 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 212 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 216 regmap_update_bits(cs35l35->regmap, CS35L35_AMP_DIG_VOL_CTL, in cs35l35_sdin_event() 221 regmap_update_bits(cs35l35->regmap, CS35L35_CLK_CTL1, in cs35l35_sdin_event() 225 regmap_update_bits(cs35l35->regmap, CS35L35_AMP_DIG_VOL_CTL, in cs35l35_sdin_event() 247 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL in cs35l35_main_amp_event() 766 struct regmap *regmap = cs35l35->regmap; cs35l35_boost_inductor() local [all...] |
H A D | rt711.c | 17 #include <linux/regmap.h> 31 static int rt711_index_write(struct regmap *regmap, in rt711_index_write() argument 37 ret = regmap_write(regmap, addr, value); in rt711_index_write() 45 static int rt711_index_read(struct regmap *regmap, in rt711_index_read() argument 52 ret = regmap_read(regmap, addr, value); in rt711_index_read() 60 static int rt711_index_update_bits(struct regmap *regmap, unsigned int nid, in rt711_index_update_bits() argument 66 ret = rt711_index_read(regmap, ni in rt711_index_update_bits() 76 rt711_reset(struct regmap *regmap) rt711_reset() argument 88 struct regmap *regmap = rt711->regmap; rt711_calibration() local 1184 rt711_init(struct device *dev, struct regmap *sdw_regmap, struct regmap *regmap, struct sdw_slave *slave) rt711_init() argument [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | zl38060.c | 21 #include <linux/regmap.h> 86 struct regmap *regmap; member 91 static int zl38_fw_issue_command(struct regmap *regmap, u16 cmd) in zl38_fw_issue_command() argument 96 err = regmap_read_poll_timeout(regmap, REG_SEMA_FLAGS, val, in zl38_fw_issue_command() 101 err = regmap_write(regmap, REG_CMD, cmd); in zl38_fw_issue_command() 104 err = regmap_update_bits(regmap, REG_SEMA_FLAGS, SEMA_FLAGS_BOOT_CMD, in zl38_fw_issue_command() 109 return regmap_read_poll_timeout(regmap, REG_CMD, val, !val, 10000, in zl38_fw_issue_command() 113 static int zl38_fw_go(struct regmap *regma argument 124 zl38_fw_enter_boot_mode(struct regmap *regmap) zl38_fw_enter_boot_mode() argument 139 zl38_fw_send_data(struct regmap *regmap, u32 addr, const void *data, u16 len) zl38_fw_send_data() argument 151 zl38_fw_send_xaddr(struct regmap *regmap, const void *data) zl38_fw_send_xaddr() argument 162 zl38_load_firmware(struct device *dev, struct regmap *regmap) zl38_load_firmware() argument 210 zl38_software_reset(struct regmap *regmap) zl38_software_reset() argument 392 struct regmap *regmap = gpiochip_get_data(c); chip_gpio_set() local 400 struct regmap *regmap = gpiochip_get_data(c); chip_gpio_get() local 414 struct regmap *regmap = gpiochip_get_data(c); chip_direction_input() local 423 struct regmap *regmap = gpiochip_get_data(c); chip_direction_output() local 444 zl38_check_revision(struct device *dev, struct regmap *regmap) zl38_check_revision() argument [all...] |
H A D | cs35l35.c | 22 #include <linux/regmap.h> 199 regmap_update_bits(cs35l35->regmap, CS35L35_CLK_CTL1, in cs35l35_sdin_event() 202 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 205 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 209 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 212 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL1, in cs35l35_sdin_event() 216 regmap_update_bits(cs35l35->regmap, CS35L35_AMP_DIG_VOL_CTL, in cs35l35_sdin_event() 221 regmap_update_bits(cs35l35->regmap, CS35L35_CLK_CTL1, in cs35l35_sdin_event() 225 regmap_update_bits(cs35l35->regmap, CS35L35_AMP_DIG_VOL_CTL, in cs35l35_sdin_event() 247 regmap_update_bits(cs35l35->regmap, CS35L35_PWRCTL in cs35l35_main_amp_event() 766 struct regmap *regmap = cs35l35->regmap; cs35l35_boost_inductor() local [all...] |
H A D | es8326.c | 24 struct regmap *regmap; member 366 regmap_write(es8326->regmap, ES8326_CLK_DIV1, in es8326_pcm_hw_params() 368 regmap_write(es8326->regmap, ES8326_CLK_DIV2, in es8326_pcm_hw_params() 370 regmap_write(es8326->regmap, ES8326_CLK_DLL, in es8326_pcm_hw_params() 372 regmap_write(es8326->regmap, ES8326_CLK_MUX, in es8326_pcm_hw_params() 374 regmap_write(es8326->regmap, ES8326_CLK_ADC_SEL, in es8326_pcm_hw_params() 376 regmap_write(es8326->regmap, ES8326_CLK_DAC_SEL, in es8326_pcm_hw_params() 378 regmap_write(es8326->regmap, ES8326_CLK_ADC_OSR, in es8326_pcm_hw_params() 380 regmap_write(es8326->regmap, ES8326_CLK_DAC_OS in es8326_pcm_hw_params() [all...] |
H A D | rt711.c | 17 #include <linux/regmap.h> 32 static int rt711_index_write(struct regmap *regmap, in rt711_index_write() argument 38 ret = regmap_write(regmap, addr, value); in rt711_index_write() 46 static int rt711_index_read(struct regmap *regmap, in rt711_index_read() argument 53 ret = regmap_read(regmap, addr, value); in rt711_index_read() 61 static int rt711_index_update_bits(struct regmap *regmap, unsigned int nid, in rt711_index_update_bits() argument 67 ret = rt711_index_read(regmap, ni in rt711_index_update_bits() 77 rt711_reset(struct regmap *regmap) rt711_reset() argument 89 struct regmap *regmap = rt711->regmap; rt711_calibration() local 1178 rt711_init(struct device *dev, struct regmap *sdw_regmap, struct regmap *regmap, struct sdw_slave *slave) rt711_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/base/regmap/ |
H A D | Makefile | 5 obj-$(CONFIG_REGMAP) += regmap.o regcache.o 7 obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o 8 obj-$(CONFIG_REGMAP_KUNIT) += regmap-kunit.o 9 obj-$(CONFIG_REGMAP_AC97) += regmap-ac97.o 10 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o 11 obj-$(CONFIG_REGMAP_RAM) += regmap-ram.o regmap-raw-ram.o 12 obj-$(CONFIG_REGMAP_SLIMBUS) += regmap-slimbus.o 13 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o 14 obj-$(CONFIG_REGMAP_SPMI) += regmap [all...] |
/kernel/linux/linux-6.6/drivers/clk/qcom/ |
H A D | clk-hfpll.c | 6 #include <linux/regmap.h> 12 #include "clk-regmap.h" 24 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_init_once() local 31 regmap_write(regmap, hd->config_reg, hd->config_val); in __clk_hfpll_init_once() 32 regmap_write(regmap, hd->m_reg, 0); in __clk_hfpll_init_once() 33 regmap_write(regmap, hd->n_reg, 1); in __clk_hfpll_init_once() 44 regmap_write(regmap, hd->user_reg, regval); in __clk_hfpll_init_once() 48 regmap_write(regmap, h in __clk_hfpll_init_once() 57 struct regmap *regmap = h->clkr.regmap; __clk_hfpll_enable() local 96 struct regmap *regmap = h->clkr.regmap; clk_hfpll_enable() local 111 struct regmap *regmap = h->clkr.regmap; __clk_hfpll_disable() local 156 struct regmap *regmap = h->clkr.regmap; clk_hfpll_set_rate() local 194 struct regmap *regmap = h->clkr.regmap; clk_hfpll_recalc_rate() local 206 struct regmap *regmap = h->clkr.regmap; clk_hfpll_init() local 232 struct regmap *regmap = h->clkr.regmap; hfpll_is_enabled() local [all...] |
H A D | clk-pll.c | 13 #include <linux/regmap.h> 31 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 40 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_BYPASSNL, in clk_pll_enable() 52 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_RESET_N, in clk_pll_enable() 61 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, in clk_pll_enable() 71 regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_disable() 76 regmap_update_bits(pll->clkr.regmap, pll->mode_reg, mask, 0); in clk_pll_disable() 87 regmap_read(pll->clkr.regmap, pll->l_reg, &l); in clk_pll_recalc_rate() 88 regmap_read(pll->clkr.regmap, pll->m_reg, &m); in clk_pll_recalc_rate() 89 regmap_read(pll->clkr.regmap, pl in clk_pll_recalc_rate() 218 clk_pll_configure(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config) clk_pll_configure() argument 245 clk_pll_configure_sr(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr() argument 254 clk_pll_configure_sr_hpm_lp(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr_hpm_lp() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
H A D | chrontel-ch7033.c | 10 #include <linux/regmap.h> 200 struct regmap *regmap; member 336 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_disable() 337 regmap_update_bits(priv->regmap, 0x52, RESETDB, 0x00); in ch7033_bridge_disable() 344 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_enable() 345 regmap_update_bits(priv->regmap, 0x52, RESETDB, RESETDB); in ch7033_bridge_enable() 361 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_mode_set() 364 regmap_write(priv->regmap, 0x52, 0x00); in ch7033_bridge_mode_set() 366 regmap_write(priv->regmap, in ch7033_bridge_mode_set() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
H A D | chrontel-ch7033.c | 11 #include <linux/regmap.h> 201 struct regmap *regmap; member 337 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_disable() 338 regmap_update_bits(priv->regmap, 0x52, RESETDB, 0x00); in ch7033_bridge_disable() 345 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_enable() 346 regmap_update_bits(priv->regmap, 0x52, RESETDB, RESETDB); in ch7033_bridge_enable() 362 regmap_write(priv->regmap, 0x03, 0x04); in ch7033_bridge_mode_set() 365 regmap_write(priv->regmap, 0x52, 0x00); in ch7033_bridge_mode_set() 367 regmap_write(priv->regmap, in ch7033_bridge_mode_set() [all...] |
/kernel/linux/linux-5.10/drivers/phy/mscc/ |
H A D | phy-ocelot-serdes.c | 17 #include <linux/regmap.h> 22 struct regmap *regs; 36 static int __serdes_write_mcb_s6g(struct regmap *regmap, u8 macro, u32 op) in __serdes_write_mcb_s6g() argument 40 regmap_write(regmap, HSIO_MCB_S6G_ADDR_CFG, op | in __serdes_write_mcb_s6g() 43 return regmap_read_poll_timeout(regmap, HSIO_MCB_S6G_ADDR_CFG, regval, in __serdes_write_mcb_s6g() 48 static int serdes_commit_mcb_s6g(struct regmap *regmap, u8 macro) in serdes_commit_mcb_s6g() argument 50 return __serdes_write_mcb_s6g(regmap, macro, in serdes_commit_mcb_s6g() 54 static int serdes_update_mcb_s6g(struct regmap *regma argument 60 serdes_init_s6g(struct regmap *regmap, u8 serdes, int mode) serdes_init_s6g() argument 268 __serdes_write_mcb_s1g(struct regmap *regmap, u8 macro, u32 op) __serdes_write_mcb_s1g() argument 280 serdes_commit_mcb_s1g(struct regmap *regmap, u8 macro) serdes_commit_mcb_s1g() argument 286 serdes_update_mcb_s1g(struct regmap *regmap, u8 macro) serdes_update_mcb_s1g() argument 292 serdes_init_s1g(struct regmap *regmap, u8 serdes) serdes_init_s1g() argument [all...] |
/kernel/linux/linux-6.6/drivers/phy/mscc/ |
H A D | phy-ocelot-serdes.c | 17 #include <linux/regmap.h> 22 struct regmap *regs; 36 static int __serdes_write_mcb_s6g(struct regmap *regmap, u8 macro, u32 op) in __serdes_write_mcb_s6g() argument 40 regmap_write(regmap, HSIO_MCB_S6G_ADDR_CFG, op | in __serdes_write_mcb_s6g() 43 return regmap_read_poll_timeout(regmap, HSIO_MCB_S6G_ADDR_CFG, regval, in __serdes_write_mcb_s6g() 48 static int serdes_commit_mcb_s6g(struct regmap *regmap, u8 macro) in serdes_commit_mcb_s6g() argument 50 return __serdes_write_mcb_s6g(regmap, macro, in serdes_commit_mcb_s6g() 54 static int serdes_update_mcb_s6g(struct regmap *regma argument 60 serdes_init_s6g(struct regmap *regmap, u8 serdes, int mode) serdes_init_s6g() argument 268 __serdes_write_mcb_s1g(struct regmap *regmap, u8 macro, u32 op) __serdes_write_mcb_s1g() argument 280 serdes_commit_mcb_s1g(struct regmap *regmap, u8 macro) serdes_commit_mcb_s1g() argument 286 serdes_update_mcb_s1g(struct regmap *regmap, u8 macro) serdes_update_mcb_s1g() argument 292 serdes_init_s1g(struct regmap *regmap, u8 serdes) serdes_init_s1g() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mediatek/ |
H A D | mtk_sgmii.c | 12 #include <linux/regmap.h> 28 ss->regmap[i] = syscon_node_to_regmap(np); in mtk_sgmii_init() 30 if (IS_ERR(ss->regmap[i])) in mtk_sgmii_init() 31 return PTR_ERR(ss->regmap[i]); in mtk_sgmii_init() 41 if (!ss->regmap[id]) in mtk_sgmii_setup_mode_an() 45 regmap_write(ss->regmap[id], SGMSYS_PCS_LINK_TIMER, in mtk_sgmii_setup_mode_an() 48 regmap_read(ss->regmap[id], SGMSYS_SGMII_MODE, &val); in mtk_sgmii_setup_mode_an() 50 regmap_write(ss->regmap[id], SGMSYS_SGMII_MODE, val); in mtk_sgmii_setup_mode_an() 52 regmap_read(ss->regmap[id], SGMSYS_PCS_CONTROL_1, &val); in mtk_sgmii_setup_mode_an() 54 regmap_write(ss->regmap[i in mtk_sgmii_setup_mode_an() [all...] |
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | rt6190-regulator.c | 18 #include <linux/regmap.h> 70 struct regmap *regmap; member 78 struct regmap *regmap = rdev_get_regmap(rdev); in rt6190_out_set_voltage_sel() local 81 return regmap_raw_write(regmap, RT6190_REG_OUTV, &le_sel, in rt6190_out_set_voltage_sel() 87 struct regmap *regmap = rdev_get_regmap(rdev); in rt6190_out_get_voltage_sel() local 91 ret = regmap_raw_read(regmap, RT6190_REG_OUTV, &le_sel, sizeof(le_sel)); in rt6190_out_get_voltage_sel() 99 struct regmap *regma in rt6190_out_enable() local 130 struct regmap *regmap = rdev_get_regmap(rdev); rt6190_out_disable() local 152 struct regmap *regmap = rdev_get_regmap(rdev); rt6190_out_set_current_limit() local 174 struct regmap *regmap = rdev_get_regmap(rdev); rt6190_out_get_current_limit() local 191 struct regmap *regmap = rdev_get_regmap(rdev); rt6190_out_set_mode() local 211 struct regmap *regmap = rdev_get_regmap(rdev); rt6190_out_get_mode() local 348 rt6190_init_registers(struct regmap *regmap) rt6190_init_registers() argument 379 struct regmap *regmap; rt6190_probe() local 445 struct regmap *regmap = data->regmap; rt6190_runtime_suspend() local 461 struct regmap *regmap = data->regmap; rt6190_runtime_resume() local [all...] |
H A D | raa215300.c | 15 #include <linux/regmap.h> 70 struct regmap *regmap; in raa215300_i2c_probe() local 73 regmap = devm_regmap_init_i2c(client, &raa215300_regmap_config); in raa215300_i2c_probe() 74 if (IS_ERR(regmap)) in raa215300_i2c_probe() 75 return dev_err_probe(dev, PTR_ERR(regmap), in raa215300_i2c_probe() 76 "regmap i2c init failed\n"); in raa215300_i2c_probe() 78 ret = regmap_read(regmap, RAA215300_HW_REV, &pmic_version); in raa215300_i2c_probe() 85 regmap_read(regmap, RAA215300_REG_BLOCK_EN, &val); in raa215300_i2c_probe() 87 regmap_write(regmap, RAA215300_REG_BLOCK_E in raa215300_i2c_probe() [all...] |
/kernel/linux/linux-5.10/drivers/input/misc/ |
H A D | pmic8xxx-pwrkey.c | 12 #include <linux/regmap.h> 74 * @regmap: device regmap 79 struct regmap *regmap; member 150 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); in pmic8xxx_pwrkey_shutdown() 159 static int pm8058_disable_smps_locally_set_pull_down(struct regmap *regmap, in pm8058_disable_smps_locally_set_pull_down() argument 168 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 172 error = regmap_read(regmap, test2_add in pm8058_disable_smps_locally_set_pull_down() 263 pm8058_disable_ldo_locally_set_pull_down(struct regmap *regmap, u16 ctrl_addr, u16 master_enable_addr, u8 master_enable_bit) pm8058_disable_ldo_locally_set_pull_down() argument 283 struct regmap *regmap = pwrkey->regmap; pm8058_pwrkey_shutdown() local 322 struct regmap *regmap = pwrkey->regmap; pm8921_pwrkey_shutdown() local 340 struct regmap *regmap; pmic8xxx_pwrkey_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | syscon.c | 22 #include <linux/regmap.h> 34 struct regmap *regmap; member 49 struct regmap *regmap; in of_syscon_register() local 116 regmap = regmap_init_mmio(NULL, base, &syscon_config); in of_syscon_register() 118 if (IS_ERR(regmap)) { in of_syscon_register() 119 pr_err("regmap init failed\n"); in of_syscon_register() 120 ret = PTR_ERR(regmap); in of_syscon_register() 132 ret = regmap_mmio_attach_clk(regmap, cl in of_syscon_register() 213 struct regmap *regmap; syscon_regmap_lookup_by_compatible() local 230 struct regmap *regmap; syscon_regmap_lookup_by_phandle() local 256 struct regmap *regmap; syscon_regmap_lookup_by_phandle_args() local 286 struct regmap *regmap; syscon_regmap_lookup_by_phandle_optional() local [all...] |
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | pmic8xxx-pwrkey.c | 12 #include <linux/regmap.h> 73 * @regmap: device regmap 78 struct regmap *regmap; member 149 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); in pmic8xxx_pwrkey_shutdown() 158 static int pm8058_disable_smps_locally_set_pull_down(struct regmap *regmap, in pm8058_disable_smps_locally_set_pull_down() argument 167 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 171 error = regmap_read(regmap, test2_add in pm8058_disable_smps_locally_set_pull_down() 262 pm8058_disable_ldo_locally_set_pull_down(struct regmap *regmap, u16 ctrl_addr, u16 master_enable_addr, u8 master_enable_bit) pm8058_disable_ldo_locally_set_pull_down() argument 282 struct regmap *regmap = pwrkey->regmap; pm8058_pwrkey_shutdown() local 321 struct regmap *regmap = pwrkey->regmap; pm8921_pwrkey_shutdown() local 339 struct regmap *regmap; pmic8xxx_pwrkey_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/phy/cadence/ |
H A D | phy-cadence-torrent.c | 23 #include <linux/regmap.h> 270 struct regmap *regmap; member 271 struct regmap *regmap_common_cdb; 272 struct regmap *regmap_phy_pcs_common_cdb; 273 struct regmap *regmap_phy_pma_common_cdb; 274 struct regmap *regmap_tx_lane_cdb[MAX_NUM_LANES]; 275 struct regmap *regmap_rx_lane_cdb[MAX_NUM_LANES]; 276 struct regmap *regmap_dptx_phy_reg; 468 static void cdns_torrent_phy_write(struct regmap *regma argument 473 cdns_torrent_phy_read(struct regmap *regmap, u32 offset) cdns_torrent_phy_read() argument 483 cdns_torrent_dp_write(struct regmap *regmap, u32 offset, u32 val) cdns_torrent_dp_write() argument 488 cdns_torrent_dp_read(struct regmap *regmap, u32 offset) cdns_torrent_dp_read() argument 569 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_set_pll_en() local 733 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_set_a0_pll() local 771 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_set_lanes() local 935 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_init() local 1001 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_wait_pma_cmn_ready() local 1034 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_pma_cmn_cfg_19_2mhz() local 1083 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_enable_ssc_19_2mhz() local 1099 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_pma_cmn_vco_cfg_19_2mhz() local 1259 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_pma_cmn_cfg_25mhz() local 1307 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_enable_ssc_25mhz() local 1323 struct regmap *regmap = cdns_phy->regmap_common_cdb; cdns_torrent_dp_pma_cmn_vco_cfg_25mhz() local 1523 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_set_power_state() local 1579 struct regmap *regmap = cdns_phy->regmap_dptx_phy_reg; cdns_torrent_dp_run() local 1679 struct regmap *regmap; cdns_torrent_dp_regfield_init() local 1696 struct regmap *regmap; cdns_torrent_regfield_init() local 1737 struct regmap *regmap; cdns_torrent_dp_regmap_init() local 1761 struct regmap *regmap; cdns_torrent_regmap_init() local 1836 struct regmap *regmap; cdns_torrent_phy_init() local 1945 struct regmap *regmap; cdns_torrent_phy_configure_multilink() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | regmap.h | 35 struct regmap; 50 * regmap.reg_shift indicates by how much we must shift registers prior to 147 * Note: In general regmap cannot be used in atomic context. If you want to use 148 * this macro then first setup your regmap for atomic use (flat or no cache 149 * and MMIO regmap). 227 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges" 229 * @no_ranges: pointer to an array of regmap ranges used as "no ranges" 250 * @name: Optional name of the regmap. Useful when a device has multiple 300 * @disable_locking: This regmap is either protected by external means or 303 * @lock: Optional lock callback (overrides regmap' [all...] |
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
H A D | clk-pll.c | 13 #include <linux/regmap.h> 31 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 40 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_BYPASSNL, in clk_pll_enable() 52 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_RESET_N, in clk_pll_enable() 61 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, in clk_pll_enable() 71 regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_disable() 76 regmap_update_bits(pll->clkr.regmap, pll->mode_reg, mask, 0); in clk_pll_disable() 87 regmap_read(pll->clkr.regmap, pll->l_reg, &l); in clk_pll_recalc_rate() 88 regmap_read(pll->clkr.regmap, pll->m_reg, &m); in clk_pll_recalc_rate() 89 regmap_read(pll->clkr.regmap, pl in clk_pll_recalc_rate() 218 clk_pll_configure(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config) clk_pll_configure() argument 245 clk_pll_configure_sr(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr() argument 254 clk_pll_configure_sr_hpm_lp(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr_hpm_lp() argument [all...] |
/kernel/linux/linux-6.6/drivers/clk/at91/ |
H A D | clk-sam9x60-pll.c | 14 #include <linux/regmap.h> 32 struct regmap *regmap; member 60 static inline bool sam9x60_pll_ready(struct regmap *regmap, int id) in sam9x60_pll_ready() argument 64 regmap_read(regmap, AT91_PMC_PLL_ISR0, &status); in sam9x60_pll_ready() 69 static bool sam9x60_frac_pll_ready(struct regmap *regmap, u8 id) in sam9x60_frac_pll_ready() argument 71 return sam9x60_pll_ready(regmap, id); in sam9x60_frac_pll_ready() 87 struct regmap *regma in sam9x60_frac_pll_set() local 159 struct regmap *regmap = core->regmap; sam9x60_frac_pll_unprepare() local 249 struct regmap *regmap = core->regmap; sam9x60_frac_pll_set_rate_chg() local 340 struct regmap *regmap = core->regmap; sam9x60_div_pll_set_div() local 359 struct regmap *regmap = core->regmap; sam9x60_div_pll_set() local 391 struct regmap *regmap = core->regmap; sam9x60_div_pll_unprepare() local 412 struct regmap *regmap = core->regmap; sam9x60_div_pll_is_prepared() local 503 struct regmap *regmap = core->regmap; sam9x60_div_pll_set_rate_chg() local 551 struct regmap *regmap = core.regmap; sam9x60_div_pll_notifier_fn() local 611 sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock, const char *name, const char *parent_name, struct clk_hw *parent_hw, u8 id, const struct clk_pll_characteristics *characteristics, const struct clk_pll_layout *layout, u32 flags) sam9x60_clk_register_frac_pll() argument 697 sam9x60_clk_register_div_pll(struct regmap *regmap, spinlock_t *lock, const char *name, const char *parent_name, struct clk_hw *parent_hw, u8 id, const struct clk_pll_characteristics *characteristics, const struct clk_pll_layout *layout, u32 flags, u32 safe_div) sam9x60_clk_register_div_pll() argument [all...] |