Lines Matching refs:psp
76 .psp = _psp, \
83 enum power_supply_property psp; member
297 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument
303 if (psp == POWER_SUPPLY_PROP_PRESENT && in sbs_get_battery_presence_and_health()
320 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_battery_presence_and_health()
340 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health()
346 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_battery_presence_and_health()
361 int reg_offset, enum power_supply_property psp, in sbs_get_battery_property() argument
378 if (psp != POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
398 if (psp == POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
408 int reg_offset, enum power_supply_property psp, char *val) in sbs_get_battery_string_property() argument
421 enum power_supply_property psp, union power_supply_propval *val) in sbs_unit_adjustment() argument
427 switch (psp) { in sbs_unit_adjustment()
464 "%s: no need for unit conversion %d\n", __func__, psp); in sbs_unit_adjustment()
493 int reg_offset, enum power_supply_property psp, in sbs_get_battery_capacity() argument
499 if (power_supply_is_amp_property(psp)) in sbs_get_battery_capacity()
510 if (psp == POWER_SUPPLY_PROP_CAPACITY) { in sbs_get_battery_capacity()
541 enum power_supply_property psp) in sbs_get_property_index() argument
545 if (psp == sbs_data[count].psp) in sbs_get_property_index()
549 "%s: Invalid Property - %d\n", __func__, psp); in sbs_get_property_index()
555 enum power_supply_property psp, in sbs_get_property() argument
562 switch (psp) { in sbs_get_property()
565 ret = sbs_get_battery_presence_and_health(client, psp, val); in sbs_get_property()
566 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_property()
581 ret = sbs_get_property_index(client, psp); in sbs_get_property()
585 ret = sbs_get_battery_capacity(client, ret, psp, val); in sbs_get_property()
601 ret = sbs_get_property_index(client, psp); in sbs_get_property()
605 ret = sbs_get_battery_property(client, ret, psp, val); in sbs_get_property()
609 ret = sbs_get_property_index(client, psp); in sbs_get_property()
613 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
619 ret = sbs_get_property_index(client, psp); in sbs_get_property()
623 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
646 sbs_unit_adjustment(client, psp, val); in sbs_get_property()
650 "%s: property = %d, value = %x\n", __func__, psp, val->intval); in sbs_get_property()