Lines Matching refs:events
289 uint32_t events; in test_setup() local
304 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup()
305 __ASSERT_NO_MSG((events & EVENT_CMUX_CONNECTED)); in test_setup()
306 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_CONNECTED, false, K_MSEC(100)); in test_setup()
307 __ASSERT_NO_MSG((events & EVENT_CMUX_CONNECTED)); in test_setup()
311 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup()
312 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI1_OPEN)); in test_setup()
313 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI1_OPEN, false, K_MSEC(100)); in test_setup()
314 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI1_OPEN)); in test_setup()
317 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_setup()
318 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI2_OPEN)); in test_setup()
319 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_OPEN, false, K_MSEC(100)); in test_setup()
320 __ASSERT_NO_MSG((events & EVENT_CMUX_DLCI2_OPEN)); in test_setup()
339 uint32_t events; in ZTEST() local
349 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
350 zassert_true((events & EVENT_CMUX_DLCI2_RX_DATA), "DLCI2 dce not rx data"); in ZTEST()
370 uint32_t events; in ZTEST() local
379 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI1_RX_DATA, false, K_MSEC(100)); in ZTEST()
380 zassert_true((events & EVENT_CMUX_DLCI1_RX_DATA), "DLCI1 dce not rx data"); in ZTEST()
401 uint32_t events; in ZTEST() local
410 events = k_event_wait(&cmux_event_dce, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
411 zassert_true((events & EVENT_CMUX_DLCI2_RX_DATA), "DLCI2 dce not rx data"); in ZTEST()
431 uint32_t events; in ZTEST() local
445 events = k_event_wait(&cmux_event_dte, EVENT_CMUX_DLCI2_RX_DATA, false, K_MSEC(100)); in ZTEST()
446 zassert_true((events & EVENT_CMUX_DLCI2_RX_DATA), "DLCI2 dce not rx data"); in ZTEST()
465 uint32_t events; in ZTEST() local
470 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_DLCI1_CLOSED), false, K_MSEC(100)); in ZTEST()
472 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "DLCI1 not closed as expected"); in ZTEST()
473 events = k_event_wait_all(&cmux_event_dce, (EVENT_CMUX_DLCI1_CLOSED), false, K_MSEC(100)); in ZTEST()
475 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "DLCI1 not closed as expected"); in ZTEST()
482 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_DLCI1_OPEN), false, K_MSEC(100)); in ZTEST()
484 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), "DLCI1 not opened as expected"); in ZTEST()
485 events = k_event_wait_all(&cmux_event_dce, (EVENT_CMUX_DLCI1_OPEN), false, K_MSEC(100)); in ZTEST()
487 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), "DLCI1 not opened as expected"); in ZTEST()
492 uint32_t events; in ZTEST() local
499 events = k_event_wait_all(&cmux_event_dte, in ZTEST()
503 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "Failed to close DLCI1"); in ZTEST()
504 zassert_true((events & EVENT_CMUX_DLCI2_CLOSED), "Failed to close DLCI2"); in ZTEST()
512 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_DISCONNECTED), false, K_MSEC(100)); in ZTEST()
513 zassert_true((events & EVENT_CMUX_DISCONNECTED), "Failed to disconnect CMUX"); in ZTEST()
520 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_CONNECTED), false, K_MSEC(100)); in ZTEST()
521 zassert_true((events & EVENT_CMUX_CONNECTED), "Failed to connect CMUX"); in ZTEST()
528 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_DLCI1_OPEN), false, K_MSEC(100)); in ZTEST()
530 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), "DLCI1 not opened as expected"); in ZTEST()
537 events = k_event_wait_all(&cmux_event_dte, (EVENT_CMUX_DLCI2_OPEN), false, K_MSEC(100)); in ZTEST()
539 zassert_true((events & EVENT_CMUX_DLCI2_OPEN), "DLCI1 not opened as expected"); in ZTEST()
544 uint32_t events; in ZTEST() local
548 events = k_event_wait_all(&cmux_event_dce, in ZTEST()
551 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "DCE DLCI1 not closed as expected"); in ZTEST()
552 zassert_true((events & EVENT_CMUX_DLCI2_CLOSED), "DCE DLCI2 not closed as expected"); in ZTEST()
568 events = k_event_wait_all(&cmux_event_dce, (EVENT_CMUX_DLCI1_OPEN | EVENT_CMUX_DLCI2_OPEN), in ZTEST()
570 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), "DCE DLCI1 not open as expected"); in ZTEST()
571 zassert_true((events & EVENT_CMUX_DLCI2_OPEN), "DCE DLCI2 not open as expected"); in ZTEST()
576 uint32_t events; in ZTEST() local
581 events = k_event_wait_all(&cmux_event_dce, in ZTEST()
584 zassert_true((events & EVENT_CMUX_DLCI1_CLOSED), "DCE DLCI1 not closed as expected"); in ZTEST()
585 zassert_true((events & EVENT_CMUX_DLCI2_CLOSED), "DCE DLCI2 not closed as expected"); in ZTEST()
590 events = k_event_wait_all(&cmux_event_dce, (EVENT_CMUX_DLCI1_OPEN | EVENT_CMUX_DLCI2_OPEN), in ZTEST()
592 zassert_true((events & EVENT_CMUX_DLCI1_OPEN), "DCE DLCI1 not open as expected"); in ZTEST()
593 zassert_true((events & EVENT_CMUX_DLCI2_OPEN), "DCE DLCI2 not open as expected"); in ZTEST()