Home
last modified time | relevance | path

Searched refs:rm_fields (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/power/supply/
H A Drt9471.c158 struct regmap_field *rm_fields[F_MAX_FIELDS]; member
214 return regmap_field_write(chip->rm_fields[field], sel); in rt9471_set_value_by_field_range()
225 ret = regmap_field_read(chip->rm_fields[field], &sel); in rt9471_get_value_by_field_range()
242 return regmap_field_write(chip->rm_fields[F_TE], 0); in rt9471_set_ieoc()
249 return regmap_field_write(chip->rm_fields[F_TE], 1); in rt9471_set_ieoc()
257 ret = regmap_field_read(chip->rm_fields[F_TE], &chg_term_enable); in rt9471_get_ieoc()
274 ret = regmap_field_read(chip->rm_fields[F_IC_STAT], &ic_stat); in rt9471_get_status()
306 ret = regmap_field_read(chip->rm_fields[F_ST_VBUS_GD], &vbus_gd); in rt9471_get_vbus_good()
377 return regmap_field_write(chip->rm_fields[F_CHG_EN], !!value); in rt9471_charger_set_property()
379 return regmap_field_write(chip->rm_fields[F_HZ], !value); in rt9471_charger_set_property()
[all …]
/linux/drivers/iio/adc/
H A Drtq6056.c92 struct regmap_field *rm_fields[F_MAX_FIELDS]; member
375 rm_field = priv->rm_fields[F_VSHUNTCT]; in rtq6056_adc_set_samp_freq()
378 rm_field = priv->rm_fields[F_VBUSCT]; in rtq6056_adc_set_samp_freq()
419 ret = regmap_field_write(priv->rm_fields[F_AVG], selector); in rtq6056_adc_set_average()
439 ret = regmap_field_write(priv->rm_fields[F_RTQ6059_BADC], in rtq6059_adc_set_average()
444 ret = regmap_field_write(priv->rm_fields[F_RTQ6059_SADC], in rtq6059_adc_set_average()
675 regmap_field_write(priv->rm_fields[F_OPMODE], 0); in rtq6056_enter_shutdown_state()
753 ret = devm_regmap_field_bulk_alloc(dev, regmap, priv->rm_fields, in rtq6056_probe()
806 return regmap_field_write(priv->rm_fields[F_OPMODE], 0); in rtq6056_runtime_suspend()
814 ret = regmap_field_write(priv->rm_fields[F_OPMODE], RTQ6056_CONT_ALLON); in rtq6056_runtime_resume()