Lines Matching refs:param
363 struct bt_cap_unicast_audio_update_param param = {0}; in cmd_cap_initiator_unicast_update() local
389 stream_params[param.count].stream = stream; in cmd_cap_initiator_unicast_update()
397 stream_params[param.count].meta = uni_stream->codec_cfg.meta; in cmd_cap_initiator_unicast_update()
398 stream_params[param.count].meta_len = uni_stream->codec_cfg.meta_len; in cmd_cap_initiator_unicast_update()
400 param.count++; in cmd_cap_initiator_unicast_update()
431 stream_params[param.count].stream = stream; in cmd_cap_initiator_unicast_update()
439 stream_params[param.count].meta = uni_stream->codec_cfg.meta; in cmd_cap_initiator_unicast_update()
440 stream_params[param.count].meta_len = uni_stream->codec_cfg.meta_len; in cmd_cap_initiator_unicast_update()
442 param.count++; in cmd_cap_initiator_unicast_update()
446 if (param.count == 0) { in cmd_cap_initiator_unicast_update()
452 param.stream_params = stream_params; in cmd_cap_initiator_unicast_update()
453 param.type = BT_CAP_SET_TYPE_AD_HOC; in cmd_cap_initiator_unicast_update()
455 shell_print(sh, "Updating %zu streams", param.count); in cmd_cap_initiator_unicast_update()
457 err = bt_cap_initiator_unicast_audio_update(¶m); in cmd_cap_initiator_unicast_update()
469 struct bt_cap_unicast_audio_stop_param param = {0}; in cmd_cap_initiator_unicast_stop() local
493 streams[param.count] = stream; in cmd_cap_initiator_unicast_stop()
494 param.count++; in cmd_cap_initiator_unicast_stop()
522 streams[param.count] = stream; in cmd_cap_initiator_unicast_stop()
523 param.count++; in cmd_cap_initiator_unicast_stop()
527 if (param.count == 0) { in cmd_cap_initiator_unicast_stop()
533 param.streams = streams; in cmd_cap_initiator_unicast_stop()
534 param.type = BT_CAP_SET_TYPE_AD_HOC; in cmd_cap_initiator_unicast_stop()
535 param.release = true; in cmd_cap_initiator_unicast_stop()
537 err = bt_cap_initiator_unicast_audio_stop(¶m); in cmd_cap_initiator_unicast_stop()
558 static int cap_ac_unicast_start(const struct bap_unicast_ac_param *param, in cap_ac_unicast_start() argument
578 for (size_t i = 0U; i < param->conn_cnt; i++) { in cap_ac_unicast_start()
580 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in cap_ac_unicast_start()
593 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in cap_ac_unicast_start()
634 for (size_t i = 0U; i < param->conn_cnt; i++) { in cap_ac_unicast_start()
635 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in cap_ac_unicast_start()
648 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in cap_ac_unicast_start()
745 int cap_ac_unicast(const struct shell *sh, const struct bap_unicast_ac_param *param) in cap_ac_unicast() argument
761 if (param->conn_cnt > BAP_UNICAST_AC_MAX_CONN) { in cap_ac_unicast()
762 shell_error(sh, "Invalid conn_cnt: %zu", param->conn_cnt); in cap_ac_unicast()
766 for (size_t i = 0; i < param->conn_cnt; i++) { in cap_ac_unicast()
768 if (param->snk_cnt[i] > BAP_UNICAST_AC_MAX_SNK) { in cap_ac_unicast()
769 shell_error(sh, "Invalid conn_snk_cnt[%zu]: %zu", i, param->snk_cnt[i]); in cap_ac_unicast()
773 if (param->src_cnt[i] > BAP_UNICAST_AC_MAX_SRC) { in cap_ac_unicast()
774 shell_error(sh, "Invalid conn_src_cnt[%zu]: %zu", i, param->src_cnt[i]); in cap_ac_unicast()
787 if (conn_avail_cnt < param->conn_cnt) { in cap_ac_unicast()
791 conn_avail_cnt, param->conn_cnt); in cap_ac_unicast()
798 for (size_t i = 0U; i < param->conn_cnt; i++) { in cap_ac_unicast()
799 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in cap_ac_unicast()
805 param->conn_cnt, param->snk_cnt[i], in cap_ac_unicast()
806 param->snk_chan_cnt, i, j); in cap_ac_unicast()
816 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in cap_ac_unicast()
822 param->conn_cnt, param->src_cnt[i], in cap_ac_unicast()
823 param->src_chan_cnt, i, j); in cap_ac_unicast()
838 err = bap_ac_create_unicast_group(param, snk_uni_streams, snk_cnt, src_uni_streams, in cap_ac_unicast()
846 shell_print(sh, "Starting %zu streams for %s", snk_cnt + src_cnt, param->name); in cap_ac_unicast()
847 err = cap_ac_unicast_start(param, connected_conns, snk_uni_streams, snk_cnt, in cap_ac_unicast()
868 const struct bap_unicast_ac_param param = { in cmd_cap_ac_1() local
877 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_1()
884 const struct bap_unicast_ac_param param = { in cmd_cap_ac_2() local
893 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_2()
900 const struct bap_unicast_ac_param param = { in cmd_cap_ac_3() local
909 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_3()
916 const struct bap_unicast_ac_param param = { in cmd_cap_ac_4() local
925 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_4()
932 const struct bap_unicast_ac_param param = { in cmd_cap_ac_5() local
941 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_5()
949 const struct bap_unicast_ac_param param = { in cmd_cap_ac_6_i() local
958 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_6_i()
965 const struct bap_unicast_ac_param param = { in cmd_cap_ac_6_ii() local
974 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_6_ii()
982 const struct bap_unicast_ac_param param = { in cmd_cap_ac_7_i() local
991 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_7_i()
997 const struct bap_unicast_ac_param param = { in cmd_cap_ac_7_ii() local
1006 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_7_ii()
1013 const struct bap_unicast_ac_param param = { in cmd_cap_ac_8_i() local
1022 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_8_i()
1029 const struct bap_unicast_ac_param param = { in cmd_cap_ac_8_ii() local
1038 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_8_ii()
1045 const struct bap_unicast_ac_param param = { in cmd_cap_ac_9_i() local
1054 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_9_i()
1061 const struct bap_unicast_ac_param param = { in cmd_cap_ac_9_ii() local
1070 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_9_ii()
1077 const struct bap_unicast_ac_param param = { in cmd_cap_ac_10() local
1086 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_10()
1093 const struct bap_unicast_ac_param param = { in cmd_cap_ac_11_i() local
1102 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_11_i()
1111 const struct bap_unicast_ac_param param = { in cmd_cap_ac_11_ii() local
1120 return cap_ac_unicast(sh, ¶m); in cmd_cap_ac_11_ii()
1233 const struct bap_broadcast_ac_param *param) in cap_ac_broadcast() argument
1261 default_source.qos.sdu *= param->chan_cnt; in cap_ac_broadcast()
1263 for (size_t i = 0U; i < param->stream_cnt; i++) { in cap_ac_broadcast()
1266 if (param->stream_cnt == 1U) { in cap_ac_broadcast()
1278 subgroup_param.stream_count = param->stream_cnt; in cap_ac_broadcast()
1298 param->name); in cap_ac_broadcast()
1306 const struct bap_broadcast_ac_param param = { in cmd_cap_ac_12() local
1312 return cap_ac_broadcast(sh, argc, argv, ¶m); in cmd_cap_ac_12()
1318 const struct bap_broadcast_ac_param param = { in cmd_cap_ac_13() local
1324 return cap_ac_broadcast(sh, argc, argv, ¶m); in cmd_cap_ac_13()
1330 const struct bap_broadcast_ac_param param = { in cmd_cap_ac_14() local
1336 return cap_ac_broadcast(sh, argc, argv, ¶m); in cmd_cap_ac_14()