Lines Matching +full:energy +full:- +full:empty
2 * SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION &
4 * SPDX-License-Identifier: Apache-2.0
20 #include <phosphor-logging/lg2.hpp>
40 #include <linux/i2c-dev.h>
90 else if (sensorType == "energy")
143 temp = double(intg) - double(frac / 256.0);
151 // Power data is encoded as a 4-byte unsigned integer
214 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
220 return -1;
224 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
228 return -1;
262 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
279 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
290 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
295 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
298 else if (sensorType == "energy")
337 // Sensor reading value types are sensor-specific. So, read
371 this->waitReadCallback(ec);
446 std::string path = "/dev/i2c-" + std::to_string(busId);
453 sensor->init();
470 dbusConnection->async_method_call(
486 systemBus->request_name("xyz.openbmc_project.SMBPBI");
510 if (sensors.empty())