Lines Matching refs:subgroup

280 		struct bt_bap_bass_subgroup *subgroup = &recv_state->subgroups[i];
283 if (buf.len < sizeof(subgroup->bis_sync)) {
285 buf.len, buf.len + sizeof(subgroup->bis_sync));
289 subgroup->bis_sync = net_buf_simple_pull_le32(&buf);
291 if (buf.len < sizeof(subgroup->metadata_len)) {
293 buf.len, buf.len + sizeof(subgroup->metadata_len));
296 subgroup->metadata_len = net_buf_simple_pull_u8(&buf);
298 if (buf.len < subgroup->metadata_len) {
300 buf.len, buf.len + subgroup->metadata_len);
304 if (subgroup->metadata_len > sizeof(subgroup->metadata)) {
306 subgroup->metadata_len,
307 sizeof(subgroup->metadata));
312 subgroup->metadata_len);
313 (void)memcpy(subgroup->metadata, metadata,
314 subgroup->metadata_len);
1409 struct bt_bap_bass_cp_subgroup *subgroup;
1410 const size_t subgroup_size = sizeof(subgroup->bis_sync) +
1411 sizeof(subgroup->metadata_len) +
1424 subgroup = net_buf_simple_add(&att_buf, subgroup_size);
1426 subgroup->bis_sync = param->subgroups[i].bis_sync;
1430 (void)memcpy(subgroup->metadata, param->subgroups[i].metadata,
1432 subgroup->metadata_len = param->subgroups[i].metadata_len;
1434 subgroup->metadata_len = 0U;
1437 subgroup->metadata_len = 0U;
1552 struct bt_bap_bass_cp_subgroup *subgroup;
1553 const size_t subgroup_size = sizeof(subgroup->bis_sync) +
1554 sizeof(subgroup->metadata_len) +
1566 subgroup = net_buf_simple_add(&att_buf, subgroup_size);
1568 subgroup->bis_sync = param->subgroups[i].bis_sync;
1572 (void)memcpy(subgroup->metadata,
1575 subgroup->metadata_len = param->subgroups[i].metadata_len;
1577 subgroup->metadata_len = 0U;
1580 subgroup->metadata_len = 0U;