Lines Matching refs:rm_fields

158 	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()
460 ret = regmap_field_read(chip->rm_fields[F_ST_VBUS_GD], &vbus_gd); in rt9471_detach_handler()
485 ret = regmap_field_read(chip->rm_fields[F_PORT_STAT], &port_stat); in rt9471_bc12_done_handler()
540 ret = regmap_field_write(chip->rm_fields[F_WDT_RST], 1); in rt9471_wdt_handler()
648 ret = regmap_field_read(chip->rm_fields[F_BATFET_DIS], &sysoff_enable); in sysoff_enable_show()
667 ret = regmap_field_write(chip->rm_fields[F_BATFET_DIS], !!tmp); in sysoff_enable_store()
681 ret = regmap_field_read(chip->rm_fields[F_BC12_EN], &bc12_enable); in port_detect_enable_show()
700 ret = regmap_field_write(chip->rm_fields[F_BC12_EN], !!tmp); in port_detect_enable_store()
808 ret = regmap_field_read(chip->rm_fields[F_DEVICE_ID], &dev_id); in rt9471_check_devinfo()
872 ret = devm_regmap_field_bulk_alloc(dev, regmap, chip->rm_fields, in rt9471_probe()
906 return regmap_field_write(chip->rm_fields[F_BC12_EN], 1); in rt9471_probe()
917 regmap_field_write(chip->rm_fields[F_REG_RST], 1); in rt9471_shutdown()