Searched refs:PLUG_IN_STS (Results 1 – 10 of 10) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | rk818_battery.h | 81 #define PLUG_IN_STS BIT(6) macro
|
| H A D | rk816_battery.h | 152 #define PLUG_IN_STS (1 << 6) macro
|
| H A D | rk817_charger.c | 214 PLUG_IN_STS, SOC_REG0, SOC_REG1, SOC_REG2, enumerator 263 [PLUG_IN_STS] = REG_FIELD(0xf0, 6, 6), 606 return rk817_charge_field_read(charge, PLUG_IN_STS); in rk817_charge_get_plug_in_status()
|
| H A D | rk816_battery.c | 1639 if ((buf & PLUG_IN_STS) == 0) { in rk816_bat_set_chrg_param() 1733 if (buf & PLUG_IN_STS) { in rk816_bat_set_otg_power() 1751 if (buf & PLUG_IN_STS) { in rk816_bat_set_otg_power() 3468 if ((buf & PLUG_IN_STS) != 0 && !rk816_bat_chrg_online(di)) { in rk816_bat_check_charger() 3472 } else if ((buf & PLUG_IN_STS) == 0 && rk816_bat_chrg_online(di)) { in rk816_bat_check_charger() 3588 if ((rest / 1000) > 0 && (buf & PLUG_IN_STS)) { in rk816_bat_init_dsoc_algorithm() 3598 } else if (((rest / 1000) < 0) && !(buf & PLUG_IN_STS)) { in rk816_bat_init_dsoc_algorithm()
|
| H A D | rk818_charger.c | 81 #define PLUG_IN_STS BIT(6) macro 653 if ((buf & PLUG_IN_STS) == 0) { in rk818_cg_set_chrg_param()
|
| H A D | rk817_battery.c | 266 PLUG_IN_STS, enumerator 434 [PLUG_IN_STS] = REG_FIELD(0xF0, 6, 6), 2969 if (rk817_bat_field_read(battery, PLUG_IN_STS)) { in rk809_charge_init_irqs()
|
| H A D | rk818_battery.c | 393 return (buf & PLUG_IN_STS) ? true : false; in rk818_bat_chrg_online()
|
| /OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/ |
| H A D | fg_rk817.c | 141 #define PLUG_IN_STS BIT(6) macro 924 if (rk817_bat_read(battery, PMIC_SYS_STS) & PLUG_IN_STS) in rk817_bat_dwc_otg_check_dpdm() 946 if ((rk817_bat_read(battery, PMIC_SYS_STS) & PLUG_IN_STS) != 0) in rk817_bat_get_usb_state() 973 if ((rk817_bat_read(battery, PMIC_SYS_STS) & PLUG_IN_STS) == 0) in rk817_bat_get_charger_type()
|
| H A D | fg_rk818.c | 65 #define PLUG_IN_STS (1 << 6) macro 417 plugin = rk818_bat_read(di, VB_MON_REG) & PLUG_IN_STS ? 1 : 0; in rk818_bat_get_est_voltage() 432 plugin = rk818_bat_read(di, VB_MON_REG) & PLUG_IN_STS; in rk818_bat_get_est_voltage() 750 if ((rk818_bat_read(di, VB_MON_REG) & PLUG_IN_STS) != 0) in rk818_bat_get_usb_state() 1244 if ((rk818_bat_read(di, VB_MON_REG) & PLUG_IN_STS) == 0) in rk818_bat_get_charger_type()
|
| H A D | fg_rk816.c | 62 #define PLUG_IN_STS (1 << 6) macro 758 if ((rk816_bat_read(di, VB_MON_REG) & PLUG_IN_STS) != 0) in rk816_bat_get_usb_state() 1054 if ((rk816_bat_read(di, VB_MON_REG) & PLUG_IN_STS) == 0) in rk816_bat_get_charger_type()
|