Home
last modified time | relevance | path

Searched refs:sdu (Results 1 – 25 of 52) sorted by relevance

123

/Zephyr-Core-3.4.0/tests/bluetooth/ctrl_isoal/src/
Disoal_test_debug.c78 const struct isoal_emitted_sdu *sdu) in isoal_test_debug_print_rx_sdu() argument
82 zassert_not_null(sdu, ""); in isoal_test_debug_print_rx_sdu()
84 uint8_t *buf = ((struct rx_sdu_frag_buffer *)sdu_frag->sdu.contents.dbuf)->sdu; in isoal_test_debug_print_rx_sdu()
89 sdu_frag->sdu.sn, in isoal_test_debug_print_rx_sdu()
90 sdu_frag->sdu.timestamp, in isoal_test_debug_print_rx_sdu()
92 DU_ERR_TO_STR(sdu_frag->sdu.status), in isoal_test_debug_print_rx_sdu()
101 (sdu->total_sdu_size != len || in isoal_test_debug_print_rx_sdu()
102 sdu->collated_status != sdu_frag->sdu.status ? in isoal_test_debug_print_rx_sdu()
104 DU_ERR_TO_STR(sdu->collated_status), in isoal_test_debug_print_rx_sdu()
105 sdu->total_sdu_size); in isoal_test_debug_print_rx_sdu()
[all …]
Disoal_test_debug.h21 const struct isoal_emitted_sdu *sdu);
Disoal_test_common.h69 uint8_t sdu[TEST_RX_SDU_FRAG_PAYLOAD_MAX]; member
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/
Dop_agg.c19 NET_BUF_SIMPLE_DEFINE_STATIC(sdu, BT_MESH_TX_SDU_MAX);
26 .sdu = &sdu,
89 if (net_buf_simple_tailroom(agg_ctx.sdu) < (msg->len + 2)) { in bt_mesh_op_agg_encode_msg()
93 net_buf_simple_add_le16(agg_ctx.sdu, (msg->len << 1) | 1); in bt_mesh_op_agg_encode_msg()
95 if (net_buf_simple_tailroom(agg_ctx.sdu) < (msg->len + 1)) { in bt_mesh_op_agg_encode_msg()
99 net_buf_simple_add_u8(agg_ctx.sdu, msg->len << 1); in bt_mesh_op_agg_encode_msg()
101 net_buf_simple_add_mem(agg_ctx.sdu, msg->data, msg->len); in bt_mesh_op_agg_encode_msg()
Dop_agg_srv.c40 bt_mesh_model_msg_init(agg->sdu, OP_OPCODES_AGGREGATOR_STATUS); in handle_sequence()
41 status = net_buf_simple_add_u8(agg->sdu, 0); in handle_sequence()
42 net_buf_simple_add_le16(agg->sdu, elem); in handle_sequence()
88 net_buf_simple_add_u8(agg->sdu, 0); in handle_sequence()
94 err = bt_mesh_model_send(model, ctx, agg->sdu, NULL, NULL); in handle_sequence()
Dhealth_srv.c112 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_get()
119 health_get_registered(model, company_id, &sdu); in health_fault_get()
121 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_get()
150 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_clear()
167 health_get_registered(model, company_id, &sdu); in health_fault_clear()
169 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_clear()
200 NET_BUF_SIMPLE_DEFINE(sdu, BT_MESH_TX_SDU_MAX); in health_fault_test()
222 health_get_registered(model, company_id, &sdu); in health_fault_test()
224 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_test()
Dop_agg_cli.c138 bt_mesh_model_msg_init(agg->sdu, OP_OPCODES_AGGREGATOR_SEQUENCE); in bt_mesh_op_agg_cli_seq_start()
139 net_buf_simple_add_le16(agg->sdu, elem_addr); in bt_mesh_op_agg_cli_seq_start()
167 err = bt_mesh_model_send(cli.model, &ctx, agg->sdu, NULL, NULL); in bt_mesh_op_agg_cli_seq_send()
195 return net_buf_simple_tailroom(agg->sdu); in bt_mesh_op_agg_cli_seq_tailroom()
Dfriend.c326 struct net_buf_simple *sdu) in create_friend_pdu() argument
351 net_buf_add_mem(buf, sdu->data, sdu->len); in create_friend_pdu()
428 struct net_buf_simple sdu; in unseg_app_sdu_encrypt() local
430 net_buf_simple_clone(&buf->b, &sdu); in unseg_app_sdu_encrypt()
431 net_buf_simple_pull(&sdu, BT_MESH_NET_HDR_LEN); in unseg_app_sdu_encrypt()
432 net_buf_simple_pull(&sdu, 1); in unseg_app_sdu_encrypt()
433 sdu.len -= BT_MESH_MIC_SHORT; in unseg_app_sdu_encrypt()
435 return bt_mesh_app_encrypt(meta->key, &meta->crypto, &sdu); in unseg_app_sdu_encrypt()
532 struct net_buf_simple *sdu) in encode_friend_ctl() argument
538 net_buf_simple_push_u8(sdu, TRANS_CTL_HDR(ctl_op, 0)); in encode_friend_ctl()
[all …]
Dtransport.c136 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument
159 net_buf_add_mem(buf, sdu->data, sdu->len); in send_unseg()
501 static int send_seg(struct bt_mesh_net_tx *net_tx, struct net_buf_simple *sdu, in send_seg() argument
511 net_tx->ctx->addr, net_tx->ctx->app_idx, net_tx->aszmic, sdu->len); in send_seg()
537 tx->seg_n = (sdu->len - 1) / seg_len(!!ctl_op); in send_seg()
539 tx->len = sdu->len; in send_seg()
569 for (seg_o = 0U; sdu->len; seg_o++) { in send_seg()
581 len = MIN(sdu->len, seg_len(!!ctl_op)); in send_seg()
582 memcpy(buf, net_buf_simple_pull_mem(sdu, len), len); in send_seg()
755 struct net_buf_simple *sdu; member
[all …]
Dtransport_legacy.c143 static int send_unseg(struct bt_mesh_net_tx *tx, struct net_buf_simple *sdu, in send_unseg() argument
166 net_buf_add_mem(buf, sdu->data, sdu->len); in send_unseg()
463 static int send_seg(struct bt_mesh_net_tx *net_tx, struct net_buf_simple *sdu, in send_seg() argument
473 net_tx->ctx->addr, net_tx->ctx->app_idx, net_tx->aszmic, sdu->len); in send_seg()
499 tx->seg_n = (sdu->len - 1) / seg_len(!!ctl_op); in send_seg()
501 tx->len = sdu->len; in send_seg()
530 for (seg_o = 0U; sdu->len; seg_o++) { in send_seg()
542 len = MIN(sdu->len, seg_len(!!ctl_op)); in send_seg()
543 memcpy(buf, net_buf_simple_pull_mem(sdu, len), len); in send_seg()
716 struct net_buf_simple *sdu; member
[all …]
Dop_agg.h30 struct net_buf_simple *sdu; member
/Zephyr-Core-3.4.0/samples/bluetooth/iso_broadcast_benchmark/src/
Dbroadcaster.c78 .sdu = DEFAULT_BIS_SDU, /* bytes */
205 uint64_t sdu; in parse_sdu_arg() local
208 iso_tx_qos.sdu, DEFAULT_BIS_SDU); in parse_sdu_arg()
215 sdu = strtoul(buffer, NULL, 0); in parse_sdu_arg()
216 if (sdu > MIN(BT_ISO_MAX_SDU, sizeof(iso_data))) { in parse_sdu_arg()
217 printk("Invalid SDU %llu", sdu); in parse_sdu_arg()
221 return (int)sdu; in parse_sdu_arg()
301 int sdu; in parse_args() local
328 sdu = parse_sdu_arg(); in parse_args()
329 if (sdu < 0) { in parse_args()
[all …]
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ll_sw/
Disoal.c398 struct isoal_sdu_produced *sdu; in isoal_rx_allocate_sdu() local
404 sdu = &sp->sdu; in isoal_rx_allocate_sdu()
414 &sdu->contents /* [out] Updated with pointer and size */ in isoal_rx_allocate_sdu()
423 sp->sdu_available = sdu->contents.size; in isoal_rx_allocate_sdu()
424 LL_ASSERT(sdu->contents.size > 0); in isoal_rx_allocate_sdu()
427 sdu->sn = session->sn; in isoal_rx_allocate_sdu()
449 struct isoal_sdu_produced *sdu; in isoal_rx_buffered_emit_sdu() local
456 sdu = &sp->sdu; in isoal_rx_buffered_emit_sdu()
461 sdu_frag.sdu = *sdu; in isoal_rx_buffered_emit_sdu()
464 sdu_status.collated_status = sdu_frag.sdu.status; in isoal_rx_buffered_emit_sdu()
[all …]
Dull_iso.c663 const struct isoal_emitted_sdu *sdu) in ll_iso_test_sdu_emit() argument
670 buf = (struct net_buf *)sdu_frag->sdu.contents.dbuf; in ll_iso_test_sdu_emit()
695 switch (sdu_frag->sdu.status) { in ll_iso_test_sdu_emit()
751 (sdu_frag->sdu.status == ISOAL_SDU_STATUS_VALID))) { in ll_iso_test_sdu_emit()
945 struct isoal_sdu_tx sdu; in ll_iso_transmit_test_send_sdu() local
993 sdu.sdu_state = BT_ISO_START; in ll_iso_transmit_test_send_sdu()
995 sdu.sdu_state = BT_ISO_SINGLE; in ll_iso_transmit_test_send_sdu()
999 sdu.packet_sn = 0; in ll_iso_transmit_test_send_sdu()
1000 sdu.dbuf = tx_buffer; in ll_iso_transmit_test_send_sdu()
1021 sdu.grp_ref_point = isoal_get_wrapped_time_us(cig->cig_ref_point, in ll_iso_transmit_test_send_sdu()
[all …]
Disoal.h130 struct isoal_sdu_produced sdu; member
234 const struct isoal_emitted_sdu *sdu
271 struct isoal_sdu_produced sdu; member
449 const struct isoal_emitted_sdu *sdu);
/Zephyr-Core-3.4.0/samples/bluetooth/iso_connected_benchmark/src/
Dmain.c83 .sdu = DEFAULT_CIS_SDU_SIZE, /* bytes */
89 .sdu = DEFAULT_CIS_SDU_SIZE, /* bytes */
173 net_buf_add_mem(buf, iso_data, iso_tx_qos.sdu); in iso_send()
591 uint64_t sdu; in parse_sdu_arg() local
594 qos->sdu, DEFAULT_CIS_SDU_SIZE); in parse_sdu_arg()
601 sdu = strtoul(buffer, NULL, 0); in parse_sdu_arg()
602 if (sdu > MIN(BT_ISO_MAX_SDU, sizeof(iso_data)) || in parse_sdu_arg()
603 sdu < sizeof(uint32_t) /* room for the counter */) { in parse_sdu_arg()
604 printk("Invalid SDU %llu", sdu); in parse_sdu_arg()
608 return (int)sdu; in parse_sdu_arg()
[all …]
/Zephyr-Core-3.4.0/subsys/bluetooth/shell/
Diso.c107 .sdu = 40u, \
254 unsigned long sdu; in cmd_cig_create() local
256 sdu = shell_strtoul(argv[6], 0, &err); in cmd_cig_create()
263 if (sdu > BT_ISO_MAX_SDU) { in cmd_cig_create()
264 shell_error(sh, "Invalid sdu %lu", sdu); in cmd_cig_create()
270 chans[0]->qos->tx->sdu = sdu; in cmd_cig_create()
274 chans[0]->qos->rx->sdu = sdu; in cmd_cig_create()
500 len = MIN(iso_chan.qos->tx->sdu, CONFIG_BT_ISO_TX_MTU); in cmd_send()
612 len = MIN(bis_iso_chan.qos->tx->sdu, CONFIG_BT_ISO_TX_MTU); in cmd_broadcast()
653 bis_iso_qos.tx->sdu = CONFIG_BT_ISO_TX_MTU; in cmd_big_create()
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/hci/
Dhci_driver.c113 const struct isoal_emitted_sdu *sdu) in sink_sdu_emit_hci() argument
126 buf = (struct net_buf *) sdu_frag->sdu.contents.dbuf; in sink_sdu_emit_hci()
131 if (sdu_frag->sdu.status != ISOAL_SDU_STATUS_VALID) { in sink_sdu_emit_hci()
141 total_len = sdu->total_sdu_size; in sink_sdu_emit_hci()
142 packet_status_flag = sdu->collated_status; in sink_sdu_emit_hci()
181 data_hdr->ts = sys_cpu_to_le32((uint32_t) sdu_frag->sdu.timestamp); in sink_sdu_emit_hci()
182 data_hdr->data.sn = sys_cpu_to_le16((uint16_t) sdu_frag->sdu.sn); in sink_sdu_emit_hci()
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/
Dascs_internal.h69 uint16_t sdu; member
157 uint16_t sdu; member
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/audio/src/
Dbap_unicast_common.c47 qos->interval, qos->framing, qos->phy, qos->sdu, in print_qos()
Dcap_initiator_broadcast_test.c58 if (broadcast_preset_16_2_1.qos.sdu > CONFIG_BT_ISO_TX_MTU) { in broadcast_sent_cb()
59 FAIL("Invalid SDU %u for the MTU: %d", broadcast_preset_16_2_1.qos.sdu, in broadcast_sent_cb()
83 net_buf_add_mem(buf, mock_data, broadcast_preset_16_2_1.qos.sdu); in broadcast_sent_cb()
/Zephyr-Core-3.4.0/drivers/ieee802154/
Dieee802154_cc13xx_cc26xx_subg.c587 uint8_t *sdu; in ieee802154_cc13xx_cc26xx_subg_rx_done() local
592 sdu = drv_data->rx_data[i] + 1; in ieee802154_cc13xx_cc26xx_subg_rx_done()
600 crc = crc16_ccitt(0, sdu, len); in ieee802154_cc13xx_cc26xx_subg_rx_done()
601 sdu[len++] = crc; in ieee802154_cc13xx_cc26xx_subg_rx_done()
602 sdu[len++] = crc >> 8; in ieee802154_cc13xx_cc26xx_subg_rx_done()
615 if (net_pkt_write(pkt, sdu, len)) { in ieee802154_cc13xx_cc26xx_subg_rx_done()
/Zephyr-Core-3.4.0/include/zephyr/bluetooth/audio/
Daudio.h343 .sdu = _sdu, \
400 uint16_t sdu; member
/Zephyr-Core-3.4.0/doc/connectivity/bluetooth/api/shell/
Diso.rst12 cig_create :[dir=tx,rx,txrx] [interval] [packing] [framing] [latency] [sdu]
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/bis/src/
Dmain.c113 const struct isoal_emitted_sdu *sdu) in test_sink_sdu_emit() argument
116 sdu_frag->sdu_frag_size, sdu->total_sdu_size, sdu_frag->sdu.sn, in test_sink_sdu_emit()
117 sdu_frag->sdu.timestamp); in test_sink_sdu_emit()
238 iso_tx_qos.sdu = 502; /* bytes */ in test_iso_main()

123