Home
last modified time | relevance | path

Searched refs:gpio_cb (Results 1 – 25 of 184) sorted by relevance

12345678

/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/
Dtest_callback_manage.c14 struct gpio_callback *gpio_cb, uint32_t pins) in callback_1() argument
21 struct gpio_callback *gpio_cb, uint32_t pins) in callback_2() argument
27 struct gpio_callback *gpio_cb, uint32_t pins) in callback_remove_self() argument
29 struct drv_data *dd = CONTAINER_OF(gpio_cb, struct drv_data, gpio_cb); in callback_remove_self()
32 dd->aux = gpio_remove_callback(dev, gpio_cb); in callback_remove_self()
54 gpio_init_callback(&cb_data[0].gpio_cb, handler_1, BIT(PIN_IN)); in init_callback()
55 rc = gpio_add_callback(dev_in, &cb_data[0].gpio_cb); in init_callback()
59 gpio_init_callback(&cb_data[1].gpio_cb, handler_2, BIT(PIN_IN)); in init_callback()
60 rc = gpio_add_callback(dev_in, &cb_data[1].gpio_cb); in init_callback()
108 gpio_remove_callback(dev_in, &cb_data[0].gpio_cb); in test_callback_add_remove()
[all …]
Dtest_config_trigger.c14 struct gpio_callback *gpio_cb, uint32_t pins) in callback() argument
38 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST()
39 ret = gpio_add_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
46 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
57 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
71 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
89 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in ZTEST()
90 ret = gpio_add_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
97 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
108 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in ZTEST()
[all …]
Dtest_callback_trigger.c13 static void callback(const struct device *dev_in, struct gpio_callback *gpio_cb, in callback() argument
17 const struct drv_data *dd = CONTAINER_OF(gpio_cb, in callback()
18 struct drv_data, gpio_cb); in callback()
66 gpio_init_callback(&drv_data->gpio_cb, callback, BIT(PIN_IN)); in test_callback()
67 rc = gpio_add_callback(dev_in, &drv_data->gpio_cb); in test_callback()
114 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in test_callback()
118 gpio_remove_callback(dev_in, &drv_data->gpio_cb); in test_callback()
/Zephyr-latest/samples/subsys/tracing/src/
Dgpio_main.c49 static struct gpio_callback gpio_cb; in gpio_sample() local
51 gpio_init_callback(&gpio_cb, test_handler, BIT(1)); in gpio_sample()
52 gpio_add_callback(dev, &gpio_cb); in gpio_sample()
58 gpio_remove_callback(dev, &gpio_cb); in gpio_sample()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina23x_trigger.c18 struct ina23x_trigger *trigg = CONTAINER_OF(cb, struct ina23x_trigger, gpio_cb); in ina23x_gpio_callback()
38 gpio_init_callback(&trigg->gpio_cb, in ina23x_trigger_mode_init()
42 ret = gpio_add_callback(alert_gpio->port, &trigg->gpio_cb); in ina23x_trigger_mode_init()
Dina230_trigger.c19 struct ina230_data *ina230 = CONTAINER_OF(cb, struct ina230_data, gpio_cb); in ina230_gpio_callback()
65 gpio_init_callback(&ina230->gpio_cb, in ina230_trigger_mode_init()
69 ret = gpio_add_callback(config->alert_gpio.port, &ina230->gpio_cb); in ina230_trigger_mode_init()
/Zephyr-latest/samples/bluetooth/st_ble_sensor/src/
Dbutton_svc.c26 static struct gpio_callback gpio_cb; variable
46 gpio_init_callback(&gpio_cb, handler, BIT(button.pin)); in button_init()
47 gpio_add_callback(button.port, &gpio_cb); in button_init()
/Zephyr-latest/drivers/input/
Dinput_gpio_kbd_matrix.c26 struct gpio_callback *gpio_cb; member
145 if (cfg->gpio_cb == NULL) { in gpio_kbd_matrix_set_detect_mode()
181 if (cfg->gpio_cb == NULL && cfg->idle_poll_dwork == NULL) { in gpio_kbd_continuous_scan_mode()
217 struct gpio_callback *gpio_cb; in gpio_kbd_matrix_init() local
230 if (cfg->gpio_cb == NULL) { in gpio_kbd_matrix_init()
233 gpio_cb = &cfg->gpio_cb[i]; in gpio_kbd_matrix_init()
235 gpio_init_callback(gpio_cb, cfg->gpio_cb_handler, in gpio_kbd_matrix_init()
238 ret = gpio_add_callback_dt(gpio, gpio_cb); in gpio_kbd_matrix_init()
321 .gpio_cb = gpio_kbd_matrix_gpio_cb_##n, \
Dinput_ili2132a.c25 struct gpio_callback gpio_cb; member
37 struct ili2132a_data *data = CONTAINER_OF(cb, struct ili2132a_data, gpio_cb); in gpio_isr()
113 gpio_init_callback(&data->gpio_cb, gpio_isr, BIT(dev_cfg->irq.pin)); in ili2132a_init()
114 ret = gpio_add_callback(dev_cfg->irq.port, &data->gpio_cb); in ili2132a_init()
/Zephyr-latest/drivers/mfd/
Dmfd_ite_it8801.c25 struct gpio_callback gpio_cb; member
58 struct mfd_it8801_data *data = CONTAINER_OF(cb, struct mfd_it8801_data, gpio_cb); in it8801_gpio_callback()
113 gpio_init_callback(&data->gpio_cb, it8801_gpio_callback, BIT(config->irq_gpios.pin)); in mfd_it8801_init()
115 ret = gpio_add_callback(config->irq_gpios.port, &data->gpio_cb); in mfd_it8801_init()
/Zephyr-latest/drivers/sensor/sx9500/
Dsx9500_trigger.c94 CONTAINER_OF(cb, struct sx9500_data, gpio_cb); in sx9500_gpio_cb()
120 CONTAINER_OF(cb, struct sx9500_data, gpio_cb); in sx9500_gpio_cb()
163 gpio_init_callback(&data->gpio_cb, sx9500_gpio_cb, BIT(cfg->int_gpio.pin)); in sx9500_setup_interrupt()
165 ret = gpio_add_callback(cfg->int_gpio.port, &data->gpio_cb); in sx9500_setup_interrupt()
/Zephyr-latest/drivers/sensor/st/lsm9ds0_gyro/
Dlsm9ds0_gyro_trigger.c76 CONTAINER_OF(cb, struct lsm9ds0_gyro_data, gpio_cb); in lsm9ds0_gyro_gpio_drdy_callback()
123 gpio_init_callback(&data->gpio_cb, in lsm9ds0_gyro_init_interrupt()
127 if (gpio_add_callback(config->int_gpio.port, &data->gpio_cb) < 0) { in lsm9ds0_gyro_init_interrupt()
/Zephyr-latest/samples/bluetooth/mesh/src/
Dboard.c90 static struct gpio_callback gpio_cb; in button_init() local
100 gpio_init_callback(&gpio_cb, button_cb, BIT(BUTTON0_PIN)); in button_init()
101 gpio_add_callback(button_dev, &gpio_cb); in button_init()
/Zephyr-latest/drivers/wifi/winc1500/
Dwifi_winc1500_nm_bsp.c74 gpio_init_callback(&winc1500.gpio_cb, in nm_bsp_register_isr()
78 (void)gpio_add_callback(winc1500_config.irq_gpio.port, &winc1500.gpio_cb); in nm_bsp_register_isr()
/Zephyr-latest/drivers/gpio/
Dgpio_nct38xx_alert.c43 struct gpio_callback gpio_cb; member
54 struct nct38xx_alert_data *data = CONTAINER_OF(cb, struct nct38xx_alert_data, gpio_cb); in nct38xx_alert_callback()
145 gpio_init_callback(&data->gpio_cb, nct38xx_alert_callback, BIT(config->irq_gpio.pin)); in nct38xx_alert_init()
147 ret = gpio_add_callback(config->irq_gpio.port, &data->gpio_cb); in nct38xx_alert_init()
Dgpio_rt1718s.c31 struct rt1718s_data *data = CONTAINER_OF(cb, struct rt1718s_data, gpio_cb); in rt1718s_alert_callback()
108 gpio_init_callback(&data->gpio_cb, rt1718s_alert_callback, in rt1718s_init()
111 ret = gpio_add_callback(config->irq_gpio.port, &data->gpio_cb); in rt1718s_init()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a_trigger.c62 CONTAINER_OF(cb, struct grow_r502a_data, gpio_cb); in grow_r502a_gpio_callback()
126 gpio_init_callback(&drv_data->gpio_cb, grow_r502a_gpio_callback, in grow_r502a_init_interrupt()
129 rc = gpio_add_callback(cfg->int_gpios.port, &drv_data->gpio_cb); in grow_r502a_init_interrupt()
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l_trigger.c52 CONTAINER_OF(cb, struct hmc5883l_data, gpio_cb); in hmc5883l_gpio_callback()
117 gpio_init_callback(&drv_data->gpio_cb, hmc5883l_gpio_callback, in hmc5883l_init_interrupt()
120 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in hmc5883l_init_interrupt()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_gyro_trigger.c74 struct bmi08x_gyro_data *data = CONTAINER_OF(cb, struct bmi08x_gyro_data, gpio_cb); in bmi08x_gyr_gpio_callback()
124 gpio_init_callback(&data->gpio_cb, bmi08x_gyr_gpio_callback, BIT(cfg->int_gpio.pin)); in bmi08x_gyr_trigger_mode_init()
126 ret = gpio_add_callback(cfg->int_gpio.port, &data->gpio_cb); in bmi08x_gyr_trigger_mode_init()
/Zephyr-latest/drivers/sensor/hc_sr04/
Dhc_sr04.c22 struct gpio_callback gpio_cb; member
75 gpio_init_callback(&data->gpio_cb, &hcsr04_gpio_callback, BIT(cfg->echo_gpios.pin)); in hcsr04_configure_interrupt()
76 ret = gpio_add_callback(cfg->echo_gpios.port, &data->gpio_cb); in hcsr04_configure_interrupt()
107 struct hcsr04_data *data = CONTAINER_OF(cb, struct hcsr04_data, gpio_cb); in hcsr04_gpio_callback()
/Zephyr-latest/tests/drivers/gpio/gpio_api_1pin/src/
Dtest_pin_interrupt.c12 struct gpio_callback gpio_cb; variable
83 gpio_init_callback(&gpio_cb, callback_edge, BIT(TEST_PIN)); in test_gpio_pin_interrupt_edge()
84 ret = gpio_add_callback(port, &gpio_cb); in test_gpio_pin_interrupt_edge()
163 gpio_init_callback(&gpio_cb, callback_level, BIT(TEST_PIN)); in test_gpio_pin_interrupt_level()
164 ret = gpio_add_callback(port, &gpio_cb); in test_gpio_pin_interrupt_level()
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc_trigger.c71 CONTAINER_OF(cb, struct iis2mdc_data, gpio_cb); in iis2mdc_gpio_callback()
139 gpio_init_callback(&iis2mdc->gpio_cb, in iis2mdc_init_interrupt()
143 if (gpio_add_callback(config->gpio_drdy.port, &iis2mdc->gpio_cb) < 0) { in iis2mdc_init_interrupt()
/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605_trigger.c64 CONTAINER_OF(cb, struct icm42605_data, gpio_cb); in icm42605_gpio_callback()
119 gpio_init_callback(&drv_data->gpio_cb, icm42605_gpio_callback, BIT(cfg->gpio_int.pin)); in icm42605_init_interrupt()
120 result = gpio_add_callback(cfg->gpio_int.port, &drv_data->gpio_cb); in icm42605_init_interrupt()
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050_trigger.c51 CONTAINER_OF(cb, struct mpu6050_data, gpio_cb); in mpu6050_gpio_callback()
118 gpio_init_callback(&drv_data->gpio_cb, in mpu6050_init_interrupt()
122 if (gpio_add_callback(cfg->int_gpio.port, &drv_data->gpio_cb) < 0) { in mpu6050_init_interrupt()
/Zephyr-latest/drivers/sensor/ti/tmag5170/
Dtmag5170_trigger.c61 gpio_cb); in tmag5170_gpio_callback()
136 gpio_init_callback(&data->gpio_cb, tmag5170_gpio_callback, BIT(cfg->int_gpio.pin)); in tmag5170_trigger_init()
138 ret = gpio_add_callback(cfg->int_gpio.port, &data->gpio_cb); in tmag5170_trigger_init()

12345678