Lines Matching refs:hist
63 struct BatteryHistory hist; in checkAndReport() local
76 &hist.cycle_cnt, &hist.full_cap, &hist.esr, in checkAndReport()
77 &hist.rslow, &hist.batt_temp, &hist.soh, in checkAndReport()
78 &hist.cc_soc, &hist.cutoff_soc, &hist.msoc, in checkAndReport()
79 &hist.sys_soc, &hist.reserve, &hist.batt_soc, in checkAndReport()
80 &hist.min_temp, &hist.max_temp, &hist.max_vbatt, in checkAndReport()
81 &hist.min_vbatt, &hist.max_ibatt, &hist.min_ibatt, in checkAndReport()
82 &hist.checksum); in checkAndReport()
89 if (checkLogEvent(hist)) { in checkAndReport()
90 reportEvent(stats_client, hist); in checkAndReport()
106 bool BatteryEEPROMReporter::checkLogEvent(struct BatteryHistory hist) { in checkLogEvent() argument
109 checksum = hist.cycle_cnt + hist.full_cap + hist.esr + hist.rslow in checkLogEvent()
110 + hist.soh + hist.batt_temp + hist.cutoff_soc + hist.cc_soc in checkLogEvent()
111 + hist.sys_soc + hist.msoc + hist.batt_soc + hist.reserve in checkLogEvent()
112 + hist.max_temp + hist.min_temp + hist.max_vbatt in checkLogEvent()
113 + hist.min_vbatt + hist.max_ibatt + hist.min_ibatt; in checkLogEvent()
115 if (checksum == hist.checksum) { in checkLogEvent()
123 const struct BatteryHistory &hist) { in reportEvent() argument
141 hist.cycle_cnt, hist.full_cap, hist.esr, hist.rslow, hist.soh, hist.batt_temp, in reportEvent()
142 hist.cutoff_soc, hist.cc_soc, hist.sys_soc, hist.msoc, hist.batt_soc, hist.reserve, in reportEvent()
143 hist.max_temp, hist.min_temp, hist.max_vbatt, hist.min_vbatt, hist.max_ibatt, in reportEvent()
144 hist.min_ibatt, hist.checksum); in reportEvent()
149 val.set<VendorAtomValue::intValue>(hist.cycle_cnt); in reportEvent()
151 val.set<VendorAtomValue::intValue>(hist.full_cap); in reportEvent()
153 val.set<VendorAtomValue::intValue>(hist.esr); in reportEvent()
155 val.set<VendorAtomValue::intValue>(hist.rslow); in reportEvent()
157 val.set<VendorAtomValue::intValue>(hist.soh); in reportEvent()
159 val.set<VendorAtomValue::intValue>(hist.batt_temp); in reportEvent()
161 val.set<VendorAtomValue::intValue>(hist.cutoff_soc); in reportEvent()
163 val.set<VendorAtomValue::intValue>(hist.cc_soc); in reportEvent()
165 val.set<VendorAtomValue::intValue>(hist.sys_soc); in reportEvent()
167 val.set<VendorAtomValue::intValue>(hist.msoc); in reportEvent()
169 val.set<VendorAtomValue::intValue>(hist.batt_soc); in reportEvent()
171 val.set<VendorAtomValue::intValue>(hist.reserve); in reportEvent()
173 val.set<VendorAtomValue::intValue>(hist.max_temp); in reportEvent()
175 val.set<VendorAtomValue::intValue>(hist.min_temp); in reportEvent()
177 val.set<VendorAtomValue::intValue>(hist.max_vbatt); in reportEvent()
179 val.set<VendorAtomValue::intValue>(hist.min_vbatt); in reportEvent()
181 val.set<VendorAtomValue::intValue>(hist.max_ibatt); in reportEvent()
183 val.set<VendorAtomValue::intValue>(hist.min_ibatt); in reportEvent()
185 val.set<VendorAtomValue::intValue>(hist.checksum); in reportEvent()