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 },
423 static int leds_update(struct udevice *dev, int soc) in leds_update() argument
429 if (old_soc == soc) in leds_update()
432 old_soc = soc; in leds_update()
434 ledst = (soc < 100) ? LEDST_ON : LEDST_OFF; in leds_update()
444 ledst = (soc == 100) ? LEDST_ON : LEDST_OFF; in leds_update()
456 static int leds_update(struct udevice *dev, int soc) { return 0; } in leds_update() argument
501 int voltage, soc, charging = 1; in charge_extrem_low_power() local
534 soc = fuel_gauge_update_get_soc(fg); in charge_extrem_low_power()
535 if (soc < 0 || soc > 100) { in charge_extrem_low_power()
536 printf("get soc failed: %d\n", soc); in charge_extrem_low_power()
541 leds_update(dev, soc); in charge_extrem_low_power()
581 int soc, voltage, current, key_state; in charge_animation_show() local
628 soc = fuel_gauge_update_get_soc(fg); in charge_animation_show()
630 if (soc < pdata->exit_charge_level) { in charge_animation_show()
632 soc, pdata->exit_charge_level); in charge_animation_show()
744 soc = fuel_gauge_update_get_soc(fg); in charge_animation_show()
745 if (soc < 0 || soc > 100) { in charge_animation_show()
746 printf("get soc failed: %d\n", soc); in charge_animation_show()
768 soc >= pdata->exit_charge_level) { in charge_animation_show()
770 soc); in charge_animation_show()
792 get_timer(0) / 1000, soc, voltage, in charge_animation_show()
797 leds_update(dev, soc); in charge_animation_show()
828 if ((soc >= image[i].soc) && (soc < image[i + 1].soc)) { in charge_animation_show()
833 if (soc >= 100) { in charge_animation_show()
859 if (soc >= image[old_show_idx + 1].soc && in charge_animation_show()
860 soc < 100) { in charge_animation_show()
881 if (soc >= 100) { in charge_animation_show()
981 if (soc < pdata->exit_charge_level) { in charge_animation_show()
983 soc, pdata->exit_charge_level); in charge_animation_show()
1026 sec, ms, soc, voltage); in charge_animation_show()
1069 int ret, soc; in charge_animation_probe() local
1107 soc = fuel_gauge_update_get_soc(priv->fg); in charge_animation_probe()
1108 if (soc < 0 || soc > 100) { in charge_animation_probe()
1109 debug("get soc failed: %d\n", soc); in charge_animation_probe()