/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | bap_scan_delegator_test.c | 47 const struct bt_bap_scan_delegator_recv_state *recv_state; member 55 static struct sync_state *sync_state_get(const struct bt_bap_scan_delegator_recv_state *recv_state) in sync_state_get() argument 58 if (sync_states[i].recv_state == recv_state) { in sync_state_get() 67 const struct bt_bap_scan_delegator_recv_state *recv_state) in sync_state_get_or_new() argument 72 if (sync_states[i].recv_state == NULL && in sync_state_get_or_new() 76 if (recv_state == NULL) { in sync_state_get_or_new() 81 if (sync_states[i].recv_state == recv_state) { in sync_state_get_or_new() 118 if (state->recv_state != NULL) { in pa_timer_handler() 121 if (state->recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ) { in pa_timer_handler() 127 bt_bap_scan_delegator_set_pa_state(state->recv_state->src_id, in pa_timer_handler() [all …]
|
D | bap_broadcast_sink_test.c | 374 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_req_cb() argument 377 if (recv_state->pa_sync_state == BT_BAP_PA_STATE_SYNCED || in pa_sync_req_cb() 378 recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ) { in pa_sync_req_cb() 384 req_recv_state = recv_state; in pa_sync_req_cb() 392 const struct bt_bap_scan_delegator_recv_state *recv_state) in pa_sync_term_req_cb() argument 394 if (pa_sync == NULL || recv_state->pa_sync_state == BT_BAP_PA_STATE_NOT_SYNCED) { in pa_sync_term_req_cb() 398 req_recv_state = recv_state; in pa_sync_term_req_cb() 406 const struct bt_bap_scan_delegator_recv_state *recv_state, in bis_sync_req_cb() argument 409 req_recv_state = recv_state; in bis_sync_req_cb() 411 printk("BIS sync request received for %p: 0x%08x\n", recv_state, bis_sync_req[0]); in bis_sync_req_cb() [all …]
|
D | cap_acceptor_test.c | 343 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_req_cb() argument 346 if (recv_state->pa_sync_state == BT_BAP_PA_STATE_SYNCED || in pa_sync_req_cb() 347 recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ) { in pa_sync_req_cb() 355 bt_addr_le_copy(&broadcaster_addr, &recv_state->addr); in pa_sync_req_cb() 356 broadcaster_info.sid = recv_state->adv_sid; in pa_sync_req_cb() 365 const struct bt_bap_scan_delegator_recv_state *recv_state) in pa_sync_term_req_cb() argument 367 if (pa_sync == NULL || recv_state->pa_sync_state == BT_BAP_PA_STATE_NOT_SYNCED) { in pa_sync_term_req_cb() 377 const struct bt_bap_scan_delegator_recv_state *recv_state, in bis_sync_req_cb() argument 382 broadcaster_broadcast_id = recv_state->broadcast_id; in bis_sync_req_cb() 384 for (int i = 0; i < recv_state->num_subgroups; i++) { in bis_sync_req_cb() [all …]
|
D | bap_broadcast_assistant_test.c | 275 .recv_state = bap_broadcast_assistant_recv_state_cb,
|
D | cap_commander_test.c | 507 .recv_state = bap_broadcast_assistant_recv_state_cb,
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | bap_scan_delegator.c | 48 const struct bt_bap_scan_delegator_recv_state *recv_state; member 68 static struct sync_state *sync_state_get(const struct bt_bap_scan_delegator_recv_state *recv_state) in sync_state_get() argument 71 if (sync_states[i].recv_state == recv_state) { in sync_state_get() 80 const struct bt_bap_scan_delegator_recv_state *recv_state) in sync_state_get_or_new() argument 85 if (sync_states[i].recv_state == NULL && in sync_state_get_or_new() 90 if (sync_states[i].recv_state == recv_state) { in sync_state_get_or_new() 113 if (sync_states[i].recv_state != NULL && in sync_state_get_by_sync_info() 114 bt_addr_le_eq(info->addr, &sync_states[i].recv_state->addr) && in sync_state_get_by_sync_info() 115 info->sid == sync_states[i].recv_state->adv_sid) { in sync_state_get_by_sync_info() 127 if (sync_states[i].recv_state == NULL) { in sync_state_new() [all …]
|
D | bap_broadcast_assistant.c | 301 .recv_state = bap_broadcast_assistant_recv_state_cb,
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | bap_broadcast_sink.c | 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() [all …]
|
D | bap_broadcast_assistant.c | 177 if (listener->recv_state) { in bap_broadcast_assistant_recv_state_changed() 178 listener->recv_state(conn, err, state); in bap_broadcast_assistant_recv_state_changed() 225 struct bt_bap_scan_delegator_recv_state *recv_state) in parse_recv_state() argument 230 __ASSERT(recv_state, "NULL receive state"); in parse_recv_state() 245 (void)memset(recv_state, 0, sizeof(*recv_state)); in parse_recv_state() 247 recv_state->src_id = net_buf_simple_pull_u8(&buf); in parse_recv_state() 248 recv_state->addr.type = net_buf_simple_pull_u8(&buf); in parse_recv_state() 250 bt_addr_copy(&recv_state->addr.a, addr); in parse_recv_state() 251 recv_state->adv_sid = net_buf_simple_pull_u8(&buf); in parse_recv_state() 252 recv_state->broadcast_id = net_buf_simple_pull_le24(&buf); in parse_recv_state() [all …]
|
D | bap_scan_delegator.c | 126 static void bt_debug_dump_recv_state(const struct bass_recv_state_internal *recv_state) in bt_debug_dump_recv_state() argument 128 if (recv_state->active) { in bt_debug_dump_recv_state() 129 const struct bt_bap_scan_delegator_recv_state *state = &recv_state->state; in bt_debug_dump_recv_state() 134 recv_state->index, state->src_id, bt_addr_le_str(&state->addr), in bt_debug_dump_recv_state() 145 i, subgroup->bis_sync, recv_state->requested_bis_sync[i], in bt_debug_dump_recv_state() 183 static void net_buf_put_recv_state(const struct bass_recv_state_internal *recv_state) in net_buf_put_recv_state() argument 185 const struct bt_bap_scan_delegator_recv_state *state = &recv_state->state; in net_buf_put_recv_state() 189 __ASSERT(recv_state, "NULL receive state"); in net_buf_put_recv_state() 191 if (!recv_state->active) { in net_buf_put_recv_state() 1090 struct bass_recv_state_internal *recv_state = &scan_delegator.recv_states[idx]; in read_recv_state() local [all …]
|
D | bap_endpoint.h | 185 const struct bt_bap_scan_delegator_recv_state *recv_state; member
|
D | cap_commander.c | 622 broadcast_assistant_cb.recv_state = cap_commander_broadcast_assistant_recv_state_cb; in bt_cap_commander_broadcast_reception_stop()
|
/Zephyr-latest/samples/bluetooth/cap_acceptor/src/ |
D | cap_acceptor_broadcast.c | 310 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_with_past() argument 326 err = bt_bap_scan_delegator_set_pa_state(recv_state->src_id, BT_BAP_PA_STATE_INFO_REQ); in pa_sync_with_past() 362 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_req_cb() argument 367 recv_state->pa_sync_state); in pa_sync_req_cb() 369 broadcast_sink.req_recv_state = recv_state; in pa_sync_req_cb() 371 if (recv_state->pa_sync_state == BT_BAP_PA_STATE_SYNCED || in pa_sync_req_cb() 372 recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ || in pa_sync_req_cb() 383 err = pa_sync_with_past(conn, recv_state, pa_interval); in pa_sync_req_cb() 392 err = pa_sync_without_past(&recv_state->addr, recv_state->adv_sid, pa_interval); in pa_sync_req_cb() 400 broadcast_sink.broadcast_id = recv_state->broadcast_id; in pa_sync_req_cb() [all …]
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap_broadcast.c | 771 const struct bt_bap_scan_delegator_recv_state *recv_state = in pa_timer_handler() local 774 if (recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ) { in pa_timer_handler() 780 bt_bap_scan_delegator_set_pa_state(recv_state->src_id, pa_state); in pa_timer_handler() 912 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_req_cb() argument 917 LOG_DBG("sync state %d ", recv_state->pa_sync_state); in pa_sync_req_cb() 919 broadcaster = remote_broadcaster_find(&recv_state->addr, recv_state->broadcast_id); in pa_sync_req_cb() 931 broadcaster->broadcast_id = recv_state->broadcast_id; in pa_sync_req_cb() 932 bt_addr_le_copy(&broadcaster->address, &recv_state->addr); in pa_sync_req_cb() 935 broadcaster->sink_recv_state = recv_state; in pa_sync_req_cb() 937 btp_send_pas_sync_req_ev(conn, recv_state->src_id, recv_state->adv_sid, in pa_sync_req_cb() [all …]
|
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/ |
D | main.c | 897 const struct bt_bap_scan_delegator_recv_state *recv_state) in recv_state_updated_cb() argument 900 recv_state->pa_sync_state, recv_state->encrypt_state); in recv_state_updated_cb() 902 for (uint8_t i = 0; i < recv_state->num_subgroups; i++) { in recv_state_updated_cb() 903 printk("subgroup %d bis_sync: 0x%08x\n", i, recv_state->subgroups[i].bis_sync); in recv_state_updated_cb() 906 req_recv_state = recv_state; in recv_state_updated_cb() 910 const struct bt_bap_scan_delegator_recv_state *recv_state, in pa_sync_req_cb() argument 915 recv_state->pa_sync_state); in pa_sync_req_cb() 917 req_recv_state = recv_state; in pa_sync_req_cb() 919 if (recv_state->pa_sync_state == BT_BAP_PA_STATE_SYNCED || in pa_sync_req_cb() 920 recv_state->pa_sync_state == BT_BAP_PA_STATE_INFO_REQ) { in pa_sync_req_cb() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/ |
D | bap_broadcast_assistant.c | 114 if (listener->recv_state != NULL) { in bt_bap_broadcast_assistant_add_src() 115 listener->recv_state(conn, 0, &state); in bt_bap_broadcast_assistant_add_src() 150 if (listener->recv_state != NULL) { in bt_bap_broadcast_assistant_mod_src() 151 listener->recv_state(conn, 0, &state); in bt_bap_broadcast_assistant_mod_src()
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | bap.h | 610 const struct bt_bap_scan_delegator_recv_state *recv_state); 629 const struct bt_bap_scan_delegator_recv_state *recv_state, 646 const struct bt_bap_scan_delegator_recv_state *recv_state); 660 const struct bt_bap_scan_delegator_recv_state *recv_state, 684 const struct bt_bap_scan_delegator_recv_state *recv_state, 2553 const struct bt_bap_scan_delegator_recv_state *recv_state, void *user_data); 2625 void (*recv_state)(struct bt_conn *conn, int err, member
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/ |
D | test_broadcast_reception.c | 71 fixture->broadcast_assistant_cb.recv_state = in cap_commander_test_broadcast_reception_fixture_init()
|