/openbmc/phosphor-power/tools/i2c/ |
H A D | i2c.cpp | 42 throw I2CException("Failed to get funcs", busStr, devAddr, errno); in getFuncs() 57 throw I2CException("Missing SMBUS_READ_BYTE", busStr, devAddr); in checkReadFuncs() 63 throw I2CException("Missing SMBUS_READ_BYTE_DATA", busStr, in checkReadFuncs() 70 throw I2CException("Missing SMBUS_READ_WORD_DATA", busStr, in checkReadFuncs() 77 throw I2CException("Missing SMBUS_READ_BLOCK_DATA", busStr, in checkReadFuncs() 85 busStr, devAddr); in checkReadFuncs() 103 throw I2CException("Missing SMBUS_WRITE_BYTE", busStr, devAddr); in checkWriteFuncs() 109 throw I2CException("Missing SMBUS_WRITE_BYTE_DATA", busStr, in checkWriteFuncs() 116 throw I2CException("Missing SMBUS_WRITE_WORD_DATA", busStr, in checkWriteFuncs() 123 throw I2CException("Missing SMBUS_WRITE_BLOCK_DATA", busStr, in checkWriteFuncs() [all …]
|
H A D | i2c.hpp | 28 busStr("/dev/i2c-" + std::to_string(busId)) in I2CDevice() 52 std::string busStr; member in i2c::I2CDevice 65 throw I2CException("Device not open", busStr, devAddr); in checkIsOpen()
|
/openbmc/dbus-sensors/src/intel-cpu/ |
H A D | IntelCPUSensorMain.cpp | 430 std::string busStr = std::to_string(config.bus); in exportDevice() local 434 std::string delDevice = devPath + "peci-" + busStr + "/delete_device"; in exportDevice() 435 std::string newDevice = devPath + "peci-" + busStr + "/new_device"; in exportDevice() 436 std::string newClient = devPath + busStr + "-" + addrHexStr + "/driver"; in exportDevice() 448 if (directoryName.starts_with(busStr) && in exportDevice() 454 "PARAMETERS", parameters, "BUS", busStr); in exportDevice() 486 parameters, "BUS", busStr); in exportDevice()
|
/openbmc/dbus-sensors/src/ |
H A D | Utils.hpp | 411 std::string busStr = deviceName.substr(0, findHyphen); in getDeviceBusAddr() 415 res = std::from_chars(&*busStr.begin(), &*busStr.end(), bus); in getDeviceBusAddr() 416 if (res.ec != std::errc{} || res.ptr != &*busStr.end()) in getDeviceBusAddr() 407 std::string busStr = deviceName.substr(0, findHyphen); getDeviceBusAddr() local
|
/openbmc/phosphor-power/tools/power-utils/ |
H A D | utils.cpp | 216 std::string busStr = std::to_string(i2cbus); in getDevicePath() local 217 std::string devPath = DevicePath + busStr + "-" + addrStr; in getDevicePath()
|
/openbmc/ipmbbridge/ |
H A D | ipmbbridged.cpp | 540 std::string busStr = ipmbI2cTargetStr.substr(findHyphen + 1); in ipmbChannelInit() local 543 ipmbBusId = std::stoi(busStr); in ipmbChannelInit() 558 "/sys/bus/i2c/devices/i2c-" + busStr + "/new_device"; in ipmbChannelInit()
|
/openbmc/intel-ipmi-oem/src/ |
H A D | manufacturingcommands.cpp | 1449 bool getBusNumFromPath(const std::string& path, std::string& busStr) in getBusNumFromPath() argument 1455 busStr = parts[1]; in getBusNumFromPath() 1456 if (isNum(busStr)) in getBusNumFromPath()
|
/openbmc/phosphor-power/phosphor-power-supply/ |
H A D | power_supply.cpp | 54 std::string busStr = std::to_string(i2cbus); in PowerSupply() local 55 bindDevice = busStr; in PowerSupply()
|
/openbmc/s2600wf-misc/hsbp-manager/src/ |
H A D | hsbp_manager.cpp | 1649 std::string busStr = fname.substr(0, findDash); in updateAssets() local 1652 size_t bus = static_cast<size_t>(std::stoi(busStr)); in updateAssets()
|