Lines Matching refs:param
603 static int gmap_unicast_ac_create_unicast_group(const struct gmap_unicast_ac_param *param, in gmap_unicast_ac_create_unicast_group() argument
634 for (size_t i = 0U; i < param->conn_cnt; i++) { in gmap_unicast_ac_create_unicast_group()
635 for (size_t j = 0; j < MAX(param->snk_cnt[i], param->src_cnt[i]); j++) { in gmap_unicast_ac_create_unicast_group()
636 if (param->snk_cnt[i] > j) { in gmap_unicast_ac_create_unicast_group()
643 if (param->src_cnt[i] > j) { in gmap_unicast_ac_create_unicast_group()
661 static int gmap_ac_cap_unicast_start(const struct gmap_unicast_ac_param *param, in gmap_ac_cap_unicast_start() argument
682 for (size_t i = 0U; i < param->conn_cnt; i++) { in gmap_ac_cap_unicast_start()
684 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in gmap_ac_cap_unicast_start()
696 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in gmap_ac_cap_unicast_start()
735 for (size_t i = 0U; i < param->conn_cnt; i++) { in gmap_ac_cap_unicast_start()
736 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in gmap_ac_cap_unicast_start()
751 if (param->conn_cnt > 1U || param->snk_cnt[i] > 1U) { in gmap_ac_cap_unicast_start()
762 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in gmap_ac_cap_unicast_start()
777 if (param->conn_cnt > 1U || param->src_cnt[i] > 1U) { in gmap_ac_cap_unicast_start()
805 static int gmap_ac_unicast(const struct gmap_unicast_ac_param *param, in gmap_ac_unicast() argument
815 if (param->conn_cnt > GMAP_UNICAST_AC_MAX_CONN) { in gmap_ac_unicast()
816 FAIL("Invalid conn_cnt: %zu\n", param->conn_cnt); in gmap_ac_unicast()
821 for (size_t i = 0; i < param->conn_cnt; i++) { in gmap_ac_unicast()
823 if (param->snk_cnt[i] > GMAP_UNICAST_AC_MAX_SNK) { in gmap_ac_unicast()
824 FAIL("Invalid conn_snk_cnt[%zu]: %zu\n", i, param->snk_cnt[i]); in gmap_ac_unicast()
829 if (param->src_cnt[i] > GMAP_UNICAST_AC_MAX_SRC) { in gmap_ac_unicast()
830 FAIL("Invalid conn_src_cnt[%zu]: %zu\n", i, param->src_cnt[i]); in gmap_ac_unicast()
837 for (size_t i = 0U; i < param->conn_cnt; i++) { in gmap_ac_unicast()
838 for (size_t j = 0U; j < param->snk_cnt[i]; j++) { in gmap_ac_unicast()
842 for (size_t j = 0U; j < param->src_cnt[i]; j++) { in gmap_ac_unicast()
853 copy_unicast_stream_preset(snk_uni_streams[i], param->snk_named_preset); in gmap_ac_unicast()
858 snk_uni_streams[i]->qos.sdu *= param->snk_chan_cnt; in gmap_ac_unicast()
863 copy_unicast_stream_preset(src_uni_streams[i], param->src_named_preset); in gmap_ac_unicast()
866 err = gmap_unicast_ac_create_unicast_group(param, snk_uni_streams, snk_cnt, src_uni_streams, in gmap_ac_unicast()
876 printk("Starting %zu streams for %s\n", snk_cnt + src_cnt, param->name); in gmap_ac_unicast()
877 err = gmap_ac_cap_unicast_start(param, snk_uni_streams, snk_cnt, src_uni_streams, src_cnt, in gmap_ac_unicast()
892 struct bt_cap_unicast_audio_stop_param param; in unicast_audio_stop() local
897 param.type = BT_CAP_SET_TYPE_AD_HOC; in unicast_audio_stop()
898 param.count = started_unicast_streams_cnt; in unicast_audio_stop()
899 param.streams = started_unicast_streams; in unicast_audio_stop()
900 param.release = true; in unicast_audio_stop()
902 err = bt_cap_initiator_unicast_audio_stop(¶m); in unicast_audio_stop()
925 static void test_gmap_ugg_unicast_ac(const struct gmap_unicast_ac_param *param) in test_gmap_ugg_unicast_ac() argument
929 printk("Running test for %s with Sink Preset %s and Source Preset %s\n", param->name, in test_gmap_ugg_unicast_ac()
930 param->snk_named_preset != NULL ? param->snk_named_preset->name : "None", in test_gmap_ugg_unicast_ac()
931 param->src_named_preset != NULL ? param->src_named_preset->name : "None"); in test_gmap_ugg_unicast_ac()
933 if (param->conn_cnt > GMAP_UNICAST_AC_MAX_CONN) { in test_gmap_ugg_unicast_ac()
934 FAIL("Invalid conn_cnt: %zu\n", param->conn_cnt); in test_gmap_ugg_unicast_ac()
940 for (size_t i = 0U; i < param->conn_cnt; i++) { in test_gmap_ugg_unicast_ac()
947 printk("Connected %zu/%zu\n", i + 1, param->conn_cnt); in test_gmap_ugg_unicast_ac()
950 if (connected_conn_cnt < param->conn_cnt) { in test_gmap_ugg_unicast_ac()
953 connected_conn_cnt, param->conn_cnt); in test_gmap_ugg_unicast_ac()
957 for (size_t i = 0U; i < param->conn_cnt; i++) { in test_gmap_ugg_unicast_ac()
960 if (param->snk_cnt[i] > 0U) { in test_gmap_ugg_unicast_ac()
964 if (param->src_cnt[i] > 0U) { in test_gmap_ugg_unicast_ac()
972 gmap_ac_unicast(param, &unicast_group); in test_gmap_ugg_unicast_ac()
979 for (size_t i = 0U; i < param->conn_cnt; i++) { in test_gmap_ugg_unicast_ac()
991 PASS("GMAP UGG passed for %s with Sink Preset %s and Source Preset %s\n", param->name, in test_gmap_ugg_unicast_ac()
992 param->snk_named_preset != NULL ? param->snk_named_preset->name : "None", in test_gmap_ugg_unicast_ac()
993 param->src_named_preset != NULL ? param->src_named_preset->name : "None"); in test_gmap_ugg_unicast_ac()
1155 static int test_gmap_ugg_broadcast_ac(const struct gmap_broadcast_ac_param *param) in test_gmap_ugg_broadcast_ac() argument
1174 for (size_t i = 0U; i < param->stream_cnt; i++) { in test_gmap_ugg_broadcast_ac()
1177 if (param->stream_cnt == 1U) { in test_gmap_ugg_broadcast_ac()
1191 qos.sdu *= param->chan_cnt; in test_gmap_ugg_broadcast_ac()
1193 subgroup_param.stream_count = param->stream_cnt; in test_gmap_ugg_broadcast_ac()
1209 for (size_t i = 0U; i < param->stream_cnt; i++) { in test_gmap_ugg_broadcast_ac()
1221 for (size_t i = 0U; i < param->stream_cnt; i++) { in test_gmap_ugg_broadcast_ac()
1228 broadcast_audio_stop(broadcast_source, param->stream_cnt); in test_gmap_ugg_broadcast_ac()
1243 const struct gmap_unicast_ac_param param = { in test_gmap_ac_1() local
1253 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_1()
1258 const struct gmap_unicast_ac_param param = { in test_gmap_ac_2() local
1268 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_2()
1273 const struct gmap_unicast_ac_param param = { in test_gmap_ac_3() local
1283 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_3()
1288 const struct gmap_unicast_ac_param param = { in test_gmap_ac_4() local
1298 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_4()
1303 const struct gmap_unicast_ac_param param = { in test_gmap_ac_5() local
1313 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_5()
1318 const struct gmap_unicast_ac_param param = { in test_gmap_ac_6_i() local
1328 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_6_i()
1333 const struct gmap_unicast_ac_param param = { in test_gmap_ac_6_ii() local
1343 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_6_ii()
1348 const struct gmap_unicast_ac_param param = { in test_gmap_ac_7_ii() local
1358 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_7_ii()
1363 const struct gmap_unicast_ac_param param = { in test_gmap_ac_8_i() local
1373 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_8_i()
1378 const struct gmap_unicast_ac_param param = { in test_gmap_ac_8_ii() local
1388 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_8_ii()
1393 const struct gmap_unicast_ac_param param = { in test_gmap_ac_11_i() local
1403 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_11_i()
1408 const struct gmap_unicast_ac_param param = { in test_gmap_ac_11_ii() local
1418 test_gmap_ugg_unicast_ac(¶m); in test_gmap_ac_11_ii()
1423 const struct gmap_broadcast_ac_param param = { in test_gmap_ac_12() local
1430 test_gmap_ugg_broadcast_ac(¶m); in test_gmap_ac_12()
1436 const struct gmap_broadcast_ac_param param = { in test_gmap_ac_13() local
1443 test_gmap_ugg_broadcast_ac(¶m); in test_gmap_ac_13()
1449 const struct gmap_broadcast_ac_param param = { in test_gmap_ac_14() local
1456 test_gmap_ugg_broadcast_ac(¶m); in test_gmap_ac_14()