Lines Matching refs:active_proc
479 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in set_cap_stream_in_progress() local
481 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in set_cap_stream_in_progress()
482 if (cap_stream == active_proc->proc_param.initiator[i].stream) { in set_cap_stream_in_progress()
483 active_proc->proc_param.initiator[i].in_progress = value; in set_cap_stream_in_progress()
497 get_proc_param_by_cap_stream(struct bt_cap_common_proc *active_proc, in get_proc_param_by_cap_stream() argument
500 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in get_proc_param_by_cap_stream()
501 if (active_proc->proc_param.initiator[i].stream == cap_stream) { in get_proc_param_by_cap_stream()
502 return &active_proc->proc_param.initiator[i]; in get_proc_param_by_cap_stream()
509 static void update_proc_done_cnt(struct bt_cap_common_proc *active_proc) in update_proc_done_cnt() argument
511 const enum bt_cap_common_subproc_type subproc_type = active_proc->subproc_type; in update_proc_done_cnt()
512 const enum bt_cap_common_proc_type proc_type = active_proc->proc_type; in update_proc_done_cnt()
520 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in update_proc_done_cnt()
526 proc_param = &active_proc->proc_param.initiator[i]; in update_proc_done_cnt()
581 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in update_proc_done_cnt()
587 proc_param = &active_proc->proc_param.initiator[i]; in update_proc_done_cnt()
625 proc_param = &active_proc->proc_param.initiator[active_proc->proc_done_cnt]; in update_proc_done_cnt()
635 proc_done_cnt = active_proc->proc_done_cnt + 1U; in update_proc_done_cnt()
646 active_proc->proc_done_cnt = proc_done_cnt; in update_proc_done_cnt()
648 LOG_DBG("proc %d subproc %d: %zu/%zu", proc_type, subproc_type, active_proc->proc_done_cnt, in update_proc_done_cnt()
649 active_proc->proc_cnt); in update_proc_done_cnt()
658 get_next_proc_param(struct bt_cap_common_proc *active_proc) in get_next_proc_param() argument
660 const enum bt_cap_common_subproc_type subproc_type = active_proc->subproc_type; in get_next_proc_param()
662 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in get_next_proc_param()
668 proc_param = &active_proc->proc_param.initiator[i]; in get_next_proc_param()
863 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in cap_initiator_unicast_audio_proc_complete() local
868 failed_conn = active_proc->failed_conn; in cap_initiator_unicast_audio_proc_complete()
869 err = active_proc->err; in cap_initiator_unicast_audio_proc_complete()
870 proc_type = active_proc->proc_type; in cap_initiator_unicast_audio_proc_complete()
912 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_cp_cb() local
918 active_proc->proc_done_cnt++; in bt_cap_initiator_cp_cb()
939 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in cap_initiator_unicast_audio_configure() local
965 active_proc->proc_param.initiator[i].stream = cap_stream; in cap_initiator_unicast_audio_configure()
966 active_proc->proc_param.initiator[i].start.ep = stream_param->ep; in cap_initiator_unicast_audio_configure()
967 active_proc->proc_param.initiator[i].start.conn = conn; in cap_initiator_unicast_audio_configure()
968 active_proc->proc_param.initiator[i].start.codec_cfg = stream_param->codec_cfg; in cap_initiator_unicast_audio_configure()
977 proc_param = get_next_proc_param(active_proc); in cap_initiator_unicast_audio_configure()
981 bt_cap_initiator_codec_configured(active_proc->proc_param.initiator[0].stream); in cap_initiator_unicast_audio_configure()
990 active_proc->proc_initiated_cnt++; in cap_initiator_unicast_audio_configure()
1043 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_codec_configured() local
1064 update_proc_done_cnt(active_proc); in bt_cap_initiator_codec_configured()
1067 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_codec_configured()
1086 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_codec_configured()
1093 active_proc->proc_initiated_cnt++; in bt_cap_initiator_codec_configured()
1112 for (size_t i = 0U; i < active_proc->proc_cnt; i++) { in bt_cap_initiator_codec_configured()
1114 active_proc->proc_param.initiator[i].stream->bap_stream.conn; in bt_cap_initiator_codec_configured()
1143 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_codec_configured()
1147 bt_cap_initiator_qos_configured(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_codec_configured()
1162 for (size_t j = 0U; j < active_proc->proc_cnt; j++) { in bt_cap_initiator_codec_configured()
1163 proc_param = &active_proc->proc_param.initiator[j]; in bt_cap_initiator_codec_configured()
1165 active_proc->proc_initiated_cnt++; in bt_cap_initiator_codec_configured()
1194 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_qos_configured() local
1209 update_proc_done_cnt(active_proc); in bt_cap_initiator_qos_configured()
1212 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_qos_configured()
1235 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_qos_configured()
1240 bt_cap_initiator_enabled(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_qos_configured()
1247 active_proc->proc_initiated_cnt++; in bt_cap_initiator_qos_configured()
1264 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_qos_configured()
1269 active_proc->proc_initiated_cnt++; in bt_cap_initiator_qos_configured()
1284 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_enabled() local
1300 update_proc_done_cnt(active_proc); in bt_cap_initiator_enabled()
1303 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_enabled()
1318 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_enabled()
1323 active_proc->proc_initiated_cnt++; in bt_cap_initiator_enabled()
1339 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_enabled()
1343 bt_cap_initiator_connected(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_enabled()
1373 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_connected() local
1391 proc_param = get_proc_param_by_cap_stream(active_proc, cap_stream); in bt_cap_initiator_connected()
1398 update_proc_done_cnt(active_proc); in bt_cap_initiator_connected()
1401 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_connected()
1416 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_connected()
1421 active_proc->proc_initiated_cnt++; in bt_cap_initiator_connected()
1446 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_connected()
1450 bt_cap_initiator_started(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_connected()
1473 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_started() local
1492 update_proc_done_cnt(active_proc); in bt_cap_initiator_started()
1495 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_started()
1503 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_started()
1635 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_unicast_audio_update() local
1660 active_proc->proc_param.initiator[i].stream = cap_stream; in bt_cap_initiator_unicast_audio_update()
1661 active_proc->proc_param.initiator[i].meta_update.meta_len = stream_param->meta_len; in bt_cap_initiator_unicast_audio_update()
1662 memcpy(&active_proc->proc_param.initiator[i].meta_update.meta, stream_param->meta, in bt_cap_initiator_unicast_audio_update()
1669 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_update()
1675 active_proc->proc_initiated_cnt++; in bt_cap_initiator_unicast_audio_update()
1704 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_metadata_updated() local
1715 update_proc_done_cnt(active_proc); in bt_cap_initiator_metadata_updated()
1718 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_metadata_updated()
1730 const size_t proc_done_cnt = active_proc->proc_done_cnt; in bt_cap_initiator_metadata_updated()
1738 proc_param = &active_proc->proc_param.initiator[proc_done_cnt]; in bt_cap_initiator_metadata_updated()
1743 active_proc->proc_initiated_cnt++; in bt_cap_initiator_metadata_updated()
1899 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_unicast_audio_stop() local
1922 active_proc->proc_param.initiator[i].stream = cap_stream; 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()
1957 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1961 active_proc->proc_initiated_cnt++; in bt_cap_initiator_unicast_audio_stop()
1976 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1980 active_proc->proc_initiated_cnt++; in bt_cap_initiator_unicast_audio_stop()
1995 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1999 active_proc->proc_initiated_cnt++; in bt_cap_initiator_unicast_audio_stop()
2015 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_disabled() local
2026 update_proc_done_cnt(active_proc); in bt_cap_initiator_disabled()
2029 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_disabled()
2046 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_disabled()
2050 active_proc->proc_initiated_cnt++; in bt_cap_initiator_disabled()
2068 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_disabled()
2073 bt_cap_initiator_stopped(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_disabled()
2080 active_proc->proc_initiated_cnt++; in bt_cap_initiator_disabled()
2097 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_stopped() local
2109 update_proc_done_cnt(active_proc); in bt_cap_initiator_stopped()
2112 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_stopped()
2135 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_stopped()
2140 active_proc->proc_initiated_cnt++; in bt_cap_initiator_stopped()
2169 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_stopped()
2183 struct bt_cap_common_proc *active_proc = bt_cap_common_get_active_proc(); in bt_cap_initiator_released() local
2194 update_proc_done_cnt(active_proc); in bt_cap_initiator_released()
2197 active_proc->proc_done_cnt, active_proc->proc_cnt); in bt_cap_initiator_released()
2214 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_released()
2218 active_proc->proc_initiated_cnt++; in bt_cap_initiator_released()