Home
last modified time | relevance | path

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

/openbmc/openpower-occ-control/test/
H A Derror_files_tests.cpp49 devicePath = occPath / device; in SetUp()
52 fs::create_directory(devicePath); in SetUp()
55 files[0] = devicePath / error; in SetUp()
56 files[1] = devicePath / errorMem; in SetUp()
57 files[2] = devicePath / errorPower; in SetUp()
58 files[3] = devicePath / errorTemp; in SetUp()
90 fs::path devicePath; member in ErrorFiles
97 Device occDevice(pEvent, devicePath, manager, status in TEST_F()
/openbmc/phosphor-power/tools/power-utils/
H A Dversion.cpp68 auto devicePath = devices->find(psuInventoryPath); in getVersionInfo() local
69 if (devicePath == devices->end()) in getVersionInfo()
93 return std::make_tuple(*devicePath, type, fileName); in getVersionInfo()
110 const auto [devicePath, type, fileName] = getVersionInfo(psuInventoryPath); in getVersionJson()
114 if (!devicePath.empty() && !fileName.empty()) in getVersionJson()
116 phosphor::pmbus::PMBus pmbus(devicePath); in getVersionJson()
H A Dmodel.cpp73 std::string devicePath = *device; in getModelJson() local
74 if (devicePath.empty()) in getModelJson()
105 phosphor::pmbus::PMBus pmbus(devicePath); in getModelJson()
H A Dutils.cpp198 auto devicePath = data["psuDevices"][psuInventoryPath]; in getDevicePath() local
199 if (devicePath.empty()) in getDevicePath()
203 return devicePath; in getDevicePath()
/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.hpp87 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.cpp35 devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)), in PassThrough()
/openbmc/phosphor-bmc-code-mgmt/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-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/
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-fan-presence/presence/
H A Deeprom_device.hpp101 auto devicePath = path / address; in unbindDevice() local
102 if (!std::filesystem::exists(devicePath)) in unbindDevice()
/openbmc/dbus-sensors/src/psu/
H A DPSUSensorMain.cpp359 std::string devicePath = fs::canonical(directory / "device"); in createSensorsCallback() local
362 std::regex_search(devicePath, match, i2cDevRegex); in createSensorsCallback()
365 std::cerr << "Found bad device path " << devicePath << "\n"; in createSensorsCallback()
/openbmc/dbus-sensors/src/intel-cpu/
H A DIntelCPUSensorMain.cpp433 std::filesystem::path devicePath(newDevice); in exportDevice() local
434 const std::string& dir = devicePath.parent_path().string(); in exportDevice()