Home
last modified time | relevance | path

Searched full:devpath (Results 1 – 25 of 152) sorted by relevance

1234567

/openbmc/phosphor-buttons/src/
H A Dgpio.cpp155 std::string devPath{gpioDev}; in configGpio() local
161 devPath += "/gpio" + std::to_string(gpioNum) + "/value"; in configGpio()
163 fs::path fullPath(devPath); in configGpio()
167 lg2::info("GPIO exported: {PATH}", "PATH", devPath); in configGpio()
171 devPath = gpioDev + "/export"; in configGpio()
173 stream.open(devPath, std::fstream::out); in configGpio()
183 "PATH", devPath, "ERROR", e); in configGpio()
190 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/value"; in configGpio()
194 stream.open(devPath, std::fstream::in); in configGpio()
203 lg2::error("Error in reading {PATH}: {ERROR}", "PATH", devPath, in configGpio()
[all …]
H A Dcpld.cpp15 std::stringstream devPath; in getCpldDevPath() local
16 devPath << cpldDev << info.i2cBus << "-" << std::hex << std::setw(4) in getCpldDevPath()
18 return devPath.str(); in getCpldDevPath()
23 std::string devPath = getCpldDevPath(buttonIFConfig.cpld); in configCpld() local
25 auto fd = ::open(devPath.c_str(), O_RDONLY | O_NONBLOCK); in configCpld()
29 lg2::error("Open {PATH} error: {ERROR}", "PATH", devPath, "ERROR", in configCpld()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Ddevice_callouts.cpp85 std::tuple<size_t, uint8_t> getI2CSearchKeys(const std::string& devPath) in getI2CSearchKeys() argument
93 regex_search(devPath, match, regex); in getI2CSearchKeys()
97 std::string msg = "Could not get I2C bus and address from " + devPath; in getI2CSearchKeys()
114 std::string getFSISearchKeys(const std::string& devPath) in getFSISearchKeys() argument
118 auto search = devPath; in getFSISearchKeys()
137 std::string msg = "Could not get FSI links from " + devPath; in getFSISearchKeys()
148 const std::string& devPath) in getFSII2CSearchKeys() argument
152 auto links = getFSISearchKeys(devPath); in getFSII2CSearchKeys()
153 auto busAndAddr = getI2CSearchKeys(devPath); in getFSII2CSearchKeys()
158 size_t getSPISearchKeys(const std::string& devPath) in getSPISearchKeys() argument
[all …]
H A Ddevice_callouts.hpp97 * @param[in] devPath - The device path
103 const std::string& devPath, const std::vector<std::string>& compatibleList);
162 * @param[in] devPath - The device path
166 CalloutType getCalloutType(const std::string& devPath);
174 * @param[in] devPath - The device path
178 std::tuple<size_t, uint8_t> getI2CSearchKeys(const std::string& devPath);
187 * @param[in] devPath - The device path
191 std::string getFSISearchKeys(const std::string& devPath);
199 * @param[in] devPath - The device path
205 const std::string& devPath);
[all …]
/openbmc/phosphor-power/tools/power-utils/test/
H A Dtest_updater.cpp57 devPath = fs::path(tmpDir) / "i2c"; in setupDeviceSysfs()
60 fs::create_directories(devPath); in setupDeviceSysfs()
61 devPath /= "3-0068"; in setupDeviceSysfs()
62 fs::create_directory_symlink(realDevicePath, devPath); in setupDeviceSysfs()
73 fs::path devPath; member in TestUpdater
81 updater = std::make_unique<Updater>(psuInventoryPath, devPath, imageDir); in TEST_F()
86 updater = std::make_unique<Updater>(psuInventoryPath, devPath, imageDir); in TEST_F()
/openbmc/estoraged/include/
H A Dsanitize.hpp26 * @param[in] devPath - File name of block device
30 virtual int doIoctl(std::string_view devPath, unsigned long request,
36 * @param[in] devPath - File name of block device
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,
96 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()
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier2U/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
67 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
86 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
105 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier4U/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
67 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
86 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
105 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/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 Dmeson.options34 'override-with-devpath',
36 description: 'Only use the devpath of the device even if OFPath exists',
40 'always-use-devpath',
43 description: 'Only use the devpath for all devices.',
/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 Dfile.hpp32 * @param[in] devPath - Path of the file
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()
/openbmc/openbmc/meta-ibm/recipes-phosphor/fans/phosphor-fan-presence-config/swift/
H A Dconfig.yaml7 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
20 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
33 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
46 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
60 devpath: /dev/input/by-path/platform-gpio-keys-polled-event
/openbmc/estoraged/src/
H A Destoraged.cpp38 const std::string& devPath, const std::string& luksName, uint64_t size, in EStoraged() argument
45 devPath(devPath), containerName(luksName), in EStoraged()
53 std::string deviceName = std::filesystem::path(devPath).filename().string(); in EStoraged()
191 CryptErase myCryptErase(devPath); in erase()
197 VerifyDriveGeometry myVerifyGeometry(devPath); in erase()
203 Pattern myErasePattern(devPath); in erase()
209 Pattern myErasePattern(devPath); in erase()
215 Sanitize mySanitize(devPath); in erase()
221 Zero myZero(devPath); in erase()
227 Zero myZero(devPath); in erase()
[all …]
/openbmc/phosphor-hwmon/test/
H A Dfanpwm_unittest.cpp58 std::string devPath = ""; in TEST() local
69 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
83 std::string devPath = ""; in TEST() local
100 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
112 std::string devPath = "devp"; in TEST() local
126 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
156 std::string devPath = "devp"; in TEST() local
167 hwmon::FanPwm f(std::move(hwmonio_mock), devPath, id, bus_mock, in TEST()
/openbmc/qemu/util/
H A Dchardev_open.c62 g_autofree char *devpath = NULL; in open_cdev_robust() local
68 devpath = g_strdup_printf("/dev/char/%u:%u", major(cdev), minor(cdev)); in open_cdev_robust()
69 return open_cdev_internal(devpath, cdev); in open_cdev_robust()
72 int open_cdev(const char *devpath, dev_t cdev) in open_cdev() argument
76 fd = open_cdev_internal(devpath, cdev); in open_cdev()
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier1S4U/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
67 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/openbmc/phosphor-fan-presence/presence/config_files/witherspoon/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
29 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
48 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
67 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/linuxconsole/linuxconsole/
H A D60-joystick.rules6 # don't need the devpath of the js device for this so it is OK to overwrite.
7 …"js*", IMPORT{parent}="DEVPATH", ATTRS{name}=="Sony PLAYSTATION(R)3 Controller", RUN+="/lib/udev/j…
/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/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Everest/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
34 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
58 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
82 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/openbmc/phosphor-fan-presence/presence/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Fuji/
H A Dconfig.json10 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
34 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
58 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
82 "devpath": "/dev/input/by-path/platform-gpio-keys-polled-event" string
/openbmc/openbmc-tools/adcapp/src/
H A Dadcifc.c46 char devpath[50]; in sys_get_adc_vol() local
55 snprintf(devpath, sizeof(devpath), "/sys/bus/iio/devices/iio:device%d", in sys_get_adc_vol()
57 retval = adc_directory_check(devpath); in sys_get_adc_vol()
62 devpath, argp->channel_num); in sys_get_adc_vol()

1234567