• Home
  • Raw
  • Download

Lines Matching refs:size

59   ssize_t size = mModule->getTemperatures(mModule, nullptr, 0);  in getTemperatures()  local
60 if (size >= 0) { in getTemperatures()
62 list.resize(size); in getTemperatures()
63 size = mModule->getTemperatures(mModule, list.data(), list.size()); in getTemperatures()
64 if (size >= 0) { in getTemperatures()
65 temperatures.resize(list.size()); in getTemperatures()
66 for (size_t i = 0; i < list.size(); ++i) { in getTemperatures()
96 if (size < 0) { in getTemperatures()
98 status.debugMessage = strerror(-size); in getTemperatures()
115 ssize_t size = mModule->getCpuUsages(mModule, nullptr); in getCpuUsages() local
116 if (size >= 0) { in getCpuUsages()
118 list.resize(size); in getCpuUsages()
119 size = mModule->getCpuUsages(mModule, list.data()); in getCpuUsages()
120 if (size >= 0) { in getCpuUsages()
121 list.resize(size); in getCpuUsages()
122 cpuUsages.resize(size); in getCpuUsages()
123 for (size_t i = 0; i < list.size(); ++i) { in getCpuUsages()
131 status.debugMessage = strerror(-size); in getCpuUsages()
134 if (size < 0) { in getCpuUsages()
136 status.debugMessage = strerror(-size); in getCpuUsages()
153 ssize_t size = mModule->getCoolingDevices(mModule, nullptr, 0); in getCoolingDevices() local
154 if (size >= 0) { in getCoolingDevices()
156 list.resize(size); in getCoolingDevices()
157 size = mModule->getCoolingDevices(mModule, list.data(), list.size()); in getCoolingDevices()
158 if (size >= 0) { in getCoolingDevices()
159 list.resize(size); in getCoolingDevices()
160 coolingDevices.resize(list.size()); in getCoolingDevices()
161 for (size_t i = 0; i < list.size(); ++i) { in getCoolingDevices()
174 if (size < 0) { in getCoolingDevices()
176 status.debugMessage = strerror(-size); in getCoolingDevices()