Home
last modified time | relevance | path

Searched refs:devPath (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/phosphor-buttons/src/
H A Dgpio.cpp156 std::string devPath{gpioDev}; in configGpio() local
164 fs::path fullPath(devPath); in configGpio()
172 devPath = gpioDev + "/export"; in configGpio()
174 stream.open(devPath, std::fstream::out); in configGpio()
195 stream.open(devPath, std::fstream::in); in configGpio()
211 devPath.clear(); in configGpio()
214 stream.open(devPath, std::fstream::out); in configGpio()
231 stream.open(devPath, std::fstream::out); in configGpio()
248 stream.open(devPath, std::fstream::out); in configGpio()
264 devPath.clear(); in configGpio()
[all …]
H A Dcpld.cpp16 std::stringstream devPath; in getCpldDevPath() local
17 devPath << cpldDev << info.i2cBus << "-" << std::hex << std::setw(4) in getCpldDevPath()
19 return devPath.str(); in getCpldDevPath()
24 std::string devPath = getCpldDevPath(buttonIFConfig.cpld); in configCpld() local
26 auto fd = ::open(devPath.c_str(), O_RDONLY | O_NONBLOCK); in configCpld()
30 lg2::error("Open {PATH} error: {ERROR}", "PATH", devPath, "ERROR", in configCpld()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Ddevice_callouts.cpp105 regex_search(devPath, match, regex); in getI2CSearchKeys()
130 auto search = devPath; in getFSISearchKeys()
164 auto links = getFSISearchKeys(devPath); in getFSII2CSearchKeys()
165 auto busAndAddr = getI2CSearchKeys(devPath); in getFSII2CSearchKeys()
179 regex_search(devPath, match, regex); in getSPISearchKeys()
195 auto links = getFSISearchKeys(devPath); in getFSISPISearchKeys()
196 auto bus = getSPISearchKeys(devPath); in getFSISPISearchKeys()
335 auto links = getFSISearchKeys(devPath); in calloutFSI()
459 path = fs::canonical(devPath); in findCallouts()
464 path = devPath; in findCallouts()
[all …]
H A Ddevice_callouts.hpp103 getCallouts(const std::string& devPath,
168 CalloutType getCalloutType(const std::string& devPath);
180 std::tuple<size_t, uint8_t> getI2CSearchKeys(const std::string& devPath);
193 std::string getFSISearchKeys(const std::string& devPath);
207 getFSII2CSearchKeys(const std::string& devPath);
219 size_t getSPISearchKeys(const std::string& devPath);
232 std::tuple<std::string, size_t> getFSISPISearchKeys(const std::string& devPath);
/openbmc/phosphor-power/tools/power-utils/
H A Dupdater.cpp40 std::string getDeviceName(std::string devPath) in getDeviceName() argument
42 if (devPath.back() == '/') in getDeviceName()
44 devPath.pop_back(); in getDeviceName()
46 return fs::path(devPath).stem().string(); in getDeviceName()
81 auto devPath = internal::getDevicePath(psuInventoryPath); in update() local
82 if (devPath.empty()) in update()
87 Updater updater(psuInventoryPath, devPath, imageDir); in update()
105 psuInventoryPath(psuInventoryPath), devPath(devPath), in Updater()
106 devName(internal::getDeviceName(devPath)), imageDir(imageDir) in Updater()
108 fs::path p = fs::path(devPath) / "driver"; in Updater()
[all …]
H A Dupdater.hpp59 Updater(const std::string& psuInventoryPath, const std::string& devPath,
108 std::string devPath; member in updater::Updater
/openbmc/phosphor-hwmon/
H A Dsysfs.cpp89 fs::path devPath{instancePath}; in findCalloutPath() local
90 devPath /= "device"; in findCalloutPath()
94 devPath = fs::canonical(devPath); in findCalloutPath()
102 fs::path p{devPath}; in findCalloutPath()
110 return devPath; in findCalloutPath()
114 fs::path ofDevPath{devPath}; in findCalloutPath()
204 std::string findHwmonFromDevPath(const std::string& devPath) in findHwmonFromDevPath() argument
207 p /= fs::path(devPath).relative_path(); in findHwmonFromDevPath()
237 devPath.c_str()); in findHwmonFromDevPath()
H A Dtargets.hpp70 const std::string& devPath, ObjectInfo& info) in addTarget() argument
132 phosphor::logging::entry("DEVPATH=%s", devPath.c_str())); in addTarget()
155 metadata::CALLOUT_DEVICE_PATH(devPath.c_str())); in addTarget()
170 devPath, targetId, bus, objPath.c_str(), deferSignals, in addTarget()
H A Dfan_pwm.hpp32 const std::string& devPath, const std::string& id, in FanPwm() argument
38 _id(id), _ioAccess(std::move(io)), _devPath(devPath) in FanPwm()
H A Dfan_speed.hpp33 const std::string& devPath, const std::string& id, in FanSpeed() argument
39 _id(id), _ioAccess(std::move(io)), _devPath(devPath) in FanSpeed()
/openbmc/estoraged/src/
H A Destoraged.cpp45 devPath(devPath), in EStoraged()
190 CryptErase myCryptErase(devPath); in erase()
196 VerifyDriveGeometry myVerifyGeometry(devPath); in erase()
202 Pattern myErasePattern(devPath); in erase()
208 Pattern myErasePattern(devPath); in erase()
214 Sanitize mySanitize(devPath); in erase()
220 Zero myZero(devPath); in erase()
226 Zero myZero(devPath); in erase()
327 CryptHandle cryptHandle(devPath); in formatLuksDev()
361 CryptHandle cryptHandle(devPath); in loadLuksHeader()
[all …]
/openbmc/phosphor-power/tools/power-utils/test/
H A Dtest_updater.cpp34 std::string getDeviceName(std::string devPath);
67 devPath = fs::path(tmpDir) / "i2c"; in setupDeviceSysfs()
70 fs::create_directories(devPath); in setupDeviceSysfs()
71 devPath /= "3-0068"; in setupDeviceSysfs()
72 fs::create_directory_symlink(realDevicePath, devPath); in setupDeviceSysfs()
83 fs::path devPath; member in TestUpdater
91 updater = std::make_unique<Updater>(psuInventoryPath, devPath, imageDir); in TEST_F()
96 updater = std::make_unique<Updater>(psuInventoryPath, devPath, imageDir); in TEST_F()
/openbmc/openpower-sbe-interface/
H A Dsbe_interfaces.cpp42 uint64_t read(const char* devPath, uint64_t address) in read() argument
47 if (devPath == nullptr) in read()
66 invokeSBEChipOperation(devPath, command, response); in read()
72 void write(const char* devPath, uint64_t address, uint64_t data) in write() argument
75 if (devPath == nullptr) in write()
98 invokeSBEChipOperation(devPath, command, response); in write()
H A Dsbe_chipOp_handler.cpp25 std::vector<sbe_word_t> writeToFifo(const char* devPath, in writeToFifo() argument
34 FileDescriptor fileFd(devPath, (O_RDWR | O_NONBLOCK)); in writeToFifo()
45 errMsg << "Waiting for FIFO device:" << devPath << "to write failed" in writeToFifo()
61 errMsg << "Failed to write to FIFO device:" << devPath in writeToFifo()
73 errMsg << "Waiting for FIFO device:" << devPath << "to read failed" in writeToFifo()
94 errMsg << "Failed to read the FIFO device:" << devPath in writeToFifo()
H A Dfile.hpp35 FileDescriptor(const char* devPath, int accessModes) in FileDescriptor() argument
37 fd = open(devPath, accessModes); in FileDescriptor()
42 errMsg << "Opening the device with device path:" << devPath in FileDescriptor()
H A Dsbe_chipOp_handler.hpp35 std::vector<sbe_word_t> writeToFifo(const char* devPath,
73 inline void invokeSBEChipOperation(const char* devPath, in invokeSBEChipOperation() argument
78 auto sbeFifoResp = internal::writeToFifo(devPath, request.data(), in invokeSBEChipOperation()
H A Dsbe_interfaces.hpp21 uint64_t read(const char* devPath, uint64_t address);
32 void write(const char* devPath, uint64_t address, uint64_t data);
/openbmc/estoraged/include/
H A Dsanitize.hpp30 virtual int doIoctl(std::string_view devPath, unsigned long request,
40 virtual int doIoctlMulti(std::string_view devPath, unsigned long request,
56 int doIoctl(std::string_view devPath, unsigned long request,
58 int doIoctlMulti(std::string_view devPath, unsigned long request,
97 doSanitize(util::findSizeOfBlockDevice(devPath)); in doSanitize()
H A Dzero.hpp37 stdplus::fd::open(devPath, stdplus::fd::OpenAccess::WriteOnly); in writeZero()
38 writeZero(util::findSizeOfBlockDevice(devPath), fd); in writeZero()
54 stdplus::fd::open(devPath, stdplus::fd::OpenAccess::ReadOnly); in verifyZero()
55 verifyZero(util::findSizeOfBlockDevice(devPath), fd); in verifyZero()
H A Dpattern.hpp32 stdplus::fd::open(devPath, stdplus::fd::OpenAccess::WriteOnly); in writePattern()
33 writePattern(util::findSizeOfBlockDevice(devPath), fd); in writePattern()
50 stdplus::fd::open(devPath, stdplus::fd::OpenAccess::ReadOnly); in verifyPattern()
51 verifyPattern(util::findSizeOfBlockDevice(devPath), fd); in verifyPattern()
H A Derase.hpp15 Erase(std::string_view inDevPath) : devPath(inDevPath) {} in Erase()
19 std::string devPath; member in estoraged::Erase
/openbmc/phosphor-hwmon/test/
H A Dfanpwm_unittest.cpp63 std::string devPath = ""; in TEST() local
74 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
88 std::string devPath = ""; in TEST() local
105 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
117 std::string devPath = "devp"; in TEST() local
131 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
161 std::string devPath = "devp"; in TEST() local
172 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
/openbmc/estoraged/src/erase/
H A Dsanitize.cpp99 if (ioctlWrapper->doIoctlMulti(devPath, MMC_IOC_MULTI_CMD, eraseCmd) != 0) in emmcErase()
115 if (ioctlWrapper->doIoctl(devPath, MMC_IOC_CMD, idata) != 0) in emmcSanitize()
121 int IOCTLWrapperImpl::doIoctl(std::string_view devPath, unsigned long request, in doIoctl() argument
125 ManagedFd fd = stdplus::fd::open(std::string(devPath).c_str(), in doIoctl()
131 int IOCTLWrapperImpl::doIoctlMulti(std::string_view devPath, in doIoctlMulti() argument
135 ManagedFd fd = stdplus::fd::open(std::string(devPath).c_str(), in doIoctlMulti()
/openbmc/openpower-occ-control/
H A Docc_device.cpp21 auto activeFile = devPath / "occ_active"; in setActive()
29 devPath.c_str(), e.what()) in setActive()
69 auto filePath = devPath / fileName; in readBinary()
88 fs::path p = devPath; in errorCallback()
/openbmc/phosphor-bmc-code-mgmt/usb/
H A Dusb_manager.hpp28 const fs::path& devPath, const fs::path& usbPath) : in USBManager() argument
30 event(event), devicePath(devPath), usbPath(usbPath), in USBManager()

12