Home
last modified time | relevance | path

Searched refs:twl_i2c_write_u8 (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.4/drivers/mfd/
Dtwl4030-power.c191 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_MEMORY_ADDRESS); in twl4030_write_script_byte()
194 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, byte, R_MEMORY_DATA); in twl4030_write_script_byte()
250 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_S2A3); in twl4030_config_wakeup3_sequence()
259 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P3_SW_EVENTS); in twl4030_config_wakeup3_sequence()
274 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_S2A12); in twl4030_config_wakeup12_sequence()
284 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P1_SW_EVENTS); in twl4030_config_wakeup12_sequence()
293 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, R_P2_SW_EVENTS); in twl4030_config_wakeup12_sequence()
305 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, data, in twl4030_config_wakeup12_sequence()
323 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_A2S); in twl4030_config_sleep_sequence()
337 err = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, address, R_SEQ_ADD_WARM); in twl4030_config_warmreset_sequence()
[all …]
Dtwl6030-irq.c210 ret = twl_i2c_write_u8(TWL_MODULE_PIH, 0x00, REG_INT_STS_A); in twl6030_irq_thread()
239 ret |= twl_i2c_write_u8(TWL_MODULE_PIH, unmask_value, in twl6030_interrupt_unmask()
253 ret |= twl_i2c_write_u8(TWL_MODULE_PIH, mask_value, in twl6030_interrupt_mask()
280 ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, reg_val, TWL6030_MMCCTRL); in twl6030_mmc_card_detect_config()
295 ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, reg_val, in twl6030_mmc_card_detect_config()
Dtwl-core.c519 err = twl_i2c_write_u8(TWL4030_MODULE_INTBR, TWL_EEPROM_R_UNLOCK, in twl_read_idcode_register()
533 err = twl_i2c_write_u8(TWL4030_MODULE_INTBR, 0x0, REG_UNLOCK_TEST_REG); in twl_read_idcode_register()
973 e = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, 0, in protect_pm_master()
982 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG1, in unprotect_pm_master()
984 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG2, in unprotect_pm_master()
1026 e |= twl_i2c_write_u8(TWL_MODULE_PM_MASTER, ctrl, R_CFG_BOOT); in clocks_init()
1207 twl_i2c_write_u8(TWL4030_MODULE_INTBR, temp, REG_GPPUPDCTR1); in twl_probe()
1212 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, temp, in twl_probe()
Dtwl4030-audio.c57 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in twl4030_audio_set_resource()
215 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, val, TWL4030_REG_APLL_CTL); in twl4030_audio_probe()
Dtwl4030-irq.c354 status = twl_i2c_write_u8(sih->module, in twl4030_init_sih_modules()
/Linux-v5.4/drivers/video/backlight/
Dpandora_bl.c63 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
65 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
75 twl_i2c_write_u8(TWL_MODULE_PWM, MAX_VALUE, TWL_PWM0_OFF); in pandora_backlight_update_status()
81 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
83 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_GPBR1); in pandora_backlight_update_status()
93 twl_i2c_write_u8(TWL_MODULE_PWM, MIN_VALUE + brightness, TWL_PWM0_OFF); in pandora_backlight_update_status()
135 twl_i2c_write_u8(TWL_MODULE_PWM, 0x80, TWL_PWM0_ON); in pandora_backlight_probe()
145 twl_i2c_write_u8(TWL4030_MODULE_INTBR, r, TWL_INTBR_PMBR1); in pandora_backlight_probe()
/Linux-v5.4/drivers/pwm/
Dpwm-twl.c109 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_enable()
115 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_enable()
139 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_disable()
145 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_GPBR1_REG); in twl4030_pwm_disable()
182 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_PMBR1_REG); in twl4030_pwm_request()
213 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, val, TWL4030_PMBR1_REG); in twl4030_pwm_free()
232 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_enable()
255 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
263 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
271 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_TOGGLE3_REG); in twl6030_pwm_disable()
Dpwm-twl-led.c107 ret = twl_i2c_write_u8(TWL4030_MODULE_LED, val, TWL4030_LEDEN_REG); in twl4030_pwmled_enable()
132 ret = twl_i2c_write_u8(TWL4030_MODULE_LED, val, TWL4030_LEDEN_REG); in twl4030_pwmled_disable()
149 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, on_time, in twl6030_pwmled_config()
174 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_enable()
201 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_disable()
226 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_request()
252 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, val, TWL6030_LED_PWM_CTRL2); in twl6030_pwmled_free()
/Linux-v5.4/drivers/power/supply/
Dtwl4030_charger.c169 return twl_i2c_write_u8(mod_no, val, reg); in twl4030_clear_set()
320 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xF4, in twl4030_charger_update_current()
324 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
341 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
345 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
368 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
372 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
379 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0xE7, in twl4030_charger_update_current()
383 status = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
390 twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_charger_update_current()
[all …]
/Linux-v5.4/drivers/phy/ti/
Dphy-twl4030-usb.c179 if ((twl_i2c_write_u8(module, data, address) >= 0) && in twl4030_i2c_write_u8_verify()
187 if ((twl_i2c_write_u8(module, data, address) >= 0) && in twl4030_i2c_write_u8_verify()
206 ret = twl_i2c_write_u8(TWL_MODULE_USB, data, address); in twl4030_usb_write()
450 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB_DEDICATED2); in twl4030_usb_runtime_resume()
501 twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG1, in twl4030_usb_ldo_init()
504 twl_i2c_write_u8(TWL_MODULE_PM_MASTER, TWL4030_PM_MASTER_KEY_CFG2, in twl4030_usb_ldo_init()
511 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0x14, VUSB_DEDICATED1); in twl4030_usb_ldo_init()
514 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB3V1_DEV_GRP); in twl4030_usb_ldo_init()
520 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB3V1_TYPE); in twl4030_usb_ldo_init()
523 twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, 0, VUSB1V5_DEV_GRP); in twl4030_usb_ldo_init()
[all …]
/Linux-v5.4/drivers/input/misc/
Dtwl4030-vibra.c48 twl_i2c_write_u8(TWL4030_MODULE_LED, LEDEN, reg); in vibra_disable_leds()
61 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_enable()
76 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_disable()
108 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_play_work()
112 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, in vibra_play_work()
/Linux-v5.4/drivers/iio/adc/
Dtwl4030-madc.c460 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, val, madc->imr); in twl4030_madc_disable_irq()
557 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, TWL4030_MADC_SW_START, in twl4030_madc_start_conversion()
705 ret = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_madc_set_current_generator()
738 ret = twl_i2c_write_u8(TWL4030_MODULE_MADC, regval, TWL4030_MADC_CTRL1); in twl4030_madc_set_power()
813 ret = twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, in twl4030_madc_probe()
833 ret = twl_i2c_write_u8(TWL4030_MODULE_INTBR, regval, in twl4030_madc_probe()
865 ret = twl_i2c_write_u8(TWL_MODULE_USB, regval, in twl4030_madc_probe()
Dtwl6030-gpadc.c342 return twl_i2c_write_u8(TWL6030_MODULE_GPADC, val, reg); in twl6030_gpadc_write()
921 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCS, in twl6030_gpadc_probe()
953 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCR, in twl6030_gpadc_suspend()
965 ret = twl_i2c_write_u8(TWL6030_MODULE_ID1, TWL6030_GPADCS, in twl6030_gpadc_resume()
/Linux-v5.4/drivers/regulator/
Dtwl-regulator.c90 return twl_i2c_write_u8(slave_subgp, in twlreg_write()
167 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val | PB_I2C_BWEN, in twl4030_send_pb_msg()
176 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg >> 8, in twl4030_send_pb_msg()
181 ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg & 0xff, in twl4030_send_pb_msg()
191 return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, in twl4030_send_pb_msg()
Dtwl6030-regulator.c101 return twl_i2c_write_u8(slave_subgp, in twlreg_write()
/Linux-v5.4/drivers/gpio/
Dgpio-twl4030.c71 return twl_i2c_write_u8(TWL4030_MODULE_GPIO, data, address); in gpio_twl4030_write()
133 WARN_ON_ONCE(twl_i2c_write_u8(TWL4030_MODULE_LED, cached_leden, in twl4030_led_set_value()
226 status = twl_i2c_write_u8(TWL4030_MODULE_LED, 0x7f, reg + 1); in twl_request()
231 status = twl_i2c_write_u8(TWL4030_MODULE_LED, 0x7f, reg); in twl_request()
241 status = twl_i2c_write_u8(TWL4030_MODULE_LED, cached_leden, in twl_request()
/Linux-v5.4/drivers/watchdog/
Dtwl4030_wdt.c25 return twl_i2c_write_u8(TWL_MODULE_PM_RECEIVER, val, in twl4030_wdt_write()
/Linux-v5.4/sound/soc/codecs/
Dtwl4030.c160 return twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, value, reg); in twl4030_write()
272 twl_i2c_write_u8(TWL4030_MODULE_INTBR, pin_mux, in twl4030_init_chip()
566 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, 0, reg); \
722 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, hs_gain, in headset_ramp()
736 twl_i2c_write_u8(TWL4030_MODULE_AUDIO_VOICE, hs_gain & (~0x0f), in headset_ramp()
/Linux-v5.4/drivers/input/keyboard/
Dtwl4030_keypad.c140 int ret = twl_i2c_write_u8(TWL4030_MODULE_KEYPAD, data, reg); in twl4030_kpwrite_u8()
/Linux-v5.4/drivers/usb/phy/
Dphy-twl6030-usb.c109 ret = twl_i2c_write_u8(module, data, address); in twl6030_writeb()
/Linux-v5.4/include/linux/mfd/
Dtwl.h175 static inline int twl_i2c_write_u8(u8 mod_no, u8 val, u8 reg) { in twl_i2c_write_u8() function
/Linux-v5.4/drivers/rtc/
Drtc-twl.c175 ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (twl_rtc->reg_map[reg])); in twl_rtc_write_u8()