Home
last modified time | relevance | path

Searched refs:gpioDev (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-buttons/src/
H A Dgpio.cpp31 const std::string gpioDev = "/sys/class/gpio"; variable
92 for (auto& f : fs::directory_iterator(gpioDev)) in getGpioBase()
155 std::string devPath{gpioDev}; in configGpio()
171 devPath = gpioDev + "/export"; in configGpio()
190 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/value"; in configGpio()
211 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/direction"; in configGpio()
228 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/direction"; in configGpio()
245 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/direction"; in configGpio()
267 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/edge"; in configGpio()
283 devPath = gpioDev + "/gpio" + std::to_string(gpioNum) + "/value"; in configGpio()
/openbmc/phosphor-fan-presence/cooling-type/
H A Dcooling_type.cpp32 libevdev* gpioDev = nullptr; in evdevOpen() local
34 auto rc = libevdev_new_from_fd(fd, &gpioDev); in evdevOpen()
37 return decltype(evdevOpen(0))(gpioDev); in evdevOpen()
65 auto gpioDev = evdevOpen(gpioFd()); in readGpio() local
69 libevdev_fetch_event_value(gpioDev.get(), EV_KEY, keycode, &value); in readGpio()