Lines Matching refs:cb
44 stm32_gpio_irq_cb_t cb; member
51 struct __exti_cb cb[NUM_EXTI_LINES]; member
149 if (!data->cb[line_num].cb) { in stm32_exti_isr()
154 data->cb[line_num].cb(line, data->cb[line_num].data); in stm32_exti_isr()
317 int stm32_gpio_intc_set_irq_callback(stm32_gpio_irq_line_t line, stm32_gpio_irq_cb_t cb, void *user) in stm32_gpio_intc_set_irq_callback() argument
323 if ((data->cb[line_num].cb == cb) && (data->cb[line_num].data == user)) { in stm32_gpio_intc_set_irq_callback()
328 if (data->cb[line_num].cb != NULL) { in stm32_gpio_intc_set_irq_callback()
332 data->cb[line_num].cb = cb; in stm32_gpio_intc_set_irq_callback()
333 data->cb[line_num].data = user; in stm32_gpio_intc_set_irq_callback()
344 data->cb[line_num].cb = NULL; in stm32_gpio_intc_remove_irq_callback()
345 data->cb[line_num].data = NULL; in stm32_gpio_intc_remove_irq_callback()