Lines Matching refs:val
226 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
296 int *val)
306 *val = tbl[v];
314 int val)
318 idx = bq24190_find_idx(tbl, tbl_size, val);
500 static int bq24190_set_charge_mode(struct regulator_dev *dev, u8 val)
513 BQ24190_REG_POC_CHG_CONFIG_SHIFT, val);
535 u8 val;
545 BQ24190_REG_POC_CHG_CONFIG_SHIFT, &val);
553 return (val == BQ24190_REG_POC_CHG_CONFIG_OTG ||
554 val == BQ24190_REG_POC_CHG_CONFIG_OTG_ALT);
713 union power_supply_propval *val)
740 val->intval = type;
746 const union power_supply_propval *val)
761 switch (val->intval) {
801 union power_supply_propval *val)
860 val->intval = health;
866 union power_supply_propval *val)
883 val->intval = pg_stat && !batfet_disable;
889 const union power_supply_propval *val);
891 union power_supply_propval *val);
893 union power_supply_propval *val);
895 const union power_supply_propval *val);
898 const union power_supply_propval *val)
900 return bq24190_battery_set_online(bdi, val);
904 union power_supply_propval *val)
906 return bq24190_battery_get_status(bdi, val);
910 union power_supply_propval *val)
912 return bq24190_battery_get_temp_alert_max(bdi, val);
916 const union power_supply_propval *val)
918 return bq24190_battery_set_temp_alert_max(bdi, val);
922 union power_supply_propval *val)
933 val->intval = ++v * 128 * 1000;
938 union power_supply_propval *val)
949 val->intval = ++v * 128 * 1000;
954 union power_supply_propval *val)
976 val->intval = curr;
981 union power_supply_propval *val)
985 val->intval = bq24190_ccc_ichg_values[idx];
990 const union power_supply_propval *val)
993 int ret, curr = val->intval;
1012 union power_supply_propval *val)
1023 val->intval = voltage;
1028 union power_supply_propval *val)
1032 val->intval = bq24190_cvc_vreg_values[idx];
1037 const union power_supply_propval *val)
1042 ARRAY_SIZE(bq24190_cvc_vreg_values), val->intval);
1046 union power_supply_propval *val)
1058 val->intval = iinlimit;
1063 const union power_supply_propval *val)
1069 ARRAY_SIZE(bq24190_isc_iinlim_values), val->intval);
1073 enum power_supply_property psp, union power_supply_propval *val)
1086 ret = bq24190_charger_get_charge_type(bdi, val);
1089 ret = bq24190_charger_get_health(bdi, val);
1092 ret = bq24190_charger_get_online(bdi, val);
1095 ret = bq24190_charger_get_status(bdi, val);
1098 ret = bq24190_charger_get_temp_alert_max(bdi, val);
1101 ret = bq24190_charger_get_precharge(bdi, val);
1104 ret = bq24190_charger_get_charge_term(bdi, val);
1107 ret = bq24190_charger_get_current(bdi, val);
1110 ret = bq24190_charger_get_current_max(bdi, val);
1113 ret = bq24190_charger_get_voltage(bdi, val);
1116 ret = bq24190_charger_get_voltage_max(bdi, val);
1119 ret = bq24190_charger_get_iinlimit(bdi, val);
1122 val->intval = POWER_SUPPLY_SCOPE_SYSTEM;
1126 val->strval = bdi->model_name;
1130 val->strval = BQ24190_MANUFACTURER;
1145 const union power_supply_propval *val)
1158 ret = bq24190_charger_set_online(bdi, val);
1161 ret = bq24190_charger_set_temp_alert_max(bdi, val);
1164 ret = bq24190_charger_set_charge_type(bdi, val);
1167 ret = bq24190_charger_set_current(bdi, val);
1170 ret = bq24190_charger_set_voltage(bdi, val);
1173 ret = bq24190_charger_set_iinlimit(bdi, val);
1206 union power_supply_propval val;
1211 &val);
1217 &val);
1274 union power_supply_propval *val)
1320 val->intval = status;
1326 union power_supply_propval *val)
1360 val->intval = health;
1365 union power_supply_propval *val)
1376 val->intval = !batfet_disable;
1381 const union power_supply_propval *val)
1385 BQ24190_REG_MOC_BATFET_DISABLE_SHIFT, !val->intval);
1389 union power_supply_propval *val)
1401 val->intval = temp;
1406 const union power_supply_propval *val)
1412 ARRAY_SIZE(bq24190_ictrc_treg_values), val->intval);
1416 enum power_supply_property psp, union power_supply_propval *val)
1430 ret = bq24190_battery_get_status(bdi, val);
1433 ret = bq24190_battery_get_health(bdi, val);
1436 ret = bq24190_battery_get_online(bdi, val);
1440 val->intval = POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
1444 ret = bq24190_battery_get_temp_alert_max(bdi, val);
1447 val->intval = POWER_SUPPLY_SCOPE_SYSTEM;
1462 const union power_supply_propval *val)
1476 ret = bq24190_battery_set_online(bdi, val);
1479 ret = bq24190_battery_set_temp_alert_max(bdi, val);