Lines Matching refs:alert_req

102 TWAI_ISR_ATTR static void twai_alert_handler(uint32_t alert_code, int *alert_req)  in twai_alert_handler()  argument
107 *alert_req = 1; in twai_alert_handler()
122 static inline void twai_handle_rx_buffer_frames(BaseType_t *task_woken, int *alert_req) in twai_handle_rx_buffer_frames() argument
133 twai_alert_handler(TWAI_ALERT_RX_DATA, alert_req); in twai_handle_rx_buffer_frames()
136 twai_alert_handler(TWAI_ALERT_RX_QUEUE_FULL, alert_req); in twai_handle_rx_buffer_frames()
140 twai_alert_handler(TWAI_ALERT_RX_FIFO_OVERRUN, alert_req); in twai_handle_rx_buffer_frames()
153 twai_alert_handler(TWAI_ALERT_RX_DATA, alert_req); in twai_handle_rx_buffer_frames()
156 twai_alert_handler(TWAI_ALERT_RX_QUEUE_FULL, alert_req); in twai_handle_rx_buffer_frames()
166 twai_alert_handler(TWAI_ALERT_RX_FIFO_OVERRUN, alert_req); in twai_handle_rx_buffer_frames()
171 static inline void twai_handle_tx_buffer_frame(BaseType_t *task_woken, int *alert_req) in twai_handle_tx_buffer_frame() argument
175 twai_alert_handler(TWAI_ALERT_TX_SUCCESS, alert_req); in twai_handle_tx_buffer_frame()
178 twai_alert_handler(TWAI_ALERT_TX_FAILED, alert_req); in twai_handle_tx_buffer_frame()
196 twai_alert_handler(TWAI_ALERT_TX_IDLE, alert_req); in twai_handle_tx_buffer_frame()
203 int alert_req = 0; in twai_intr_handler_main() local
218 twai_alert_handler(TWAI_ALERT_PERIPH_RESET, &alert_req); in twai_intr_handler_main()
223 twai_handle_rx_buffer_frames(&task_woken, &alert_req); in twai_intr_handler_main()
226 twai_handle_tx_buffer_frame(&task_woken, &alert_req); in twai_intr_handler_main()
232 twai_alert_handler(TWAI_ALERT_BUS_OFF, &alert_req); in twai_intr_handler_main()
236 twai_alert_handler(TWAI_ALERT_BUS_RECOVERED, &alert_req); in twai_intr_handler_main()
240 twai_alert_handler(TWAI_ALERT_BUS_ERROR, &alert_req); in twai_intr_handler_main()
244 twai_alert_handler(TWAI_ALERT_ARB_LOST, &alert_req); in twai_intr_handler_main()
248 twai_alert_handler(TWAI_ALERT_RECOVERY_IN_PROGRESS, &alert_req); in twai_intr_handler_main()
252 twai_alert_handler(TWAI_ALERT_ERR_PASS, &alert_req); in twai_intr_handler_main()
256 twai_alert_handler(TWAI_ALERT_ERR_ACTIVE, &alert_req); in twai_intr_handler_main()
260 twai_alert_handler(TWAI_ALERT_ABOVE_ERR_WARN, &alert_req); in twai_intr_handler_main()
264 twai_alert_handler(TWAI_ALERT_BELOW_ERR_WARN, &alert_req); in twai_intr_handler_main()
269 if (p_twai_obj->alert_semphr != NULL && alert_req) { in twai_intr_handler_main()