Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/power/supply/
Drt9467-charger.c270 struct regmap_field *rm_field[F_MAX_FIELDS]; member
300 return regmap_field_write(data->rm_field[F_OTG_PIN_EN], 1); in rt9467_otg_of_parse_cb()
359 ret = regmap_field_read(data->rm_field[field], &sel); in rt9467_get_value_from_ranges()
384 return regmap_field_write(data->rm_field[field], sel); in rt9467_set_value_from_ranges()
517 ret = regmap_field_read(data->rm_field[F_CHG_STAT], &status); in rt9467_psy_get_status()
593 ret = regmap_field_write(data->rm_field[F_AICL_MEAS], 1); in rt9467_run_aicl()
665 return regmap_field_read(data->rm_field[F_PWR_RDY], &val->intval); in rt9467_psy_get_property()
725 return regmap_field_write(data->rm_field[F_CHG_EN], val->intval); in rt9467_psy_set_property()
727 return regmap_field_write(data->rm_field[F_HZ], val->intval); in rt9467_psy_set_property()
749 return regmap_field_write(data->rm_field[F_USBCHGEN], val->intval); in rt9467_psy_set_property()
[all …]
/linux-6.6.21/drivers/base/regmap/
Dregmap.c1199 static void regmap_field_init(struct regmap_field *rm_field, in regmap_field_init() argument
1202 rm_field->regmap = regmap; in regmap_field_init()
1203 rm_field->reg = reg_field.reg; in regmap_field_init()
1204 rm_field->shift = reg_field.lsb; in regmap_field_init()
1205 rm_field->mask = GENMASK(reg_field.msb, reg_field.lsb); in regmap_field_init()
1207 WARN_ONCE(rm_field->mask == 0, "invalid empty mask defined\n"); in regmap_field_init()
1209 rm_field->id_size = reg_field.id_size; in regmap_field_init()
1210 rm_field->id_offset = reg_field.id_offset; in regmap_field_init()
1227 struct regmap_field *rm_field = devm_kzalloc(dev, in devm_regmap_field_alloc() local
1228 sizeof(*rm_field), GFP_KERNEL); in devm_regmap_field_alloc()
[all …]
/linux-6.6.21/drivers/iio/adc/
Drtq6056.c214 struct regmap_field *rm_field; in rtq6056_adc_set_samp_freq() local
222 rm_field = priv->rm_fields[F_VSHUNTCT]; in rtq6056_adc_set_samp_freq()
225 rm_field = priv->rm_fields[F_VBUSCT]; in rtq6056_adc_set_samp_freq()
233 ret = regmap_field_write(rm_field, selector); in rtq6056_adc_set_samp_freq()
/linux-6.6.21/include/linux/
Dregmap.h1365 struct regmap_field **rm_field,