Lines Matching full:tx
55 len = MIN(l2cap_ctx->ot_chan.tx.mtu, CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU); in ots_l2cap_send()
56 len = MIN(len, l2cap_ctx->tx.len - l2cap_ctx->tx.len_sent); in ots_l2cap_send()
61 net_buf_add_mem(buf, &l2cap_ctx->tx.data[l2cap_ctx->tx.len_sent], len); in ots_l2cap_send()
71 /* Mark that L2CAP TX was accepted. */ in ots_l2cap_send()
72 l2cap_ctx->tx.len_sent += len; in ots_l2cap_send()
74 LOG_DBG("Sending TX chunk with %d bytes on L2CAP CoC", len); in ots_l2cap_send()
98 /* Ongoing TX - sending next chunk. */ in l2cap_sent()
99 if (l2cap_ctx->tx.len != l2cap_ctx->tx.len_sent) { in l2cap_sent()
105 /* TX completed - notify upper layers and clean up. */ in l2cap_sent()
106 memset(&l2cap_ctx->tx, 0, sizeof(l2cap_ctx->tx)); in l2cap_sent()
108 LOG_DBG("Scheduled TX on L2CAP CoC is complete"); in l2cap_sent()
199 memset(&l2cap_ctx->tx, 0, sizeof(l2cap_ctx->tx)); in l2cap_accept()
242 if (l2cap_ctx->tx.len != 0) { in bt_gatt_ots_l2cap_send()
243 LOG_ERR("L2CAP TX in progress"); in bt_gatt_ots_l2cap_send()
248 l2cap_ctx->tx.data = data; in bt_gatt_ots_l2cap_send()
249 l2cap_ctx->tx.len = len; in bt_gatt_ots_l2cap_send()
251 LOG_DBG("Starting TX on L2CAP CoC with %d byte packet", len); in bt_gatt_ots_l2cap_send()
302 (void)memset(&ctx->tx, 0, sizeof(ctx->tx)); in bt_gatt_ots_l2cap_connect()