Home
last modified time | relevance | path

Searched refs:qos (Results 1 – 25 of 98) sorted by relevance

1234

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_common.c88 void print_qos(const struct bt_bap_qos_cfg *qos) in print_qos() argument
92 qos->interval, qos->framing, qos->phy, qos->sdu, qos->rtn, qos->latency, qos->pd); in print_qos()
98 memcpy(&stream->qos, &named_preset->preset.qos, sizeof(stream->qos)); in copy_unicast_stream_preset()
Dbap_common.h49 struct bt_bap_qos_cfg qos; member
60 void print_qos(const struct bt_bap_qos_cfg *qos);
Dcap_initiator_broadcast_test.c352 create_param.qos = &broadcast_preset_16_2_1.qos; in test_broadcast_audio_create_inval()
408 create_param.qos = &broadcast_preset_16_2_1.qos; in test_broadcast_audio_create()
424 test_stream->tx_sdu_size = create_param.qos->sdu; in test_broadcast_audio_create()
714 struct bt_bap_qos_cfg qos; in test_cap_initiator_ac() local
735 memcpy(&qos, &named_preset->preset.qos, sizeof(qos)); in test_cap_initiator_ac()
736 qos.sdu *= param->chan_cnt; in test_cap_initiator_ac()
743 create_param.qos = &qos; in test_cap_initiator_ac()
758 test_stream->tx_sdu_size = create_param.qos->sdu; in test_cap_initiator_ac()
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_packet/
DREADME44 [PASS] 4 - CONNECT, new session, will qos = 1
45 [PASS] 5 - CONNECT, new session, will qos = 1, will retain
48 [PASS] 8 - PUBLISH, qos = 0
50 [PASS] 10 - PUBLISH, retain = 1, qos = 1
51 [PASS] 11 - PUBLISH, qos = 2
52 [PASS] 12 - SUBSCRIBE, one topic, qos = 0
53 [PASS] 13 - SUBSCRIBE, one topic, qos = 1
54 [PASS] 14 - SUBSCRIBE, one topic, qos = 2
55 [PASS] 15 - SUBACK, one topic, qos = 0
56 [PASS] 16 - SUBACK, one topic, qos = 1
[all …]
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_unicast.c102 static void log_qos(const struct bt_bap_qos_cfg *qos) in log_qos() argument
105 qos->interval, qos->framing, qos->phy, qos->sdu, qos->rtn, qos->latency, qos->pd); in log_qos()
150 static int unicast_server_qos_cb(struct bt_bap_stream *bap_stream, const struct bt_bap_qos_cfg *qos, in unicast_server_qos_cb() argument
153 LOG_INF("QoS: bap_stream %p qos %p", bap_stream, qos); in unicast_server_qos_cb()
155 log_qos(qos); in unicast_server_qos_cb()
242 .qos = unicast_server_qos_cb,
381 net_buf_add_mem(buf, data, bap_stream->qos->sdu); in tx_thread_func()
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/
Dbap_unicast_sr.c114 static void print_qos(const struct bt_bap_qos_cfg *qos) in print_qos() argument
118 qos->interval, qos->framing, qos->phy, qos->sdu, in print_qos()
119 qos->rtn, qos->latency, qos->pd); in print_qos()
174 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() argument
177 printk("QoS: stream %p qos %p\n", stream, qos); in lc3_qos()
179 print_qos(qos); in lc3_qos()
295 .qos = lc3_qos,
/Zephyr-latest/subsys/bluetooth/host/shell/
Diso.c137 .qos = &cis_iso_qos,
209 chans[0]->qos->tx = &iso_tx_qos; in cmd_cig_create()
210 chans[0]->qos->rx = NULL; in cmd_cig_create()
212 chans[0]->qos->tx = NULL; in cmd_cig_create()
213 chans[0]->qos->rx = &iso_rx_qos; in cmd_cig_create()
215 chans[0]->qos->tx = &iso_tx_qos; in cmd_cig_create()
216 chans[0]->qos->rx = &iso_rx_qos; in cmd_cig_create()
342 if (chans[0]->qos->tx) { in cmd_cig_create()
343 chans[0]->qos->tx->sdu = sdu; in cmd_cig_create()
346 if (chans[0]->qos->rx) { in cmd_cig_create()
[all …]
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dbap_unicast_sr.c114 static void print_qos(const struct bt_bap_qos_cfg *qos) in print_qos() argument
118 qos->interval, qos->framing, qos->phy, qos->sdu, in print_qos()
119 qos->rtn, qos->latency, qos->pd); in print_qos()
242 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() argument
245 printk("QoS: stream %p qos %p\n", stream, qos); in lc3_qos()
247 print_qos(qos); in lc3_qos()
333 .qos = lc3_qos,
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_broadcast_source.c298 struct bt_bap_qos_cfg *qos, in broadcast_source_setup_stream() argument
319 bt_bap_qos_cfg_to_iso_qos(iso->chan.qos->tx, qos); in broadcast_source_setup_stream()
322 iso->chan.qos->num_subevents = qos->num_subevents; in broadcast_source_setup_stream()
328 stream->qos = qos; in broadcast_source_setup_stream()
437 net_buf_simple_add_le24(buf, source->qos->pd); in encode_base()
466 stream->qos = NULL; in broadcast_source_cleanup()
480 const struct bt_bap_qos_cfg *qos; in valid_broadcast_source_param() local
498 qos = param->qos; in valid_broadcast_source_param()
499 CHECKIF(qos == NULL) { in valid_broadcast_source_param()
504 CHECKIF(bt_audio_verify_qos(qos) != BT_BAP_ASCS_REASON_NONE) { in valid_broadcast_source_param()
[all …]
Dbap_iso.c143 iso->chan.qos = &iso->qos; in bt_bap_iso_init()
149 iso->chan.qos->rx = &iso->rx.qos; in bt_bap_iso_init()
150 iso->chan.qos->tx = &iso->tx.qos; in bt_bap_iso_init()
176 struct bt_iso_chan_qos *qos = bap_iso->chan.qos; in bt_bap_iso_configure_data_path() local
184 qos->rx->path = path; in bt_bap_iso_configure_data_path()
186 qos->tx->path = path; in bt_bap_iso_configure_data_path()
Dbap_stream.c169 enum bt_bap_ascs_reason bt_audio_verify_qos(const struct bt_bap_qos_cfg *qos) in bt_audio_verify_qos() argument
171 if (qos->interval < BT_ISO_SDU_INTERVAL_MIN || in bt_audio_verify_qos()
172 qos->interval > BT_ISO_SDU_INTERVAL_MAX) { in bt_audio_verify_qos()
173 LOG_DBG("Interval not within allowed range: %u (%u-%u)", qos->interval, in bt_audio_verify_qos()
178 if (qos->framing > BT_BAP_QOS_CFG_FRAMING_FRAMED) { in bt_audio_verify_qos()
179 LOG_DBG("Invalid Framing 0x%02x", qos->framing); in bt_audio_verify_qos()
183 if (qos->phy != BT_BAP_QOS_CFG_1M && qos->phy != BT_BAP_QOS_CFG_2M && in bt_audio_verify_qos()
184 qos->phy != BT_BAP_QOS_CFG_CODED) { in bt_audio_verify_qos()
185 LOG_DBG("Invalid PHY 0x%02x", qos->phy); in bt_audio_verify_qos()
189 if (qos->sdu > BT_ISO_MAX_SDU) { in bt_audio_verify_qos()
[all …]
Dbap_unicast_client.c687 if (listener->qos != NULL) { in unicast_client_notify_ep_qos()
688 listener->qos(stream, rsp_code, reason); in unicast_client_notify_ep_qos()
828 const struct bt_ascs_ase_status_qos *qos) in unicast_client_ep_qos_update() argument
838 iso_io_qos = &ep->iso->rx.qos; in unicast_client_ep_qos_update()
843 iso_io_qos = &ep->iso->tx.qos; in unicast_client_ep_qos_update()
849 iso_io_qos->phy = qos->phy; in unicast_client_ep_qos_update()
850 iso_io_qos->sdu = sys_le16_to_cpu(qos->sdu); in unicast_client_ep_qos_update()
851 iso_io_qos->rtn = qos->rtn; in unicast_client_ep_qos_update()
946 struct bt_ascs_ase_status_qos *qos; in unicast_client_ep_qos_state() local
951 if (buf->len < sizeof(*qos)) { in unicast_client_ep_qos_state()
[all …]
Dbap_stream.h32 enum bt_bap_ascs_reason bt_audio_verify_qos(const struct bt_bap_qos_cfg *qos);
38 const struct bt_bap_qos_cfg *qos);
Dascs.c744 struct bt_ascs_ase_status_qos *qos; in ascs_ep_get_status_qos() local
746 qos = net_buf_simple_add(buf, sizeof(*qos)); in ascs_ep_get_status_qos()
747 qos->cig_id = ep->cig_id; in ascs_ep_get_status_qos()
748 qos->cis_id = ep->cis_id; in ascs_ep_get_status_qos()
749 sys_put_le24(ep->stream->qos->interval, qos->interval); in ascs_ep_get_status_qos()
750 qos->framing = ep->stream->qos->framing; in ascs_ep_get_status_qos()
751 qos->phy = ep->stream->qos->phy; in ascs_ep_get_status_qos()
752 qos->sdu = sys_cpu_to_le16(ep->stream->qos->sdu); in ascs_ep_get_status_qos()
753 qos->rtn = ep->stream->qos->rtn; in ascs_ep_get_status_qos()
754 qos->latency = sys_cpu_to_le16(ep->stream->qos->latency); in ascs_ep_get_status_qos()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cap.c193 struct bt_bap_qos_cfg *qos) in cap_unicast_setup_ase() argument
225 memcpy(&group->qos[cis_id], qos, sizeof(*qos)); in cap_unicast_setup_ase()
235 struct bt_bap_qos_cfg qos; in btp_cap_unicast_setup_ase() local
249 memset(&qos, 0, sizeof(qos)); in btp_cap_unicast_setup_ase()
250 qos.phy = BT_BAP_QOS_CFG_2M; in btp_cap_unicast_setup_ase()
251 qos.framing = cp->framing; in btp_cap_unicast_setup_ase()
252 qos.rtn = cp->retransmission_num; in btp_cap_unicast_setup_ase()
253 qos.sdu = sys_le16_to_cpu(cp->max_sdu); in btp_cap_unicast_setup_ase()
254 qos.latency = sys_le16_to_cpu(cp->max_transport_latency); in btp_cap_unicast_setup_ase()
255 qos.interval = sys_get_le24(cp->sdu_interval); in btp_cap_unicast_setup_ase()
[all …]
/Zephyr-latest/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c132 fixture->param->qos = qos_cfg; in bap_broadcast_source_test_suite_fixture_init()
183 free(param->qos); in bap_broadcast_source_test_suite_after()
214 zassert_equal(create_param->qos->sdu, stream->qos->sdu, in ZTEST_F()
216 zassert_equal(create_param->qos->rtn, stream->qos->rtn, in ZTEST_F()
218 zassert_equal(create_param->qos->phy, stream->qos->phy, in ZTEST_F()
347 struct bt_bap_qos_cfg *qos = create_param->qos; in ZTEST_F() local
350 create_param->qos = NULL; in ZTEST_F()
353 create_param->qos = qos; in ZTEST_F()
592 zassert_equal(reconf_param->qos->sdu, stream->qos->sdu, in ZTEST_F()
594 zassert_equal(reconf_param->qos->rtn, stream->qos->rtn, in ZTEST_F()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_msg.h27 enum mqtt_sn_qos qos; member
91 enum mqtt_sn_qos qos; member
115 enum mqtt_sn_qos qos; member
142 enum mqtt_sn_qos qos; member
152 enum mqtt_sn_qos qos; member
180 enum mqtt_sn_qos qos; member
Dmqtt_sn_encoder.c66 flags->clean_session, flags->qos, flags->topic_type); in encode_flags()
73 b |= ((flags->qos << MQTT_SN_FLAGS_SHIFT_QOS) & MQTT_SN_FLAGS_MASK_QOS); in encode_flags()
140 struct mqtt_sn_flags flags = {.qos = params->qos, .retain = params->retain}; in mqtt_sn_encode_msg_willtopic()
214 .qos = params->qos, in mqtt_sn_encode_msg_publish()
226 if (params->qos == MQTT_SN_QOS_1 || params->qos == MQTT_SN_QOS_2) { in mqtt_sn_encode_msg_publish()
310 .dup = params->dup, .qos = params->qos, .topic_type = params->topic_type}; in mqtt_sn_encode_msg_subscribe()
412 struct mqtt_sn_flags flags = {.qos = params->qos, .retain = params->retain}; in mqtt_sn_encode_msg_willtopicupd()
/Zephyr-latest/subsys/bluetooth/host/
Diso.c267 tx_qos = chan->qos->tx; in bt_iso_setup_data_path()
268 rx_qos = chan->qos->rx; in bt_iso_setup_data_path()
790 if (chan->qos->tx == NULL) { in iso_chan_max_data_len()
794 max_data_len = chan->qos->tx->sdu; in iso_chan_max_data_len()
1114 rx = chan->qos->rx; in store_cis_info()
1115 tx = chan->qos->tx; in store_cis_info()
1237 rx = chan->qos->rx; in store_cis_info_v2()
1238 tx = chan->qos->tx; in store_cis_info_v2()
1645 tx_qos = chan->qos->tx; in bt_iso_remove_data_path()
1668 static bool valid_chan_qos(const struct bt_iso_chan_qos *qos, bool advanced) in valid_chan_qos() argument
[all …]
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/src/
Dmain.c535 static int parse_rtn_arg(struct bt_iso_chan_io_qos *qos) in parse_rtn_arg() argument
542 qos->rtn, DEFAULT_CIS_RTN); in parse_rtn_arg()
612 static int parse_phy_arg(struct bt_iso_chan_io_qos *qos) in parse_phy_arg() argument
619 qos->phy, DEFAULT_CIS_PHY, BT_GAP_LE_PHY_1M, in parse_phy_arg()
638 static int parse_sdu_arg(struct bt_iso_chan_io_qos *qos) in parse_sdu_arg() argument
645 qos->sdu, DEFAULT_CIS_SDU_SIZE); in parse_sdu_arg()
737 static int parse_nse_arg(struct bt_iso_chan_qos *qos) in parse_nse_arg() argument
744 qos->num_subevents, DEFAULT_CIS_NSE); in parse_nse_arg()
761 static int parse_pdu_arg(const struct bt_iso_chan_io_qos *qos) in parse_pdu_arg() argument
768 qos->max_pdu, DEFAULT_CIS_PDU_SIZE); in parse_pdu_arg()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Daudio.h93 struct bt_bap_qos_cfg qos; member
177 struct bt_bap_qos_cfg qos; member
236 static inline void print_qos(const struct shell *sh, const struct bt_bap_qos_cfg *qos) in print_qos() argument
241 qos->interval, qos->framing, qos->phy, qos->sdu, qos->rtn, qos->latency, in print_qos()
242 qos->pd); in print_qos()
245 qos->interval, qos->framing, qos->phy, qos->sdu, qos->rtn, qos->pd); in print_qos()
945 memcpy(&stream->qos, &named_preset->preset.qos, sizeof(stream->qos)); in copy_unicast_stream_preset()
952 memcpy(&source->qos, &named_preset->preset.qos, sizeof(source->qos)); in copy_broadcast_source_preset()
/Zephyr-latest/samples/bluetooth/tmap_bms/src/
Dcap_initiator.c84 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()
103 k_work_schedule(&audio_send_work, K_USEC(broadcast_preset_48_2_1.qos.interval)); in broadcast_sent_cb()
108 net_buf_add_mem(buf, mock_data, broadcast_preset_48_2_1.qos.sdu); in broadcast_sent_cb()
114 k_work_schedule(&audio_send_work, K_USEC(broadcast_preset_48_2_1.qos.interval)); in broadcast_sent_cb()
295 create_param.qos = &broadcast_preset_48_2_1.qos; in cap_initiator_setup()
/Zephyr-latest/samples/bluetooth/bap_unicast_server/src/
Dmain.c187 static void print_qos(const struct bt_bap_qos_cfg *qos) in print_qos() argument
191 qos->interval, qos->framing, qos->phy, qos->sdu, in print_qos()
192 qos->rtn, qos->latency, qos->pd); in print_qos()
356 static int lc3_qos(struct bt_bap_stream *stream, const struct bt_bap_qos_cfg *qos, in lc3_qos() argument
359 printk("QoS: stream %p qos %p\n", stream, qos); in lc3_qos()
361 print_qos(qos); in lc3_qos()
365 source_streams[i].max_sdu = qos->sdu; in lc3_qos()
496 .qos = lc3_qos,
/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_source/src/
Dmain.c99 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()
119 k_work_schedule(&audio_send_work, K_USEC(broadcast_preset_48_2_1.qos.interval)); in broadcast_sent_cb()
124 net_buf_add_mem(buf, mock_data, broadcast_preset_48_2_1.qos.sdu); in broadcast_sent_cb()
131 k_work_schedule(&audio_send_work, K_USEC(broadcast_preset_48_2_1.qos.interval)); in broadcast_sent_cb()
354 create_param.qos = &broadcast_preset_48_2_1.qos; in cap_initiator_setup()
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/
Dtest_common.c63 bap_stream->qos = &preset->qos; in test_unicast_set_state()

1234