Home
last modified time | relevance | path

Searched refs:devicePath (Results 1 – 24 of 24) sorted by relevance

/openbmc/openpower-occ-control/test/
H A Derror_files_tests.cpp44 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 Dversion.cpp67 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 Dmodel.cpp72 std::string devicePath = *device; in getModelJson() local
73 if (devicePath.empty()) in getModelJson()
104 phosphor::pmbus::PMBus pmbus(devicePath); in getModelJson()
H A Dutils.cpp196 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 Dusb_manager_main.cpp26 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 Dusb_manager.hpp32 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 Dusb_manager.cpp27 auto rc = mount(devicePath.c_str(), usbPath.c_str(), "vfat", 0, NULL); in copyImage()
/openbmc/openpower-occ-control/
H A Docc_command.cpp56 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 Docc_pass_through.hpp81 std::string devicePath; member in open_power::occ::PassThrough
H A Docc_command.hpp141 std::string devicePath; member in open_power::occ::OccCommand
H A Docc_pass_through.cpp28 devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)), in PassThrough()
/openbmc/phosphor-modbus/rtu/port/
H A Dbase_port.cpp21 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 Dbase_port.hpp102 const std::string& devicePath);
/openbmc/openpower-pnor-code-mgmt/ubi/
H A Dserialize.cpp87 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 Dserialize.cpp90 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 Deeprom_device.cpp43 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 Deeprom_device.hpp101 auto devicePath = path / address; in unbindDevice() local
102 if (!std::filesystem::exists(devicePath)) in unbindDevice()
/openbmc/phosphor-modbus/tests/
H A Dtest_inventory.cpp26 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
H A Dtest_firmware.cpp26 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
H A Dtest_port.cpp35 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
H A Dtest_sensors.cpp39 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
H A Dtest_device_events.cpp50 const std::string& devicePath) : BasePort(ctx, config, devicePath) in MockPort() argument
/openbmc/dbus-sensors/src/psu/
H A DPSUSensorMain.cpp373 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 DIntelCPUSensorMain.cpp427 std::filesystem::path devicePath(newDevice); in exportDevice() local
428 const std::string& dir = devicePath.parent_path().string(); in exportDevice()