Lines Matching refs:psp

87 	.psp = _psp, \
94 enum power_supply_property psp; member
222 enum power_supply_property psp) in sbs_get_string_buf() argument
227 if (string_properties[i] == psp) in sbs_get_string_buf()
518 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument
530 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
537 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
553 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health()
559 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health()
576 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument
583 return sbs_get_ti_battery_presence_and_health(client, psp, val); in sbs_get_battery_presence_and_health()
589 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health()
596 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_battery_presence_and_health()
611 int reg_offset, enum power_supply_property psp, in sbs_get_battery_property() argument
628 if (psp == POWER_SUPPLY_PROP_CAPACITY_LEVEL) { in sbs_get_battery_property()
642 } else if (psp != POWER_SUPPLY_PROP_STATUS) { in sbs_get_battery_property()
663 if (psp == POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
665 else if (psp == POWER_SUPPLY_PROP_CAPACITY) in sbs_get_battery_property()
678 enum power_supply_property psp) in sbs_get_property_index() argument
683 if (psp == sbs_data[count].psp) in sbs_get_property_index()
687 "%s: Invalid Property - %d\n", __func__, psp); in sbs_get_property_index()
693 enum power_supply_property psp) in sbs_get_constant_string() argument
699 buf = sbs_get_string_buf(chip, psp); in sbs_get_constant_string()
704 ret = sbs_get_property_index(chip->client, psp); in sbs_get_constant_string()
719 enum power_supply_property psp, union power_supply_propval *val) in sbs_unit_adjustment() argument
725 switch (psp) { in sbs_unit_adjustment()
766 "%s: no need for unit conversion %d\n", __func__, psp); in sbs_unit_adjustment()
797 int reg_offset, enum power_supply_property psp, in sbs_get_battery_capacity() argument
803 if (power_supply_is_amp_property(psp)) in sbs_get_battery_capacity()
874 enum power_supply_property psp, in sbs_get_battery_manufacture_date() argument
888 switch (psp) { in sbs_get_battery_manufacture_date()
906 enum power_supply_property psp, in sbs_get_property() argument
918 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_property()
927 switch (psp) { in sbs_get_property()
930 ret = sbs_get_battery_presence_and_health(client, psp, val); in sbs_get_property()
933 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_property()
950 ret = sbs_get_property_index(client, psp); in sbs_get_property()
959 ret = sbs_get_battery_capacity(client, ret, psp, val); in sbs_get_property()
983 ret = sbs_get_property_index(client, psp); in sbs_get_property()
987 ret = sbs_get_battery_property(client, ret, psp, val); in sbs_get_property()
992 str = sbs_get_constant_string(chip, psp); in sbs_get_property()
1002 ret = sbs_get_battery_manufacture_date(client, psp, val); in sbs_get_property()
1026 sbs_unit_adjustment(client, psp, val); in sbs_get_property()
1029 psp, val->intval); in sbs_get_property()