Home
last modified time | relevance | path

Searched refs:le_chan (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/multilink_peripheral/src/
Ddut.c38 struct bt_l2cap_le_chan le_chan; member
72 struct bt_l2cap_chan *chan = &ctx->le_chan.chan; in resume_sending_until_done()
74 TEST_ASSERT(ctx->le_chan.state == BT_L2CAP_CONNECTED, in resume_sending_until_done()
92 struct bt_l2cap_le_chan *le_chan = CONTAINER_OF(chan, struct bt_l2cap_le_chan, chan); in get_ctx_from_chan() local
93 struct test_ctx *ctx = CONTAINER_OF(le_chan, struct test_ctx, le_chan); in get_ctx_from_chan()
113 struct bt_l2cap_le_chan *le_chan = CONTAINER_OF(chan, struct bt_l2cap_le_chan, chan); in l2cap_chan_connected_cb() local
115 LOG_DBG("%p (tx mtu %d mps %d) (tx mtu %d mps %d)", chan, le_chan->tx.mtu, le_chan->tx.mps, in l2cap_chan_connected_cb()
116 le_chan->rx.mtu, le_chan->rx.mps); in l2cap_chan_connected_cb()
134 static int connect_l2cap_channel(struct bt_conn *conn, struct bt_l2cap_le_chan *le_chan) in connect_l2cap_channel() argument
143 memset(le_chan, 0, sizeof(*le_chan)); in connect_l2cap_channel()
[all …]
Dcentral.c26 static struct bt_l2cap_le_chan le_chan; variable
60 memset(&le_chan, 0, sizeof(le_chan)); in server_accept_cb()
61 le_chan.chan.ops = &ops; in server_accept_cb()
62 *chan = &le_chan.chan; in server_accept_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/
Dmain.c33 struct bt_l2cap_le_chan le_chan; member
64 struct bt_l2cap_chan *chan = &ctx->le_chan.chan; in continue_sending()
110 bt_l2cap_chan_give_credits(&test_ctx.le_chan.chan, 1); in recv_cb()
142 struct bt_l2cap_le_chan *le_chan = &test_ctx.le_chan; in server_accept_cb() local
144 *chan = &le_chan->chan; in server_accept_cb()
147 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
148 le_chan->chan.ops = &ops; in server_accept_cb()
150 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
151 le_chan->rx.mps = BT_L2CAP_RX_MTU; in server_accept_cb()
271 bt_l2cap_chan_give_credits(&test_ctx.le_chan.chan, 1); in test_peripheral_main()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits/src/
Dmain.c35 struct bt_l2cap_le_chan le_chan; member
69 struct bt_l2cap_chan *chan = &ctx->le_chan.chan; in continue_sending()
142 struct bt_l2cap_le_chan *le_chan = &test_ctx.le_chan; in server_accept_cb() local
144 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
145 le_chan->chan.ops = &ops; in server_accept_cb()
146 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
147 *chan = &le_chan->chan; in server_accept_cb()
258 bt_l2cap_chan_recv_complete(&test_ctx.le_chan.chan, test_ctx.rx_sdu); in test_peripheral_main()
318 struct bt_l2cap_le_chan *le_chan = &test_ctx.le_chan; in connect_l2cap_channel() local
320 le_chan->chan.ops = &ops; in connect_l2cap_channel()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Dl2cap.c118 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in l2cap_chan_alloc_cid() local
125 if (le_chan->rx.cid > 0) { in l2cap_chan_alloc_cid()
126 return le_chan; in l2cap_chan_alloc_cid()
131 le_chan->rx.cid = cid; in l2cap_chan_alloc_cid()
132 return le_chan; in l2cap_chan_alloc_cid()
200 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in bt_l2cap_chan_set_state_debug() local
202 LOG_DBG("chan %p psm 0x%04x %s -> %s", chan, le_chan->psm, in bt_l2cap_chan_set_state_debug()
203 bt_l2cap_chan_state_str(le_chan->state), bt_l2cap_chan_state_str(state)); in bt_l2cap_chan_set_state_debug()
211 if (le_chan->state != BT_L2CAP_DISCONNECTED) { in bt_l2cap_chan_set_state_debug()
216 if (le_chan->state != BT_L2CAP_CONNECTING) { in bt_l2cap_chan_set_state_debug()
[all …]
Dsmp_null.c44 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in bt_smp_recv() local
66 if (bt_l2cap_send_pdu(le_chan, buf, NULL, NULL)) { in bt_smp_recv()
Dl2cap_internal.h215 int bt_l2cap_send_pdu(struct bt_l2cap_le_chan *le_chan, struct net_buf *pdu,
Datt.c3198 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in bt_att_connected() local
3200 LOG_DBG("chan %p cid 0x%04x", le_chan, le_chan->tx.cid); in bt_att_connected()
3208 bt_gatt_connected(le_chan->chan.conn); in bt_att_connected()
3215 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in bt_att_disconnected() local
3217 LOG_DBG("chan %p cid 0x%04x", le_chan, le_chan->tx.cid); in bt_att_disconnected()
3233 bt_gatt_disconnected(le_chan->chan.conn); in bt_att_disconnected()
3271 struct bt_l2cap_le_chan *le_chan = BT_L2CAP_LE_CHAN(chan); in bt_att_encrypt_change() local
3272 struct bt_conn *conn = le_chan->chan.conn; in bt_att_encrypt_change()
3275 LOG_DBG("chan %p conn %p handle %u sec_level 0x%02x status 0x%02x %s", le_chan, conn, in bt_att_encrypt_change()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/stress/src/
Dmain.c55 struct bt_l2cap_le_chan le_chan; member
63 struct bt_l2cap_le_chan *le_chan = CONTAINER_OF(chan, struct bt_l2cap_le_chan, chan); in get_ctx() local
64 struct test_ctx *ctx = CONTAINER_OF(le_chan, struct test_ctx, le_chan); in get_ctx()
109 struct bt_l2cap_chan *chan = &ctx->le_chan.chan; in continue_sending()
189 struct bt_l2cap_chan *chan = &ctx->le_chan.chan; in deferred_send()
199 struct bt_l2cap_le_chan *le_chan = &contexts[i].le_chan; in alloc_test_context() local
201 if (le_chan->state != BT_L2CAP_DISCONNECTED) { in alloc_test_context()
224 struct bt_l2cap_le_chan *le_chan = &ctx->le_chan; in server_accept_cb() local
226 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
227 le_chan->chan.ops = &ops; in server_accept_cb()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/many_conns/src/
Dmain.c39 struct bt_l2cap_le_chan le_chan; member
47 struct bt_l2cap_le_chan *le_chan = CONTAINER_OF(chan, struct bt_l2cap_le_chan, chan); in get_ctx() local
48 struct test_ctx *ctx = CONTAINER_OF(le_chan, struct test_ctx, le_chan); in get_ctx()
145 struct bt_l2cap_le_chan *le_chan = &contexts[i].le_chan; in alloc_test_context() local
147 if (le_chan->state != BT_L2CAP_DISCONNECTED) { in alloc_test_context()
169 struct bt_l2cap_le_chan *le_chan = &ctx->le_chan; in server_accept_cb() local
171 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
172 le_chan->chan.ops = &ops; in server_accept_cb()
173 le_chan->rx.mtu = SDU_LEN; in server_accept_cb()
174 *chan = &le_chan->chan; in server_accept_cb()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/einprogress/src/
Dtester.c33 static struct bt_l2cap_le_chan le_chan = { variable
56 err = bt_l2cap_chan_connect(conn, &le_chan.chan, TEST_DATA_L2CAP_PSM); in entrypoint_tester()
60 while (!atomic_test_bit(le_chan.chan.status, BT_L2CAP_STATUS_OUT)) { in entrypoint_tester()
68 err = bt_l2cap_chan_send(&le_chan.chan, sdu); in entrypoint_tester()
Ddut.c78 static struct bt_l2cap_le_chan le_chan = { variable
85 *chan = &le_chan.chan; in dut_server_accept_cb()
120 err = bt_l2cap_chan_recv_complete(&le_chan.chan, ack_buf); in entrypoint_dut()
/Zephyr-latest/tests/bsim/bluetooth/host/misc/hfc_multilink/dut/src/
Ddut.c32 struct bt_l2cap_le_chan le_chan; member
88 struct bt_l2cap_le_chan *le_chan = &tester->le_chan; in server_accept_cb() local
90 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
91 le_chan->chan.ops = &ops; in server_accept_cb()
92 *chan = &le_chan->chan; in server_accept_cb()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/dut/src/
Dmain.c95 struct bt_l2cap_le_chan *le_chan = &test_chan; in server_accept_cb() local
97 memset(le_chan, 0, sizeof(*le_chan)); in server_accept_cb()
98 le_chan->chan.ops = &ops; in server_accept_cb()
99 le_chan->rx.mtu = L2CAP_MTU; in server_accept_cb()
100 *chan = &le_chan->chan; in server_accept_cb()