Lines Matching refs:soc

48 	int soc;  member
76 { .name = "battery_0.bmp", .soc = 5, .period = 600 },
77 { .name = "battery_1.bmp", .soc = 20, .period = 600 },
78 { .name = "battery_2.bmp", .soc = 40, .period = 600 },
79 { .name = "battery_3.bmp", .soc = 60, .period = 600 },
80 { .name = "battery_4.bmp", .soc = 80, .period = 600 },
81 { .name = "battery_5.bmp", .soc = 100, .period = 600 },
82 { .name = "battery_fail.bmp", .soc = -1, .period = 1000 },
424 static int leds_update(struct udevice *dev, int soc) in leds_update() argument
430 if (old_soc == soc) in leds_update()
433 old_soc = soc; in leds_update()
435 ledst = (soc < 100) ? LEDST_ON : LEDST_OFF; in leds_update()
445 ledst = (soc == 100) ? LEDST_ON : LEDST_OFF; in leds_update()
457 static int leds_update(struct udevice *dev, int soc) { return 0; } in leds_update() argument
502 int voltage, soc, charging = 1; in charge_extrem_low_power() local
535 soc = fuel_gauge_update_get_soc(fg); in charge_extrem_low_power()
536 if (soc < 0 || soc > 100) { in charge_extrem_low_power()
537 printf("get soc failed: %d\n", soc); in charge_extrem_low_power()
542 leds_update(dev, soc); in charge_extrem_low_power()
582 int soc, voltage, current, key_state; in charge_animation_show() local
629 soc = fuel_gauge_update_get_soc(fg); in charge_animation_show()
631 if (soc < pdata->exit_charge_level) { in charge_animation_show()
633 soc, pdata->exit_charge_level); in charge_animation_show()
745 soc = fuel_gauge_update_get_soc(fg); in charge_animation_show()
746 if (soc < 0 || soc > 100) { in charge_animation_show()
747 printf("get soc failed: %d\n", soc); in charge_animation_show()
769 soc >= pdata->exit_charge_level) { in charge_animation_show()
771 soc); in charge_animation_show()
793 get_timer(0) / 1000, soc, voltage, in charge_animation_show()
798 leds_update(dev, soc); in charge_animation_show()
829 if ((soc >= image[i].soc) && (soc < image[i + 1].soc)) { in charge_animation_show()
834 if (soc >= 100) { in charge_animation_show()
860 if (soc >= image[old_show_idx + 1].soc && in charge_animation_show()
861 soc < 100) { in charge_animation_show()
882 if (soc >= 100) { in charge_animation_show()
982 if (soc < pdata->exit_charge_level) { in charge_animation_show()
984 soc, pdata->exit_charge_level); in charge_animation_show()
1027 sec, ms, soc, voltage); in charge_animation_show()
1071 int ret, soc; in charge_animation_probe() local
1121 soc = fuel_gauge_update_get_soc(priv->fg); in charge_animation_probe()
1122 if (soc < 0 || soc > 100) { in charge_animation_probe()
1123 debug("get soc failed: %d\n", soc); in charge_animation_probe()