Lines Matching refs:sdu
119 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument
142 net_buf_simple_add_mem(&adv->b, sdu->data, sdu->len); in send_unseg()
485 static int send_seg(struct bt_mesh_net_tx *net_tx, struct net_buf_simple *sdu, in send_seg() argument
495 net_tx->ctx->addr, net_tx->ctx->app_idx, net_tx->aszmic, sdu->len); in send_seg()
521 tx->seg_n = (sdu->len - 1) / seg_len(!!ctl_op); in send_seg()
523 tx->len = sdu->len; in send_seg()
553 for (seg_o = 0U; sdu->len; seg_o++) { in send_seg()
565 len = MIN(sdu->len, seg_len(!!ctl_op)); in send_seg()
566 memcpy(buf, net_buf_simple_pull_mem(sdu, len), len); in send_seg()
739 struct net_buf_simple *sdu; member
765 net_buf_simple_reset(ctx->sdu); in sdu_try_decrypt()
767 err = bt_mesh_app_decrypt(key, &ctx->crypto, ctx->buf, ctx->sdu); in sdu_try_decrypt()
778 struct net_buf_simple *buf, struct net_buf_simple *sdu, in sdu_recv() argument
791 .sdu = sdu, in sdu_recv()
813 return bt_mesh_access_recv(&rx->ctx, sdu); in sdu_recv()
1026 NET_BUF_SIMPLE_DEFINE_STATIC(sdu, BT_MESH_SDU_UNSEG_MAX); in trans_unseg()
1054 err = sdu_recv(rx, hdr, 0, buf, &sdu, NULL); in trans_unseg()
1577 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_RX_CTL_MAX); in trans_seg()
1578 seg_rx_assemble(rx, &sdu, 0U); in trans_seg()
1579 err = ctl_recv(net_rx, *hdr, &sdu, seq_auth); in trans_seg()
1585 struct net_buf_simple sdu; in trans_seg() local
1593 &sdu, seg_buf.data, rx->len - APP_MIC_LEN(ASZMIC(hdr))); in trans_seg()
1595 err = sdu_recv(net_rx, *hdr, ASZMIC(hdr), &seg_buf, &sdu, rx); in trans_seg()