Home
last modified time | relevance | path

Searched refs:rmap_fields (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dbd99954-charger.c108 struct regmap_field *rmap_fields[F_MAX_FIELDS]; member
186 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_health()
213 ret = regmap_field_read(bd->rmap_fields[F_CHGSTM_STATE], &tmp); in bd9995x_get_prop_charge_type()
236 ret = regmap_field_read(bd->rmap_fields[F_BATTEMP], &tmp); in bd9995x_get_prop_batt_present()
247 ret = regmap_field_read(bd->rmap_fields[F_VBAT_VAL], &tmp); in bd9995x_get_prop_batt_voltage()
260 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_get_prop_batt_current()
273 ret = regmap_field_read(bd->rmap_fields[F_THERM_VAL], &tmp); in bd9995x_get_prop_batt_temp()
340 ret = regmap_field_read(bd->rmap_fields[F_IBATP_VAL], &tmp); in bd9995x_power_supply_get_property()
347 ret = regmap_field_read(bd->rmap_fields[F_IBATP_AVE_VAL], &tmp); in bd9995x_power_supply_get_property()
366 ret = regmap_field_read(bd->rmap_fields[F_SEL_ILIM_VAL], &tmp); in bd9995x_power_supply_get_property()
[all …]
H A Dmt6370-charger.c94 struct regmap_field *rmap_fields[F_MAX]; member
184 ret = regmap_field_read(priv->rmap_fields[fd], &reg_val); in mt6370_chg_field_get()
216 return regmap_field_write(priv->rmap_fields[fd], val); in mt6370_chg_field_set()
687 priv->rmap_fields[i] = devm_regmap_field_alloc(priv->dev, in mt6370_chg_init_rmap_fields()
690 if (IS_ERR(priv->rmap_fields[i])) in mt6370_chg_init_rmap_fields()
692 PTR_ERR(priv->rmap_fields[i]), in mt6370_chg_init_rmap_fields()
H A Dbq24257_charger.c90 struct regmap_field *rmap_fields[F_MAX_FIELDS]; member
216 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq24257_field_read()
226 return regmap_field_write(bq->rmap_fields[field_id], val); in bq24257_field_write()
993 bq->rmap_fields[i] = devm_regmap_field_alloc(dev, bq->rmap, in bq24257_probe()
995 if (IS_ERR(bq->rmap_fields[i])) { in bq24257_probe()
997 return PTR_ERR(bq->rmap_fields[i]); in bq24257_probe()
H A Dbq25890_charger.c123 struct regmap_field *rmap_fields[F_MAX_FIELDS]; member
367 ret = regmap_field_read(bq->rmap_fields[field_id], &val); in bq25890_field_read()
377 return regmap_field_write(bq->rmap_fields[field_id], val); in bq25890_field_write()
484 regmap_field_read_poll_timeout(bq->rmap_fields[F_CONV_START], in bq25890_update_state()
1091 ret = regmap_field_read_poll_timeout(bq->rmap_fields[F_PUMPX_UP], in bq25890_pump_express_work()
1472 ret = devm_regmap_field_bulk_alloc(dev, bq->rmap, bq->rmap_fields, in bq25890_probe()