/Linux-v6.1/drivers/clk/at91/ |
D | clk-main.c | 11 #include <linux/regmap.h> 30 struct regmap *regmap; member 38 struct regmap *regmap; member 48 struct regmap *regmap; member 55 struct regmap *regmap; member 62 static inline bool clk_main_osc_ready(struct regmap *regmap) in clk_main_osc_ready() argument 66 regmap_read(regmap, AT91_PMC_SR, &status); in clk_main_osc_ready() 74 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare() local 77 regmap_read(regmap, AT91_CKGR_MOR, &tmp); in clk_main_osc_prepare() 85 regmap_write(regmap, AT91_CKGR_MOR, tmp); in clk_main_osc_prepare() [all …]
|
D | pmc.h | 13 #include <linux/regmap.h> 132 at91_clk_register_audio_pll_frac(struct regmap *regmap, const char *name, 136 at91_clk_register_audio_pll_pad(struct regmap *regmap, const char *name, 140 at91_clk_register_audio_pll_pmc(struct regmap *regmap, const char *name, 144 at91_clk_register_generated(struct regmap *regmap, spinlock_t *lock, 151 at91_clk_register_h32mx(struct regmap *regmap, const char *name, 155 at91_clk_i2s_mux_register(struct regmap *regmap, const char *name, 160 at91_clk_register_main_rc_osc(struct regmap *regmap, const char *name, 163 at91_clk_register_main_osc(struct regmap *regmap, const char *name, 166 at91_clk_register_rm9200_main(struct regmap *regmap, [all …]
|
D | dt-compat.c | 6 #include <linux/regmap.h> 35 struct regmap *regmap; in of_sama5d2_clk_audio_pll_frac_setup() local 39 regmap = syscon_node_to_regmap(parent_np); in of_sama5d2_clk_audio_pll_frac_setup() 41 if (IS_ERR(regmap)) in of_sama5d2_clk_audio_pll_frac_setup() 46 hw = at91_clk_register_audio_pll_frac(regmap, name, parent_name); in of_sama5d2_clk_audio_pll_frac_setup() 61 struct regmap *regmap; in of_sama5d2_clk_audio_pll_pad_setup() local 65 regmap = syscon_node_to_regmap(parent_np); in of_sama5d2_clk_audio_pll_pad_setup() 67 if (IS_ERR(regmap)) in of_sama5d2_clk_audio_pll_pad_setup() 72 hw = at91_clk_register_audio_pll_pad(regmap, name, parent_name); in of_sama5d2_clk_audio_pll_pad_setup() 87 struct regmap *regmap; in of_sama5d2_clk_audio_pll_pmc_setup() local [all …]
|
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 *regmap = core->regmap; in sam9x60_frac_pll_set() local 93 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_set() 95 regmap_read(regmap, AT91_PMC_PLL_CTRL1, &val); in sam9x60_frac_pll_set() 99 if (sam9x60_frac_pll_ready(regmap, core->id) && in sam9x60_frac_pll_set() [all …]
|
/Linux-v6.1/drivers/gpu/drm/sprd/ |
D | megacores_pll.c | 10 #include <linux/regmap.h> 81 static void dphy_set_pll_reg(struct dphy_pll *pll, struct regmap *regmap) in dphy_set_pll_reg() argument 102 regmap_write(regmap, reg_addr[i], reg_val[i]); in dphy_set_pll_reg() 110 struct regmap *regmap = ctx->regmap; in dphy_pll_config() local 122 dphy_set_pll_reg(pll, regmap); in dphy_pll_config() 127 static void dphy_set_timing_reg(struct regmap *regmap, int type, u8 val[]) in dphy_set_timing_reg() argument 131 regmap_write(regmap, 0x31, val[CLK]); in dphy_set_timing_reg() 132 regmap_write(regmap, 0x41, val[DATA]); in dphy_set_timing_reg() 133 regmap_write(regmap, 0x51, val[DATA]); in dphy_set_timing_reg() 134 regmap_write(regmap, 0x61, val[DATA]); in dphy_set_timing_reg() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | mt6358.c | 83 struct regmap *regmap; member 115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set() 117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set() 119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set() 130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset() 132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset() 134 regmap_update_bits(priv->regmap, MT6358_GPIO_DIR0, in playback_gpio_reset() 141 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_CLR, in capture_gpio_set() 143 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3_SET, in capture_gpio_set() 145 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE3, in capture_gpio_set() [all …]
|
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, nid, reg, &orig); in rt711_index_update_bits() 73 return rt711_index_write(regmap, nid, reg, tmp); in rt711_index_update_bits() 76 static void rt711_reset(struct regmap *regmap) in rt711_reset() argument 78 regmap_write(regmap, RT711_FUNC_RESET, 0); in rt711_reset() [all …]
|
D | nau8821.c | 17 #include <linux/regmap.h> 39 static bool nau8821_is_jack_inserted(struct regmap *regmap); 279 if (!component->regmap) in nau8821_biq_coeff_get() 282 regmap_raw_read(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_get() 295 if (!component->regmap) in nau8821_biq_coeff_put() 303 regmap_raw_write(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_put() 375 regmap_read(nau8821->regmap, NAU8821_R03_CLK_DIVIDER, in dmic_clock_control() 394 regmap_update_bits(nau8821->regmap, NAU8821_R13_DMIC_CTRL, in dmic_clock_control() 411 regmap_update_bits(nau8821->regmap, NAU8821_R01_ENA_CTRL, in nau8821_left_adc_event() 415 regmap_update_bits(nau8821->regmap, in nau8821_left_adc_event() [all …]
|
D | nau8825.c | 15 #include <linux/regmap.h> 50 static bool nau8825_is_jack_inserted(struct regmap *regmap); 336 regmap_update_bits(nau8825->regmap, NAU8825_REG_HSVOL_CTRL, in nau8825_hpvol_ramp() 345 regmap_update_bits(nau8825->regmap, NAU8825_REG_HSVOL_CTRL, in nau8825_hpvol_ramp() 463 regmap_read(nau8825->regmap, nau8825_xtalk_baktab[i].reg, in nau8825_xtalk_backup() 490 regmap_write(nau8825->regmap, nau8825_xtalk_baktab[i].reg, in nau8825_xtalk_restore() 500 regmap_update_bits(nau8825->regmap, NAU8825_REG_ENA_CTRL, in nau8825_xtalk_prepare_dac() 509 regmap_update_bits(nau8825->regmap, NAU8825_REG_CHARGE_PUMP, in nau8825_xtalk_prepare_dac() 513 regmap_update_bits(nau8825->regmap, NAU8825_REG_RDAC, in nau8825_xtalk_prepare_dac() 518 regmap_update_bits(nau8825->regmap, NAU8825_REG_POWER_UP_CONTROL, in nau8825_xtalk_prepare_dac() [all …]
|
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 *regmap) in zl38_fw_go() argument 117 err = zl38_fw_issue_command(regmap, BOOTCMD_LOAD_COMPLETE); in zl38_fw_go() 121 return zl38_fw_issue_command(regmap, BOOTCMD_FW_GO); in zl38_fw_go() [all …]
|
/Linux-v6.1/drivers/reset/hisilicon/ |
D | hi6220_reset.c | 17 #include <linux/regmap.h> 41 struct regmap *regmap; member 48 struct regmap *regmap = data->regmap; in hi6220_peripheral_assert() local 53 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_assert() 60 struct regmap *regmap = data->regmap; in hi6220_peripheral_deassert() local 65 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_deassert() 77 struct regmap *regmap = data->regmap; in hi6220_media_assert() local 79 return regmap_write(regmap, SC_MEDIA_RSTEN, BIT(idx)); in hi6220_media_assert() 86 struct regmap *regmap = data->regmap; in hi6220_media_deassert() local 88 return regmap_write(regmap, SC_MEDIA_RSTDIS, BIT(idx)); in hi6220_media_deassert() [all …]
|
/Linux-v6.1/drivers/clk/davinci/ |
D | da8xx-cfgchip.c | 18 #include <linux/regmap.h> 34 struct regmap *regmap; member 46 return regmap_write_bits(clk->regmap, clk->reg, clk->mask, clk->mask); in da8xx_cfgchip_gate_clk_enable() 53 regmap_write_bits(clk->regmap, clk->reg, clk->mask, 0); in da8xx_cfgchip_gate_clk_disable() 61 regmap_read(clk->regmap, clk->reg, &val); in da8xx_cfgchip_gate_clk_is_enabled() 89 struct regmap *regmap) in da8xx_cfgchip_gate_clk_register() argument 117 gate->regmap = regmap; in da8xx_cfgchip_gate_clk_register() 135 struct regmap *regmap) in da8xx_cfgchip_register_tbclk() argument 140 regmap); in da8xx_cfgchip_register_tbclk() 158 struct regmap *regmap) in da8xx_cfgchip_register_div4p5() argument [all …]
|
/Linux-v6.1/drivers/clk/qcom/ |
D | clk-alpha-pll.c | 10 #include <linux/regmap.h> 258 ret = regmap_read(pll->clkr.regmap, PLL_MODE(pll), &val); in wait_for_pll() 263 ret = regmap_read(pll->clkr.regmap, PLL_MODE(pll), &val); in wait_for_pll() 302 static void clk_alpha_pll_write_config(struct regmap *regmap, unsigned int reg, in clk_alpha_pll_write_config() argument 306 regmap_write(regmap, reg, val); in clk_alpha_pll_write_config() 309 void clk_alpha_pll_configure(struct clk_alpha_pll *pll, struct regmap *regmap, in clk_alpha_pll_configure() argument 314 regmap_write(regmap, PLL_L_VAL(pll), config->l); in clk_alpha_pll_configure() 315 regmap_write(regmap, PLL_ALPHA_VAL(pll), config->alpha); in clk_alpha_pll_configure() 316 regmap_write(regmap, PLL_CONFIG_CTL(pll), config->config_ctl_val); in clk_alpha_pll_configure() 319 regmap_write(regmap, PLL_CONFIG_CTL_U(pll), in clk_alpha_pll_configure() [all …]
|
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, hd->droop_reg, hd->droop_val); in __clk_hfpll_init_once() 57 struct regmap *regmap = h->clkr.regmap; in __clk_hfpll_enable() local 63 regmap_update_bits(regmap, hd->mode_reg, PLL_BYPASSNL, PLL_BYPASSNL); in __clk_hfpll_enable() [all …]
|
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, pll->n_reg, &n); in clk_pll_recalc_rate() [all …]
|
/Linux-v6.1/drivers/phy/mscc/ |
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 *regmap, u8 macro) in serdes_update_mcb_s6g() argument 56 return __serdes_write_mcb_s6g(regmap, macro, in serdes_update_mcb_s6g() 60 static int serdes_init_s6g(struct regmap *regmap, u8 serdes, int mode) in serdes_init_s6g() argument [all …]
|
/Linux-v6.1/drivers/hwmon/ |
D | w83773g.c | 16 #include <linux/regmap.h> 61 static int get_local_temp(struct regmap *regmap, long *val) in get_local_temp() argument 66 ret = regmap_read(regmap, W83773_LOCAL_TEMP, ®val); in get_local_temp() 74 static int get_remote_temp(struct regmap *regmap, int index, long *val) in get_remote_temp() argument 80 ret = regmap_read(regmap, W83773_TEMP_MSB[index], ®val_high); in get_remote_temp() 84 ret = regmap_read(regmap, W83773_TEMP_LSB[index], ®val_low); in get_remote_temp() 92 static int get_fault(struct regmap *regmap, int index, long *val) in get_fault() argument 97 ret = regmap_read(regmap, W83773_STATUS[index], ®val); in get_fault() 105 static int get_offset(struct regmap *regmap, int index, long *val) in get_offset() argument 111 ret = regmap_read(regmap, W83773_OFFSET_MSB[index], ®val_high); in get_offset() [all …]
|
/Linux-v6.1/drivers/mfd/ |
D | syscon.c | 22 #include <linux/regmap.h> 33 struct regmap *regmap; member 47 struct regmap *regmap; in of_syscon_register() local 109 regmap = regmap_init_mmio(NULL, base, &syscon_config); in of_syscon_register() 111 if (IS_ERR(regmap)) { in of_syscon_register() 112 pr_err("regmap init failed\n"); in of_syscon_register() 113 ret = PTR_ERR(regmap); in of_syscon_register() 125 ret = regmap_mmio_attach_clk(regmap, clk); in of_syscon_register() 131 syscon->regmap = regmap; in of_syscon_register() 144 regmap_exit(regmap); in of_syscon_register() [all …]
|
/Linux-v6.1/drivers/base/regmap/ |
D | internal.h | 14 #include <linux/regmap.h> 19 struct regmap; 36 void (*format_write)(struct regmap *map, 46 struct regmap *map; 50 struct regmap { struct 175 /* if set, the regmap core can sleep */ argument 182 int (*init)(struct regmap *map); argument 183 int (*exit)(struct regmap *map); 185 void (*debugfs_init)(struct regmap *map); 187 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); [all …]
|
D | Makefile | 5 obj-$(CONFIG_REGMAP) += regmap.o regcache.o 8 obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o 9 obj-$(CONFIG_REGMAP_AC97) += regmap-ac97.o 10 obj-$(CONFIG_REGMAP_I2C) += regmap-i2c.o 11 obj-$(CONFIG_REGMAP_SLIMBUS) += regmap-slimbus.o 12 obj-$(CONFIG_REGMAP_SPI) += regmap-spi.o 13 obj-$(CONFIG_REGMAP_SPMI) += regmap-spmi.o 14 obj-$(CONFIG_REGMAP_MMIO) += regmap-mmio.o 15 obj-$(CONFIG_REGMAP_IRQ) += regmap-irq.o 16 obj-$(CONFIG_REGMAP_W1) += regmap-w1.o [all …]
|
/Linux-v6.1/include/linux/ |
D | regmap.h | 34 struct regmap; 88 * @map: Regmap to read from 115 * @map: Regmap to read from 130 * Note: In general regmap cannot be used in atomic context. If you want to use 131 * this macro then first setup your regmap for atomic use (flat or no cache 132 * and MMIO regmap). 160 * @field: Regmap field to read from 210 * @yes_ranges : pointer to an array of regmap ranges used as "yes ranges" 212 * @no_ranges: pointer to an array of regmap ranges used as "no ranges" 233 * @name: Optional name of the regmap. Useful when a device has multiple [all …]
|
/Linux-v6.1/drivers/gpu/drm/bridge/ |
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, 0x52, RESETIB); in ch7033_bridge_mode_set() 372 regmap_write(priv->regmap, 0x03, 0x00); in ch7033_bridge_mode_set() [all …]
|
/Linux-v6.1/drivers/media/tuners/ |
D | m88rs6000t.c | 9 #include <linux/regmap.h> 14 struct regmap *regmap; member 36 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk() 98 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk() 108 ret = regmap_write(dev->regmap, 0x05, 0x40); in m88rs6000t_set_demod_mclk() 111 ret = regmap_write(dev->regmap, 0x11, 0x08); in m88rs6000t_set_demod_mclk() 114 ret = regmap_write(dev->regmap, 0x15, reg15); in m88rs6000t_set_demod_mclk() 117 ret = regmap_write(dev->regmap, 0x16, reg16); in m88rs6000t_set_demod_mclk() 120 ret = regmap_write(dev->regmap, 0x1D, reg1D); in m88rs6000t_set_demod_mclk() 123 ret = regmap_write(dev->regmap, 0x1E, reg1E); in m88rs6000t_set_demod_mclk() [all …]
|
/Linux-v6.1/drivers/input/misc/ |
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_addr, ®); in pm8058_disable_smps_locally_set_pull_down() 180 error = regmap_read(regmap, ctrl_addr, ®); in pm8058_disable_smps_locally_set_pull_down() 211 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 215 error = regmap_update_bits(regmap, test2_addr, in pm8058_disable_smps_locally_set_pull_down() [all …]
|
/Linux-v6.1/drivers/phy/cadence/ |
D | phy-cadence-torrent.c | 25 #include <linux/regmap.h> 334 struct regmap *regmap_common_cdb; 335 struct regmap *regmap_phy_pcs_common_cdb; 336 struct regmap *regmap_phy_pma_common_cdb; 337 struct regmap *regmap_tx_lane_cdb[MAX_NUM_LANES]; 338 struct regmap *regmap_rx_lane_cdb[MAX_NUM_LANES]; 339 struct regmap *regmap_phy_pcs_lane_cdb[MAX_NUM_LANES]; 340 struct regmap *regmap_dptx_phy_reg; 543 static void cdns_torrent_phy_write(struct regmap *regmap, u32 offset, u32 val) in cdns_torrent_phy_write() argument 545 regmap_write(regmap, offset, val); in cdns_torrent_phy_write() [all …]
|