Home
last modified time | relevance | path

Searched refs:interrupt_gpio (Results 1 – 11 of 11) sorted by relevance

/drivers/sensor/wsen/wsen_tids_2521020222501/
A Dwsen_tids_2521020222501_trigger.c23 gpio_pin_interrupt_configure_dt(&cfg->interrupt_gpio, flags); in tids_2521020222501_setup_interrupt()
128 if (gpio_pin_get_dt(&cfg->interrupt_gpio) > 0) { in tids_2521020222501_trigger_set()
243 if (cfg->interrupt_gpio.port == NULL) { in tids_2521020222501_init_interrupt()
248 if (!gpio_is_ready_dt(&cfg->interrupt_gpio)) { in tids_2521020222501_init_interrupt()
249 LOG_ERR("Device %s is not ready", cfg->interrupt_gpio.port->name); in tids_2521020222501_init_interrupt()
256 if (gpio_pin_configure_dt(&cfg->interrupt_gpio, GPIO_INPUT) < 0) { in tids_2521020222501_init_interrupt()
257 LOG_ERR("Failed to configure %s.%02u", cfg->interrupt_gpio.port->name, in tids_2521020222501_init_interrupt()
258 cfg->interrupt_gpio.pin); in tids_2521020222501_init_interrupt()
263 BIT(cfg->interrupt_gpio.pin)); in tids_2521020222501_init_interrupt()
265 if (gpio_add_callback(cfg->interrupt_gpio.port, &data->interrupt_cb) < 0) { in tids_2521020222501_init_interrupt()
A Dwsen_tids_2521020222501.h64 const struct gpio_dt_spec interrupt_gpio; member
A Dwsen_tids_2521020222501.c305 .interrupt_gpio = GPIO_DT_SPEC_INST_GET(inst, interrupt_gpios), \
/drivers/sensor/wsen/wsen_pads_2511020213301/
A Dwsen_pads_2511020213301_trigger.c21 return gpio_pin_interrupt_configure_dt(&cfg->interrupt_gpio, flags); in pads_2511020213301_setup_interrupt()
177 if (gpio_pin_get_dt(&cfg->interrupt_gpio) > 0) { in pads_2511020213301_trigger_set()
293 if (cfg->interrupt_gpio.port == NULL) { in pads_2511020213301_init_interrupt()
298 if (!gpio_is_ready_dt(&cfg->interrupt_gpio)) { in pads_2511020213301_init_interrupt()
299 LOG_ERR("Device %s is not ready", cfg->interrupt_gpio.port->name); in pads_2511020213301_init_interrupt()
303 if (gpio_pin_configure_dt(&cfg->interrupt_gpio, GPIO_INPUT) < 0) { in pads_2511020213301_init_interrupt()
304 LOG_ERR("Failed to configure %s.%02u", cfg->interrupt_gpio.port->name, in pads_2511020213301_init_interrupt()
305 cfg->interrupt_gpio.pin); in pads_2511020213301_init_interrupt()
310 BIT(cfg->interrupt_gpio.pin)); in pads_2511020213301_init_interrupt()
312 if (gpio_add_callback(cfg->interrupt_gpio.port, &data->interrupt_cb) < 0) { in pads_2511020213301_init_interrupt()
A Dwsen_pads_2511020213301.h86 const struct gpio_dt_spec interrupt_gpio; member
A Dwsen_pads_2511020213301.c454 .interrupt_gpio = GPIO_DT_SPEC_INST_GET(inst, interrupt_gpios)
/drivers/ethernet/phy/
A Dphy_ti_dp83825.c53 const struct gpio_dt_spec interrupt_gpio; member
385 if (!config->interrupt_gpio.port) { in phy_ti_dp83825_cfg_link()
423 if (!config->interrupt_gpio.port) { in phy_ti_dp83825_cfg_link()
460 if (config->interrupt_gpio.port) { in phy_ti_dp83825_monitor_work_handler()
478 if (!config->interrupt_gpio.port) { in phy_ti_dp83825_monitor_work_handler()
513 if (!config->interrupt_gpio.port) { in phy_ti_dp83825_init()
519 ret = gpio_pin_configure_dt(&config->interrupt_gpio, GPIO_INPUT); in phy_ti_dp83825_init()
525 BIT(config->interrupt_gpio.pin)); in phy_ti_dp83825_init()
526 ret = gpio_add_callback_dt(&config->interrupt_gpio, &data->gpio_callback); in phy_ti_dp83825_init()
531 ret = gpio_pin_interrupt_configure_dt(&config->interrupt_gpio, GPIO_INT_EDGE_TO_ACTIVE); in phy_ti_dp83825_init()
[all …]
A Dphy_ti_dp83867.c78 const struct gpio_dt_spec interrupt_gpio; member
332 if (config->interrupt_gpio.port) { in phy_ti_dp83867_cfg_link()
393 if (config->interrupt_gpio.port) { in phy_ti_dp83867_cfg_link()
429 if (config->interrupt_gpio.port) { in phy_ti_dp83867_monitor_work_handler()
447 if (config->interrupt_gpio.port) { in phy_ti_dp83867_monitor_work_handler()
554 if (!config->interrupt_gpio.port) { in phy_ti_dp83867_init()
559 ret = gpio_pin_configure_dt(&config->interrupt_gpio, GPIO_INPUT); in phy_ti_dp83867_init()
565 BIT(config->interrupt_gpio.pin)); in phy_ti_dp83867_init()
566 ret = gpio_add_callback_dt(&config->interrupt_gpio, &data->gpio_callback); in phy_ti_dp83867_init()
571 ret = gpio_pin_interrupt_configure_dt(&config->interrupt_gpio, GPIO_INT_EDGE_TO_ACTIVE); in phy_ti_dp83867_init()
[all …]
A Dphy_realtek_rtl8211f.c69 const struct gpio_dt_spec interrupt_gpio; member
305 if (!config->interrupt_gpio.port) { in phy_rt_rtl8211f_cfg_link()
336 if (!config->interrupt_gpio.port) { in phy_rt_rtl8211f_cfg_link()
415 if (config->interrupt_gpio.port) { in phy_rt_rtl8211f_monitor_work_handler()
433 if (!config->interrupt_gpio.port) { in phy_rt_rtl8211f_monitor_work_handler()
518 if (!config->interrupt_gpio.port) { in phy_rt_rtl8211f_init()
557 ret = gpio_pin_configure_dt(&config->interrupt_gpio, GPIO_INPUT); in phy_rt_rtl8211f_init()
563 BIT(config->interrupt_gpio.pin)); in phy_rt_rtl8211f_init()
564 ret = gpio_add_callback_dt(&config->interrupt_gpio, &data->gpio_callback); in phy_rt_rtl8211f_init()
569 ret = gpio_pin_interrupt_configure_dt(&config->interrupt_gpio, GPIO_INT_EDGE_TO_ACTIVE); in phy_rt_rtl8211f_init()
[all …]
A Dphy_microchip_ksz8081.c52 const struct gpio_dt_spec interrupt_gpio; member
462 if (!config->interrupt_gpio.port) { in phy_mc_ksz8081_init()
467 ret = gpio_pin_configure_dt(&config->interrupt_gpio, GPIO_OUTPUT_ACTIVE); in phy_mc_ksz8081_init()
516 .interrupt_gpio = GPIO_DT_SPEC_INST_GET_OR(n, int_gpios, {0}),
A Dphy_microchip_vsc8541.c74 const struct gpio_dt_spec interrupt_gpio; member
541 #define INTERRUPT_GPIO(n) .interrupt_gpio = GPIO_DT_SPEC_INST_GET_OR(n, int_gpios, {0}),

Completed in 29 milliseconds