Lines Matching full:conn

45 static struct ll_conn conn;  variable
54 ull_tx_q_init(&conn.tx_q); in ZTEST()
56 ull_llcp_init(&conn); in ZTEST()
58 zassert_true(llcp_lr_is_disconnected(&conn)); in ZTEST()
59 zassert_true(llcp_rr_is_disconnected(&conn)); in ZTEST()
65 ull_tx_q_init(&conn.tx_q); in ZTEST()
66 ull_llcp_init(&conn); in ZTEST()
68 ull_cp_state_set(&conn, ULL_CP_CONNECTED); in ZTEST()
69 zassert_true(llcp_lr_is_idle(&conn)); in ZTEST()
70 zassert_true(llcp_rr_is_idle(&conn)); in ZTEST()
76 ull_tx_q_init(&conn.tx_q); in ZTEST()
77 ull_llcp_init(&conn); in ZTEST()
79 ull_cp_state_set(&conn, ULL_CP_DISCONNECTED); in ZTEST()
80 zassert_true(llcp_lr_is_disconnected(&conn)); in ZTEST()
81 zassert_true(llcp_rr_is_disconnected(&conn)); in ZTEST()
83 ull_cp_state_set(&conn, ULL_CP_CONNECTED); in ZTEST()
84 zassert_true(llcp_lr_is_idle(&conn)); in ZTEST()
85 zassert_true(llcp_rr_is_idle(&conn)); in ZTEST()
87 ull_cp_state_set(&conn, ULL_CP_DISCONNECTED); in ZTEST()
88 zassert_true(llcp_lr_is_disconnected(&conn)); in ZTEST()
89 zassert_true(llcp_rr_is_disconnected(&conn)); in ZTEST()
97 struct ll_conn conn; in ZTEST() local
105 test_setup(&conn); in ZTEST()
106 test_set_role(&conn, BT_HCI_ROLE_CENTRAL); in ZTEST()
107 ull_cp_state_set(&conn, ULL_CP_CONNECTED); in ZTEST()
112 err = ull_cp_version_exchange(&conn); in ZTEST()
118 event_prepare(&conn); in ZTEST()
119 lt_rx(LL_VERSION_IND, &conn, &tx, &local_version_ind); in ZTEST()
120 lt_rx_q_is_empty(&conn); in ZTEST()
121 event_done(&conn); in ZTEST()
126 ull_cp_state_set(&conn, ULL_CP_DISCONNECTED); in ZTEST()
136 event_prepare(&conn); in ZTEST()
137 event_done(&conn); in ZTEST()
145 lt_rx_q_is_empty(&conn); in ZTEST()
157 struct ll_conn conn; in ZTEST() local
159 test_setup(&conn); in ZTEST()
162 test_set_role(&conn, BT_HCI_ROLE_CENTRAL); in ZTEST()
165 ull_cp_state_set(&conn, ULL_CP_CONNECTED); in ZTEST()
170 event_prepare(&conn); in ZTEST()
173 lt_tx(LL_VERSION_IND, &conn, &remote_version_ind); in ZTEST()
181 event_done(&conn); in ZTEST()
183 ull_cp_state_set(&conn, ULL_CP_DISCONNECTED); in ZTEST()
186 event_prepare(&conn); in ZTEST()
189 event_done(&conn); in ZTEST()
206 ull_tx_q_init(&conn.tx_q); in ZTEST()
212 ull_tx_q_enqueue_data(&conn.tx_q, &nodes[i]); in ZTEST()
217 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
222 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
229 llcp_tx_pause_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
232 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
237 ull_tx_q_enqueue_data(&conn.tx_q, &nodes[i]); in ZTEST()
241 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
245 llcp_tx_resume_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
249 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
254 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
261 llcp_tx_pause_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
262 llcp_tx_pause_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_DATA_LENGTH); in ZTEST()
265 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
270 ull_tx_q_enqueue_data(&conn.tx_q, &nodes[i]); in ZTEST()
274 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
278 llcp_tx_resume_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_DATA_LENGTH); in ZTEST()
281 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
285 llcp_tx_resume_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
289 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
294 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
301 llcp_tx_pause_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
304 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
309 ull_tx_q_enqueue_data(&conn.tx_q, &nodes[i]); in ZTEST()
313 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
317 llcp_tx_resume_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_DATA_LENGTH); in ZTEST()
320 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
324 llcp_tx_resume_data(&conn, LLCP_TX_QUEUE_PAUSE_DATA_PHY_UPDATE); in ZTEST()
328 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
333 node = ull_tx_q_dequeue(&conn.tx_q); in ZTEST()
342 llcp_lr_enqueue(&conn, ctx1); in ZTEST()
344 zassert_is_null(llcp_lr_peek_proc(&conn, PROC_CIS_CREATE), "CTX is not null"); in ZTEST()
345 zassert_equal(llcp_lr_peek_proc(&conn, PROC_CHAN_MAP_UPDATE), ctx1, "CTX is not correct"); in ZTEST()
348 llcp_lr_enqueue(&conn, ctx2); in ZTEST()
350 zassert_equal(llcp_lr_peek_proc(&conn, PROC_CHAN_MAP_UPDATE), ctx1, "CTX is not correct"); in ZTEST()
351 zassert_equal(llcp_lr_peek_proc(&conn, PROC_CIS_CREATE), ctx2, "CTX is not correct"); in ZTEST()
352 zassert_is_null(llcp_lr_peek_proc(&conn, PROC_CIS_TERMINATE), "CTX is not null"); in ZTEST()
403 struct ll_conn conn; in ZTEST() local
408 ull_llcp_init(&conn); in ZTEST()
413 peek = llcp_tx_alloc_peek(&conn, ctx); in ZTEST()
418 txl[i] = llcp_tx_alloc(&conn, ctx); in ZTEST()
424 peek = llcp_tx_alloc_peek(&conn, ctx); in ZTEST()
431 ull_cp_release_tx(&conn, txl[i]); in ZTEST()
435 peek = llcp_tx_alloc_peek(&conn, ctx); in ZTEST()
440 txl[i] = llcp_tx_alloc(&conn, ctx); in ZTEST()
446 peek = llcp_tx_alloc_peek(&conn, ctx); in ZTEST()
453 ull_cp_release_tx(&conn, txl[i]); in ZTEST()
478 struct ll_conn conn; in ZTEST() local
482 ull_llcp_init(&conn); in ZTEST()
484 memset(&conn.llcp, 0xAA, sizeof(conn.llcp)); in ZTEST()
486 ull_llcp_init(&conn); in ZTEST()
488 zassert_equal(conn.llcp.local.pause, 0); in ZTEST()
489 zassert_equal(conn.llcp.remote.pause, 0); in ZTEST()
494 struct ll_conn conn; in ZTEST() local
500 ull_tx_q_init(&conn.tx_q); in ZTEST()
501 ull_llcp_init(&conn); in ZTEST()
503 peek_ctx = llcp_lr_peek(&conn); in ZTEST()
506 dequeue_ctx = llcp_lr_dequeue(&conn); in ZTEST()
509 llcp_lr_enqueue(&conn, &ctx); in ZTEST()
510 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.local.pend_proc_list); in ZTEST()
513 peek_ctx = llcp_lr_peek(&conn); in ZTEST()
516 dequeue_ctx = llcp_lr_dequeue(&conn); in ZTEST()
519 peek_ctx = llcp_lr_peek(&conn); in ZTEST()
522 dequeue_ctx = llcp_lr_dequeue(&conn); in ZTEST()
528 struct ll_conn conn; in ZTEST() local
534 ull_tx_q_init(&conn.tx_q); in ZTEST()
535 ull_llcp_init(&conn); in ZTEST()
537 peek_ctx = llcp_rr_peek(&conn); in ZTEST()
540 dequeue_ctx = llcp_rr_dequeue(&conn); in ZTEST()
543 llcp_rr_enqueue(&conn, &ctx); in ZTEST()
544 peek_ctx = (struct proc_ctx *)sys_slist_peek_head(&conn.llcp.remote.pend_proc_list); in ZTEST()
547 peek_ctx = llcp_rr_peek(&conn); in ZTEST()
550 dequeue_ctx = llcp_rr_dequeue(&conn); in ZTEST()
553 peek_ctx = llcp_rr_peek(&conn); in ZTEST()
556 dequeue_ctx = llcp_rr_dequeue(&conn); in ZTEST()