/drivers/clk/at91/ |
D | clk-main.c | 36 struct regmap *regmap; member 43 struct regmap *regmap; member 52 struct regmap *regmap; member 59 struct regmap *regmap; member 65 static inline bool clk_main_osc_ready(struct regmap *regmap) in clk_main_osc_ready() argument 69 regmap_read(regmap, AT91_PMC_SR, &status); in clk_main_osc_ready() 77 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare() local 80 regmap_read(regmap, AT91_CKGR_MOR, &tmp); in clk_main_osc_prepare() 88 regmap_write(regmap, AT91_CKGR_MOR, tmp); in clk_main_osc_prepare() 91 while (!clk_main_osc_ready(regmap)) in clk_main_osc_prepare() [all …]
|
D | clk-usb.c | 30 struct regmap *regmap; member 38 struct regmap *regmap; member 52 regmap_read(usb->regmap, AT91_PMC_USB, &usbr); in at91sam9x5_clk_usb_recalc_rate() 116 regmap_update_bits(usb->regmap, AT91_PMC_USB, AT91_PMC_USBS, in at91sam9x5_clk_usb_set_parent() 127 regmap_read(usb->regmap, AT91_PMC_USB, &usbr); in at91sam9x5_clk_usb_get_parent() 145 regmap_update_bits(usb->regmap, AT91_PMC_USB, AT91_PMC_OHCIUSBDIV, in at91sam9x5_clk_usb_set_rate() 163 regmap_update_bits(usb->regmap, AT91_PMC_USB, AT91_PMC_USBS, in at91sam9n12_clk_usb_enable() 173 regmap_update_bits(usb->regmap, AT91_PMC_USB, AT91_PMC_USBS, 0); in at91sam9n12_clk_usb_disable() 181 regmap_read(usb->regmap, AT91_PMC_USB, &usbr); in at91sam9n12_clk_usb_is_enabled() 196 at91sam9x5_clk_register_usb(struct regmap *regmap, const char *name, in at91sam9x5_clk_register_usb() argument [all …]
|
D | clk-utmi.c | 24 struct regmap *regmap; member 29 static inline bool clk_utmi_ready(struct regmap *regmap) in clk_utmi_ready() argument 33 regmap_read(regmap, AT91_PMC_SR, &status); in clk_utmi_ready() 44 regmap_update_bits(utmi->regmap, AT91_CKGR_UCKR, uckr, uckr); in clk_utmi_prepare() 46 while (!clk_utmi_ready(utmi->regmap)) in clk_utmi_prepare() 56 return clk_utmi_ready(utmi->regmap); in clk_utmi_is_prepared() 63 regmap_update_bits(utmi->regmap, AT91_CKGR_UCKR, AT91_PMC_UPLLEN, 0); in clk_utmi_unprepare() 81 at91_clk_register_utmi(struct regmap *regmap, in at91_clk_register_utmi() argument 100 utmi->regmap = regmap; in at91_clk_register_utmi() 117 struct regmap *regmap; in of_at91sam9x5_clk_utmi_setup() local [all …]
|
D | clk-system.c | 27 struct regmap *regmap; member 36 static inline bool clk_system_ready(struct regmap *regmap, int id) in clk_system_ready() argument 40 regmap_read(regmap, AT91_PMC_SR, &status); in clk_system_ready() 49 regmap_write(sys->regmap, AT91_PMC_SCER, 1 << sys->id); in clk_system_prepare() 54 while (!clk_system_ready(sys->regmap, sys->id)) in clk_system_prepare() 64 regmap_write(sys->regmap, AT91_PMC_SCDR, 1 << sys->id); in clk_system_unprepare() 72 regmap_read(sys->regmap, AT91_PMC_SCSR, &status); in clk_system_is_prepared() 80 regmap_read(sys->regmap, AT91_PMC_SR, &status); in clk_system_is_prepared() 92 at91_clk_register_system(struct regmap *regmap, const char *name, in at91_clk_register_system() argument 115 sys->regmap = regmap; in at91_clk_register_system() [all …]
|
/drivers/base/regmap/ |
D | internal.h | 22 struct regmap; 38 void (*format_write)(struct regmap *map, 48 struct regmap *map; 52 struct regmap { struct 165 int (*init)(struct regmap *map); argument 166 int (*exit)(struct regmap *map); 168 void (*debugfs_init)(struct regmap *map); 170 int (*read)(struct regmap *map, unsigned int reg, unsigned int *value); 171 int (*write)(struct regmap *map, unsigned int reg, unsigned int value); 172 int (*sync)(struct regmap *map, unsigned int min, unsigned int max); [all …]
|
/drivers/media/tuners/ |
D | m88rs6000t.c | 23 struct regmap *regmap; member 45 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk() 107 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk() 117 ret = regmap_write(dev->regmap, 0x05, 0x40); in m88rs6000t_set_demod_mclk() 120 ret = regmap_write(dev->regmap, 0x11, 0x08); in m88rs6000t_set_demod_mclk() 123 ret = regmap_write(dev->regmap, 0x15, reg15); in m88rs6000t_set_demod_mclk() 126 ret = regmap_write(dev->regmap, 0x16, reg16); in m88rs6000t_set_demod_mclk() 129 ret = regmap_write(dev->regmap, 0x1D, reg1D); in m88rs6000t_set_demod_mclk() 132 ret = regmap_write(dev->regmap, 0x1E, reg1E); in m88rs6000t_set_demod_mclk() 135 ret = regmap_write(dev->regmap, 0x1F, reg1F); in m88rs6000t_set_demod_mclk() [all …]
|
/drivers/acpi/pmic/ |
D | intel_pmic_crc.c | 91 static int intel_crc_pmic_get_power(struct regmap *regmap, int reg, in intel_crc_pmic_get_power() argument 96 if (regmap_read(regmap, reg, &data)) in intel_crc_pmic_get_power() 103 static int intel_crc_pmic_update_power(struct regmap *regmap, int reg, in intel_crc_pmic_update_power() argument 108 if (regmap_read(regmap, reg, &data)) in intel_crc_pmic_update_power() 118 if (regmap_write(regmap, reg, data)) in intel_crc_pmic_update_power() 123 static int intel_crc_pmic_get_raw_temp(struct regmap *regmap, int reg) in intel_crc_pmic_get_raw_temp() argument 131 if (regmap_read(regmap, reg, &temp_l) || in intel_crc_pmic_get_raw_temp() 132 regmap_read(regmap, reg - 1, &temp_h)) in intel_crc_pmic_get_raw_temp() 138 static int intel_crc_pmic_update_aux(struct regmap *regmap, int reg, int raw) in intel_crc_pmic_update_aux() argument 140 return regmap_write(regmap, reg, raw) || in intel_crc_pmic_update_aux() [all …]
|
/drivers/reset/hisilicon/ |
D | hi6220_reset.c | 43 struct regmap *regmap; member 50 struct regmap *regmap = data->regmap; in hi6220_peripheral_assert() local 55 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_assert() 62 struct regmap *regmap = data->regmap; in hi6220_peripheral_deassert() local 67 return regmap_write(regmap, reg, BIT(offset)); in hi6220_peripheral_deassert() 79 struct regmap *regmap = data->regmap; in hi6220_media_assert() local 81 return regmap_write(regmap, SC_MEDIA_RSTEN, BIT(idx)); in hi6220_media_assert() 88 struct regmap *regmap = data->regmap; in hi6220_media_deassert() local 90 return regmap_write(regmap, SC_MEDIA_RSTDIS, BIT(idx)); in hi6220_media_deassert() 104 struct regmap *regmap; in hi6220_reset_probe() local [all …]
|
/drivers/input/misc/ |
D | pmic8xxx-pwrkey.c | 87 struct regmap *regmap; member 158 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); in pmic8xxx_pwrkey_shutdown() 167 static int pm8058_disable_smps_locally_set_pull_down(struct regmap *regmap, in pm8058_disable_smps_locally_set_pull_down() argument 176 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 180 error = regmap_read(regmap, test2_addr, ®); in pm8058_disable_smps_locally_set_pull_down() 188 error = regmap_read(regmap, ctrl_addr, ®); in pm8058_disable_smps_locally_set_pull_down() 219 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 223 error = regmap_update_bits(regmap, test2_addr, in pm8058_disable_smps_locally_set_pull_down() 233 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 237 error = regmap_update_bits(regmap, test2_addr, in pm8058_disable_smps_locally_set_pull_down() [all …]
|
/drivers/watchdog/ |
D | uniphier_wdt.c | 57 struct regmap *regmap; member 70 ret = regmap_write_bits(wdev->regmap, WDTCTRL, in uniphier_watchdog_ping() 77 ret = regmap_read_poll_timeout(wdev->regmap, WDTCTRL, val, in uniphier_watchdog_ping() 84 static int __uniphier_watchdog_start(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_start() argument 89 ret = regmap_read_poll_timeout(regmap, WDTCTRL, val, in __uniphier_watchdog_start() 96 ret = regmap_write(regmap, WDTTIMSET, in __uniphier_watchdog_start() 102 ret = regmap_write(regmap, WDTCTRL, WDTCTRL_ENABLE | WDTCTRL_CLEAR); in __uniphier_watchdog_start() 108 ret = regmap_read_poll_timeout(regmap, WDTCTRL, val, in __uniphier_watchdog_start() 115 static int __uniphier_watchdog_stop(struct regmap *regmap) in __uniphier_watchdog_stop() argument 118 return regmap_write_bits(regmap, WDTCTRL, WDTCTRL_ENABLE, 0); in __uniphier_watchdog_stop() [all …]
|
/drivers/media/dvb-frontends/ |
D | mn88473.c | 117 ret = regmap_write(dev->regmap[2], 0x05, 0x00); in mn88473_set_frontend() 120 ret = regmap_write(dev->regmap[2], 0xfb, 0x13); in mn88473_set_frontend() 123 ret = regmap_write(dev->regmap[2], 0xef, 0x13); in mn88473_set_frontend() 126 ret = regmap_write(dev->regmap[2], 0xf9, 0x13); in mn88473_set_frontend() 129 ret = regmap_write(dev->regmap[2], 0x00, 0x18); in mn88473_set_frontend() 132 ret = regmap_write(dev->regmap[2], 0x01, 0x01); in mn88473_set_frontend() 135 ret = regmap_write(dev->regmap[2], 0x02, 0x21); in mn88473_set_frontend() 138 ret = regmap_write(dev->regmap[2], 0x03, delivery_system_val); in mn88473_set_frontend() 141 ret = regmap_write(dev->regmap[2], 0x0b, 0x00); in mn88473_set_frontend() 146 ret = regmap_write(dev->regmap[2], 0x10 + i, if_val[i]); in mn88473_set_frontend() [all …]
|
D | mn88472.c | 42 ret = regmap_read(dev->regmap[0], 0x7f, &utmp); in mn88472_read_status() 52 ret = regmap_read(dev->regmap[2], 0x92, &utmp); in mn88472_read_status() 67 ret = regmap_read(dev->regmap[1], 0x84, &utmp); in mn88472_read_status() 84 ret = regmap_bulk_read(dev->regmap[2], 0x8e + i, in mn88472_read_status() 102 ret = regmap_bulk_read(dev->regmap[0], 0x9c, buf, 2); in mn88472_read_status() 124 ret = regmap_bulk_read(dev->regmap[2], 0xbc + i, in mn88472_read_status() 158 ret = regmap_bulk_read(dev->regmap[1], 0xa1, buf, 4); in mn88472_read_status() 184 ret = regmap_bulk_read(dev->regmap[0], 0xe1, buf, 4); in mn88472_read_status() 308 ret = regmap_write(dev->regmap[2], 0x00, 0x66); in mn88472_set_frontend() 311 ret = regmap_write(dev->regmap[2], 0x01, 0x00); in mn88472_set_frontend() [all …]
|
D | rtl2832_sdr.c | 123 struct regmap *regmap; member 521 ret = regmap_bulk_write(dev->regmap, 0x13e, "\x00\x00", 2); in rtl2832_sdr_set_adc() 525 ret = regmap_bulk_write(dev->regmap, 0x115, "\x00\x00\x00\x00", 4); in rtl2832_sdr_set_adc() 551 ret = regmap_bulk_write(dev->regmap, 0x119, buf, 3); in rtl2832_sdr_set_adc() 565 ret = regmap_write(dev->regmap, 0x1b1, u8tmp1); in rtl2832_sdr_set_adc() 569 ret = regmap_write(dev->regmap, 0x008, u8tmp2); in rtl2832_sdr_set_adc() 573 ret = regmap_write(dev->regmap, 0x006, 0x80); in rtl2832_sdr_set_adc() 584 ret = regmap_bulk_write(dev->regmap, 0x19f, buf, 4); in rtl2832_sdr_set_adc() 589 ret = regmap_bulk_write(dev->regmap, 0x11c, in rtl2832_sdr_set_adc() 595 ret = regmap_bulk_write(dev->regmap, 0x017, "\x11\x10", 2); in rtl2832_sdr_set_adc() [all …]
|
D | ts2020.c | 34 struct regmap *regmap; member 80 ret = regmap_write(priv->regmap, u8tmp, 0x00); in ts2020_sleep() 98 regmap_write(priv->regmap, 0x42, 0x73); in ts2020_init() 99 regmap_write(priv->regmap, 0x05, priv->clk_out_div); in ts2020_init() 100 regmap_write(priv->regmap, 0x20, 0x27); in ts2020_init() 101 regmap_write(priv->regmap, 0x07, 0x02); in ts2020_init() 102 regmap_write(priv->regmap, 0x11, 0xff); in ts2020_init() 103 regmap_write(priv->regmap, 0x60, 0xf9); in ts2020_init() 104 regmap_write(priv->regmap, 0x08, 0x01); in ts2020_init() 105 regmap_write(priv->regmap, 0x00, 0x41); in ts2020_init() [all …]
|
/drivers/mfd/ |
D | syscon.c | 35 struct regmap *regmap; member 48 struct regmap *regmap; in of_syscon_register() local 94 regmap = regmap_init_mmio(NULL, base, &syscon_config); in of_syscon_register() 95 if (IS_ERR(regmap)) { in of_syscon_register() 97 ret = PTR_ERR(regmap); in of_syscon_register() 101 syscon->regmap = regmap; in of_syscon_register() 117 struct regmap *syscon_node_to_regmap(struct device_node *np) in syscon_node_to_regmap() 137 return syscon->regmap; in syscon_node_to_regmap() 141 struct regmap *syscon_regmap_lookup_by_compatible(const char *s) in syscon_regmap_lookup_by_compatible() 144 struct regmap *regmap; in syscon_regmap_lookup_by_compatible() local [all …]
|
D | atmel-smc.c | 247 void atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, in atmel_smc_cs_conf_apply() argument 250 regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup); in atmel_smc_cs_conf_apply() 251 regmap_write(regmap, ATMEL_SMC_PULSE(cs), conf->pulse); in atmel_smc_cs_conf_apply() 252 regmap_write(regmap, ATMEL_SMC_CYCLE(cs), conf->cycle); in atmel_smc_cs_conf_apply() 253 regmap_write(regmap, ATMEL_SMC_MODE(cs), conf->mode); in atmel_smc_cs_conf_apply() 267 void atmel_hsmc_cs_conf_apply(struct regmap *regmap, in atmel_hsmc_cs_conf_apply() argument 271 regmap_write(regmap, ATMEL_HSMC_SETUP(layout, cs), conf->setup); in atmel_hsmc_cs_conf_apply() 272 regmap_write(regmap, ATMEL_HSMC_PULSE(layout, cs), conf->pulse); in atmel_hsmc_cs_conf_apply() 273 regmap_write(regmap, ATMEL_HSMC_CYCLE(layout, cs), conf->cycle); in atmel_hsmc_cs_conf_apply() 274 regmap_write(regmap, ATMEL_HSMC_TIMINGS(layout, cs), conf->timings); in atmel_hsmc_cs_conf_apply() [all …]
|
/drivers/clk/qcom/ |
D | clk-pll.c | 39 ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_enable() 48 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_BYPASSNL, in clk_pll_enable() 60 ret = regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_RESET_N, in clk_pll_enable() 69 return regmap_update_bits(pll->clkr.regmap, pll->mode_reg, PLL_OUTCTRL, in clk_pll_enable() 79 regmap_read(pll->clkr.regmap, pll->mode_reg, &val); in clk_pll_disable() 84 regmap_update_bits(pll->clkr.regmap, pll->mode_reg, mask, 0); in clk_pll_disable() 95 regmap_read(pll->clkr.regmap, pll->l_reg, &l); in clk_pll_recalc_rate() 96 regmap_read(pll->clkr.regmap, pll->m_reg, &m); in clk_pll_recalc_rate() 97 regmap_read(pll->clkr.regmap, pll->n_reg, &n); in clk_pll_recalc_rate() 111 regmap_read(pll->clkr.regmap, pll->config_reg, &config); in clk_pll_recalc_rate() [all …]
|
/drivers/power/supply/ |
D | act8945a_charger.c | 82 struct regmap *regmap; member 90 static int act8945a_get_charger_state(struct regmap *regmap, int *val) in act8945a_get_charger_state() argument 95 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_charger_state() 99 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_charger_state() 129 static int act8945a_get_charge_type(struct regmap *regmap, int *val) in act8945a_get_charge_type() argument 134 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_charge_type() 138 ret = regmap_read(regmap, ACT8945A_APCH_STATE, &state); in act8945a_get_charge_type() 167 static int act8945a_get_battery_health(struct regmap *regmap, int *val) in act8945a_get_battery_health() argument 172 ret = regmap_read(regmap, ACT8945A_APCH_STATUS, &status); in act8945a_get_battery_health() 176 ret = regmap_read(regmap, ACT8945A_APCH_CFG, &config); in act8945a_get_battery_health() [all …]
|
/drivers/devfreq/event/ |
D | exynos-ppmu.c | 36 struct regmap *regmap; member 115 ret = regmap_write(info->regmap, PPMU_CNTENC, in exynos_ppmu_disable() 125 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_disable() 130 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_disable() 148 ret = regmap_read(info->regmap, PPMU_CNTENS, &cntens); in exynos_ppmu_set_event() 153 ret = regmap_write(info->regmap, PPMU_CNTENS, cntens); in exynos_ppmu_set_event() 158 ret = regmap_write(info->regmap, PPMU_BEVTxSEL(id), in exynos_ppmu_set_event() 164 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_set_event() 174 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_set_event() 195 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_get_event() [all …]
|
D | exynos-nocp.c | 28 struct regmap *regmap; member 41 ret = regmap_update_bits(nocp->regmap, NOCP_MAIN_CTL, in exynos_nocp_set_event() 49 ret = regmap_write(nocp->regmap, NOCP_STAT_PERIOD, 0x0); in exynos_nocp_set_event() 54 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_0_SRC, in exynos_nocp_set_event() 60 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_1_SRC, in exynos_nocp_set_event() 66 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_2_SRC, in exynos_nocp_set_event() 72 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_3_SRC, in exynos_nocp_set_event() 80 ret = regmap_write(nocp->regmap, NOCP_STAT_ALARM_MIN, 0x0); in exynos_nocp_set_event() 84 ret = regmap_write(nocp->regmap, NOCP_STAT_ALARM_MAX, 0x0); in exynos_nocp_set_event() 89 ret = regmap_update_bits(nocp->regmap, NOCP_COUNTERS_0_ALARM_MODE, in exynos_nocp_set_event() [all …]
|
/drivers/rtc/ |
D | rtc-ds3232.c | 54 struct regmap *regmap; member 67 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_check_rtc_status() 78 ret = regmap_write(ds3232->regmap, DS3232_REG_SR, stat); in ds3232_check_rtc_status() 87 ret = regmap_read(ds3232->regmap, DS3232_REG_CR, &control); in ds3232_check_rtc_status() 94 return regmap_write(ds3232->regmap, DS3232_REG_CR, control); in ds3232_check_rtc_status() 106 ret = regmap_bulk_read(ds3232->regmap, DS3232_REG_SECONDS, buf, 7); in ds3232_read_time() 173 return regmap_bulk_write(ds3232->regmap, DS3232_REG_SECONDS, buf, 7); in ds3232_set_time() 188 ret = regmap_read(ds3232->regmap, DS3232_REG_SR, &stat); in ds3232_read_alarm() 191 ret = regmap_read(ds3232->regmap, DS3232_REG_CR, &control); in ds3232_read_alarm() 194 ret = regmap_bulk_read(ds3232->regmap, DS3232_REG_ALARM1, buf, 4); in ds3232_read_alarm() [all …]
|
/drivers/hwmon/ |
D | tmp103.c | 69 struct regmap *regmap = dev_get_drvdata(dev); in tmp103_show_temp() local 73 ret = regmap_read(regmap, sda->index, ®val); in tmp103_show_temp() 85 struct regmap *regmap = dev_get_drvdata(dev); in tmp103_set_temp() local 93 ret = regmap_write(regmap, sda->index, tmp103_mc_to_reg(val)); in tmp103_set_temp() 131 struct regmap *regmap; in tmp103_probe() local 134 regmap = devm_regmap_init_i2c(client, &tmp103_regmap_config); in tmp103_probe() 135 if (IS_ERR(regmap)) { in tmp103_probe() 137 return PTR_ERR(regmap); in tmp103_probe() 140 ret = regmap_update_bits(regmap, TMP103_CONF_REG, TMP103_CONFIG_MASK, in tmp103_probe() 147 i2c_set_clientdata(client, regmap); in tmp103_probe() [all …]
|
D | lm95245.c | 110 struct regmap *regmap; member 133 ret = regmap_read(data->regmap, LM95245_REG_RW_CONVERS_RATE, &rate); in lm95245_read_conversion_rate() 173 ret = regmap_write(data->regmap, LM95245_REG_RW_CONVERS_RATE, rate); in lm95245_set_conversion_rate() 185 struct regmap *regmap = data->regmap; in lm95245_read_temp() local 194 ret = regmap_read(regmap, regl, ®vall); in lm95245_read_temp() 197 ret = regmap_read(regmap, regh, ®valh); in lm95245_read_temp() 210 ret = regmap_read(regmap, LM95245_REG_R_REMOTE_TEMPL_U, in lm95245_read_temp() 214 ret = regmap_read(regmap, LM95245_REG_R_REMOTE_TEMPH_U, in lm95245_read_temp() 221 ret = regmap_read(regmap, LM95245_REG_RW_REMOTE_OS_LIMIT, in lm95245_read_temp() 230 ret = regmap_read(regmap, regh, ®valh); in lm95245_read_temp() [all …]
|
/drivers/pwm/ |
D | pwm-stm32.c | 26 struct regmap *regmap; member 46 regmap_read(dev->regmap, TIM_CCER, &ccer); in active_channels() 55 return regmap_write(dev->regmap, TIM_CCR1, value); in write_ccrx() 57 return regmap_write(dev->regmap, TIM_CCR2, value); in write_ccrx() 59 return regmap_write(dev->regmap, TIM_CCR3, value); in write_ccrx() 61 return regmap_write(dev->regmap, TIM_CCR4, value); in write_ccrx() 97 regmap_read(priv->regmap, TIM_PSC, &psc); in stm32_pwm_config() 98 regmap_read(priv->regmap, TIM_ARR, &arr); in stm32_pwm_config() 104 regmap_write(priv->regmap, TIM_PSC, prescaler); in stm32_pwm_config() 105 regmap_write(priv->regmap, TIM_ARR, prd - 1); in stm32_pwm_config() [all …]
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_audio.c | 43 regmap_write(adv7511->regmap, ADV7511_REG_N0, (n >> 16) & 0xf); in adv7511_update_cts_n() 44 regmap_write(adv7511->regmap, ADV7511_REG_N1, (n >> 8) & 0xff); in adv7511_update_cts_n() 45 regmap_write(adv7511->regmap, ADV7511_REG_N2, n & 0xff); in adv7511_update_cts_n() 47 regmap_write(adv7511->regmap, ADV7511_REG_CTS_MANUAL0, in adv7511_update_cts_n() 49 regmap_write(adv7511->regmap, ADV7511_REG_CTS_MANUAL1, in adv7511_update_cts_n() 51 regmap_write(adv7511->regmap, ADV7511_REG_CTS_MANUAL2, in adv7511_update_cts_n() 129 regmap_update_bits(adv7511->regmap, ADV7511_REG_AUDIO_SOURCE, 0x70, in adv7511_hdmi_hw_params() 131 regmap_update_bits(adv7511->regmap, ADV7511_REG_AUDIO_CONFIG, BIT(6), in adv7511_hdmi_hw_params() 133 regmap_update_bits(adv7511->regmap, ADV7511_REG_I2S_CONFIG, 0x03, in adv7511_hdmi_hw_params() 142 regmap_update_bits(adv7511->regmap, ADV7511_REG_AUDIO_CFG3, in adv7511_hdmi_hw_params() [all …]
|