/openbmc/phosphor-buttons/src/ |
H A D | gpio.cpp | 156 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 D | cpld.cpp | 16 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 D | device_callouts.cpp | 105 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 D | device_callouts.hpp | 103 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 D | updater.cpp | 40 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 D | updater.hpp | 59 Updater(const std::string& psuInventoryPath, const std::string& devPath, 108 std::string devPath; member in updater::Updater
|
/openbmc/phosphor-hwmon/ |
H A D | sysfs.cpp | 89 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 D | targets.hpp | 70 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 D | fan_pwm.hpp | 32 const std::string& devPath, const std::string& id, in FanPwm() argument 38 _id(id), _ioAccess(std::move(io)), _devPath(devPath) in FanPwm()
|
H A D | fan_speed.hpp | 33 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 D | estoraged.cpp | 45 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 D | test_updater.cpp | 34 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 D | sbe_interfaces.cpp | 42 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 D | sbe_chipOp_handler.cpp | 25 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 D | file.hpp | 35 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 D | sbe_chipOp_handler.hpp | 35 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 D | sbe_interfaces.hpp | 21 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 D | sanitize.hpp | 30 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 D | zero.hpp | 37 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 D | pattern.hpp | 32 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 D | erase.hpp | 15 Erase(std::string_view inDevPath) : devPath(inDevPath) {} in Erase() 19 std::string devPath; member in estoraged::Erase
|
/openbmc/phosphor-hwmon/test/ |
H A D | fanpwm_unittest.cpp | 63 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 D | sanitize.cpp | 99 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 D | occ_device.cpp | 21 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 D | usb_manager.hpp | 28 const fs::path& devPath, const fs::path& usbPath) : in USBManager() argument 30 event(event), devicePath(devPath), usbPath(usbPath), in USBManager()
|