Home
last modified time | relevance | path

Searched refs:vbat (Results 1 – 8 of 8) sorted by relevance

/drivers/power/supply/
Dab8500_fg.c202 int vbat; member
832 int vbat, ret; in ab8500_fg_bat_voltage() local
835 ret = iio_read_channel_processed(di->main_bat_v, &vbat); in ab8500_fg_bat_voltage()
843 prev = vbat; in ab8500_fg_bat_voltage()
844 return vbat; in ab8500_fg_bat_voltage()
896 di->vbat = ab8500_fg_bat_voltage(di); in ab8500_fg_uncomp_volt_to_capacity()
897 return ab8500_fg_volt_to_capacity(di, di->vbat); in ab8500_fg_uncomp_volt_to_capacity()
956 int vbat = 0; in ab8500_fg_load_comp_volt_to_capacity() local
961 vbat += ab8500_fg_bat_voltage(di); in ab8500_fg_load_comp_volt_to_capacity()
968 di->vbat = vbat / i; in ab8500_fg_load_comp_volt_to_capacity()
[all …]
Dab8500_charger.c282 int vbat; member
1273 if (di->vbat < VBAT_TRESH_IP_CUR_RED) in ab8500_charger_set_vbus_in_curr()
1277 if (di->vbat < VBAT_TRESH_IP_CUR_RED) in ab8500_charger_set_vbus_in_curr()
1923 di->vbat = ret.intval / 1000; in ab8500_charger_get_ext_psy_data()
1956 di->old_vbat = di->vbat; in ab8500_charger_check_vbat_work()
1959 di->vbat <= VBAT_TRESH_IP_CUR_RED) || in ab8500_charger_check_vbat_work()
1961 di->vbat > VBAT_TRESH_IP_CUR_RED))) { in ab8500_charger_check_vbat_work()
1965 di->vbat, di->old_vbat); in ab8500_charger_check_vbat_work()
1971 di->old_vbat = di->vbat; in ab8500_charger_check_vbat_work()
1977 if (di->vbat < (VBAT_TRESH_IP_CUR_RED + 100) && in ab8500_charger_check_vbat_work()
[all …]
Dbq24257_charger.c69 u8 vbat; /* regulation voltage */ member
375 val->intval = bq24257_vbat_map[bq->init_data.vbat]; in bq24257_power_supply_get_property()
687 {F_VBAT, bq->init_data.vbat}, in bq24257_hw_init()
899 bq->init_data.vbat = bq24257_find_idx(property, bq24257_vbat_map, in bq24257_fw_probe()
Dpm2301_charger.h470 int vbat; member
Dltc4162-l-charger.c546 static DEVICE_ATTR_RO(vbat);
/drivers/pinctrl/
Dpinctrl-as3722.c143 FUNCTION_GROUP(vsup-vbat-low-undebounce-out, VSUB_VBAT_UNDEB_LOW_OUT),
144 FUNCTION_GROUP(vsup-vbat-low-debounce-out, VSUB_VBAT_LOW_DEB_OUT),
/drivers/hwmon/
Dnct6775.c1214 u8 vbat; member
2406 u8 vbat, diode, vbit, dbit; in store_temp_type() local
2420 vbat = nct6775_read_value(data, data->REG_VBAT) & ~vbit; in store_temp_type()
2424 vbat |= vbit; in store_temp_type()
2428 vbat |= dbit; in store_temp_type()
2433 nct6775_write_value(data, data->REG_VBAT, vbat); in store_temp_type()
4633 data->vbat = nct6775_read_value(data, data->REG_VBAT); in nct6775_suspend()
4700 nct6775_write_value(data, data->REG_VBAT, data->vbat); in nct6775_resume()
Dw83627ehf.c376 u8 vbat; member
1952 data->vbat = w83627ehf_read_value(data, W83627EHF_REG_VBAT); in w83627ehf_suspend()
2004 w83627ehf_write_value(data, W83627EHF_REG_VBAT, data->vbat); in w83627ehf_resume()