Lines Matching full:contexts
59 static struct test_ctx contexts[L2CAP_CHANS]; variable
66 ASSERT(ctx >= &contexts[0] && in get_ctx()
67 ctx <= &contexts[L2CAP_CHANS], "memory corruption"); in get_ctx()
199 struct bt_l2cap_le_chan *le_chan = &contexts[i].le_chan; in alloc_test_context()
205 memset(&contexts[i], 0, sizeof(struct test_ctx)); in alloc_test_context()
206 k_work_init_delayable(&contexts[i].work_item, deferred_send); in alloc_test_context()
208 return &contexts[i]; in alloc_test_context()
394 ASSERT(ctx, "No more available test contexts\n"); in connect_l2cap_channel()
434 contexts[i].tx_left = SDU_NUM; in test_central_main()
435 l2cap_chan_send(&contexts[i].le_chan.chan, tx_data, sizeof(tx_data)); in test_central_main()
446 remaining_tx_total += contexts[i].tx_left; in test_central_main()