Lines Matching defs:battery_state
47 typedef struct battery_state {
58 static battery_state_t battery_state;
87 (void) memset(&battery_state, 0, sizeof (battery_state_t));
107 pt_display_acpi_power(battery_state.exist, battery_state.present_rate,
108 battery_state.remain_cap, battery_state.last_cap,
109 battery_state.bst_state);
144 battery_state.power_unit = knp->value.ui32;
168 battery_state.present_rate = 0;
170 battery_state.exist = 1;
171 battery_state.present_rate = mW2W((double)(knp->value.ui32));
194 battery_state.last_cap = mW2W((double)(knp->value.ui32));
216 battery_state.remain_cap = mW2W((double)(knp->value.ui32));
240 battery_state.bst_state = knp->value.ui32;