Lines Matching refs:regmap_fields

237 	struct regmap_field		*regmap_fields[F_MAX_FIELDS];  member
279 ret = regmap_field_read(info->regmap_fields[field], &v); in rt9455_get_field_val()
295 return regmap_field_write(info->regmap_fields[field], idx); in rt9455_set_field_val()
304 ret = regmap_field_write(info->regmap_fields[F_RST], 0x01); in rt9455_register_reset()
315 ret = regmap_field_read(info->regmap_fields[F_RST], &v); in rt9455_register_reset()
359 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], in rt9455_charger_get_status()
375 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_status()
471 ret = regmap_field_read(info->regmap_fields[F_STAT], &v); in rt9455_charger_get_health()
491 ret = regmap_field_read(info->regmap_fields[F_BATAB], &v); in rt9455_charger_get_battery_presence()
512 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], &v); in rt9455_charger_get_online()
665 ret = regmap_field_write(info->regmap_fields[F_TE], 1); in rt9455_hw_init()
672 ret = regmap_field_write(info->regmap_fields[F_TE_SHDN_EN], 1); in rt9455_hw_init()
682 ret = regmap_field_write(info->regmap_fields[F_BATD_EN], 1); in rt9455_hw_init()
699 ret = regmap_field_write(info->regmap_fields[F_TMR_EN], 0x00); in rt9455_hw_init()
779 ret = regmap_field_write(info->regmap_fields[F_IAICR_INT], 0x01); in rt9455_hw_init()
790 ret = regmap_field_write(info->regmap_fields[F_CHMIVRIM], 0x01); in rt9455_hw_init()
889 ret = regmap_field_write(info->regmap_fields[F_BATABM], in rt9455_irq_handler_check_irq1_register()
905 info->regmap_fields[F_CHTERMIM], 0x00); in rt9455_irq_handler_check_irq1_register()
914 info->regmap_fields[F_CHRCHGIM], 0x00); in rt9455_irq_handler_check_irq1_register()
992 info->regmap_fields[F_CHTERMIM], 0x01); in rt9455_irq_handler_check_irq2_register()
1009 ret = regmap_field_write(info->regmap_fields[F_CHG_EN], in rt9455_irq_handler_check_irq2_register()
1017 info->regmap_fields[F_CHTERMIM], 0x00); in rt9455_irq_handler_check_irq2_register()
1102 ret = regmap_field_write(info->regmap_fields[F_OPA_MODE], in rt9455_irq_handler_check_irq3_register()
1133 ret = regmap_field_read(info->regmap_fields[F_STAT], &status); in rt9455_irq_handler_thread()
1260 ret = regmap_field_write(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event_none()
1270 ret = regmap_field_write(info->regmap_fields[F_IAICR], in rt9455_usb_event_none()
1300 ret = regmap_field_write(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event_vbus()
1310 ret = regmap_field_write(info->regmap_fields[F_IAICR], in rt9455_usb_event_vbus()
1340 ret = regmap_field_write(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event_id()
1350 ret = regmap_field_write(info->regmap_fields[F_IAICR], in rt9455_usb_event_id()
1380 ret = regmap_field_write(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event_charger()
1390 ret = regmap_field_write(info->regmap_fields[F_IAICR], in rt9455_usb_event_charger()
1413 ret = regmap_field_read(info->regmap_fields[F_OPA_MODE], in rt9455_usb_event()
1420 ret = regmap_field_read(info->regmap_fields[F_IAICR], in rt9455_usb_event()
1452 ret = regmap_field_read(info->regmap_fields[F_PWR_RDY], &pwr_rdy); in rt9455_pwr_rdy_work_callback()
1464 ret = regmap_field_write(info->regmap_fields[F_CHG_EN], in rt9455_pwr_rdy_work_callback()
1490 ret = regmap_field_write(info->regmap_fields[F_CHG_EN], in rt9455_max_charging_time_work_callback()
1530 ret = regmap_field_write(info->regmap_fields[F_BATABM], in rt9455_batt_presence_work_callback()
1620 info->regmap_fields[i] = in rt9455_probe()
1623 if (IS_ERR(info->regmap_fields[i])) { in rt9455_probe()
1626 return PTR_ERR(info->regmap_fields[i]); in rt9455_probe()