Home
last modified time | relevance | path

Searched refs:bat_info (Results 1 – 6 of 6) sorted by relevance

/drivers/power/supply/
Dgeneric-adc-battery.c103 struct power_supply_info *bat_info; in gab_get_status() local
105 bat_info = &pdata->battery_info; in gab_get_status()
106 if (adc_bat->level == bat_info->charge_full_design) in gab_get_status()
149 struct power_supply_info *bat_info; in gab_get_property() local
159 bat_info = &pdata->battery_info; in gab_get_property()
180 val->intval = bat_info->technology; in gab_get_property()
183 val->intval = bat_info->voltage_min_design; in gab_get_property()
186 val->intval = bat_info->voltage_max_design; in gab_get_property()
189 val->intval = bat_info->charge_full_design; in gab_get_property()
192 val->strval = bat_info->name; in gab_get_property()
Dsc2731_charger.c371 struct power_supply_battery_info bat_info = { }; in sc2731_charger_hw_init() local
381 ret = power_supply_get_battery_info(info->psy_usb, &bat_info); in sc2731_charger_hw_init()
393 term_currrent = bat_info.charge_term_current_ua / 1000; in sc2731_charger_hw_init()
402 term_voltage = bat_info.constant_charge_voltage_max_uv / 1000; in sc2731_charger_hw_init()
412 power_supply_put_battery_info(info->psy_usb, &bat_info); in sc2731_charger_hw_init()
Dbq256xx_charger.c1507 struct power_supply_battery_info bat_info = { }; in bq256xx_hw_init() local
1528 ret = power_supply_get_battery_info(bq->charger, &bat_info); in bq256xx_hw_init()
1532 bat_info.constant_charge_current_max_ua = in bq256xx_hw_init()
1535 bat_info.constant_charge_voltage_max_uv = in bq256xx_hw_init()
1538 bat_info.precharge_current_ua = in bq256xx_hw_init()
1541 bat_info.charge_term_current_ua = in bq256xx_hw_init()
1551 bat_info.constant_charge_current_max_ua; in bq256xx_hw_init()
1554 bat_info.constant_charge_voltage_max_uv; in bq256xx_hw_init()
1566 bat_info.constant_charge_current_max_ua); in bq256xx_hw_init()
1571 bat_info.precharge_current_ua); in bq256xx_hw_init()
[all …]
Dbq2515x_charger.c948 struct power_supply_battery_info bat_info = { }; in bq2515x_hw_init() local
960 ret = power_supply_get_battery_info(bq2515x->mains, &bat_info); in bq2515x_hw_init()
972 bat_info.constant_charge_current_max_ua; in bq2515x_hw_init()
975 bat_info.constant_charge_voltage_max_uv; in bq2515x_hw_init()
978 bat_info.precharge_current_ua; in bq2515x_hw_init()
Dcw2015_battery.c201 u8 bat_info[CW2015_SIZE_BATINFO]; in cw_init() local
204 bat_info, CW2015_SIZE_BATINFO); in cw_init()
211 if (memcmp(bat_info, cw_bat->bat_profile, CW2015_SIZE_BATINFO)) { in cw_init()
Dbq25980_charger.c1082 struct power_supply_battery_info bat_info = { }; in bq25980_hw_init() local
1109 ret = power_supply_get_battery_info(bq->charger, &bat_info); in bq25980_hw_init()
1115 bq->init_data.ichg_max = bat_info.constant_charge_current_max_ua; in bq25980_hw_init()
1116 bq->init_data.vreg_max = bat_info.constant_charge_voltage_max_uv; in bq25980_hw_init()