Lines Matching refs:psp
77 .psp = _psp, \
84 enum power_supply_property psp; member
299 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument
305 if (psp == POWER_SUPPLY_PROP_PRESENT && in sbs_get_battery_presence_and_health()
322 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_battery_presence_and_health()
342 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health()
348 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_battery_presence_and_health()
363 int reg_offset, enum power_supply_property psp, in sbs_get_battery_property() argument
380 if (psp != POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
400 if (psp == POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
410 int reg_offset, enum power_supply_property psp, char *val) in sbs_get_battery_string_property() argument
423 enum power_supply_property psp, union power_supply_propval *val) in sbs_unit_adjustment() argument
429 switch (psp) { in sbs_unit_adjustment()
466 "%s: no need for unit conversion %d\n", __func__, psp); in sbs_unit_adjustment()
495 int reg_offset, enum power_supply_property psp, in sbs_get_battery_capacity() argument
501 if (power_supply_is_amp_property(psp)) in sbs_get_battery_capacity()
512 if (psp == POWER_SUPPLY_PROP_CAPACITY) { in sbs_get_battery_capacity()
543 enum power_supply_property psp) in sbs_get_property_index() argument
547 if (psp == sbs_data[count].psp) in sbs_get_property_index()
551 "%s: Invalid Property - %d\n", __func__, psp); in sbs_get_property_index()
557 enum power_supply_property psp, in sbs_get_property() argument
564 switch (psp) { in sbs_get_property()
567 ret = sbs_get_battery_presence_and_health(client, psp, val); in sbs_get_property()
568 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_property()
583 ret = sbs_get_property_index(client, psp); in sbs_get_property()
587 ret = sbs_get_battery_capacity(client, ret, psp, val); in sbs_get_property()
603 ret = sbs_get_property_index(client, psp); in sbs_get_property()
607 ret = sbs_get_battery_property(client, ret, psp, val); in sbs_get_property()
611 ret = sbs_get_property_index(client, psp); in sbs_get_property()
615 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
621 ret = sbs_get_property_index(client, psp); in sbs_get_property()
625 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
648 sbs_unit_adjustment(client, psp, val); in sbs_get_property()
652 "%s: property = %d, value = %x\n", __func__, psp, val->intval); in sbs_get_property()