Home
last modified time | relevance | path

Searched refs:pa_sync (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/samples/bluetooth/cap_acceptor/src/
Dcap_acceptor_broadcast.c60 struct bt_le_per_adv_sync *pa_sync; member
143 err = bt_bap_broadcast_sink_create(broadcast_sink.pa_sync, broadcast_sink.broadcast_id, in create_broadcast_sink()
260 if (broadcast_sink.pa_sync != NULL) { in pa_timer_handler()
263 err = bt_le_per_adv_sync_delete(broadcast_sink.pa_sync); in pa_timer_handler()
349 err = bt_le_per_adv_sync_create(&param, &broadcast_sink.pa_sync); in pa_sync_without_past()
373 broadcast_sink.pa_sync != NULL) { in pa_sync_req_cb()
413 err = bt_le_per_adv_sync_delete(broadcast_sink.pa_sync); in pa_sync_term_req_cb()
421 broadcast_sink.pa_sync = NULL; in pa_sync_term_req_cb()
512 if (sync == broadcast_sink.pa_sync || in bap_pa_sync_synced_cb()
520 if (broadcast_sink.pa_sync == NULL) { in bap_pa_sync_synced_cb()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_scan_delegator.c72 struct bt_le_per_adv_sync *pa_sync; member
333 if (scan_delegator.recv_states[i].pa_sync == sync) { in bass_lookup_pa_sync()
380 internal_state->pa_sync = sync; in pa_synced()
399 internal_state->pa_sync = NULL; in pa_terminated()
492 uint8_t pa_sync; in scan_delegator_add_source() local
541 pa_sync = net_buf_simple_pull_u8(buf); in scan_delegator_add_source()
542 if (pa_sync > BT_BAP_BASS_PA_REQ_SYNC) { in scan_delegator_add_source()
543 LOG_DBG("Invalid PA sync value %u", pa_sync); in scan_delegator_add_source()
569 pa_sync == BT_BAP_BASS_PA_REQ_NO_SYNC) { in scan_delegator_add_source()
633 if (pa_sync != BT_BAP_BASS_PA_REQ_NO_SYNC) { in scan_delegator_add_source()
[all …]
Dbap_internal.h63 uint8_t pa_sync; member
72 uint8_t pa_sync; member
Dbap_broadcast_assistant.c77 uint8_t pa_sync; member
948 inst->pa_sync = 0U; in broadcast_assistant_reset()
1255 static bool valid_subgroup_params(uint8_t pa_sync, const struct bt_bap_bass_subgroup subgroups[], in valid_subgroup_params() argument
1264 CHECKIF(pa_sync == 0 && (subgroups[i].bis_sync != 0U && in valid_subgroup_params()
1338 if (!valid_subgroup_params(param->pa_sync, param->subgroups, in valid_add_src_param()
1396 if (param->pa_sync) { in bt_bap_broadcast_assistant_add_src()
1398 cp->pa_sync = BT_BAP_BASS_PA_REQ_SYNC_PAST; in bt_bap_broadcast_assistant_add_src()
1400 cp->pa_sync = BT_BAP_BASS_PA_REQ_SYNC; in bt_bap_broadcast_assistant_add_src()
1403 cp->pa_sync = BT_BAP_BASS_PA_REQ_NO_SYNC; in bt_bap_broadcast_assistant_add_src()
1471 if (!valid_subgroup_params(param->pa_sync, param->subgroups, in valid_add_mod_param()
[all …]
Dbap_broadcast_sink.c439 if (broadcast_sinks[i].pa_sync == sync) { in broadcast_sink_get_by_pa()
464 err = bt_le_per_adv_sync_get_info(sink->pa_sync, &sync_info); in broadcast_sink_add_src()
866 sink->pa_sync = NULL; in pa_term_cb()
1166 int bt_bap_broadcast_sink_create(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id, in bt_bap_broadcast_sink_create() argument
1172 CHECKIF(pa_sync == NULL) { in bt_bap_broadcast_sink_create()
1198 sink->pa_sync = pa_sync; in bt_bap_broadcast_sink_create()
1201 (void *)pa_sync); in bt_bap_broadcast_sink_create()
1248 if (sink->pa_sync == NULL) { in bt_bap_broadcast_sink_sync()
1339 err = bt_iso_big_sync(sink->pa_sync, &param, &sink->big); in bt_bap_broadcast_sink_sync()
Dbap_endpoint.h181 struct bt_le_per_adv_sync *pa_sync; member
Dcap_commander.c112 add_src_param->pa_sync = true; in copy_broadcast_reception_start_param()
410 mod_src_param->pa_sync = false; in copy_broadcast_reception_stop_param()
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dbap_scan_delegator_test.c50 struct bt_le_per_adv_sync *pa_sync; member
92 if (sync_states[i].pa_sync == sync) { in sync_state_get_by_pa()
177 err = bt_le_per_adv_sync_create(&param, &state->pa_sync); in pa_sync_no_past()
200 if (state->pa_sync == NULL) { in pa_sync_term()
206 err = bt_le_per_adv_sync_delete(state->pa_sync); in pa_sync_term()
211 state->pa_sync = NULL; in pa_sync_term()
371 if (!sync_states[i].pa_sync) { in pa_synced_cb()
372 sync_states[i].pa_sync = sync; in pa_synced_cb()
455 &state->pa_sync); in broadcast_source_found()
490 res = bt_le_per_adv_sync_get_info(state->pa_sync, &sync_info); in add_source()
[all …]
Dbap_broadcast_sink_test.c57 static struct bt_le_per_adv_sync *pa_sync; variable
345 if (sync == pa_sync) { in bap_pa_sync_synced_cb()
356 if (sync == pa_sync) { in bap_pa_sync_terminated_cb()
358 pa_sync = NULL; in bap_pa_sync_terminated_cb()
394 if (pa_sync == NULL || recv_state->pa_sync_state == BT_BAP_PA_STATE_NOT_SYNCED) { in pa_sync_term_req_cb()
669 return bt_le_per_adv_sync_create(&create_params, &pa_sync); in pa_sync_create()
675 err = bt_le_per_adv_sync_delete(pa_sync); in test_pa_sync_delete()
681 pa_sync = NULL; in test_pa_sync_delete()
721 err = bt_bap_broadcast_sink_create(pa_sync, broadcaster_broadcast_id, &g_sink); in test_broadcast_sink_create()
740 err = bt_bap_broadcast_sink_create(pa_sync, BT_BAP_INVALID_BROADCAST_ID, &g_sink); in test_broadcast_sink_create_inval()
[all …]
Dcap_acceptor_test.c75 static struct bt_le_per_adv_sync *pa_sync; variable
264 if (sync == pa_sync) { in bap_pa_sync_synced_cb()
275 if (sync == pa_sync) { in bap_pa_sync_terminated_cb()
277 pa_sync = NULL; in bap_pa_sync_terminated_cb()
367 if (pa_sync == NULL || recv_state->pa_sync_state == BT_BAP_PA_STATE_NOT_SYNCED) { in pa_sync_term_req_cb()
911 err = bt_le_per_adv_sync_create(&create_params, &pa_sync); in pa_sync_create()
952 err = bt_bap_broadcast_sink_create(pa_sync, broadcaster_broadcast_id, &g_broadcast_sink); in create_and_sync_sink()
Dbap_broadcast_assistant_test.c443 add_src_param.pa_sync = false; in test_bass_add_source()
470 mod_src_param.pa_sync = true; in test_bass_mod_source()
500 mod_src_param.pa_sync = true; in test_bass_mod_source_long_meta()
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/
Dbap_broadcast_assistant.c98 inst->pa_sync_state = param->pa_sync; in bt_bap_broadcast_assistant_add_src()
100 state.pa_sync_state = param->pa_sync; in bt_bap_broadcast_assistant_add_src()
135 state.pa_sync_state = param->pa_sync ? BT_BAP_PA_STATE_SYNCED : BT_BAP_PA_STATE_NOT_SYNCED; in bt_bap_broadcast_assistant_mod_src()
138 inst->pa_sync_state = param->pa_sync; in bt_bap_broadcast_assistant_mod_src()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dbap_broadcast_assistant.c45 bool pa_sync; member
382 param.pa_sync = shell_strtobool(argv[4], 0, &result); in cmd_bap_broadcast_assistant_add_src()
572 param.pa_sync = auto_scan.pa_sync; in scan_recv_cb()
653 auto_scan.pa_sync = shell_strtobool(argv[2], 0, &err); in cmd_bap_broadcast_assistant_add_broadcast_id()
721 auto_scan.pa_sync = shell_strtobool(argv[2], 0, &err); in cmd_bap_broadcast_assistant_add_broadcast_name()
793 param.pa_sync = shell_strtobool(argv[2], 0, &result); in cmd_bap_broadcast_assistant_mod_src()
931 struct bt_le_per_adv_sync *pa_sync = per_adv_syncs[0]; in cmd_bap_broadcast_assistant_add_pa_sync() local
938 if (pa_sync == NULL) { in cmd_bap_broadcast_assistant_add_pa_sync()
944 err = bt_le_per_adv_sync_get_info(pa_sync, &pa_info); in cmd_bap_broadcast_assistant_add_pa_sync()
957 param.pa_sync = shell_strtobool(argv[1], 0, &err); in cmd_bap_broadcast_assistant_add_pa_sync()
Dbap_scan_delegator.c47 struct bt_le_per_adv_sync *pa_sync; member
101 if (sync_states[i].pa_sync == sync) { in sync_state_get_by_pa()
236 err = bt_le_per_adv_sync_create(&param, &state->pa_sync); in pa_sync_no_past()
259 if (state->pa_sync == NULL) { in pa_sync_term()
265 err = bt_le_per_adv_sync_delete(state->pa_sync); in pa_sync_term()
271 state->pa_sync = NULL; in pa_sync_term()
700 struct bt_le_per_adv_sync *pa_sync = per_adv_syncs[selected_per_adv_sync]; in cmd_bap_scan_delegator_add_src_by_pa_sync() local
709 err = bt_le_per_adv_sync_get_info(pa_sync, &sync_info); in cmd_bap_scan_delegator_add_src_by_pa_sync()
Daudio.h182 struct bt_le_per_adv_sync *pa_sync; member
Dbap.c2462 (auto_scan.broadcast_sink->pa_sync == NULL)) { in broadcast_scan_recv()
2486 auto_scan.broadcast_sink->pa_sync = *auto_scan.out_sync; in broadcast_scan_recv()
2547 if (default_broadcast_sink.pa_sync == sync) { in bap_pa_sync_terminated_cb()
/Zephyr-latest/samples/bluetooth/bap_broadcast_sink/src/
Dmain.c108 static struct bt_le_per_adv_sync *pa_sync; variable
966 err = bt_le_per_adv_sync_delete(pa_sync); in pa_sync_term_req_cb()
1224 if (sync == pa_sync || in bap_pa_sync_synced_cb()
1230 if (pa_sync == NULL) { in bap_pa_sync_synced_cb()
1231 pa_sync = sync; in bap_pa_sync_synced_cb()
1242 if (sync == pa_sync) { in bap_pa_sync_terminated_cb()
1244 pa_sync = NULL; in bap_pa_sync_terminated_cb()
1359 if (pa_sync != NULL) { in reset()
1360 bt_le_per_adv_sync_delete(pa_sync); in reset()
1367 pa_sync = NULL; in reset()
[all …]
/Zephyr-latest/samples/bluetooth/bap_broadcast_assistant/src/
Dmain.c55 static struct bt_le_per_adv_sync *pa_sync; variable
288 return bt_le_per_adv_sync_create(&create_params, &pa_sync); in pa_sync_create()
525 if (sync == pa_sync) { in pa_sync_synced_cb()
660 param.pa_sync = true; in main()
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_gap.c1402 static struct bt_le_per_adv_sync *pa_sync; variable
1406 return pa_sync;
1414 if (sync == pa_sync) {
1431 if (sync == pa_sync) {
1435 pa_sync = NULL;
1628 if (pa_sync != NULL) {
1632 err = bt_le_per_adv_sync_create(create_params, &pa_sync);
1645 if (pa_sync == NULL) {
1649 err = bt_le_per_adv_sync_delete(pa_sync);
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dbap.h2348 int bt_bap_broadcast_sink_create(struct bt_le_per_adv_sync *pa_sync, uint32_t broadcast_id,
2779 bool pa_sync; member
2824 bool pa_sync; member
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_broadcast.c1429 param.pa_sync = cp->padv_sync > 0 ? true : false; in btp_bap_broadcast_assistant_add_src()
1501 param.pa_sync = cp->padv_sync > 0 ? true : false; in btp_bap_broadcast_assistant_modify_src()
1559 struct bt_le_per_adv_sync *pa_sync; in btp_bap_broadcast_assistant_send_past() local
1569 pa_sync = tester_gap_padv_get(); in btp_bap_broadcast_assistant_send_past()
1570 if (!pa_sync) { in btp_bap_broadcast_assistant_send_past()
1583 err = bt_le_per_adv_sync_transfer(pa_sync, conn, service_data); in btp_bap_broadcast_assistant_send_past()
/Zephyr-latest/subsys/bluetooth/host/shell/
Diso.c797 struct bt_le_per_adv_sync *pa_sync = per_adv_syncs[0]; in cmd_big_sync() local
801 if (!pa_sync) { in cmd_big_sync()
906 err = bt_iso_big_sync(pa_sync, &param, &big); in cmd_big_sync()