Lines Matching refs:param
2328 struct bt_iso_cig_param param = {0}; in bt_audio_cig_create() local
2333 param.num_cis = unicast_group_get_cis_count(group); in bt_audio_cig_create()
2334 param.cis_channels = group->cis; in bt_audio_cig_create()
2335 bt_bap_qos_cfg_to_cig_param(¶m, group); in bt_audio_cig_create()
2337 err = bt_iso_cig_create(¶m, &group->cig); in bt_audio_cig_create()
2348 struct bt_iso_cig_param param; in bt_audio_cig_reconfigure() local
2364 param.num_cis = cis_count; in bt_audio_cig_reconfigure()
2365 param.cis_channels = group->cis; in bt_audio_cig_reconfigure()
2366 bt_bap_qos_cfg_to_cig_param(¶m, group); in bt_audio_cig_reconfigure()
2368 err = bt_iso_cig_reconfigure(group->cig, ¶m); in bt_audio_cig_reconfigure()
2518 struct bt_bap_unicast_group_stream_param *param, in unicast_group_add_stream() argument
2521 struct bt_bap_stream *stream = param->stream; in unicast_group_add_stream()
2522 struct bt_bap_qos_cfg *qos = param->qos; in unicast_group_add_stream()
2543 struct bt_bap_unicast_group_stream_pair_param *param) in unicast_group_add_stream_pair() argument
2549 __ASSERT_NO_MSG(param != NULL); in unicast_group_add_stream_pair()
2550 __ASSERT_NO_MSG(param->rx_param != NULL || param->tx_param != NULL); in unicast_group_add_stream_pair()
2563 if (param->rx_param != NULL) { in unicast_group_add_stream_pair()
2564 unicast_group_add_stream(group, param->rx_param, iso, BT_AUDIO_DIR_SOURCE); in unicast_group_add_stream_pair()
2567 if (param->tx_param != NULL) { in unicast_group_add_stream_pair()
2568 unicast_group_add_stream(group, param->tx_param, iso, BT_AUDIO_DIR_SINK); in unicast_group_add_stream_pair()
2600 struct bt_bap_unicast_group_stream_pair_param *param) in unicast_group_del_stream_pair() argument
2603 __ASSERT_NO_MSG(param != NULL); in unicast_group_del_stream_pair()
2604 __ASSERT_NO_MSG(param->rx_param != NULL || param->tx_param != NULL); in unicast_group_del_stream_pair()
2606 if (param->rx_param != NULL) { in unicast_group_del_stream_pair()
2607 __ASSERT_NO_MSG(param->rx_param->stream); in unicast_group_del_stream_pair()
2608 unicast_group_del_stream(group, param->rx_param->stream, BT_AUDIO_DIR_SOURCE); in unicast_group_del_stream_pair()
2611 if (param->tx_param != NULL) { in unicast_group_del_stream_pair()
2612 __ASSERT_NO_MSG(param->tx_param->stream); in unicast_group_del_stream_pair()
2613 unicast_group_del_stream(group, param->tx_param->stream, BT_AUDIO_DIR_SINK); in unicast_group_del_stream_pair()
2670 static int stream_param_check(const struct bt_bap_unicast_group_stream_param *param) in stream_param_check() argument
2672 CHECKIF(param->stream == NULL) in stream_param_check()
2678 CHECKIF(param->qos == NULL) in stream_param_check()
2684 if (param->stream != NULL && param->stream->group != NULL) { in stream_param_check()
2685 LOG_DBG("stream %p already part of group %p", param->stream, param->stream->group); in stream_param_check()
2689 CHECKIF(bt_audio_verify_qos(param->qos) != BT_BAP_ASCS_REASON_NONE) in stream_param_check()
2698 static int stream_pair_param_check(const struct bt_bap_unicast_group_stream_pair_param *param) in stream_pair_param_check() argument
2702 CHECKIF(param->rx_param == NULL && param->tx_param == NULL) in stream_pair_param_check()
2708 if (param->rx_param != NULL) { in stream_pair_param_check()
2709 err = stream_param_check(param->rx_param); in stream_pair_param_check()
2715 if (param->tx_param != NULL) { in stream_pair_param_check()
2716 err = stream_param_check(param->tx_param); in stream_pair_param_check()
2727 const struct bt_bap_unicast_group_stream_param *param, in valid_unicast_group_stream_param() argument
2733 CHECKIF(param->stream == NULL) { in valid_unicast_group_stream_param()
2738 CHECKIF(param->qos == NULL) { in valid_unicast_group_stream_param()
2743 if (param->stream != NULL && param->stream->group != NULL) { in valid_unicast_group_stream_param()
2744 if (unicast_group != NULL && param->stream->group != unicast_group) { in valid_unicast_group_stream_param()
2745 LOG_DBG("stream %p not part of group %p (%p)", param->stream, unicast_group, in valid_unicast_group_stream_param()
2746 param->stream->group); in valid_unicast_group_stream_param()
2748 LOG_DBG("stream %p already part of group %p", param->stream, in valid_unicast_group_stream_param()
2749 param->stream->group); in valid_unicast_group_stream_param()
2754 CHECKIF(bt_audio_verify_qos(param->qos) != BT_BAP_ASCS_REASON_NONE) { in valid_unicast_group_stream_param()
2759 qos = param->qos; in valid_unicast_group_stream_param()
2835 const struct bt_bap_unicast_group_param *param) in valid_unicast_group_param() argument
2837 CHECKIF(param == NULL) { in valid_unicast_group_param()
2842 CHECKIF(param->params_count > UNICAST_GROUP_STREAM_CNT) { in valid_unicast_group_param()
2843 LOG_DBG("Too many streams provided: %u/%u", param->params_count, in valid_unicast_group_param()
2851 if (param->params_count != group_cis_cnt) { in valid_unicast_group_param()
2853 group_cis_cnt, param->params_count); in valid_unicast_group_param()
2859 for (size_t i = 0U; i < param->params_count; i++) { in valid_unicast_group_param()
2860 if (!valid_group_stream_pair_param(unicast_group, ¶m->params[i])) { in valid_unicast_group_param()
2868 int bt_bap_unicast_group_create(struct bt_bap_unicast_group_param *param, in bt_bap_unicast_group_create() argument
2888 if (!valid_unicast_group_param(NULL, param)) { in bt_bap_unicast_group_create()
2894 for (size_t i = 0U; i < param->params_count; i++) { in bt_bap_unicast_group_create()
2897 stream_param = ¶m->params[i]; in bt_bap_unicast_group_create()
2899 unicast_group->cig_param.packing = param->packing; in bt_bap_unicast_group_create()
2901 unicast_group->cig_param.c_to_p_ft = param->c_to_p_ft; in bt_bap_unicast_group_create()
2902 unicast_group->cig_param.p_to_c_ft = param->p_to_c_ft; in bt_bap_unicast_group_create()
2903 unicast_group->cig_param.iso_interval = param->iso_interval; in bt_bap_unicast_group_create()
2929 const struct bt_bap_unicast_group_param *param) in bt_bap_unicast_group_reconfig() argument
2951 if (!valid_unicast_group_param(unicast_group, param)) { in bt_bap_unicast_group_reconfig()
2972 for (size_t i = 0U; i < param->params_count; i++) { in bt_bap_unicast_group_reconfig()
2973 struct bt_bap_unicast_group_stream_pair_param *stream_param = ¶m->params[i]; in bt_bap_unicast_group_reconfig()
3368 struct bt_iso_connect_param param; in bt_bap_unicast_client_connect() local
3389 param.acl = stream->conn; in bt_bap_unicast_client_connect()
3390 param.iso_chan = iso_chan; in bt_bap_unicast_client_connect()
3394 const int err = bt_iso_chan_connect(¶m, 1); in bt_bap_unicast_client_connect()