• Home
  • Raw
  • Download

Lines Matching refs:psp

85 	.psp = _psp, \
92 enum power_supply_property psp; member
483 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument
495 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
502 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
518 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health()
524 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health()
541 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument
548 return sbs_get_ti_battery_presence_and_health(client, psp, val); in sbs_get_battery_presence_and_health()
554 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health()
561 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_battery_presence_and_health()
576 int reg_offset, enum power_supply_property psp, in sbs_get_battery_property() argument
593 if (psp == POWER_SUPPLY_PROP_CAPACITY_LEVEL) { in sbs_get_battery_property()
607 } else if (psp != POWER_SUPPLY_PROP_STATUS) { in sbs_get_battery_property()
628 if (psp == POWER_SUPPLY_PROP_STATUS) in sbs_get_battery_property()
630 else if (psp == POWER_SUPPLY_PROP_CAPACITY) in sbs_get_battery_property()
643 int reg_offset, enum power_supply_property psp, char *val) in sbs_get_battery_string_property() argument
656 enum power_supply_property psp, union power_supply_propval *val) in sbs_unit_adjustment() argument
662 switch (psp) { in sbs_unit_adjustment()
702 "%s: no need for unit conversion %d\n", __func__, psp); in sbs_unit_adjustment()
733 int reg_offset, enum power_supply_property psp, in sbs_get_battery_capacity() argument
739 if (power_supply_is_amp_property(psp)) in sbs_get_battery_capacity()
776 enum power_supply_property psp) in sbs_get_property_index() argument
780 if (psp == sbs_data[count].psp) in sbs_get_property_index()
784 "%s: Invalid Property - %d\n", __func__, psp); in sbs_get_property_index()
792 enum power_supply_property psp = POWER_SUPPLY_PROP_TECHNOLOGY; in sbs_get_chemistry() local
795 ret = sbs_get_property_index(client, psp); in sbs_get_chemistry()
799 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_chemistry()
822 enum power_supply_property psp, in sbs_get_battery_manufacture_date() argument
836 switch (psp) { in sbs_get_battery_manufacture_date()
854 enum power_supply_property psp, in sbs_get_property() argument
865 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_property()
874 switch (psp) { in sbs_get_property()
877 ret = sbs_get_battery_presence_and_health(client, psp, val); in sbs_get_property()
880 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_property()
897 ret = sbs_get_property_index(client, psp); in sbs_get_property()
906 ret = sbs_get_battery_capacity(client, ret, psp, val); in sbs_get_property()
929 ret = sbs_get_property_index(client, psp); in sbs_get_property()
933 ret = sbs_get_battery_property(client, ret, psp, val); in sbs_get_property()
937 ret = sbs_get_property_index(client, psp); in sbs_get_property()
941 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
947 ret = sbs_get_property_index(client, psp); in sbs_get_property()
951 ret = sbs_get_battery_string_property(client, ret, psp, in sbs_get_property()
959 ret = sbs_get_battery_manufacture_date(client, psp, val); in sbs_get_property()
983 sbs_unit_adjustment(client, psp, val); in sbs_get_property()
986 psp, val->intval); in sbs_get_property()