Searched refs:sdu (Results 1 – 5 of 5) sorted by relevance
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/ |
D | friend.c | 323 struct net_buf_simple *sdu) in create_friend_pdu() argument 347 net_buf_add_mem(buf, sdu->data, sdu->len); in create_friend_pdu() 404 struct net_buf_simple sdu = {0}; in unseg_app_sdu_decrypt() local 406 net_buf_simple_clone(&buf->b, &sdu); in unseg_app_sdu_decrypt() 407 net_buf_simple_pull(&sdu, 10); in unseg_app_sdu_decrypt() 408 sdu.len -= 4; in unseg_app_sdu_decrypt() 410 return bt_mesh_app_decrypt(meta->key, meta->is_dev_key, 0, &sdu, &sdu, in unseg_app_sdu_decrypt() 420 struct net_buf_simple sdu = {0}; in unseg_app_sdu_encrypt() local 422 net_buf_simple_clone(&buf->b, &sdu); in unseg_app_sdu_encrypt() 423 net_buf_simple_pull(&sdu, 10); in unseg_app_sdu_encrypt() [all …]
|
D | transport.c | 189 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument 195 tx->src, tx->ctx->addr, tx->ctx->app_idx, sdu->len); in send_unseg() 211 net_buf_add_mem(buf, sdu->data, sdu->len); in send_unseg() 420 static int send_seg(struct bt_mesh_net_tx *net_tx, struct net_buf_simple *sdu, in send_seg() argument 430 net_tx->aszmic, sdu->len); in send_seg() 432 if (sdu->len < 1) { in send_seg() 437 if (sdu->len > BLE_MESH_TX_SDU_MAX) { in send_seg() 438 BT_ERR("Not enough segment buffers for length %u", sdu->len); in send_seg() 462 tx->seg_n = (sdu->len - 1) / BLE_MESH_APP_SEG_SDU_MAX; in send_seg() 493 for (seg_o = 0U; sdu->len; seg_o++) { in send_seg() [all …]
|
D | access.c | 178 struct net_buf_simple *sdu = NULL; in publish_retransmit() local 208 sdu = bt_mesh_alloc_buf(pub->msg->len + BLE_MESH_MIC_SHORT); in publish_retransmit() 209 if (!sdu) { in publish_retransmit() 214 net_buf_simple_add_mem(sdu, pub->msg->data, pub->msg->len); in publish_retransmit() 218 err = bt_mesh_trans_send(&tx, sdu, &pub_sent_cb, mod); in publish_retransmit() 220 bt_mesh_free_buf(sdu); in publish_retransmit() 834 struct net_buf_simple *sdu = NULL; in bt_mesh_model_publish() local 894 sdu = bt_mesh_alloc_buf(pub->msg->len + BLE_MESH_MIC_SHORT); in bt_mesh_model_publish() 895 if (!sdu) { in bt_mesh_model_publish() 900 net_buf_simple_add_mem(sdu, pub->msg->data, pub->msg->len); in bt_mesh_model_publish() [all …]
|
D | cfg_srv.c | 120 struct net_buf_simple *sdu = NULL; in dev_comp_data_get() local 133 sdu = bt_mesh_alloc_buf(MIN(BLE_MESH_TX_SDU_MAX, COMP_DATA_MAX_LEN)); in dev_comp_data_get() 134 if (!sdu) { in dev_comp_data_get() 139 bt_mesh_model_msg_init(sdu, OP_DEV_COMP_DATA_STATUS); in dev_comp_data_get() 141 net_buf_simple_add_u8(sdu, page); in dev_comp_data_get() 142 if (comp_get_page_0(sdu) < 0) { in dev_comp_data_get() 144 bt_mesh_free_buf(sdu); in dev_comp_data_get() 148 if (bt_mesh_model_send(model, ctx, sdu, NULL, NULL)) { in dev_comp_data_get() 152 bt_mesh_free_buf(sdu); in dev_comp_data_get()
|
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/server/ |
D | generic_server.c | 2155 struct net_buf_simple *sdu = NULL; in gen_client_prop_get() local 2190 sdu = bt_mesh_alloc_buf(MIN(BLE_MESH_TX_SDU_MAX, BLE_MESH_SERVER_RSP_MAX_LEN)); in gen_client_prop_get() 2191 if (sdu == NULL) { in gen_client_prop_get() 2196 bt_mesh_model_msg_init(sdu, BLE_MESH_MODEL_OP_GEN_CLIENT_PROPERTIES_STATUS); in gen_client_prop_get() 2204 net_buf_simple_add_le16(sdu, srv->property_ids[i]); in gen_client_prop_get() 2207 BLE_MESH_CHECK_SEND_STATUS(bt_mesh_model_send(model, ctx, sdu, NULL, NULL)); in gen_client_prop_get() 2208 bt_mesh_free_buf(sdu); in gen_client_prop_get()
|