Lines Matching refs:proc_param
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()
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()
521 struct bt_cap_initiator_proc_param *proc_param; in update_proc_done_cnt() local
526 proc_param = &active_proc->proc_param.initiator[i]; in update_proc_done_cnt()
527 cap_stream = proc_param->stream; in update_proc_done_cnt()
558 } else if (proc_param->start.connected) { in update_proc_done_cnt()
582 struct bt_cap_initiator_proc_param *proc_param; in update_proc_done_cnt() local
587 proc_param = &active_proc->proc_param.initiator[i]; in update_proc_done_cnt()
588 cap_stream = proc_param->stream; in update_proc_done_cnt()
620 struct bt_cap_initiator_proc_param *proc_param; in update_proc_done_cnt() local
625 proc_param = &active_proc->proc_param.initiator[active_proc->proc_done_cnt]; in update_proc_done_cnt()
626 cap_stream = proc_param->stream; in update_proc_done_cnt()
663 struct bt_cap_initiator_proc_param *proc_param; in get_next_proc_param() local
668 proc_param = &active_proc->proc_param.initiator[i]; in get_next_proc_param()
670 if (proc_param->in_progress) { in get_next_proc_param()
674 cap_stream = proc_param->stream; in get_next_proc_param()
681 return proc_param; in get_next_proc_param()
686 return proc_param; in get_next_proc_param()
691 return proc_param; in get_next_proc_param()
695 if (state == BT_BAP_EP_STATE_ENABLING && !proc_param->start.connected) { in get_next_proc_param()
696 return proc_param; in get_next_proc_param()
702 return proc_param; in get_next_proc_param()
708 return proc_param; in get_next_proc_param()
714 return proc_param; in get_next_proc_param()
719 return proc_param; in get_next_proc_param()
723 if (proc_param->stop.release && state != BT_BAP_EP_STATE_IDLE && in get_next_proc_param()
725 return proc_param; in get_next_proc_param()
940 struct bt_cap_initiator_proc_param *proc_param; 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()
978 if (proc_param == NULL) { 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()
986 bap_stream = &proc_param->stream->bap_stream; in cap_initiator_unicast_audio_configure()
987 codec_cfg = proc_param->start.codec_cfg; in cap_initiator_unicast_audio_configure()
988 conn = proc_param->start.conn; in cap_initiator_unicast_audio_configure()
989 ep = proc_param->start.ep; in cap_initiator_unicast_audio_configure()
991 proc_param->in_progress = true; in cap_initiator_unicast_audio_configure()
1000 LOG_DBG("Failed to config stream %p: %d", proc_param->stream, err); in cap_initiator_unicast_audio_configure()
1044 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_codec_configured() local
1086 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_codec_configured()
1087 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_codec_configured()
1088 next_cap_stream = proc_param->stream; in bt_cap_initiator_codec_configured()
1089 conn = proc_param->start.conn; in bt_cap_initiator_codec_configured()
1090 ep = proc_param->start.ep; in bt_cap_initiator_codec_configured()
1091 codec_cfg = proc_param->start.codec_cfg; in bt_cap_initiator_codec_configured()
1094 proc_param->in_progress = true; 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()
1144 if (proc_param == NULL) { 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()
1152 unicast_group = (struct bt_bap_unicast_group *)proc_param->stream->bap_stream.group; in bt_cap_initiator_codec_configured()
1163 proc_param = &active_proc->proc_param.initiator[j]; in bt_cap_initiator_codec_configured()
1164 if (proc_param->stream->bap_stream.conn == conns[i]) { in bt_cap_initiator_codec_configured()
1166 proc_param->in_progress = false; in bt_cap_initiator_codec_configured()
1171 proc_param->in_progress = true; in bt_cap_initiator_codec_configured()
1224 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_qos_configured() local
1235 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_qos_configured()
1236 if (proc_param == NULL) { in bt_cap_initiator_qos_configured()
1240 bt_cap_initiator_enabled(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_qos_configured()
1245 next_cap_stream = proc_param->stream; in bt_cap_initiator_qos_configured()
1248 proc_param->in_progress = true; in bt_cap_initiator_qos_configured()
1259 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_qos_configured() local
1264 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_qos_configured()
1265 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_qos_configured()
1267 next_cap_stream = proc_param->stream; in bt_cap_initiator_qos_configured()
1270 proc_param->in_progress = true; in bt_cap_initiator_qos_configured()
1285 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_enabled() local
1318 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_enabled()
1319 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_enabled()
1320 next_cap_stream = proc_param->stream; in bt_cap_initiator_enabled()
1324 proc_param->in_progress = true; in bt_cap_initiator_enabled()
1339 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_enabled()
1340 if (proc_param == NULL) { in bt_cap_initiator_enabled()
1343 bt_cap_initiator_connected(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_enabled()
1348 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_enabled()
1349 proc_param->in_progress = true; in bt_cap_initiator_enabled()
1357 proc_param->in_progress = false; in bt_cap_initiator_enabled()
1358 bt_cap_initiator_connected(proc_param->stream); in bt_cap_initiator_enabled()
1360 LOG_DBG("Failed to connect stream %p: %d", proc_param->stream, err); in bt_cap_initiator_enabled()
1374 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_connected() local
1391 proc_param = get_proc_param_by_cap_stream(active_proc, cap_stream); in bt_cap_initiator_connected()
1392 __ASSERT_NO_MSG(proc_param != NULL); in bt_cap_initiator_connected()
1397 proc_param->start.connected = true; in bt_cap_initiator_connected()
1416 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_connected()
1417 if (proc_param != NULL) { in bt_cap_initiator_connected()
1418 next_cap_stream = proc_param->stream; in bt_cap_initiator_connected()
1422 proc_param->in_progress = true; in bt_cap_initiator_connected()
1427 proc_param->in_progress = false; in bt_cap_initiator_connected()
1446 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_connected()
1447 if (proc_param == NULL) { in bt_cap_initiator_connected()
1450 bt_cap_initiator_started(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_connected()
1455 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_connected()
1457 proc_param->in_progress = true; in bt_cap_initiator_connected()
1461 LOG_DBG("Failed to start stream %p: %d", proc_param->stream, err); in bt_cap_initiator_connected()
1499 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_started() local
1503 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_started()
1504 if (proc_param != NULL) { in bt_cap_initiator_started()
1505 next_cap_stream = proc_param->stream; in bt_cap_initiator_started()
1511 proc_param->in_progress = true; in bt_cap_initiator_started()
1636 struct bt_cap_initiator_proc_param *proc_param; 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()
1670 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_unicast_audio_update()
1672 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_unicast_audio_update()
1673 meta_len = proc_param->meta_update.meta_len; in bt_cap_initiator_unicast_audio_update()
1674 meta = proc_param->meta_update.meta; in bt_cap_initiator_unicast_audio_update()
1676 proc_param->in_progress = true; in bt_cap_initiator_unicast_audio_update()
1680 LOG_DBG("Failed to update metadata for stream %p: %d", proc_param->stream, err); in bt_cap_initiator_unicast_audio_update()
1731 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_metadata_updated() local
1738 proc_param = &active_proc->proc_param.initiator[proc_done_cnt]; in bt_cap_initiator_metadata_updated()
1739 meta_len = proc_param->meta_update.meta_len; in bt_cap_initiator_metadata_updated()
1740 meta = proc_param->meta_update.meta; in bt_cap_initiator_metadata_updated()
1741 next_cap_stream = proc_param->stream; in bt_cap_initiator_metadata_updated()
1744 proc_param->in_progress = true; in bt_cap_initiator_metadata_updated()
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()
1952 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_unicast_audio_stop() local
1957 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1958 __ASSERT(proc_param != NULL, in bt_cap_initiator_unicast_audio_stop()
1960 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_unicast_audio_stop()
1962 proc_param->in_progress = true; in bt_cap_initiator_unicast_audio_stop()
1966 LOG_DBG("Failed to disable bap_stream %p: %d", proc_param->stream, err); in bt_cap_initiator_unicast_audio_stop()
1971 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_unicast_audio_stop() local
1976 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1977 __ASSERT(proc_param != NULL, in bt_cap_initiator_unicast_audio_stop()
1979 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_unicast_audio_stop()
1981 proc_param->in_progress = true; in bt_cap_initiator_unicast_audio_stop()
1985 LOG_DBG("Failed to stop bap_stream %p: %d", proc_param->stream, err); in bt_cap_initiator_unicast_audio_stop()
1990 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_unicast_audio_stop() local
1995 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_unicast_audio_stop()
1996 __ASSERT(proc_param != NULL, in bt_cap_initiator_unicast_audio_stop()
1998 bap_stream = &proc_param->stream->bap_stream; in bt_cap_initiator_unicast_audio_stop()
2000 proc_param->in_progress = true; in bt_cap_initiator_unicast_audio_stop()
2004 LOG_DBG("Failed to release bap_stream %p: %d", proc_param->stream, err); in bt_cap_initiator_unicast_audio_stop()
2041 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_disabled() local
2046 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_disabled()
2047 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_disabled()
2048 next_cap_stream = proc_param->stream; in bt_cap_initiator_disabled()
2051 proc_param->in_progress = true; in bt_cap_initiator_disabled()
2061 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_disabled() local
2068 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_disabled()
2069 if (proc_param == NULL) { in bt_cap_initiator_disabled()
2073 bt_cap_initiator_stopped(active_proc->proc_param.initiator[0].stream); in bt_cap_initiator_disabled()
2078 next_cap_stream = proc_param->stream; in bt_cap_initiator_disabled()
2081 proc_param->in_progress = true; in bt_cap_initiator_disabled()
2090 proc_param->in_progress = false; in bt_cap_initiator_disabled()
2130 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_stopped() local
2135 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_stopped()
2136 if (proc_param != NULL) { in bt_cap_initiator_stopped()
2137 next_cap_stream = proc_param->stream; in bt_cap_initiator_stopped()
2141 proc_param->in_progress = true; in bt_cap_initiator_stopped()
2150 proc_param->in_progress = false; in bt_cap_initiator_stopped()
2160 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_stopped() local
2169 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_stopped()
2170 if (proc_param == NULL) { in bt_cap_initiator_stopped()
2209 struct bt_cap_initiator_proc_param *proc_param; in bt_cap_initiator_released() local
2214 proc_param = get_next_proc_param(active_proc); in bt_cap_initiator_released()
2215 __ASSERT(proc_param != NULL, "proc is not done, but could not get next proc_param"); in bt_cap_initiator_released()
2216 next_cap_stream = proc_param->stream; in bt_cap_initiator_released()
2219 proc_param->in_progress = true; in bt_cap_initiator_released()