Lines Matching refs:cmux
34 static struct modem_cmux cmux; variable
240 static void test_modem_cmux_callback(struct modem_cmux *cmux, enum modem_cmux_event event, in test_modem_cmux_callback() argument
281 modem_cmux_init(&cmux, &cmux_config); in test_modem_cmux_setup()
282 dlci1_pipe = modem_cmux_dlci_init(&cmux, &dlci1, &dlci1_config); in test_modem_cmux_setup()
283 dlci2_pipe = modem_cmux_dlci_init(&cmux, &dlci2, &dlci2_config); in test_modem_cmux_setup()
297 __ASSERT_NO_MSG(modem_cmux_attach(&cmux, bus_mock_pipe) == 0); in test_modem_cmux_setup()
299 __ASSERT_NO_MSG(modem_cmux_connect_async(&cmux) == 0); in test_modem_cmux_setup()
632 zassert_true(modem_cmux_disconnect_async(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
658 zassert_true(modem_cmux_connect_async(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
746 zassert_true(modem_cmux_disconnect(&cmux) == 0, "Failed to disconnect CMUX"); in ZTEST()
747 zassert_true(modem_cmux_disconnect(&cmux) == -EALREADY, in ZTEST()
751 zassert_true(modem_cmux_connect(&cmux) == 0, "Failed to connect CMUX"); in ZTEST()
752 zassert_true(modem_cmux_connect(&cmux) == -EALREADY, in ZTEST()
784 zassert_ok(modem_cmux_disconnect(&cmux)); in ZTEST()
787 zassert_ok(modem_cmux_connect_async(&cmux)); in ZTEST()
796 modem_cmux_release(&cmux); in ZTEST()
802 modem_cmux_connect(&cmux); in ZTEST()
803 modem_cmux_disconnect(&cmux); in ZTEST()
816 zassert_ok(modem_cmux_attach(&cmux, bus_mock_pipe)); in ZTEST()
818 zassert_ok(modem_cmux_connect(&cmux)); in ZTEST()