Home
last modified time | relevance | path

Searched refs:regmap_write_bits (Results 1 – 25 of 75) sorted by relevance

123

/openbmc/linux/drivers/media/tuners/
H A Dtda18250.c25 ret = regmap_write_bits(dev->regmap, R06_POWER2, 0x07, 0x00); in tda18250_power_control()
28 ret = regmap_write_bits(dev->regmap, R25_REF, 0xc0, 0xc0); in tda18250_power_control()
34 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
38 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
42 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
47 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
51 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
59 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
63 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
67 ret = regmap_write_bits(dev->regmap, in tda18250_power_control()
[all …]
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dite-it66121.c391 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_XP_REG, in it66121_configure_afe()
398 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, in it66121_configure_afe()
406 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, in it66121_configure_afe()
411 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_XP_EC1_REG, in it66121_configure_afe()
417 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_XP_REG, in it66121_configure_afe()
424 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, in it66121_configure_afe()
432 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_IP_REG, in it66121_configure_afe()
438 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_XP_EC1_REG, in it66121_configure_afe()
447 ret = regmap_write_bits(ctx->regmap, IT66121_SW_RST_REG, in it66121_configure_afe()
453 ret = regmap_write_bits(ctx->regmap, IT66121_AFE_XP_REG, in it66121_configure_afe()
[all …]
/openbmc/linux/drivers/thermal/
H A Duniphier_thermal.c96 regmap_write_bits(map, tdev->data->block_base + PVTCTLEN, in uniphier_tm_initialize_sensor()
124 regmap_write_bits(map, tdev->data->block_base + PVTCTLMODE, in uniphier_tm_initialize_sensor()
128 regmap_write_bits(map, tdev->data->block_base + EMONREPEAT, in uniphier_tm_initialize_sensor()
133 regmap_write_bits(map, tdev->data->map_base + PVTCTLSEL, in uniphier_tm_initialize_sensor()
145 regmap_write_bits(map, tdev->data->map_base + SETALERT0 + (ch << 2), in uniphier_tm_set_alert()
162 regmap_write_bits(map, tdev->data->map_base + PMALERTINTCTL, in uniphier_tm_enable_sensor()
166 regmap_write_bits(map, tdev->data->block_base + PVTCTLEN, in uniphier_tm_enable_sensor()
177 regmap_write_bits(map, tdev->data->map_base + PMALERTINTCTL, in uniphier_tm_disable_sensor()
181 regmap_write_bits(map, tdev->data->block_base + PVTCTLEN, in uniphier_tm_disable_sensor()
219 regmap_write_bits(tdev->regmap, in uniphier_tm_irq_clear()
/openbmc/linux/drivers/phy/ti/
H A Dphy-da8xx-usb.c39 regmap_write_bits(d_phy->regmap, CFGCHIP(2), CFGCHIP2_USB1SUSPENDM, in da8xx_usb11_phy_power_on()
49 regmap_write_bits(d_phy->regmap, CFGCHIP(2), CFGCHIP2_USB1SUSPENDM, 0); in da8xx_usb11_phy_power_off()
71 regmap_write_bits(d_phy->regmap, CFGCHIP(2), CFGCHIP2_OTGPWRDN, 0); in da8xx_usb20_phy_power_on()
80 regmap_write_bits(d_phy->regmap, CFGCHIP(2), CFGCHIP2_OTGPWRDN, in da8xx_usb20_phy_power_off()
108 regmap_write_bits(d_phy->regmap, CFGCHIP(2), CFGCHIP2_OTGMODE_MASK, in da8xx_usb20_phy_set_mode()
208 regmap_write_bits(d_phy->regmap, CFGCHIP(2), in da8xx_usb_phy_probe()
/openbmc/linux/drivers/power/supply/
H A Drk817_charger.c372 regmap_write_bits(charger->rk808->regmap, in rk817_read_props()
630 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_plug_out_isr()
632 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_VLIM_EN, in rk817_plug_out_isr()
639 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_plug_out_isr()
641 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_ILIM_EN, in rk817_plug_out_isr()
791 regmap_write_bits(rk808->regmap, RK817_GAS_GAUGE_GG_STS, in rk817_read_or_set_full_charge_on_boot()
909 regmap_write_bits(rk808->regmap, RK817_GAS_GAUGE_GG_STS, in rk817_battery_init()
971 ret = regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_OUT, in rk817_battery_init()
979 ret = regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_OUT, in rk817_battery_init()
988 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_TERM, in rk817_battery_init()
[all …]
/openbmc/linux/drivers/misc/
H A Dtps6594-pfsm.c147 ret = regmap_write_bits(pfsm->regmap, TPS6594_REG_FSM_I2C_TRIGGERS, in tps6594_pfsm_ioctl()
158 ret = regmap_write_bits(pfsm->regmap, TPS6594_REG_FSM_I2C_TRIGGERS, in tps6594_pfsm_ioctl()
163 ret = regmap_write_bits(pfsm->regmap, TPS6594_REG_FSM_I2C_TRIGGERS, in tps6594_pfsm_ioctl()
196 ret = regmap_write_bits(pfsm->regmap, TPS6594_REG_RTC_CTRL_2, in tps6594_pfsm_ioctl()
200 ret = regmap_write_bits(pfsm->regmap, TPS6594_REG_RTC_CTRL_2, in tps6594_pfsm_ioctl()
/openbmc/linux/drivers/clk/davinci/
H A Dda8xx-cfgchip.c46 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()
218 return regmap_write_bits(clk->regmap, clk->reg, clk->mask, val); in da8xx_cfgchip_mux_clk_set_parent()
391 regmap_write_bits(usb0->regmap, CFGCHIP(2), mask, val); in da8xx_usb0_clk48_enable()
406 regmap_write_bits(usb0->regmap, CFGCHIP(2), val, val); in da8xx_usb0_clk48_disable()
459 regmap_write_bits(usb0->regmap, CFGCHIP(2), mask, val); in da8xx_usb0_clk48_recalc_rate()
477 return regmap_write_bits(usb0->regmap, CFGCHIP(2), in da8xx_usb0_clk48_set_parent()
554 return regmap_write_bits(usb1->regmap, CFGCHIP(2), in da8xx_usb1_clk48_set_parent()
H A Dpsc.c114 regmap_write_bits(lpsc->regmap, MDCTL(lpsc->md), MDSTAT_STATE_MASK, in davinci_lpsc_config()
118 regmap_write_bits(lpsc->regmap, MDCTL(lpsc->md), MDCTL_FORCE, in davinci_lpsc_config()
123 regmap_write_bits(lpsc->regmap, PDCTL(lpsc->pd), PDCTL_NEXT, in davinci_lpsc_config()
131 regmap_write_bits(lpsc->regmap, PDCTL(lpsc->pd), PDCTL_EPCGOOD, in davinci_lpsc_config()
301 regmap_write_bits(lpsc->regmap, MDCTL(lpsc->md), MDCTL_LRESET, mdctl); in davinci_lpsc_clk_reset()
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-tusb320.c128 ret = regmap_write_bits(priv->regmap, TUSB320_REGA, in tusb320_set_mode()
144 ret = regmap_write_bits(priv->regmap, TUSB320_REGA, in tusb320l_set_mode()
153 ret = regmap_write_bits(priv->regmap, TUSB320_REGA, in tusb320l_set_mode()
164 ret = regmap_write_bits(priv->regmap, TUSB320_REGA, in tusb320l_set_mode()
186 ret = regmap_write_bits(priv->regmap, TUSB320_REGA, in tusb320_reset()
227 return regmap_write_bits(priv->regmap, TUSB320_REG8, in tusb320_set_adv_pwr_mode()
/openbmc/linux/drivers/irqchip/
H A Dirq-aspeed-scu-ic.c80 regmap_write_bits(scu_ic->scu, scu_ic->reg, mask, in aspeed_scu_ic_irq_handler()
159 regmap_write_bits(scu_ic->scu, scu_ic->reg, ASPEED_SCU_IC_STATUS, ASPEED_SCU_IC_STATUS); in aspeed_scu_ic_of_init_common()
160 regmap_write_bits(scu_ic->scu, scu_ic->reg, ASPEED_SCU_IC_ENABLE, 0); in aspeed_scu_ic_of_init_common()
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-sx150x.c423 return regmap_write_bits(pctl->regmap, pctl->data->reg_data, in __sx150x_gpio_set()
452 regmap_write_bits(pctl->regmap, pctl->data->reg_data, *mask, *bits); in sx150x_gpio_set_multiple()
463 return regmap_write_bits(pctl->regmap, in sx150x_gpio_direction_input()
481 return regmap_write_bits(pctl->regmap, in sx150x_gpio_direction_output()
760 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
766 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
775 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
784 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
797 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
810 ret = regmap_write_bits(pctl->regmap, in sx150x_pinconf_set()
H A Dpinctrl-stmfx.c123 regmap_write_bits(pctl->stmfx->map, reg + get_reg(offset), in stmfx_gpio_set()
154 return regmap_write_bits(pctl->stmfx->map, reg, mask, 0); in stmfx_gpio_direction_input()
166 return regmap_write_bits(pctl->stmfx->map, reg, mask, mask); in stmfx_gpio_direction_output()
189 return regmap_write_bits(pctl->stmfx->map, reg, mask, pupd ? mask : 0); in stmfx_pinconf_set_pupd()
212 return regmap_write_bits(pctl->stmfx->map, reg, mask, type ? mask : 0); in stmfx_pinconf_set_type()
553 regmap_write_bits(pctl->stmfx->map, in stmfx_pinctrl_irq_toggle_trigger()
559 regmap_write_bits(pctl->stmfx->map, in stmfx_pinctrl_irq_toggle_trigger()
H A Dpinctrl-cy8c95x0.c573 ret = regmap_write_bits(chip->regmap, outreg, bit, val ? bit : 0); in cy8c95x0_gpio_direction_output()
609 regmap_write_bits(chip->regmap, outreg, bit, val ? bit : 0); in cy8c95x0_gpio_set_value()
787 ret = regmap_write_bits(chip->regmap, reg, bit, bit); in cy8c95x0_gpio_set_pincfg()
1114 return regmap_write_bits(chip->regmap, CY8C95X0_PWMSEL, bit, mode ? bit : 0); in cy8c95x0_set_mode()
1132 ret = regmap_write_bits(chip->regmap, CY8C95X0_DIRECTION, bit, bit); in cy8c95x0_pinmux_mode()
1136 return regmap_write_bits(chip->regmap, CY8C95X0_OUTPUT_(port), bit, bit); in cy8c95x0_pinmux_mode()
1179 ret = regmap_write_bits(chip->regmap, CY8C95X0_DIRECTION, bit, input ? bit : 0); in cy8c95x0_pinmux_direction()
1188 ret = regmap_write_bits(chip->regmap, CY8C95X0_DRV_HIZ, bit, bit); in cy8c95x0_pinmux_direction()
/openbmc/linux/drivers/clk/uniphier/
H A Dclk-uniphier-cpugear.c34 ret = regmap_write_bits(gear->regmap, in uniphier_clk_cpugear_set_parent()
40 ret = regmap_write_bits(gear->regmap, in uniphier_clk_cpugear_set_parent()
/openbmc/linux/drivers/gpu/drm/logicvc/
H A Dlogicvc_crtc.c196 regmap_write_bits(logicvc->regmap, LOGICVC_INT_STAT_REG, in logicvc_crtc_enable_vblank()
200 regmap_write_bits(logicvc->regmap, LOGICVC_INT_MASK_REG, in logicvc_crtc_enable_vblank()
211 regmap_write_bits(logicvc->regmap, LOGICVC_INT_MASK_REG, in logicvc_crtc_disable_vblank()
/openbmc/linux/drivers/gpu/drm/stm/
H A Dltdc.c810 regmap_write_bits(ldev->regmap, LTDC_L1CR + layer_index * LAY_OFS, in ltdc_crtc_atomic_disable()
1300 regmap_write_bits(ldev->regmap, LTDC_L1WHPCR + lofs, in ltdc_plane_atomic_update()
1305 regmap_write_bits(ldev->regmap, LTDC_L1WVPCR + lofs, in ltdc_plane_atomic_update()
1323 regmap_write_bits(ldev->regmap, LTDC_L1PFCR + lofs, LXPFCR_PF, val); in ltdc_plane_atomic_update()
1327 regmap_write_bits(ldev->regmap, LTDC_L1CACR + lofs, LXCACR_CONSTA, val); in ltdc_plane_atomic_update()
1341 regmap_write_bits(ldev->regmap, LTDC_L1BFCR + lofs, in ltdc_plane_atomic_update()
1344 regmap_write_bits(ldev->regmap, LTDC_L1BFCR + lofs, in ltdc_plane_atomic_update()
1371 regmap_write_bits(ldev->regmap, LTDC_L1CFBLR + lofs, LXCFBLR_CFBLL | LXCFBLR_CFBP, val); in ltdc_plane_atomic_update()
1375 regmap_write_bits(ldev->regmap, LTDC_L1CFBLNR + lofs, LXCFBLNR_CFBLN, line_number); in ltdc_plane_atomic_update()
1476 regmap_write_bits(ldev->regmap, LTDC_L1CR + lofs, LXCR_LEN | LXCR_CLUTEN | LXCR_HMEN, val); in ltdc_plane_atomic_update()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dmax11410.c565 ret = regmap_write_bits(st->regmap, MAX11410_REG_FILTER, in max11410_write_raw()
879 ret = regmap_write_bits(st->regmap, MAX11410_REG_FILTER, in max11410_self_calibrate()
890 ret = regmap_write_bits(st->regmap, MAX11410_REG_PGA, in max11410_self_calibrate()
899 ret = regmap_write_bits(st->regmap, MAX11410_REG_PGA, in max11410_self_calibrate()
910 ret = regmap_write_bits(st->regmap, MAX11410_REG_PGA, in max11410_self_calibrate()
915 ret = regmap_write_bits(st->regmap, MAX11410_REG_FILTER, in max11410_self_calibrate()
920 return regmap_write_bits(st->regmap, MAX11410_REG_PGA, in max11410_self_calibrate()
/openbmc/linux/drivers/reset/
H A Dreset-ti-syscon.c84 return regmap_write_bits(data->regmap, control->assert_offset, mask, value); in ti_syscon_reset_assert()
115 return regmap_write_bits(data->regmap, control->deassert_offset, mask, value); in ti_syscon_reset_deassert()
/openbmc/linux/drivers/watchdog/
H A Duniphier_wdt.c62 ret = regmap_write_bits(wdev->regmap, WDTCTRL, in uniphier_watchdog_ping()
110 return regmap_write_bits(regmap, WDTCTRL, WDTCTRL_ENABLE, 0); in __uniphier_watchdog_stop()
/openbmc/linux/drivers/clk/keystone/
H A Dsyscon-clk.c37 return regmap_write_bits(priv->regmap, priv->reg, priv->idx, in ti_syscon_gate_clk_enable()
45 regmap_write_bits(priv->regmap, priv->reg, priv->idx, 0); in ti_syscon_gate_clk_disable()
/openbmc/linux/drivers/iio/pressure/
H A Ddps310.c225 rc = regmap_write_bits(data->regmap, DPS310_CFG_REG, in dps310_startup()
231 rc = regmap_write_bits(data->regmap, DPS310_MEAS_CFG, in dps310_startup()
237 rc = regmap_write_bits(data->regmap, DPS310_MEAS_CFG, in dps310_startup()
297 rc = regmap_write_bits(data->regmap, DPS310_CFG_REG, in dps310_set_pres_precision()
316 rc = regmap_write_bits(data->regmap, DPS310_CFG_REG, in dps310_set_temp_precision()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_frontend.c84 regmap_write_bits(frontend->regs, SUN4I_FRONTEND_FRM_CTRL_REG, in sun4i_frontend_scaler_init()
104 regmap_write_bits(frontend->regs, in sun4i_frontend_scaler_init()
533 regmap_write_bits(frontend->regs, SUN4I_FRONTEND_FRM_CTRL_REG, in sun4i_frontend_update_coord()
541 regmap_write_bits(frontend->regs, SUN4I_FRONTEND_FRM_CTRL_REG, in sun4i_frontend_enable()
/openbmc/linux/drivers/char/hw_random/
H A Dks-sa-rng.c121 regmap_write_bits(ks_sa_rng->regmap_cfg, SA_CMD_STATUS_OFS, in ks_sa_rng_init()
161 regmap_write_bits(ks_sa_rng->regmap_cfg, SA_CMD_STATUS_OFS, in ks_sa_rng_cleanup()
/openbmc/linux/drivers/gpio/
H A Dgpio-pca953x.c525 ret = regmap_write_bits(chip->regmap, dirreg, bit, bit); in pca953x_gpio_direction_input()
541 ret = regmap_write_bits(chip->regmap, outreg, bit, val ? bit : 0); in pca953x_gpio_direction_output()
546 ret = regmap_write_bits(chip->regmap, dirreg, bit, 0); in pca953x_gpio_direction_output()
576 regmap_write_bits(chip->regmap, outreg, bit, val ? bit : 0); in pca953x_gpio_set_value()
658 ret = regmap_write_bits(chip->regmap, pull_sel_reg, bit, bit); in pca953x_gpio_set_pull_up_down()
660 ret = regmap_write_bits(chip->regmap, pull_sel_reg, bit, 0); in pca953x_gpio_set_pull_up_down()
668 ret = regmap_write_bits(chip->regmap, pull_en_reg, bit, 0); in pca953x_gpio_set_pull_up_down()
670 ret = regmap_write_bits(chip->regmap, pull_en_reg, bit, bit); in pca953x_gpio_set_pull_up_down()
/openbmc/linux/drivers/iio/light/
H A Dmax44000.c182 return regmap_write_bits(data->regmap, MAX44000_REG_CFG_RX, in max44000_write_alstim()
200 return regmap_write_bits(data->regmap, MAX44000_REG_CFG_RX, in max44000_write_alspga()
243 return regmap_write_bits(data->regmap, MAX44000_REG_CFG_TX, in max44000_write_led_current_raw()

123