Home
last modified time | relevance | path

Searched refs:regmap_fields (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/power/supply/
Drt9455_charger.c236 struct regmap_field *regmap_fields[F_MAX_FIELDS]; member
278 ret = regmap_field_read(info->regmap_fields[field], &v); in rt9455_get_field_val()
294 return regmap_field_write(info->regmap_fields[field], idx); in rt9455_set_field_val()
303 ret = regmap_field_write(info->regmap_fields[F_RST], 0x01); in rt9455_register_reset()
314 ret = regmap_field_read(info->regmap_fields[F_RST], &v); in rt9455_register_reset()
358 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], in rt9455_charger_get_status()
374 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_status()
470 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_health()
490 ret = regmap_field_read(info->regmap_fields[F_BATAB], &v); in rt9455_charger_get_battery_presence()
511 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], &v); in rt9455_charger_get_online()
[all …]
Dmp2629_charger.c81 struct regmap_field *regmap_fields[MP2629_MAX_FIELD]; member
178 ret = regmap_field_read(charger->regmap_fields[fld], &rval); in mp2629_get_prop()
197 return regmap_field_write(charger->regmap_fields[fld], rval); in mp2629_set_prop()
590 charger->regmap_fields[i] = devm_regmap_field_alloc(dev, in mp2629_charger_probe()
592 if (IS_ERR(charger->regmap_fields[i])) { in mp2629_charger_probe()
594 return PTR_ERR(charger->regmap_fields[i]); in mp2629_charger_probe()
/Linux-v5.10/drivers/iio/gyro/
Dfxas21002c_core.c144 struct regmap_field *regmap_fields[F_MAX_FIELDS]; member
240 ret = regmap_field_read(data->regmap_fields[F_FS_DOUBLE], &fs_double); in fxas21002c_range_fs_from_value()
273 ret = regmap_field_write(data->regmap_fields[F_FS_DOUBLE], fs_double); in fxas21002c_range_value_from_fs()
286 ret = regmap_field_read(data->regmap_fields[F_ACTIVE], &active); in fxas21002c_mode_get()
292 ret = regmap_field_read(data->regmap_fields[F_READY], &ready); in fxas21002c_mode_get()
310 ret = regmap_field_write(data->regmap_fields[F_READY], 1); in fxas21002c_mode_set()
312 ret = regmap_field_write(data->regmap_fields[F_READY], 0); in fxas21002c_mode_set()
317 ret = regmap_field_write(data->regmap_fields[F_ACTIVE], 1); in fxas21002c_mode_set()
319 ret = regmap_field_write(data->regmap_fields[F_ACTIVE], 0); in fxas21002c_mode_set()
355 ret = regmap_field_write(data->regmap_fields[field], bits); in fxas21002c_write()
[all …]