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>
41 #include <linux/i2c-dev.h>
93 else if (sensorType == "energy") in SmbpbiSensor()
146 temp = double(intg) - double(frac / 256.0); in convert2Temp()
154 // Power data is encoded as a 4-byte unsigned integer in convert2Power()
217 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in i2cReadDataBytes()
223 return -1; in i2cReadDataBytes()
227 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in i2cReadDataBytes()
231 return -1; in i2cReadDataBytes()
259 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in i2cReadDataBytes()
270 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) in i2cReadDataBytes()
287 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) in readRawEEPROMData()
301 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) in readRawEEPROMData()
306 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) in readRawEEPROMData()
309 else if (sensorType == "energy") in readRawEEPROMData()
348 // Sensor reading value types are sensor-specific. So, read in waitReadCallback()
385 this->waitReadCallback(ec); in read()
463 std::string path = "/dev/i2c-" + std::to_string(busId); in createSensorCallback()
470 sensor->init(); in createSensorCallback()
487 dbusConnection->async_method_call( in createSensors()
503 systemBus->request_name("xyz.openbmc_project.SMBPBI"); in main()
527 if (sensors.empty()) in main()