Searched refs:sdu_len (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/ |
D | main.c | 86 void recv_cb(struct bt_l2cap_chan *l2cap_chan, size_t sdu_len, off_t seg_offset, in recv_cb() argument 89 LOG_DBG("sdu len %u frag offset %u frag len %u", sdu_len, seg_offset, seg->len); in recv_cb() 91 ASSERT(sdu_len == sizeof(tx_data), "Recv SDU length does not match send length."); in recv_cb() 96 if (seg_offset + seg->len == sdu_len) { in recv_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/ |
D | main.c | 543 static void send_l2cap_sdu(uint8_t *data, uint16_t sdu_len, uint16_t mps) in send_l2cap_sdu() argument 556 for (int i = 0; sdu_len; i++) { in send_l2cap_sdu() 562 pdu_len = MIN(sdu_len, mps); in send_l2cap_sdu() 566 net_buf_push_le16(buf, sdu_len); in send_l2cap_sdu() 573 sdu_len -= pdu_len; in send_l2cap_sdu() 584 LOG_INF("send PDU %d (%d bytes, remaining %d)", i, buf->len, sdu_len); in send_l2cap_sdu()
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_l2cap.c | 52 static void seg_recv_cb(struct bt_l2cap_chan *l2cap_chan, size_t sdu_len, off_t seg_offset, in seg_recv_cb() argument 64 if (seg_offset + seg->len == sdu_len) { in seg_recv_cb() 66 ev->data_length = sys_cpu_to_le16(sdu_len); in seg_recv_cb() 69 sizeof(*ev) + sdu_len); in seg_recv_cb()
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | l2cap.h | 474 void (*seg_recv)(struct bt_l2cap_chan *chan, size_t sdu_len,
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | l2cap.c | 2574 uint16_t sdu_len; in l2cap_chan_le_recv() local 2609 sdu_len = net_buf_pull_le16(buf); in l2cap_chan_le_recv() 2611 LOG_DBG("chan %p len %u sdu_len %u", chan, buf->len, sdu_len); in l2cap_chan_le_recv() 2613 if (sdu_len > chan->rx.mtu) { in l2cap_chan_le_recv() 2627 chan->_sdu_len = sdu_len; in l2cap_chan_le_recv() 2631 MIN(sdu_len - buf->len, net_buf_tailroom(chan->_sdu)), in l2cap_chan_le_recv() 2637 sdu_len, in l2cap_chan_le_recv() 3214 uint16_t sdu_len = buf->len; in bt_l2cap_dyn_chan_send() local 3221 if (sdu_len > le_chan->tx.mtu) { in bt_l2cap_dyn_chan_send() 3223 sdu_len, le_chan->tx.mtu); in bt_l2cap_dyn_chan_send() [all …]
|