Lines Matching refs:sc8551

725 struct sc8551 {  struct
777 static int __sc8551_read_byte(struct sc8551 *sc, u8 reg, u8 *data) in __sc8551_read_byte() argument
792 static int __sc8551_write_byte(struct sc8551 *sc, int reg, u8 val) in __sc8551_write_byte()
805 static int sc8551_read_byte(struct sc8551 *sc, u8 reg, u8 *data) in sc8551_read_byte()
816 static int sc8551_write_byte(struct sc8551 *sc, u8 reg, u8 data) in sc8551_write_byte()
827 static int sc8551_update_bits(struct sc8551 *sc, in sc8551_update_bits()
854 static int sc8551_enable_charge(struct sc8551 *sc, bool enable) in sc8551_enable_charge()
874 static int sc8551_check_charge_enabled(struct sc8551 *sc, bool *enabled) in sc8551_check_charge_enabled()
886 static int sc8551_enable_wdt(struct sc8551 *sc, bool enable) in sc8551_enable_wdt()
905 static int sc8551_set_wdt(struct sc8551 *sc, int ms) in sc8551_set_wdt()
930 static int sc8551_enable_batovp(struct sc8551 *sc, bool enable) in sc8551_enable_batovp()
949 static int sc8551_set_batovp_th(struct sc8551 *sc, int threshold) in sc8551_set_batovp_th()
968 static int sc8551_enable_batocp(struct sc8551 *sc, bool enable) in sc8551_enable_batocp()
987 static int sc8551_set_batocp_th(struct sc8551 *sc, int threshold) in sc8551_set_batocp_th()
1006 static int sc8551_set_busovp_th(struct sc8551 *sc, int threshold) in sc8551_set_busovp_th()
1025 static int sc8551_enable_busocp(struct sc8551 *sc, bool enable) in sc8551_enable_busocp()
1044 static int sc8551_set_busocp_th(struct sc8551 *sc, int threshold) in sc8551_set_busocp_th()
1063 static int sc8551_set_acovp_th(struct sc8551 *sc, int threshold) in sc8551_set_acovp_th()
1085 static int sc8551_set_vdrop_th(struct sc8551 *sc, int threshold) in sc8551_set_vdrop_th()
1104 static int sc8551_set_vdrop_deglitch(struct sc8551 *sc, int us) in sc8551_set_vdrop_deglitch()
1123 static int sc8551_enable_bat_therm(struct sc8551 *sc, bool enable) in sc8551_enable_bat_therm()
1140 static int sc8551_enable_bus_therm(struct sc8551 *sc, bool enable) in sc8551_enable_bus_therm()
1157 static int sc8551_enable_adc(struct sc8551 *sc, bool enable) in sc8551_enable_adc()
1174 static int sc8551_set_adc_scanrate(struct sc8551 *sc, bool oneshot) in sc8551_set_adc_scanrate()
1191 static int sc8551_get_adc_data(struct sc8551 *sc, int channel, int *result) in sc8551_get_adc_data()
1230 static int sc8551_set_adc_scan(struct sc8551 *sc, int channel, bool enable) in sc8551_set_adc_scan()
1261 static int sc8551_set_alarm_int_mask(struct sc8551 *sc, u8 mask) in sc8551_set_alarm_int_mask()
1277 static int sc8551_set_sense_resistor(struct sc8551 *sc, int r_mohm) in sc8551_set_sense_resistor()
1298 static int sc8551_enable_regulation(struct sc8551 *sc, bool enable) in sc8551_enable_regulation()
1319 static int sc8551_set_ss_timeout(struct sc8551 *sc, int timeout) in sc8551_set_ss_timeout()
1364 static int sc8551_set_ibat_reg_th(struct sc8551 *sc, int th_ma) in sc8551_set_ibat_reg_th()
1389 static int sc8551_set_vbat_reg_th(struct sc8551 *sc, int th_mv) in sc8551_set_vbat_reg_th()
1412 static int sc8551_get_work_mode(struct sc8551 *sc, int *mode) in sc8551_get_work_mode()
1437 static int sc8551_check_vbus_error_status(struct sc8551 *sc) in sc8551_check_vbus_error_status()
1449 static void sc8551_check_alarm_status(struct sc8551 *sc) in sc8551_check_alarm_status()
1491 static void sc8551_check_fault_status(struct sc8551 *sc) in sc8551_check_fault_status()
1518 static int sc8551_detect_device(struct sc8551 *sc) in sc8551_detect_device()
1531 static int sc8551_parse_dt(struct sc8551 *sc, struct device *dev) in sc8551_parse_dt()
1596 static int sc8551_init_protection(struct sc8551 *sc) in sc8551_init_protection()
1648 static int sc8551_init_adc(struct sc8551 *sc) in sc8551_init_adc()
1690 static int sc8551_init_int_src(struct sc8551 *sc) in sc8551_init_int_src()
1704 static int sc8551_init_regulation(struct sc8551 *sc) in sc8551_init_regulation()
1733 static int sc8551_init_device(struct sc8551 *sc) in sc8551_init_device()
1765 static int sc8551_set_present(struct sc8551 *sc, bool present) in sc8551_set_present()
1778 struct sc8551 *sc = dev_get_drvdata(dev); in registers_show()
1837 struct sc8551 *sc = dev_get_drvdata(dev); in registers_store()
1878 struct sc8551 *sc = power_supply_get_drvdata(psy); in sc8551_charger_get_property()
1964 struct sc8551 *sc = power_supply_get_drvdata(psy); in sc8551_charger_set_property()
2001 static int sc8551_psy_register(struct sc8551 *sc) in sc8551_psy_register()
2032 struct sc8551 *sc = dev_id; in sc8551_charger_interrupt()
2066 static int sc8551_init_irq(struct sc8551 *sc) in sc8551_init_irq()
2093 static void determine_initial_status(struct sc8551 *sc) in determine_initial_status()
2107 struct sc8551 *sc; in sc8551_charger_probe()
2112 sc = devm_kzalloc(&client->dev, sizeof(struct sc8551), GFP_KERNEL); in sc8551_charger_probe()
2172 struct sc8551 *sc = i2c_get_clientdata(client); in sc8551_charger_remove()
2187 struct sc8551 *sc = i2c_get_clientdata(client); in sc8551_charger_shutdown()