Lines Matching refs:sdu
339 struct net_buf_simple *sdu) in create_friend_pdu() argument
364 net_buf_add_mem(buf, sdu->data, sdu->len); in create_friend_pdu()
439 struct net_buf_simple sdu; in unseg_app_sdu_encrypt() local
441 net_buf_simple_clone(&buf->b, &sdu); in unseg_app_sdu_encrypt()
442 net_buf_simple_pull(&sdu, BT_MESH_NET_HDR_LEN); in unseg_app_sdu_encrypt()
443 net_buf_simple_pull(&sdu, 1); in unseg_app_sdu_encrypt()
444 sdu.len -= BT_MESH_MIC_SHORT; in unseg_app_sdu_encrypt()
446 return bt_mesh_app_encrypt(meta->key, &meta->crypto, &sdu); in unseg_app_sdu_encrypt()
543 struct net_buf_simple *sdu) in encode_friend_ctl() argument
549 net_buf_simple_push_u8(sdu, TRANS_CTL_HDR(ctl_op, 0)); in encode_friend_ctl()
561 return create_friend_pdu(frnd, &info, sdu); in encode_friend_ctl()
567 NET_BUF_SIMPLE_DEFINE(sdu, 1 + sizeof(*upd)); in encode_update()
573 net_buf_simple_reserve(&sdu, 1); in encode_update()
575 upd = net_buf_simple_add(&sdu, sizeof(*upd)); in encode_update()
580 return encode_friend_ctl(frnd, TRANS_CTL_OP_FRIEND_UPDATE, &sdu); in encode_update()
586 NET_BUF_SIMPLE_DEFINE(sdu, 1 + sizeof(*cfm)); in enqueue_sub_cfm()
591 net_buf_simple_reserve(&sdu, 1); in enqueue_sub_cfm()
593 cfm = net_buf_simple_add(&sdu, sizeof(*cfm)); in enqueue_sub_cfm()
596 buf = encode_friend_ctl(frnd, TRANS_CTL_OP_FRIEND_SUB_CFM, &sdu); in enqueue_sub_cfm()
910 NET_BUF_SIMPLE_DEFINE(sdu, 1 + sizeof(*off)); in enqueue_offer()
915 net_buf_simple_reserve(&sdu, 1); in enqueue_offer()
917 off = net_buf_simple_add(&sdu, sizeof(*off)); in enqueue_offer()
929 buf = encode_friend_ctl(frnd, TRANS_CTL_OP_FRIEND_OFFER, &sdu); in enqueue_offer()