Home
last modified time | relevance | path

Searched refs:recv_state (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c47 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 …]
Dbap_broadcast_sink_test.c374 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 …]
Dcap_acceptor_test.c343 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 …]
Dbap_broadcast_assistant_test.c275 .recv_state = bap_broadcast_assistant_recv_state_cb,
Dcap_commander_test.c507 .recv_state = bap_broadcast_assistant_recv_state_cb,
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_scan_delegator.c48 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 …]
Dbap_broadcast_assistant.c301 .recv_state = bap_broadcast_assistant_recv_state_cb,
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_broadcast_sink.c67 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 …]
Dbap_broadcast_assistant.c177 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 …]
Dbap_scan_delegator.c126 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 …]
Dbap_endpoint.h185 const struct bt_bap_scan_delegator_recv_state *recv_state; member
Dcap_commander.c622 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/
Dcap_acceptor_broadcast.c310 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/
Dbtp_bap_broadcast.c771 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/
Dmain.c897 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/
Dbap_broadcast_assistant.c114 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/
Dbap.h610 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/
Dtest_broadcast_reception.c71 fixture->broadcast_assistant_cb.recv_state = in cap_commander_test_broadcast_reception_fixture_init()