Lines Matching refs:recv_state

67 static bool find_recv_state_by_sink_cb(const struct bt_bap_scan_delegator_recv_state *recv_state,  in find_recv_state_by_sink_cb()  argument
73 sink->bass_src_id == recv_state->src_id) { in find_recv_state_by_sink_cb()
80 static bool find_recv_state_by_pa_sync_cb(const struct bt_bap_scan_delegator_recv_state *recv_state, in find_recv_state_by_pa_sync_cb() argument
94 if (bt_addr_le_eq(&recv_state->addr, &sync_info.addr) && in find_recv_state_by_pa_sync_cb()
95 recv_state->adv_sid == sync_info.sid) { in find_recv_state_by_pa_sync_cb()
104 const struct bt_bap_scan_delegator_recv_state *recv_state; in update_recv_state_big_synced() local
108 recv_state = bt_bap_scan_delegator_find_state(find_recv_state_by_sink_cb, (void *)sink); in update_recv_state_big_synced()
109 if (recv_state == NULL) { in update_recv_state_big_synced()
124 if (recv_state->encrypt_state == BT_BAP_BIG_ENC_STATE_BCODE_REQ) { in update_recv_state_big_synced()
127 mod_src_param.encrypt_state = recv_state->encrypt_state; in update_recv_state_big_synced()
135 mod_src_param.src_id = recv_state->src_id; in update_recv_state_big_synced()
136 mod_src_param.broadcast_id = recv_state->broadcast_id; in update_recv_state_big_synced()
148 const struct bt_bap_scan_delegator_recv_state *recv_state; in update_recv_state_big_cleared() local
151 recv_state = bt_bap_scan_delegator_find_state(find_recv_state_by_sink_cb, (void *)sink); in update_recv_state_big_cleared()
152 if (recv_state == NULL) { in update_recv_state_big_cleared()
159 if ((recv_state->encrypt_state == BT_BAP_BIG_ENC_STATE_BCODE_REQ || in update_recv_state_big_cleared()
160 recv_state->encrypt_state == BT_BAP_BIG_ENC_STATE_DEC) && in update_recv_state_big_cleared()
165 mod_src_param.encrypt_state = recv_state->encrypt_state; in update_recv_state_big_cleared()
169 for (uint8_t i = 0U; i < recv_state->num_subgroups; i++) { in update_recv_state_big_cleared()
177 mod_src_param.num_subgroups = recv_state->num_subgroups; in update_recv_state_big_cleared()
178 mod_src_param.src_id = recv_state->src_id; in update_recv_state_big_cleared()
179 mod_src_param.broadcast_id = recv_state->broadcast_id; in update_recv_state_big_cleared()
522 const struct bt_bap_scan_delegator_recv_state *recv_state; in update_recv_state_base() local
525 recv_state = bt_bap_scan_delegator_find_state(find_recv_state_by_sink_cb, (void *)sink); in update_recv_state_base()
526 if (recv_state == NULL) { in update_recv_state_base()
539 mod_src_param.src_id = recv_state->src_id; in update_recv_state_base()
540 mod_src_param.encrypt_state = recv_state->encrypt_state; in update_recv_state_base()
541 mod_src_param.broadcast_id = recv_state->broadcast_id; in update_recv_state_base()
547 subgroup_param->bis_sync = recv_state->subgroups[i].bis_sync; in update_recv_state_base()
873 const struct bt_bap_scan_delegator_recv_state *recv_state; in update_recv_state_encryption() local
878 recv_state = bt_bap_scan_delegator_find_state(find_recv_state_by_sink_cb, (void *)sink); in update_recv_state_encryption()
879 if (recv_state == NULL) { in update_recv_state_encryption()
893 if (mod_src_param.encrypt_state == recv_state->encrypt_state) { in update_recv_state_encryption()
900 mod_src_param.src_id = recv_state->src_id; in update_recv_state_encryption()
901 mod_src_param.broadcast_id = recv_state->broadcast_id; in update_recv_state_encryption()
902 mod_src_param.num_subgroups = recv_state->num_subgroups; in update_recv_state_encryption()
904 recv_state->subgroups, in update_recv_state_encryption()
905 sizeof(recv_state->num_subgroups)); in update_recv_state_encryption()
1169 const struct bt_bap_scan_delegator_recv_state *recv_state; in bt_bap_broadcast_sink_create() local
1200 recv_state = bt_bap_scan_delegator_find_state(find_recv_state_by_pa_sync_cb, in bt_bap_broadcast_sink_create()
1202 if (recv_state == NULL) { in bt_bap_broadcast_sink_create()
1206 if (recv_state->broadcast_id != broadcast_id) { in bt_bap_broadcast_sink_create()
1208 recv_state->broadcast_id, broadcast_id); in bt_bap_broadcast_sink_create()
1214 sink->bass_src_id = recv_state->src_id; in bt_bap_broadcast_sink_create()