Lines Matching refs:events

256 	uint32_t events;  in test_modem_cmux_setup()  local
300 events = k_event_wait(&cmux_event, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_modem_cmux_setup()
301 __ASSERT_NO_MSG(events == EVENT_CMUX_CONNECTED); in test_modem_cmux_setup()
307 events = k_event_wait(&cmux_event, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_modem_cmux_setup()
308 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI1_OPEN)); in test_modem_cmux_setup()
313 events = k_event_wait(&cmux_event, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_modem_cmux_setup()
314 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI2_OPEN)); in test_modem_cmux_setup()
331 uint32_t events; in ZTEST() local
341 events = k_event_test(&cmux_event, EVENT_CMUX_DLCI2_RECEIVE_READY); in ZTEST()
342 zassert_equal(events, EVENT_CMUX_DLCI2_RECEIVE_READY, in ZTEST()
363 uint32_t events; in ZTEST() local
371 events = k_event_test(&cmux_event, EVENT_CMUX_DLCI1_RECEIVE_READY); in ZTEST()
372 zassert_equal(events, EVENT_CMUX_DLCI1_RECEIVE_READY, in ZTEST()
393 uint32_t events; in ZTEST() local
400 events = k_event_test(&cmux_event, EVENT_CMUX_DLCI2_RECEIVE_READY); in ZTEST()
401 zassert_equal(events, EVENT_CMUX_DLCI2_RECEIVE_READY, in ZTEST()
422 uint32_t events; in ZTEST() local
428 events = k_event_wait(&cmux_event, EVENT_CMUX_DLCI2_TRANSMIT_IDLE, false, K_MSEC(200)); in ZTEST()
429 zassert_equal(events, EVENT_CMUX_DLCI2_TRANSMIT_IDLE, in ZTEST()
438 events = k_event_wait(&cmux_event, EVENT_CMUX_DLCI2_TRANSMIT_IDLE, false, K_MSEC(200)); in ZTEST()
439 zassert_equal(events, EVENT_CMUX_DLCI2_TRANSMIT_IDLE, in ZTEST()
550 uint32_t events; in ZTEST() local
568 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DLCI1_CLOSED), in ZTEST()
571 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), in ZTEST()
596 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DLCI1_OPEN), in ZTEST()
599 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), in ZTEST()
611 uint32_t events; in ZTEST() local
624 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DLCI1_CLOSED | EVENT_CMUX_DLCI2_CLOSED), in ZTEST()
627 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "Failed to close DLCI1"); in ZTEST()
628 zassert_true((events & EVENT_CMUX_DLCI2_CLOSED), "Failed to close DLCI2"); in ZTEST()
648 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DISCONNECTED), false, K_MSEC(100)); in ZTEST()
649 zassert_true((events & EVENT_CMUX_DISCONNECTED), "Failed to disconnect CMUX"); in ZTEST()
673 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_CONNECTED), false, K_MSEC(100)); in ZTEST()
674 zassert_true((events & EVENT_CMUX_CONNECTED), "Failed to connect CMUX"); in ZTEST()
698 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DLCI1_OPEN), in ZTEST()
701 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), in ZTEST()
726 events = k_event_wait_all(&cmux_event, (EVENT_CMUX_DLCI2_OPEN), in ZTEST()
729 zassert_true((events & EVENT_CMUX_DLCI2_OPEN), in ZTEST()
828 uint32_t events; in ZTEST() local
835 events = k_event_test(&cmux_event, EVENT_CMUX_DLCI2_RECEIVE_READY); in ZTEST()
837 zassert_false(events & EVENT_CMUX_DLCI2_RECEIVE_READY, in ZTEST()
848 events = k_event_test(&cmux_event, EVENT_CMUX_DLCI2_RECEIVE_READY); in ZTEST()
849 zassert_equal(events, EVENT_CMUX_DLCI2_RECEIVE_READY, in ZTEST()