Searched refs:cmux (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/subsys/modem/ |
D | modem_cmux.c | 148 static uint32_t modem_cmux_get_receive_buf_length(struct modem_cmux *cmux) in modem_cmux_get_receive_buf_length() argument 150 return cmux->receive_buf_len; in modem_cmux_get_receive_buf_length() 153 static uint32_t modem_cmux_get_receive_buf_size(struct modem_cmux *cmux) in modem_cmux_get_receive_buf_size() argument 155 return cmux->receive_buf_size; in modem_cmux_get_receive_buf_size() 158 static uint32_t modem_cmux_get_transmit_buf_length(struct modem_cmux *cmux) in modem_cmux_get_transmit_buf_length() argument 160 return ring_buf_size_get(&cmux->transmit_rb); in modem_cmux_get_transmit_buf_length() 163 static uint32_t modem_cmux_get_transmit_buf_size(struct modem_cmux *cmux) in modem_cmux_get_transmit_buf_size() argument 165 return ring_buf_capacity_get(&cmux->transmit_rb); in modem_cmux_get_transmit_buf_size() 168 static void modem_cmux_init_buf_stats(struct modem_cmux *cmux) in modem_cmux_init_buf_stats() argument 172 size = modem_cmux_get_receive_buf_size(cmux); in modem_cmux_init_buf_stats() [all …]
|
/Zephyr-latest/include/zephyr/modem/ |
D | cmux.h | 51 typedef void (*modem_cmux_callback)(struct modem_cmux *cmux, enum modem_cmux_event event, 94 struct modem_cmux *cmux; member 124 struct modem_cmux *cmux; member 208 void modem_cmux_init(struct modem_cmux *cmux, const struct modem_cmux_config *config); 229 struct modem_pipe *modem_cmux_dlci_init(struct modem_cmux *cmux, struct modem_cmux_dlci *dlci, 238 int modem_cmux_attach(struct modem_cmux *cmux, struct modem_pipe *pipe); 250 int modem_cmux_connect(struct modem_cmux *cmux); 262 int modem_cmux_connect_async(struct modem_cmux *cmux); 274 int modem_cmux_disconnect(struct modem_cmux *cmux); 286 int modem_cmux_disconnect_async(struct modem_cmux *cmux); [all …]
|
/Zephyr-latest/tests/subsys/modem/modem_cmux/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/drivers/modem/ |
D | modem_cellular.c | 92 struct modem_cmux cmux; member 609 modem_cmux_release(&data->cmux); in modem_cellular_on_idle_state_enter() 911 modem_cmux_attach(&data->cmux, data->uart_pipe); in modem_cellular_connect_cmux_event_handler() 912 modem_cmux_connect_async(&data->cmux); in modem_cellular_connect_cmux_event_handler() 1483 static void modem_cellular_cmux_handler(struct modem_cmux *cmux, enum modem_cmux_event event, in modem_cellular_cmux_handler() argument 1751 modem_cmux_init(&data->cmux, &cmux_config); in modem_cellular_init() 1761 data->dlci1_pipe = modem_cmux_dlci_init(&data->cmux, &data->dlci1, in modem_cellular_init() 1772 data->dlci2_pipe = modem_cmux_dlci_init(&data->cmux, &data->dlci2, in modem_cellular_init() 1784 user_pipe->pipe = modem_cmux_dlci_init(&data->cmux, &user_pipe->dlci, in modem_cellular_init()
|
/Zephyr-latest/tests/subsys/modem/modem_cmux_pair/src/ |
D | main.c | 176 static void test_cmux_ctrl_cb(struct modem_cmux *cmux, enum modem_cmux_event event, void *user_data) in test_cmux_ctrl_cb() argument 189 static void test_cmux_ctrl_cb_dce(struct modem_cmux *cmux, enum modem_cmux_event event, in test_cmux_ctrl_cb_dce() argument
|