Lines Matching refs:subgroup

129 	struct bt_bap_broadcast_subgroup *subgroup;  in broadcast_source_set_state()  local
131 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in broadcast_source_set_state()
134 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_set_state()
286 struct bt_bap_broadcast_subgroup *subgroup = &broadcast_source_subgroups[index][i]; in broadcast_source_new_subgroup() local
288 if (sys_slist_is_empty(&subgroup->streams)) { in broadcast_source_new_subgroup()
289 return subgroup; in broadcast_source_new_subgroup()
334 static bool encode_base_subgroup(struct bt_bap_broadcast_subgroup *subgroup, in encode_base_subgroup() argument
344 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in encode_base_subgroup()
348 codec_cfg = subgroup->codec_cfg; in encode_base_subgroup()
421 struct bt_bap_broadcast_subgroup *subgroup; in encode_base() local
431 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in encode_base()
444 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in encode_base()
445 if (!encode_base_subgroup(subgroup, &source->stream_data[streams_encoded], in encode_base()
456 struct bt_bap_broadcast_subgroup *subgroup, *next_subgroup; in broadcast_source_cleanup() local
458 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&source->subgroups, subgroup, next_subgroup, _node) { in broadcast_source_cleanup()
461 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&subgroup->streams, stream, next_stream, _node) { in broadcast_source_cleanup()
469 sys_slist_remove(&subgroup->streams, NULL, &stream->_node); in broadcast_source_cleanup()
471 sys_slist_remove(&source->subgroups, NULL, &subgroup->_node); in broadcast_source_cleanup()
600 struct bt_bap_broadcast_subgroup *subgroup; in broadcast_source_get_state() local
612 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in broadcast_source_get_state()
615 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in broadcast_source_get_state()
727 struct bt_bap_broadcast_subgroup *subgroup; in bt_bap_broadcast_source_create() local
731 subgroup = broadcast_source_new_subgroup(index); in bt_bap_broadcast_source_create()
732 if (subgroup == NULL) { in bt_bap_broadcast_source_create()
738 subgroup->codec_cfg = subgroup_param->codec_cfg; in bt_bap_broadcast_source_create()
739 sys_slist_append(&source->subgroups, &subgroup->_node); in bt_bap_broadcast_source_create()
795 sys_slist_append(&subgroup->streams, &stream->_node); in bt_bap_broadcast_source_create()
824 struct bt_bap_broadcast_subgroup *subgroup; in bt_bap_broadcast_source_reconfig() local
848 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in bt_bap_broadcast_source_reconfig()
855 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_reconfig()
867 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, subgroup_stream, _node) { in bt_bap_broadcast_source_reconfig()
907 subgroup = in bt_bap_broadcast_source_reconfig()
908 SYS_SLIST_PEEK_HEAD_CONTAINER(&source->subgroups, subgroup, _node); in bt_bap_broadcast_source_reconfig()
910 subgroup = SYS_SLIST_PEEK_NEXT_CONTAINER(subgroup, _node); in bt_bap_broadcast_source_reconfig()
915 subgroup->codec_cfg = codec_cfg; in bt_bap_broadcast_source_reconfig()
947 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, subgroup_stream, _node) { in bt_bap_broadcast_source_reconfig()
968 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_reconfig()
975 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in bt_bap_broadcast_source_reconfig()
978 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_reconfig()
995 struct bt_bap_broadcast_subgroup *subgroup; in bt_bap_broadcast_source_update_metadata() local
1027 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in bt_bap_broadcast_source_update_metadata()
1028 memset(subgroup->codec_cfg->meta, 0, sizeof(subgroup->codec_cfg->meta)); in bt_bap_broadcast_source_update_metadata()
1029 memcpy(subgroup->codec_cfg->meta, meta, meta_len); in bt_bap_broadcast_source_update_metadata()
1030 subgroup->codec_cfg->meta_len = meta_len; in bt_bap_broadcast_source_update_metadata()
1040 struct bt_bap_broadcast_subgroup *subgroup; in bt_bap_broadcast_source_start() local
1063 SYS_SLIST_FOR_EACH_CONTAINER(&source->subgroups, subgroup, _node) { in bt_bap_broadcast_source_start()
1064 SYS_SLIST_FOR_EACH_CONTAINER(&subgroup->streams, stream, _node) { in bt_bap_broadcast_source_start()