Searched refs:hw_cap_ (Results 1 – 6 of 6) sorted by relevance
/device/google/bonito/health/ |
D | LearnedCapacityBackupRestore.cpp | 94 if (sscanf(buffer.c_str(), "%d", &hw_cap_) < 1) in ReadCapacity() 103 snprintf(strData, kBuffSize, "%d", hw_cap_); in SaveToSRAM() 114 if (hw_cap_) { in UpdateAndSave() 115 if (((hw_cap_ != sw_cap_) && (hw_cap_ != nom_cap_)) || in UpdateAndSave() 117 sw_cap_ = hw_cap_; in UpdateAndSave() 119 } else if ((sw_cap_ > 0) && (hw_cap_ == nom_cap_)) { in UpdateAndSave() 120 hw_cap_ = sw_cap_; in UpdateAndSave()
|
D | LearnedCapacityBackupRestore.h | 38 int hw_cap_; variable
|
/device/google/marlin/health/ |
D | LearnedCapacityBackupRestore.cpp | 28 LearnedCapacityBackupRestore::LearnedCapacityBackupRestore() : sw_cap_(0), hw_cap_(0) {} in LearnedCapacityBackupRestore() 35 sw_cap_ = hw_cap_; in Restore() 45 if (sw_cap_ != hw_cap_) { in Backup() 47 sw_cap_ = hw_cap_; in Backup() 87 if (sscanf(buffer.c_str(), "%d", &hw_cap_) < 1) in ReadFromSRAM() 96 snprintf(strData, kBuffSize, "%d", hw_cap_); in SaveToSRAM()
|
D | LearnedCapacityBackupRestore.h | 38 int hw_cap_; variable
|
/device/google/wahoo/health/ |
D | LearnedCapacityBackupRestore.cpp | 28 LearnedCapacityBackupRestore::LearnedCapacityBackupRestore() : sw_cap_(0), hw_cap_(0) {} in LearnedCapacityBackupRestore() 35 sw_cap_ = hw_cap_; in Restore() 45 if (sw_cap_ != hw_cap_) { in Backup() 47 sw_cap_ = hw_cap_; in Backup() 87 if (sscanf(buffer.c_str(), "%d", &hw_cap_) < 1) in ReadFromSRAM() 96 snprintf(strData, kBuffSize, "%d", hw_cap_); in SaveToSRAM()
|
D | LearnedCapacityBackupRestore.h | 38 int hw_cap_; variable
|