Home
last modified time | relevance | path

Searched refs:gpioConfig (Results 1 – 13 of 13) sorted by relevance

/openbmc/phosphor-buttons/src/
H A Dmain.cpp85 for (const auto& gpioConfig : gpioDefs) in main() local
87 std::string formFactorName = gpioConfig["name"]; in main()
90 buttonCfg.extraJsonInfo = gpioConfig; in main()
98 if (gpioConfig.contains("group_gpio_config")) in main()
100 const auto& groupGpio = gpioConfig["group_gpio_config"]; in main()
105 if (gpioConfig.contains("pin")) in main()
108 gpioCfg.number = getGpioNum(gpioConfig.at("pin")); in main()
126 if (gpioConfig.contains("pin")) in main()
129 gpioCfg.number = getGpioNum(gpioConfig.at("pin")); in main()
134 gpioCfg.number = gpioConfig.at("num").get<uint32_t>(); in main()
[all …]
H A Dserial_uart_mux.cpp64 GpioInfo gpioConfig = config.gpios[uartMuxSel]; in configSerialConsoleMux() local
66 if (gpioConfig.name == SERIAL_UART_RX_GPIO) in configSerialConsoleMux()
77 setGpioState(gpioConfig.fd, gpioConfig.polarity, gpioState); in configSerialConsoleMux()
H A Dgpio.cpp150 int configGpio(GpioInfo& gpioConfig, ButtonConfig& buttonIFConfig) in configGpio() argument
152 auto gpioNum = gpioConfig.number; in configGpio()
153 auto gpioDirection = gpioConfig.direction; in configGpio()
294 gpioConfig.fd = fd; in configGpio()
H A Dbutton_handler.cpp73 for (const auto& gpioConfig : gpioDefs) in Handler() local
75 if (gpioConfig.contains("multi-action")) in Handler()
78 const auto& multiActCfg = gpioConfig["multi-action"]; in Handler()
/openbmc/dbus-sensors/src/intel-cpu/
H A DIntelCPUSensor.hpp64 inline bool cpuIsPresent(const SensorBaseConfigMap& gpioConfig) in cpuIsPresent() argument
68 auto findName = gpioConfig.find("Name"); in cpuIsPresent()
69 if (findName == gpioConfig.end()) in cpuIsPresent()
83 auto findPolarity = gpioConfig.find("Polarity"); in cpuIsPresent()
84 if (findPolarity != gpioConfig.end()) in cpuIsPresent()
/openbmc/phosphor-gpio-monitor/multi-presence/
H A Dgpio_presence.hpp67 gpioLine(line), gpioConfig(config), gpioEventDescriptor(io), in GpioPresence()
75 gpioLine(old.gpioLine), gpioConfig(old.gpioConfig), in GpioPresence()
93 gpiod_line_request_config gpioConfig; member in phosphor::gpio::GpioPresence
H A Dgpio_presence.cpp172 if (gpiod_line_request(gpioLine, &gpioConfig, 0) < 0) in requestGPIOEvents()
186 if (gpioConfig.flags & GPIOD_LINE_REQUEST_FLAG_BIAS_DISABLE) in requestGPIOEvents()
190 else if (gpioConfig.flags & GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP) in requestGPIOEvents()
194 else if (gpioConfig.flags & GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_DOWN) in requestGPIOEvents()
199 if (gpioConfig.flags & GPIOD_LINE_REQUEST_FLAG_ACTIVE_LOW) in requestGPIOEvents()
/openbmc/phosphor-power/power-sequencer/
H A Ducd90160.cpp349 auto gpioConfig = analysisConfig.find(type); in doGPIOAnalysis() local
350 if (gpioConfig == analysisConfig.end()) in doGPIOAnalysis()
355 auto path = std::get<ucd90160::gpioDevicePathField>(gpioConfig->second); in doGPIOAnalysis()
369 auto polarity = std::get<ucd90160::gpioPolarityField>(gpioConfig->second); in doGPIOAnalysis()
372 auto& gpios = std::get<ucd90160::gpioDefinitionField>(gpioConfig->second); in doGPIOAnalysis()
414 std::get<ucd90160::errorFunctionField>(gpioConfig->second); in doGPIOAnalysis()
423 std::get<ucd90160::optionFlagsField>(gpioConfig->second)); in doGPIOAnalysis()
/openbmc/witherspoon-pfault-analysis/power-sequencer/
H A Ducd90160.cpp349 auto gpioConfig = analysisConfig.find(type); in doGPIOAnalysis() local
350 if (gpioConfig == analysisConfig.end()) in doGPIOAnalysis()
355 auto path = std::get<ucd90160::gpioDevicePathField>(gpioConfig->second); in doGPIOAnalysis()
369 auto polarity = std::get<ucd90160::gpioPolarityField>(gpioConfig->second); in doGPIOAnalysis()
372 auto& gpios = std::get<ucd90160::gpioDefinitionField>(gpioConfig->second); in doGPIOAnalysis()
414 std::get<ucd90160::errorFunctionField>(gpioConfig->second); in doGPIOAnalysis()
423 std::get<ucd90160::optionFlagsField>(gpioConfig->second)); in doGPIOAnalysis()
/openbmc/phosphor-gpio-monitor/
H A DgpioMon.hpp46 gpioLine(line), gpioConfig(config), gpioEventDescriptor(io), in GpioMonitor()
58 gpiod_line_request_config gpioConfig; member in phosphor::gpio::GpioMonitor
H A DgpioMon.cpp126 if (gpiod_line_request(gpioLine, &gpioConfig, 0) < 0) in requestGPIOEvents()
/openbmc/phosphor-buttons/inc/
H A Dgpio.hpp70 int configGpio(GpioInfo& gpioConfig, ButtonConfig& buttonIFConfig);
/openbmc/x86-power-control/src/
H A Dpower_control.cpp2360 for (nlohmann::json& gpioConfig : gpios) in loadConfigValues()
2362 if (!gpioConfig.contains("Name")) in loadConfigValues()
2370 std::string gpioName = gpioConfig["Name"]; in loadConfigValues()
2386 if (!gpioConfig.contains("Type")) in loadConfigValues()
2392 std::string signalType = gpioConfig["Type"]; in loadConfigValues()
2410 if (gpioConfig.contains("LineName")) in loadConfigValues()
2420 if (gpioConfig.contains("Polarity")) in loadConfigValues()
2452 if (!gpioConfig.contains(dbusParamName)) in loadConfigValues()
2461 gpioConfig[dbusParams[DbusConfigType::name]]; in loadConfigValues()
2472 auto item = gpioConfig.find("MatchRegex"); in loadConfigValues()
[all …]