/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/einprogress/src/ |
D | tester.c | 44 struct net_buf *sdu; in entrypoint_tester() local 64 sdu = net_buf_alloc(&test_pool, K_NO_WAIT); in entrypoint_tester() 65 __ASSERT_NO_MSG(sdu); in entrypoint_tester() 66 net_buf_reserve(sdu, BT_L2CAP_SDU_CHAN_SEND_RESERVE); in entrypoint_tester() 68 err = bt_l2cap_chan_send(&le_chan.chan, sdu); in entrypoint_tester()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | op_agg_srv.c | 20 NET_BUF_SIMPLE_DEFINE_STATIC(sdu, BT_MESH_TX_SDU_MAX); 34 } srv = {.ctx.sdu = &sdu}; 49 bt_mesh_model_msg_init(srv.ctx.sdu, OP_OPCODES_AGGREGATOR_STATUS); in handle_sequence() 50 status = net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence() 51 net_buf_simple_add_le16(srv.ctx.sdu, elem); in handle_sequence() 97 net_buf_simple_add_u8(srv.ctx.sdu, 0); in handle_sequence() 103 err = bt_mesh_model_send(model, ctx, srv.ctx.sdu, NULL, NULL); in handle_sequence() 141 err = bt_mesh_op_agg_encode_msg(msg, srv.ctx.sdu); in bt_mesh_op_agg_srv_send()
|
D | op_agg_cli.c | 22 NET_BUF_SIMPLE_DEFINE_STATIC(sdu, BT_MESH_TX_SDU_MAX); 38 } cli = {.srcs = &srcs, .ctx.sdu = &sdu}; 143 bt_mesh_model_msg_init(cli.ctx.sdu, OP_OPCODES_AGGREGATOR_SEQUENCE); in bt_mesh_op_agg_cli_seq_start() 144 net_buf_simple_add_le16(cli.ctx.sdu, elem_addr); in bt_mesh_op_agg_cli_seq_start() 171 err = bt_mesh_model_send(cli.model, &ctx, cli.ctx.sdu, NULL, NULL); in bt_mesh_op_agg_cli_seq_send() 193 return net_buf_simple_tailroom(cli.ctx.sdu); in bt_mesh_op_agg_cli_seq_tailroom() 215 return bt_mesh_op_agg_encode_msg(msg, cli.ctx.sdu); in bt_mesh_op_agg_cli_send()
|
D | health_srv.c | 111 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_get() 118 health_get_registered(model, company_id, &sdu); in health_fault_get() 120 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_get() 149 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_clear() 166 health_get_registered(model, company_id, &sdu); in health_fault_clear() 168 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_clear() 199 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_test() 221 health_get_registered(model, company_id, &sdu); in health_fault_test() 223 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_test()
|
D | transport.c | 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 [all …]
|
D | friend.c | 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() [all …]
|
D | op_agg.h | 17 struct net_buf_simple *sdu; member
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/ |
D | isoal_test_debug.c | 113 const struct isoal_emitted_sdu *sdu) in isoal_test_debug_print_rx_sdu() argument 117 zassert_not_null(sdu, ""); in isoal_test_debug_print_rx_sdu() 119 uint8_t *buf = ((struct rx_sdu_frag_buffer *)sdu_frag->sdu.contents.dbuf)->sdu; in isoal_test_debug_print_rx_sdu() 124 sdu_frag->sdu.sn, in isoal_test_debug_print_rx_sdu() 125 sdu_frag->sdu.timestamp, in isoal_test_debug_print_rx_sdu() 127 DU_ERR_TO_STR(sdu_frag->sdu.status), in isoal_test_debug_print_rx_sdu() 136 (sdu->total_sdu_size != len || in isoal_test_debug_print_rx_sdu() 137 sdu->collated_status != sdu_frag->sdu.status ? in isoal_test_debug_print_rx_sdu() 139 DU_ERR_TO_STR(sdu->collated_status), in isoal_test_debug_print_rx_sdu() 140 sdu->total_sdu_size); in isoal_test_debug_print_rx_sdu() [all …]
|
D | isoal_test_debug.h | 16 const struct isoal_emitted_sdu *sdu);
|
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/ |
D | broadcaster.c | 100 .sdu = DEFAULT_BIS_SDU, /* bytes */ 234 uint64_t sdu; in parse_sdu_arg() local 237 iso_tx_qos.sdu, DEFAULT_BIS_SDU); in parse_sdu_arg() 244 sdu = strtoul(buffer, NULL, 0); in parse_sdu_arg() 245 if (sdu > MIN(BT_ISO_MAX_SDU, sizeof(iso_data))) { in parse_sdu_arg() 246 printk("Invalid SDU %llu", sdu); in parse_sdu_arg() 250 return (int)sdu; in parse_sdu_arg() 476 int sdu; in parse_args() local 511 sdu = parse_sdu_arg(); in parse_args() 512 if (sdu < 0) { in parse_args() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | isoal.c | 418 struct isoal_sdu_produced *sdu; in isoal_rx_allocate_sdu() local 424 sdu = &sp->sdu; in isoal_rx_allocate_sdu() 434 &sdu->contents /* [out] Updated with pointer and size */ in isoal_rx_allocate_sdu() 443 sp->sdu_available = sdu->contents.size; in isoal_rx_allocate_sdu() 444 LL_ASSERT(sdu->contents.size > 0); in isoal_rx_allocate_sdu() 447 sdu->sn = session->sn; in isoal_rx_allocate_sdu() 469 struct isoal_sdu_produced *sdu; in isoal_rx_buffered_emit_sdu() local 476 sdu = &sp->sdu; in isoal_rx_buffered_emit_sdu() 481 sdu_frag.sdu = *sdu; in isoal_rx_buffered_emit_sdu() 484 sdu_status.collated_status = sdu_frag.sdu.status; in isoal_rx_buffered_emit_sdu() [all …]
|
D | ull_iso.c | 690 const struct isoal_emitted_sdu *sdu) in ll_iso_test_sdu_emit() argument 702 buf = (struct net_buf *)sdu_frag->sdu.contents.dbuf; in ll_iso_test_sdu_emit() 749 switch (sdu_frag->sdu.status) { in ll_iso_test_sdu_emit() 805 (sdu_frag->sdu.status == ISOAL_SDU_STATUS_VALID))) { in ll_iso_test_sdu_emit() 1088 struct isoal_sdu_tx sdu; in ll_iso_transmit_test_send_sdu() local 1139 sdu.sdu_state = BT_ISO_START; in ll_iso_transmit_test_send_sdu() 1141 sdu.sdu_state = BT_ISO_SINGLE; in ll_iso_transmit_test_send_sdu() 1145 sdu.packet_sn = 0; in ll_iso_transmit_test_send_sdu() 1146 sdu.dbuf = tx_buffer; in ll_iso_transmit_test_send_sdu() 1167 sdu.grp_ref_point = isoal_get_wrapped_time_us(cig->cig_ref_point, in ll_iso_transmit_test_send_sdu() [all …]
|
D | isoal.h | 130 struct isoal_sdu_produced sdu; member 236 const struct isoal_emitted_sdu *sdu 275 struct isoal_sdu_produced sdu; member 454 const struct isoal_emitted_sdu *sdu);
|
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/src/ |
D | main.c | 102 .sdu = DEFAULT_CIS_SDU_SIZE, /* bytes */ 112 .sdu = DEFAULT_CIS_SDU_SIZE, /* bytes */ 218 net_buf_add_mem(buf, iso_data, iso_tx_qos.sdu); in iso_send() 642 uint64_t sdu; in parse_sdu_arg() local 645 qos->sdu, DEFAULT_CIS_SDU_SIZE); in parse_sdu_arg() 652 sdu = strtoul(buffer, NULL, 0); in parse_sdu_arg() 653 if (sdu > MIN(BT_ISO_MAX_SDU, sizeof(iso_data)) || in parse_sdu_arg() 654 sdu < sizeof(uint32_t) /* room for the counter */) { in parse_sdu_arg() 655 printk("Invalid SDU %llu", sdu); in parse_sdu_arg() 659 return (int)sdu; in parse_sdu_arg() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/shell/ |
D | iso.c | 31 .sdu = 40u, .phy = BT_GAP_LE_PHY_2M, .rtn = 2u, \ 327 unsigned long sdu; in cmd_cig_create() local 329 sdu = shell_strtoul(argv[7], 0, &err); in cmd_cig_create() 336 if (sdu > BT_ISO_MAX_SDU) { in cmd_cig_create() 337 shell_error(sh, "Invalid sdu %lu", sdu); in cmd_cig_create() 343 chans[0]->qos->tx->sdu = sdu; in cmd_cig_create() 347 chans[0]->qos->rx->sdu = sdu; in cmd_cig_create() 572 len = MIN(iso_chan.qos->tx->sdu, CONFIG_BT_ISO_TX_MTU); in cmd_send() 688 len = MIN(bis_iso_chan.qos->tx->sdu, CONFIG_BT_ISO_TX_MTU); in cmd_broadcast() 731 bis_iso_qos.tx->sdu = CONFIG_BT_ISO_TX_MTU; in cmd_big_create()
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci_driver.c | 176 const struct isoal_emitted_sdu *sdu) in sink_sdu_emit_hci() argument 191 buf = (struct net_buf *) sdu_frag->sdu.contents.dbuf; in sink_sdu_emit_hci() 196 if (sdu_frag->sdu.status != ISOAL_SDU_STATUS_VALID) { in sink_sdu_emit_hci() 206 total_len = sdu->total_sdu_size; in sink_sdu_emit_hci() 207 packet_status_flag = sdu->collated_status; in sink_sdu_emit_hci() 246 sdu_hdr->ts = sys_cpu_to_le32((uint32_t) sdu_frag->sdu.timestamp); in sink_sdu_emit_hci() 247 sdu_hdr->sdu.sn = sys_cpu_to_le16((uint16_t) sdu_frag->sdu.sn); in sink_sdu_emit_hci() 248 sdu_hdr->sdu.slen = sys_cpu_to_le16(slen_packed); in sink_sdu_emit_hci()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap_audio_stream.c | 108 net_buf_add_mem(buf, btp_bap_audio_stream_mock_data, bap_stream->qos->sdu); in tx_thread_func() 228 tx_streams[i].tx_completed, stream->qos->sdu); in btp_bap_audio_stream_sent_cb()
|
/Zephyr-latest/samples/bluetooth/tmap_bms/src/ |
D | cap_initiator.c | 84 if (broadcast_preset_48_2_1.qos.sdu > CONFIG_BT_ISO_TX_MTU) { in broadcast_sent_cb() 86 broadcast_preset_48_2_1.qos.sdu, CONFIG_BT_ISO_TX_MTU); in broadcast_sent_cb() 108 net_buf_add_mem(buf, mock_data, broadcast_preset_48_2_1.qos.sdu); in broadcast_sent_cb()
|
/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/ |
D | main.c | 74 const uint16_t sdu = 40U; /* octets */ in bap_broadcast_source_test_suite_fixture_init() local 114 *qos_cfg = BT_BAP_QOS_CFG_UNFRAMED(10000u, sdu, rtn, latency, pd); in bap_broadcast_source_test_suite_fixture_init() 214 zassert_equal(create_param->qos->sdu, stream->qos->sdu, in ZTEST_F() 592 zassert_equal(reconf_param->qos->sdu, stream->qos->sdu, in ZTEST_F() 602 reconf_param->qos->sdu = 100U; in ZTEST_F() 614 zassert_equal(reconf_param->qos->sdu, stream->qos->sdu, in ZTEST_F() 644 zassert_equal(reconf_param->qos->sdu, stream->qos->sdu, in ZTEST_F() 653 reconf_param->qos->sdu = 100U; in ZTEST_F() 665 zassert_equal(reconf_param->qos->sdu, stream->qos->sdu, in ZTEST_F()
|
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_source/src/ |
D | main.c | 99 if (broadcast_preset_48_2_1.qos.sdu > CONFIG_BT_ISO_TX_MTU) { in broadcast_sent_cb() 100 printk("Invalid SDU %u for the MTU: %d", broadcast_preset_48_2_1.qos.sdu, in broadcast_sent_cb() 124 net_buf_add_mem(buf, mock_data, broadcast_preset_48_2_1.qos.sdu); in broadcast_sent_cb()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | ascs_internal.h | 77 uint16_t sdu; member 165 uint16_t sdu; member
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc13xx_cc26xx_subg.c | 329 uint8_t *sdu; in drv_rx_done() local 339 sdu = drv_data->rx_data[i] + 1; in drv_rx_done() 348 crc = crc16_ccitt(0, sdu, len); in drv_rx_done() 349 sdu[len++] = crc; in drv_rx_done() 350 sdu[len++] = crc >> 8; in drv_rx_done() 363 if (net_pkt_write(pkt, sdu, len)) { in drv_rx_done()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | iso.c | 604 hdr = &ts_hdr->sdu; in bt_iso_recv() 794 max_data_len = chan->qos->tx->sdu; in iso_chan_max_data_len() 914 hdr->sdu.sn = sys_cpu_to_le16(seq_num); in bt_iso_chan_send_ts() 915 hdr->sdu.slen = sys_cpu_to_le16( in bt_iso_chan_send_ts() 931 if (io_qos->sdu > max_sdu) { in valid_chan_io_qos() 932 LOG_DBG("sdu (%u) shall be smaller or equal to %zu", io_qos->sdu, max_sdu); in valid_chan_io_qos() 1126 rx->sdu = sys_le16_to_cpu(evt->c_max_pdu); in store_cis_info() 1131 tx->sdu = sys_le16_to_cpu(evt->p_max_pdu); in store_cis_info() 1206 central->max_sdu = tx == NULL ? 0 : tx->sdu; in store_cis_info() 1209 peripheral->max_sdu = rx == NULL ? 0 : rx->sdu; in store_cis_info() [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/host/ |
D | iso.rst | 12 cig_create :[dir=tx,rx,txrx] [interval] [packing] [framing] [latency] [sdu]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_common.c | 92 qos->interval, qos->framing, qos->phy, qos->sdu, qos->rtn, qos->latency, qos->pd); in print_qos()
|