Lines Matching refs:param
1330 const struct bt_bap_scan_delegator_add_src_param *param) in valid_bt_bap_scan_delegator_add_src_param() argument
1334 if (param->broadcast_id > BT_AUDIO_BROADCAST_ID_MAX) { in valid_bt_bap_scan_delegator_add_src_param()
1335 LOG_DBG("Invalid broadcast_id: %u", param->broadcast_id); in valid_bt_bap_scan_delegator_add_src_param()
1340 CHECKIF(param->addr.type > BT_ADDR_LE_RANDOM) { in valid_bt_bap_scan_delegator_add_src_param()
1341 LOG_DBG("param->addr.type %u is invalid", param->addr.type); in valid_bt_bap_scan_delegator_add_src_param()
1345 CHECKIF(param->sid > BT_GAP_SID_MAX) { in valid_bt_bap_scan_delegator_add_src_param()
1346 LOG_DBG("param->sid %d is invalid", param->sid); in valid_bt_bap_scan_delegator_add_src_param()
1350 if (param->num_subgroups > CONFIG_BT_BAP_BASS_MAX_SUBGROUPS) { in valid_bt_bap_scan_delegator_add_src_param()
1352 param->num_subgroups, in valid_bt_bap_scan_delegator_add_src_param()
1358 for (uint8_t i = 0U; i < param->num_subgroups; i++) { in valid_bt_bap_scan_delegator_add_src_param()
1359 const struct bt_bap_bass_subgroup *subgroup = ¶m->subgroups[i]; in valid_bt_bap_scan_delegator_add_src_param()
1379 int bt_bap_scan_delegator_add_src(const struct bt_bap_scan_delegator_add_src_param *param) in bt_bap_scan_delegator_add_src() argument
1385 CHECKIF(!valid_bt_bap_scan_delegator_add_src_param(param)) { in bt_bap_scan_delegator_add_src()
1389 pa_sync = bt_le_per_adv_sync_lookup_addr(¶m->addr, param->sid); in bt_bap_scan_delegator_add_src()
1411 bt_addr_le_copy(&state->addr, ¶m->addr); in bt_bap_scan_delegator_add_src()
1412 state->adv_sid = param->sid; in bt_bap_scan_delegator_add_src()
1413 state->broadcast_id = param->broadcast_id; in bt_bap_scan_delegator_add_src()
1416 state->num_subgroups = param->num_subgroups; in bt_bap_scan_delegator_add_src()
1418 (void)memcpy(state->subgroups, param->subgroups, in bt_bap_scan_delegator_add_src()
1443 const struct bt_bap_scan_delegator_mod_src_param *param) in valid_bt_bap_scan_delegator_mod_src_param() argument
1447 if (param->broadcast_id > BT_AUDIO_BROADCAST_ID_MAX) { in valid_bt_bap_scan_delegator_mod_src_param()
1448 LOG_DBG("Invalid broadcast_id: %u", param->broadcast_id); in valid_bt_bap_scan_delegator_mod_src_param()
1453 if (param->num_subgroups > CONFIG_BT_BAP_BASS_MAX_SUBGROUPS) { in valid_bt_bap_scan_delegator_mod_src_param()
1455 param->num_subgroups, in valid_bt_bap_scan_delegator_mod_src_param()
1461 for (uint8_t i = 0U; i < param->num_subgroups; i++) { in valid_bt_bap_scan_delegator_mod_src_param()
1462 const struct bt_bap_bass_subgroup *subgroup = ¶m->subgroups[i]; in valid_bt_bap_scan_delegator_mod_src_param()
1482 int bt_bap_scan_delegator_mod_src(const struct bt_bap_scan_delegator_mod_src_param *param) in bt_bap_scan_delegator_mod_src() argument
1488 CHECKIF(!valid_bt_bap_scan_delegator_mod_src_param(param)) { in bt_bap_scan_delegator_mod_src()
1492 internal_state = bass_lookup_src_id(param->src_id); in bt_bap_scan_delegator_mod_src()
1494 LOG_DBG("Could not find receive state with src_id %u", param->src_id); in bt_bap_scan_delegator_mod_src()
1501 if (state->broadcast_id != param->broadcast_id) { in bt_bap_scan_delegator_mod_src()
1502 state->broadcast_id = param->broadcast_id; in bt_bap_scan_delegator_mod_src()
1506 if (state->num_subgroups != param->num_subgroups) { in bt_bap_scan_delegator_mod_src()
1507 state->num_subgroups = param->num_subgroups; in bt_bap_scan_delegator_mod_src()
1511 if (state->encrypt_state != param->encrypt_state) { in bt_bap_scan_delegator_mod_src()
1512 state->encrypt_state = param->encrypt_state; in bt_bap_scan_delegator_mod_src()
1524 const uint32_t bis_sync = param->subgroups[i].bis_sync; in bt_bap_scan_delegator_mod_src()
1537 const struct bt_bap_bass_subgroup *param_subgroup = ¶m->subgroups[i]; in bt_bap_scan_delegator_mod_src()
1613 struct scan_delegator_state_find_state_param *param = user_data; in scan_delegator_state_find_state_cb() local
1616 found = param->func(recv_state, param->user_data); in scan_delegator_state_find_state_cb()
1618 param->recv_state = recv_state; in scan_delegator_state_find_state_cb()
1629 struct scan_delegator_state_find_state_param param = { in bt_bap_scan_delegator_find_state() local
1635 bt_bap_scan_delegator_foreach_state(scan_delegator_state_find_state_cb, ¶m); in bt_bap_scan_delegator_find_state()
1637 return param.recv_state; in bt_bap_scan_delegator_find_state()