Home
last modified time | relevance | path

Searched refs:gpioName (Results 1 – 10 of 10) sorted by relevance

/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-platform-init/
H A Dampere_platform_init.sh15 for gpioName in "${output_high_gpios_in_ac[@]}"; do
16 gpioset $(gpiofind "$gpioName")=1
19 for gpioName in "${output_low_gpios_in_ac[@]}"; do
20 gpioset $(gpiofind "$gpioName")=0
23 for gpioName in "${input_gpios_in_ac[@]}"; do
24 gpioget $(gpiofind "$gpioName")
31 for gpioName in "${output_high_gpios_in_bmc_reboot[@]}"; do
32 gpioset $(gpiofind "$gpioName")=1
35 for gpioName in "${output_low_gpios_in_bmc_reboot[@]}"; do
36 gpioset $(gpiofind "$gpioName")=0
[all …]
/openbmc/dbus-sensors/src/fan/
H A DPresenceGpio.cpp34 const std::string& gpioName) : in PresenceGpio() argument
35 deviceType(deviceType), deviceName(deviceName), gpioName(gpioName) in PresenceGpio()
37 gpioLine = gpiod::find_line(gpioName); in PresenceGpio()
40 std::cerr << "Error requesting gpio: " << gpioName << "\n"; in PresenceGpio()
41 throw std::runtime_error("Failed to find GPIO " + gpioName); in PresenceGpio()
65 const std::string& gpioName, bool inverted, boost::asio::io_context& io) : in EventPresenceGpio() argument
66 PresenceGpio(deviceType, deviceName, gpioName), gpioFd(io) in EventPresenceGpio()
77 std::cerr << "Error reading gpio " << gpioName << ": " << e.what() in EventPresenceGpio()
79 throw std::runtime_error("Failed to read GPIO fd " + gpioName); in EventPresenceGpio()
85 std::cerr << "Failed to get " << gpioName << " fd\n"; in EventPresenceGpio()
[all …]
H A DPresenceGpio.hpp12 const std::string& gpioName);
28 std::string gpioName; member in PresenceGpio
56 const std::string& gpioName, bool inverted,
74 const std::string& gpioName, bool inverted,
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-platform-init/
H A Dampere_platform_init.sh81 for gpioName in "${output_high_gpios_in_ac[@]}"; do
82 gpioset $(gpiofind "$gpioName")=1
85 for gpioName in "${output_low_gpios_in_ac[@]}"; do
86 gpioset $(gpiofind "$gpioName")=0
93 for gpioName in "${output_high_gpios_in_bmc_reboot[@]}"; do
94 gpioset $(gpiofind "$gpioName")=1
97 for gpioName in "${output_low_gpios_in_bmc_reboot[@]}"; do
98 gpioset $(gpiofind "$gpioName")=0
/openbmc/dbus-sensors/src/intel-cpu/
H A DIntelCPUSensor.hpp73 std::string gpioName = in cpuIsPresent() local
76 auto findIndex = cpuPresence.find(gpioName); in cpuIsPresent()
93 auto line = gpiod::find_line(gpioName); in cpuIsPresent()
96 std::cerr << "Error requesting gpio: " << gpioName << "\n"; in cpuIsPresent()
109 std::cerr << "Error reading gpio: " << gpioName << "\n"; in cpuIsPresent()
113 cpuPresence[gpioName] = resp; in cpuIsPresent()
/openbmc/phosphor-state-manager/
H A Dutils.cpp148 int getGpioValue(const std::string& gpioName) in getGpioValue() argument
151 gpiod_line* line = gpiod_line_find(gpioName.c_str()); in getGpioValue()
158 error("Failed request for {GPIO_NAME} GPIO", "GPIO_NAME", gpioName); in getGpioValue()
H A Dutils.hpp67 int getGpioValue(const std::string& gpioName);
/openbmc/phosphor-host-postd/ipmisnoop/
H A Dipmisnoop.cpp35 std::string gpioName = "LED_POST_CODE_"; in configGPIODirOutput() local
40 gpioStr = gpioName + std::to_string(iteration); in configGPIODirOutput()
/openbmc/dbus-sensors/src/adc/
H A DADCSensorMain.cpp277 std::string gpioName = std::visit( in createSensors() local
301 BridgeGpio(gpioName, polarity, setupTime); in createSensors()
/openbmc/x86-power-control/src/
H A Dpower_control.cpp2370 std::string gpioName = gpioConfig["Name"]; in loadConfigValues() local
2371 auto signalMapIter = powerSignalMap.find(gpioName); in loadConfigValues()
2376 "GPIO_NAME", gpioName); in loadConfigValues()
2384 tempGpioData->name = gpioName; in loadConfigValues()
2482 gpioName, "ERR", e.what()); in loadConfigValues()