Lines Matching refs:param
142 const struct bt_cap_initiator_broadcast_create_param *param) in cap_initiator_broadcast_audio_start_valid_param() argument
145 for (size_t i = 0U; i < param->subgroup_count; i++) { in cap_initiator_broadcast_audio_start_valid_param()
150 subgroup_param = ¶m->subgroup_params[i]; in cap_initiator_broadcast_audio_start_valid_param()
223 const struct bt_cap_initiator_broadcast_create_param *param, in bt_cap_initiator_broadcast_audio_create() argument
232 CHECKIF(param == NULL) { in bt_cap_initiator_broadcast_audio_create()
242 if (!cap_initiator_broadcast_audio_start_valid_param(param)) { in bt_cap_initiator_broadcast_audio_create()
253 cap_initiator_broadcast_to_bap_broadcast_param(param, &bap_create_param, in bt_cap_initiator_broadcast_audio_create()
756 static bool valid_unicast_audio_start_param(const struct bt_cap_unicast_audio_start_param *param) in valid_unicast_audio_start_param() argument
760 CHECKIF(param == NULL) { in valid_unicast_audio_start_param()
765 CHECKIF(param->count == 0) { in valid_unicast_audio_start_param()
766 LOG_DBG("Invalid param->count: %u", param->count); in valid_unicast_audio_start_param()
770 CHECKIF(param->stream_params == NULL) { in valid_unicast_audio_start_param()
775 CHECKIF(param->count > CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT) { in valid_unicast_audio_start_param()
778 param->count, in valid_unicast_audio_start_param()
783 for (size_t i = 0U; i < param->count; i++) { in valid_unicast_audio_start_param()
785 ¶m->stream_params[i]; in valid_unicast_audio_start_param()
791 bt_cap_common_get_member_conn(param->type, member); in valid_unicast_audio_start_param()
847 if (param->stream_params[j].stream == cap_stream) { in valid_unicast_audio_start_param()
851 j, param->stream_params[j].stream, in valid_unicast_audio_start_param()
937 const struct bt_cap_unicast_audio_start_param *param) in cap_initiator_unicast_audio_configure() argument
951 for (size_t i = 0U; i < param->count; i++) { in cap_initiator_unicast_audio_configure()
953 ¶m->stream_params[i]; in cap_initiator_unicast_audio_configure()
957 conn = bt_cap_common_get_member_conn(param->type, member); in cap_initiator_unicast_audio_configure()
974 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_START, param->count); in cap_initiator_unicast_audio_configure()
1008 int bt_cap_initiator_unicast_audio_start(const struct bt_cap_unicast_audio_start_param *param) in bt_cap_initiator_unicast_audio_start() argument
1018 if (!valid_unicast_audio_start_param(param)) { in bt_cap_initiator_unicast_audio_start()
1022 for (size_t i = 0U; i < param->count; i++) { in bt_cap_initiator_unicast_audio_start()
1024 ¶m->stream_params[i].stream->bap_stream; in bt_cap_initiator_unicast_audio_start()
1036 return cap_initiator_unicast_audio_configure(param); in bt_cap_initiator_unicast_audio_start()
1543 static bool valid_unicast_audio_update_param(const struct bt_cap_unicast_audio_update_param *param) in valid_unicast_audio_update_param() argument
1547 CHECKIF(param == NULL) { in valid_unicast_audio_update_param()
1552 CHECKIF(param->count == 0) { in valid_unicast_audio_update_param()
1553 LOG_DBG("Invalid param->count: %u", param->count); in valid_unicast_audio_update_param()
1557 CHECKIF(param->stream_params == NULL) { in valid_unicast_audio_update_param()
1562 CHECKIF(param->count > CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT) { in valid_unicast_audio_update_param()
1565 param->count, CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT); in valid_unicast_audio_update_param()
1569 for (size_t i = 0U; i < param->count; i++) { in valid_unicast_audio_update_param()
1571 ¶m->stream_params[i]; in valid_unicast_audio_update_param()
1620 if (param->stream_params[j].stream == cap_stream) { in valid_unicast_audio_update_param()
1624 j, param->stream_params[j].stream, i, cap_stream); in valid_unicast_audio_update_param()
1633 int bt_cap_initiator_unicast_audio_update(const struct bt_cap_unicast_audio_update_param *param) in bt_cap_initiator_unicast_audio_update() argument
1648 if (!valid_unicast_audio_update_param(param)) { in bt_cap_initiator_unicast_audio_update()
1652 for (size_t i = 0U; i < param->count; i++) { in bt_cap_initiator_unicast_audio_update()
1654 ¶m->stream_params[i]; in bt_cap_initiator_unicast_audio_update()
1666 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_UPDATE, param->count); in bt_cap_initiator_unicast_audio_update()
1811 static bool valid_unicast_audio_stop_param(const struct bt_cap_unicast_audio_stop_param *param) in valid_unicast_audio_stop_param() argument
1815 CHECKIF(param == NULL) { in valid_unicast_audio_stop_param()
1820 CHECKIF(param->count == 0) { in valid_unicast_audio_stop_param()
1821 LOG_DBG("Invalid param->count: %u", param->count); in valid_unicast_audio_stop_param()
1825 CHECKIF(param->streams == NULL) { in valid_unicast_audio_stop_param()
1830 CHECKIF(param->count > CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT) { in valid_unicast_audio_stop_param()
1833 param->count, CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT); in valid_unicast_audio_stop_param()
1837 for (size_t i = 0U; i < param->count; i++) { in valid_unicast_audio_stop_param()
1838 const struct bt_cap_stream *cap_stream = param->streams[i]; in valid_unicast_audio_stop_param()
1855 if (param->type == BT_CAP_SET_TYPE_CSIP) { in valid_unicast_audio_stop_param()
1884 if (param->streams[j] == cap_stream) { in valid_unicast_audio_stop_param()
1888 j, param->streams[j], i, cap_stream); in valid_unicast_audio_stop_param()
1897 int bt_cap_initiator_unicast_audio_stop(const struct bt_cap_unicast_audio_stop_param *param) in bt_cap_initiator_unicast_audio_stop() argument
1911 if (!valid_unicast_audio_stop_param(param)) { in bt_cap_initiator_unicast_audio_stop()
1915 for (size_t i = 0U; i < param->count; i++) { in bt_cap_initiator_unicast_audio_stop()
1916 struct bt_cap_stream *cap_stream = param->streams[i]; in bt_cap_initiator_unicast_audio_stop()
1923 active_proc->proc_param.initiator[i].stop.release = param->release; in bt_cap_initiator_unicast_audio_stop()
1933 if (!can_release && param->release && can_release_stream(bap_stream)) { in bt_cap_initiator_unicast_audio_stop()
1945 bt_cap_common_start_proc(BT_CAP_COMMON_PROC_TYPE_STOP, param->count); in bt_cap_initiator_unicast_audio_stop()
2238 const struct bt_cap_unicast_to_broadcast_param *param, in bt_cap_initiator_unicast_to_broadcast() argument
2244 int bt_cap_initiator_broadcast_to_unicast(const struct bt_cap_broadcast_to_unicast_param *param, in bt_cap_initiator_broadcast_to_unicast() argument