| /openbmc/openpower-occ-control/test/ |
| H A D | error_files_tests.cpp | 44 devicePath = occPath / device; in SetUp() 47 fs::create_directory(devicePath); in SetUp() 50 files[0] = devicePath / error; in SetUp() 51 files[1] = devicePath / errorMem; in SetUp() 52 files[2] = devicePath / errorPower; in SetUp() 53 files[3] = devicePath / errorTemp; in SetUp() 83 fs::path devicePath; member in ErrorFiles 90 Device occDevice(pEvent, devicePath, manager, status, powerMode); in TEST_F()
|
| /openbmc/phosphor-power/tools/power-utils/ |
| H A D | version.cpp | 67 auto devicePath = devices->find(psuInventoryPath); in getVersionInfo() local 68 if (devicePath == devices->end()) in getVersionInfo() 92 return std::make_tuple(*devicePath, type, fileName); in getVersionInfo() 109 const auto [devicePath, type, fileName] = getVersionInfo(psuInventoryPath); in getVersionJson() 113 if (!devicePath.empty() && !fileName.empty()) in getVersionJson() 115 phosphor::pmbus::PMBus pmbus(devicePath); in getVersionJson()
|
| H A D | model.cpp | 72 std::string devicePath = *device; in getModelJson() local 73 if (devicePath.empty()) in getModelJson() 104 phosphor::pmbus::PMBus pmbus(devicePath); in getModelJson()
|
| H A D | utils.cpp | 196 auto devicePath = data["psuDevices"][psuInventoryPath]; in getDevicePath() local 197 if (devicePath.empty()) in getDevicePath() 201 return devicePath; in getDevicePath()
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/usb/ |
| H A D | usb_manager_main.cpp | 26 fs::path devicePath = fs::path{"/dev"} / deviceName; in main() 32 phosphor::usb::USBManager manager(ctx, devicePath, usbPath); in main() 43 phosphor::usb::USBManager manager(bus, event, devicePath, usbPath); in main()
|
| H A D | usb_manager.hpp | 32 ctx(ctx), devicePath(devPath), usbPath(usbPath) in USBManager() 59 devicePath(devPath), usbPath(usbPath) in USBManager() 118 const fs::path& devicePath; member in phosphor::usb::USBManager
|
| H A D | usb_manager.cpp | 27 auto rc = mount(devicePath.c_str(), usbPath.c_str(), "vfat", 0, NULL); in copyImage()
|
| /openbmc/openpower-occ-control/ |
| H A D | occ_command.cpp | 56 devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)), in OccCommand() 64 "PATH", this->path, "DEVICE", devicePath); in OccCommand() 72 devicePath); in openDevice() 73 fd = open(devicePath.c_str(), O_RDWR | O_NONBLOCK); in openDevice() 79 "ERR", openErrno, "PATH", devicePath); in openDevice() 120 "PATH", devicePath); in send()
|
| H A D | occ_pass_through.hpp | 81 std::string devicePath; member in open_power::occ::PassThrough
|
| H A D | occ_command.hpp | 141 std::string devicePath; member in open_power::occ::OccCommand
|
| H A D | occ_pass_through.cpp | 28 devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)), in PassThrough()
|
| /openbmc/phosphor-modbus/rtu/port/ |
| H A D | base_port.cpp | 21 const std::string& devicePath) : in BasePort() argument 24 fd = open(devicePath.c_str(), O_RDWR | O_NOCTTY); in BasePort() 27 throw("Failed to open serial port " + devicePath + in BasePort()
|
| H A D | base_port.hpp | 102 const std::string& devicePath);
|
| /openbmc/openpower-pnor-code-mgmt/ubi/ |
| H A D | serialize.cpp | 87 std::string devicePath = "/dev/mtd/u-boot-env"; in restoreFromFile() local 89 if (std::filesystem::exists(devicePath) && !devicePath.empty()) in restoreFromFile() 91 std::ifstream input(devicePath.c_str()); in restoreFromFile()
|
| /openbmc/phosphor-bmc-code-mgmt/bmc/ |
| H A D | serialize.cpp | 90 std::string devicePath; in restorePriority() local 98 devicePath = "/dev/" + device.substr(0, device.find(':')); in restorePriority() 103 if (!devicePath.empty()) in restorePriority() 105 std::ifstream input(devicePath.c_str()); in restorePriority()
|
| /openbmc/phosphor-bmc-code-mgmt/eeprom-device/ |
| H A D | eeprom_device.cpp | 43 std::string devicePath = in getEEPROMPath() local 46 if (fs::exists(devicePath) && fs::is_regular_file(devicePath)) in getEEPROMPath() 48 debug("Found EEPROM device path: {PATH}", "PATH", devicePath); in getEEPROMPath() 49 return devicePath; in getEEPROMPath()
|
| /openbmc/phosphor-fan-presence/presence/ |
| H A D | eeprom_device.hpp | 101 auto devicePath = path / address; in unbindDevice() local 102 if (!std::filesystem::exists(devicePath)) in unbindDevice()
|
| /openbmc/phosphor-modbus/tests/ |
| H A D | test_inventory.cpp | 26 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
|
| H A D | test_firmware.cpp | 26 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
|
| H A D | test_port.cpp | 35 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
|
| H A D | test_sensors.cpp | 39 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
|
| H A D | test_device_events.cpp | 50 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
|
| /openbmc/dbus-sensors/src/psu/ |
| H A D | PSUSensorMain.cpp | 373 std::string devicePath = in createSensorsCallback() local 377 std::regex_search(devicePath, match, i2cDevRegex); in createSensorsCallback() 381 devicePath); in createSensorsCallback()
|
| /openbmc/dbus-sensors/src/intel-cpu/ |
| H A D | IntelCPUSensorMain.cpp | 427 std::filesystem::path devicePath(newDevice); in exportDevice() local 428 const std::string& dir = devicePath.parent_path().string(); in exportDevice()
|