/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/ |
H A D | ble_l2cap_coc.c | 156 if (OS_MBUF_PKTLEN(rx->sdu) == 0) { in ble_l2cap_coc_rx_fn() 172 rc = os_mbuf_appendfrom(rx->sdu, *om, 0, om_total - BLE_L2CAP_SDU_SIZE); in ble_l2cap_coc_rx_fn() 181 /* In RX case data_offset keeps incoming SDU len */ in ble_l2cap_coc_rx_fn() 187 rc = os_mbuf_appendfrom(rx->sdu, *om, 0, om_total); in ble_l2cap_coc_rx_fn() 197 if (OS_MBUF_PKTLEN(rx->sdu) == rx->data_offset) { in ble_l2cap_coc_rx_fn() 198 struct os_mbuf *sdu_rx = rx->sdu; in ble_l2cap_coc_rx_fn() 201 OS_MBUF_PKTLEN(rx->sdu), rx->credits); in ble_l2cap_coc_rx_fn() 204 * Since it this callback application might want to set new sdu in ble_l2cap_coc_rx_fn() 207 rx->sdu = NULL; in ble_l2cap_coc_rx_fn() 215 /* If we did not received full SDU and credits are 0 it means in ble_l2cap_coc_rx_fn() [all …]
|
H A D | ble_l2cap_coc_priv.h | 43 struct os_mbuf *sdu; member
|
H A D | ble_l2cap.c | 168 ble_l2cap_send(struct ble_l2cap_chan *chan, struct os_mbuf *sdu) in ble_l2cap_send() argument 170 return ble_l2cap_coc_send(chan, sdu); in ble_l2cap_send()
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/src/ |
H A D | health_srv.c | 107 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in health_fault_get() local 114 health_get_registered(model, company_id, sdu); in health_fault_get() 116 if (bt_mesh_model_send(model, ctx, sdu, NULL, NULL)) { in health_fault_get() 120 os_mbuf_free_chain(sdu); in health_fault_get() 143 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in health_fault_clear() local 155 health_get_registered(model, company_id, sdu); in health_fault_clear() 157 if (bt_mesh_model_send(model, ctx, sdu, NULL, NULL)) { in health_fault_clear() 161 os_mbuf_free_chain(sdu); in health_fault_clear() 186 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in health_fault_test() local 208 health_get_registered(model, company_id, sdu); in health_fault_test() [all …]
|
H A D | transport.c | 106 static int send_unseg(struct bt_mesh_net_tx *tx, struct os_mbuf *sdu, in send_unseg() argument 112 tx->src, tx->ctx->addr, tx->ctx->app_idx, sdu->om_len); in send_unseg() 128 net_buf_add_mem(buf, sdu->om_data, sdu->om_len); in send_unseg() 287 static int send_seg(struct bt_mesh_net_tx *net_tx, struct os_mbuf *sdu, in send_seg() argument 297 net_tx->aszmic, sdu->om_len); in send_seg() 299 if (sdu->om_len < 1) { in send_seg() 300 BT_ERR("Zero-length SDU not allowed"); in send_seg() 304 if (sdu->om_len > BT_MESH_TX_SDU_MAX) { in send_seg() 305 BT_ERR("Not enough segment buffers for length %u", sdu->om_len); in send_seg() 329 tx->seg_n = (sdu->om_len - 1) / 12; in send_seg() [all …]
|
H A D | friend.c | 319 struct os_mbuf *sdu) in create_friend_pdu() argument 332 if (info->ctl && TRANS_CTL_OP(sdu->om_data) == TRANS_CTL_OP_FRIEND_OFFER) { in create_friend_pdu() 356 net_buf_add_mem(buf, sdu->om_data, sdu->om_len); in create_friend_pdu() 381 struct os_mbuf *sdu) in encode_friend_ctl() argument 388 net_buf_simple_push_u8(sdu, TRANS_CTL_HDR(ctl_op, 0)); in encode_friend_ctl() 403 return create_friend_pdu(frnd, &info, sdu); in encode_friend_ctl() 409 struct os_mbuf *sdu = NET_BUF_SIMPLE(1 + sizeof(*upd)); in encode_update() local 417 net_buf_simple_init(sdu, 1); in encode_update() 419 upd = net_buf_simple_add(sdu, sizeof(*upd)); in encode_update() 424 buf = encode_friend_ctl(frnd, TRANS_CTL_OP_FRIEND_UPDATE, sdu); in encode_update() [all …]
|
H A D | access.c | 155 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in publish_retransmit() local 181 net_buf_simple_init(sdu, 0); in publish_retransmit() 182 net_buf_simple_add_mem(sdu, pub->msg->om_data, pub->msg->om_len); in publish_retransmit() 186 err = bt_mesh_trans_send(&tx, sdu, &pub_sent_cb, mod); in publish_retransmit() 189 os_mbuf_free_chain(sdu); in publish_retransmit() 664 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in bt_mesh_model_publish() local 695 BT_ERR("Message does not fit maximum SDU size"); in bt_mesh_model_publish() 705 net_buf_simple_init(sdu, 0); in bt_mesh_model_publish() 706 net_buf_simple_add_mem(sdu, pub->msg->om_data, pub->msg->om_len); in bt_mesh_model_publish() 721 err = model_send(model, &tx, true, sdu, &pub_sent_cb, model); in bt_mesh_model_publish() [all …]
|
H A D | net.h | 222 pending_update:1, /* Update blocked by SDU in progress */
|
H A D | cfg_srv.c | 170 struct os_mbuf *sdu = NET_BUF_SIMPLE(BT_MESH_TX_SDU_MAX); in dev_comp_data_get() local 183 bt_mesh_model_msg_init(sdu, OP_DEV_COMP_DATA_STATUS); in dev_comp_data_get() 185 net_buf_simple_add_u8(sdu, page); in dev_comp_data_get() 186 if (comp_get_page_0(sdu) < 0) { in dev_comp_data_get() 191 if (bt_mesh_model_send(model, ctx, sdu, NULL, NULL)) { in dev_comp_data_get() 196 os_mbuf_free_chain(sdu); in dev_comp_data_get()
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/test/src/ |
H A D | ble_l2cap_test.c | 30 /* We use same pool for incoming and outgoing sdu */ 912 struct os_mbuf *sdu; in ble_l2cap_test_coc_send_data() local 923 sdu = os_mbuf_get_pkthdr(&sdu_os_mbuf_pool, 0); in ble_l2cap_test_coc_send_data() 924 assert(sdu != NULL); in ble_l2cap_test_coc_send_data() 929 rc = os_mbuf_append(sdu, ev->data, ev->data_len); in ble_l2cap_test_coc_send_data() 935 rc = ble_l2cap_send(t->chan, sdu); in ble_l2cap_test_coc_send_data() 939 rc = os_mbuf_free(sdu); in ble_l2cap_test_coc_send_data() 947 /* Add place for SDU len */ in ble_l2cap_test_coc_send_data() 952 ble_hs_test_util_verify_tx_l2cap(sdu); in ble_l2cap_test_coc_send_data() 961 struct os_mbuf *sdu; in ble_l2cap_test_coc_recv_data() local [all …]
|
/nrf52832-nimble/packages/NimBLE-latest/apps/btshell/src/ |
H A D | btshell.c | 67 /* We use same pool for incoming and outgoing sdu */ 1928 btshell_l2cap_coc_recv(struct ble_l2cap_chan *chan, struct os_mbuf *sdu) in btshell_l2cap_coc_recv() argument 1930 console_printf("LE CoC SDU received, chan: 0x%08lx, data len %d\n", in btshell_l2cap_coc_recv() 1931 (uint32_t) chan, OS_MBUF_PKTLEN(sdu)); in btshell_l2cap_coc_recv() 1933 os_mbuf_free_chain(sdu); in btshell_l2cap_coc_recv() 1934 sdu = os_mbuf_get_pkthdr(&sdu_os_mbuf_pool, 0); in btshell_l2cap_coc_recv() 1935 assert(sdu != NULL); in btshell_l2cap_coc_recv() 1937 ble_l2cap_recv_ready(chan, sdu); in btshell_l2cap_coc_recv() 2116 console_printf("No memory in the test sdu pool\n"); in btshell_l2cap_send()
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/mesh/ |
H A D | syscfg.yml | 182 The maximum outgoing SDU size is 12 times this number (out of 184 example, 5 segments means the maximum SDU size is 60 bytes,
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/include/host/ |
H A D | ble_l2cap.h | 173 /** The mbuf with received SDU. */
|
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/pts/tpg/ |
H A D | 94654-20170317-085122560.tpg | 348 MI&)"D[J&P%75PN+_[]+6D[7SDU:M59*:O\?$/T;Z)B:.FE2,EXALDRQ4N]C
|