Lines Matching refs:subgroup

141 			const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i];  in bt_debug_dump_recv_state()  local
145 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state()
146 subgroup->metadata_len, in bt_debug_dump_recv_state()
147 bt_hex(subgroup->metadata, subgroup->metadata_len)); in bt_debug_dump_recv_state()
211 const struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in net_buf_put_recv_state() local
213 (void)net_buf_simple_add_le32(&read_buf, subgroup->bis_sync); in net_buf_put_recv_state()
214 (void)net_buf_simple_add_u8(&read_buf, subgroup->metadata_len); in net_buf_put_recv_state()
215 (void)net_buf_simple_add_mem(&read_buf, subgroup->metadata, in net_buf_put_recv_state()
216 subgroup->metadata_len); in net_buf_put_recv_state()
558 struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in scan_delegator_add_source() local
561 if (buf->len < (sizeof(subgroup->bis_sync) + sizeof(subgroup->metadata_len))) { in scan_delegator_add_source()
597 subgroup->metadata_len = net_buf_simple_pull_u8(buf); in scan_delegator_add_source()
599 if (buf->len < subgroup->metadata_len) { in scan_delegator_add_source()
606 if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in scan_delegator_add_source()
607 LOG_WRN("Metadata too long %u/%u", subgroup->metadata_len, in scan_delegator_add_source()
613 metadata = net_buf_simple_pull_mem(buf, subgroup->metadata_len); in scan_delegator_add_source()
614 (void)memcpy(subgroup->metadata, metadata, in scan_delegator_add_source()
615 subgroup->metadata_len); in scan_delegator_add_source()
717 struct bt_bap_bass_subgroup *subgroup = &subgroups[i]; in scan_delegator_mod_src() local
721 if (buf->len < (sizeof(subgroup->bis_sync) + sizeof(subgroup->metadata_len))) { in scan_delegator_mod_src()
755 subgroup->metadata_len = net_buf_simple_pull_u8(buf); in scan_delegator_mod_src()
757 if (buf->len < subgroup->metadata_len) { in scan_delegator_mod_src()
762 if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in scan_delegator_mod_src()
763 LOG_WRN("Metadata too long %u/%u", subgroup->metadata_len, in scan_delegator_mod_src()
768 metadata = net_buf_simple_pull_mem(buf, subgroup->metadata_len); in scan_delegator_mod_src()
770 (void)memcpy(subgroup->metadata, metadata, in scan_delegator_mod_src()
771 subgroup->metadata_len); in scan_delegator_mod_src()
1300 struct bt_bap_bass_subgroup *subgroup = in bt_bap_scan_delegator_set_bis_sync_state() local
1307 if (bis_synced[i] != subgroup->bis_sync) { in bt_bap_scan_delegator_set_bis_sync_state()
1309 subgroup->bis_sync = bis_synced[i]; in bt_bap_scan_delegator_set_bis_sync_state()
1359 const struct bt_bap_bass_subgroup *subgroup = &param->subgroups[i]; in valid_bt_bap_scan_delegator_add_src_param() local
1361 if (!bis_syncs_unique_or_no_pref(subgroup->bis_sync, in valid_bt_bap_scan_delegator_add_src_param()
1363 LOG_DBG("Invalid BIS sync: %u", subgroup->bis_sync); in valid_bt_bap_scan_delegator_add_src_param()
1368 if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in valid_bt_bap_scan_delegator_add_src_param()
1370 i, subgroup->metadata_len); in valid_bt_bap_scan_delegator_add_src_param()
1462 const struct bt_bap_bass_subgroup *subgroup = &param->subgroups[i]; in valid_bt_bap_scan_delegator_mod_src_param() local
1464 if (subgroup->bis_sync != BT_BAP_BIS_SYNC_FAILED && in valid_bt_bap_scan_delegator_mod_src_param()
1465 !bis_syncs_unique_or_no_pref(subgroup->bis_sync, aggregated_bis_syncs)) { in valid_bt_bap_scan_delegator_mod_src_param()
1466 LOG_DBG("Invalid BIS sync: %u", subgroup->bis_sync); in valid_bt_bap_scan_delegator_mod_src_param()
1471 if (subgroup->metadata_len > CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE) { in valid_bt_bap_scan_delegator_mod_src_param()
1473 i, subgroup->metadata_len); in valid_bt_bap_scan_delegator_mod_src_param()
1538 struct bt_bap_bass_subgroup *subgroup = &state->subgroups[i]; in bt_bap_scan_delegator_mod_src() local
1540 if (subgroup->bis_sync != param_subgroup->bis_sync) { in bt_bap_scan_delegator_mod_src()
1541 subgroup->bis_sync = param_subgroup->bis_sync; in bt_bap_scan_delegator_mod_src()
1550 if (subgroup->metadata_len != param_subgroup->metadata_len) { in bt_bap_scan_delegator_mod_src()
1551 subgroup->metadata_len = param_subgroup->metadata_len; in bt_bap_scan_delegator_mod_src()
1555 if (subgroup->metadata_len != param_subgroup->metadata_len || in bt_bap_scan_delegator_mod_src()
1556 memcmp(subgroup->metadata, param_subgroup->metadata, in bt_bap_scan_delegator_mod_src()
1558 (void)memcpy(subgroup->metadata, in bt_bap_scan_delegator_mod_src()
1561 subgroup->metadata_len = param_subgroup->metadata_len; in bt_bap_scan_delegator_mod_src()