/Zephyr-latest/samples/bluetooth/pbp_public_broadcast_sink/src/ |
D | main.c | 52 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, 55 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, 59 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, 261 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, in broadcast_pa_recv() argument 284 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, in broadcast_pa_synced() argument 287 if (sync == bcast_pa_sync) { in broadcast_pa_synced() 289 sync, bcast_id); in broadcast_pa_synced() 295 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, in broadcast_pa_terminated() argument 298 if (sync == bcast_pa_sync) { in broadcast_pa_terminated() 299 printk("PA sync %p lost with reason %u\n", sync, info->reason); in broadcast_pa_terminated()
|
/Zephyr-latest/samples/bluetooth/periodic_sync_conn/src/ |
D | main.c | 25 static void sync_cb(struct bt_le_per_adv_sync *sync, struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument 39 err = bt_le_per_adv_sync_subevent(sync, ¶ms); in sync_cb() 47 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 61 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 97 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb() 186 struct bt_le_per_adv_sync *sync; in main() local 222 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/iso/bis/src/ |
D | bis_receiver.c | 114 static void pa_synced_cb(struct bt_le_per_adv_sync *sync, in pa_synced_cb() argument 122 static void pa_term_cb(struct bt_le_per_adv_sync *sync, in pa_term_cb() argument 130 static void pa_biginfo_cb(struct bt_le_per_adv_sync *sync, const struct bt_iso_biginfo *biginfo) in pa_biginfo_cb() argument 224 static void sync_big(struct bt_le_per_adv_sync *sync, uint8_t cnt, struct bt_iso_big **out_big) in sync_big() argument 243 err = bt_iso_big_sync(sync, ¶m, out_big); in sync_big() 251 struct bt_le_per_adv_sync *sync; in test_main() local 255 scan_and_sync_pa(&sync); in test_main() 257 sync_big(sync, MIN(broadcaster_num_bis, CONFIG_BT_ISO_MAX_CHAN), &big); in test_main()
|
/Zephyr-latest/kernel/ |
D | work.c | 456 struct k_work_sync *sync) in k_work_flush() argument 461 __ASSERT_NO_MSG(sync != NULL); in k_work_flush() 463 __ASSERT_NO_MSG(arch_mem_coherent(sync)); in k_work_flush() 468 struct z_work_flusher *flusher = &sync->flusher; in k_work_flush() 568 struct k_work_sync *sync) in k_work_cancel_sync() argument 571 __ASSERT_NO_MSG(sync != NULL); in k_work_cancel_sync() 575 __ASSERT_NO_MSG(arch_mem_coherent(sync)); in k_work_cancel_sync() 578 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_work, cancel_sync, work, sync); in k_work_cancel_sync() 580 struct z_work_canceller *canceller = &sync->canceller; in k_work_cancel_sync() 593 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_work, cancel_sync, work, sync); in k_work_cancel_sync() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_adv_internal.h | 208 void ull_adv_sync_iso_created(struct ll_adv_sync_set *sync); 236 uint16_t ull_adv_sync_handle_get(const struct ll_adv_sync_set *sync); 239 void ull_adv_sync_release(struct ll_adv_sync_set *sync); 242 uint32_t ull_adv_sync_time_get(const struct ll_adv_sync_set *sync, 247 struct ll_adv_sync_set *sync, 252 struct ll_adv_sync_set *sync, 257 uint8_t ull_adv_sync_time_update(struct ll_adv_sync_set *sync, 267 void ull_adv_sync_info_fill(struct ll_adv_sync_set *sync, 331 void ull_adv_iso_offset_get(struct ll_adv_sync_set *sync);
|
D | ull_sync_iso.c | 64 static uint8_t sync_iso_handle_get(struct ll_sync_iso_set *sync); 99 struct ll_sync_set *sync; in ll_big_sync_create() local 103 sync = ull_sync_is_enabled_get(sync_handle); in ll_big_sync_create() 104 if (!sync) { in ll_big_sync_create() 108 if (sync->iso.sync_iso) { in ll_big_sync_create() 132 } else if (bis[i] > sync->num_bis) { in ll_big_sync_create() 145 if (encryption != sync->enc) { in ll_big_sync_create() 175 sync_iso->sync = sync; in ll_big_sync_create() 182 sync->iso.node_rx_estab = node_rx; in ll_big_sync_create() 234 sync->iso.sync_iso = sync_iso; in ll_big_sync_create() [all …]
|
D | ull_df.c | 317 struct ll_adv_sync_set *sync; in ll_df_set_cl_cte_tx_enable() local 328 lll_sync = adv->lll.sync; in ll_df_set_cl_cte_tx_enable() 336 sync = HDR_LLL2ULL(lll_sync); in ll_df_set_cl_cte_tx_enable() 374 if (sync->is_started) { in ll_df_set_cl_cte_tx_enable() 375 err = ull_adv_sync_time_update(sync, pdu); in ll_df_set_cl_cte_tx_enable() 381 lll_adv_sync_data_enqueue(adv->lll.sync, ter_idx); in ll_df_set_cl_cte_tx_enable() 420 struct ll_sync_set *sync; in ll_df_set_cl_iq_sampling_enable() local 428 sync = ull_sync_is_enabled_get(handle); in ll_df_set_cl_iq_sampling_enable() 429 if (!sync) { in ll_df_set_cl_iq_sampling_enable() 433 lll = &sync->lll; in ll_df_set_cl_iq_sampling_enable() [all …]
|
/Zephyr-latest/subsys/input/ |
D | input.c | 41 uint8_t type, uint16_t code, int32_t value, bool sync, in input_report() argument 46 .sync = sync, in input_report()
|
D | input_utils.c | 64 evt->sync ? "SYN" : "", in input_dump_cb() 75 bool sync; in input_cmd_report() local 80 sync = shell_strtobool(argv[4], 0, &err); in input_cmd_report() 86 sync = true; in input_cmd_report() 115 input_report(NULL, type, code, value, sync, K_FOREVER); in input_cmd_report() 193 if (!evt->sync) { in kbd_matrix_state_log()
|
/Zephyr-latest/tests/subsys/input/api/src/ |
D | main.c | 138 zassert_equal(last_event.sync, 0); in ZTEST() 146 zassert_equal(last_event.sync, 1); in ZTEST() 154 zassert_equal(last_event.sync, 0); in ZTEST() 162 zassert_equal(last_event.sync, 1); in ZTEST() 170 zassert_equal(last_event.sync, 1); in ZTEST() 178 zassert_equal(last_event.sync, 1); in ZTEST() 186 zassert_equal(last_event.sync, 1); in ZTEST()
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_periodic_sync/src/ |
D | main.c | 64 static struct ll_sync_set *sync; variable 146 sync = ull_sync_is_enabled_get(0); in ZTEST() 175 err = ull_cp_periodic_sync(&conn, sync, adv_sync, service_data); in ZTEST() 215 sync = ull_sync_is_enabled_get(0); in ZTEST() 223 err = ull_cp_periodic_sync(&conn, sync, adv_sync, service_data); in ZTEST() 227 err = ull_cp_periodic_sync(&conn, sync, adv_sync, service_data); in ZTEST() 344 sync = ull_sync_is_enabled_get(0); in ZTEST() 399 err = ull_cp_periodic_sync(&conn, sync, adv_sync, service_data); in ZTEST() 479 sync = ull_sync_is_enabled_get(0); in ZTEST() 509 err = ull_cp_periodic_sync(&conn, sync, adv_sync, service_data); in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | has.h | 282 int bt_has_client_preset_set(struct bt_has *has, uint8_t index, bool sync); 295 int bt_has_client_preset_next(struct bt_has *has, bool sync); 308 int bt_has_client_preset_prev(struct bt_has *has, bool sync); 327 int (*select)(uint8_t index, bool sync);
|
/Zephyr-latest/tests/bsim/bluetooth/ll/bis/src/ |
D | test_bis.c | 598 static void pa_sync_cb(struct bt_le_per_adv_sync *sync, in pa_sync_cb() argument 607 bt_le_per_adv_sync_get_index(sync), le_addr, in pa_sync_cb() 613 static void pa_terminated_cb(struct bt_le_per_adv_sync *sync, in pa_terminated_cb() argument 621 bt_le_per_adv_sync_get_index(sync), le_addr); in pa_terminated_cb() 632 static void pa_recv_cb(struct bt_le_per_adv_sync *sync, in pa_recv_cb() argument 642 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in pa_recv_cb() 649 pa_state_changed_cb(struct bt_le_per_adv_sync *sync, in pa_state_changed_cb() argument 653 bt_le_per_adv_sync_get_index(sync), in pa_state_changed_cb() 659 static void pa_biginfo_cb(struct bt_le_per_adv_sync *sync, in pa_biginfo_cb() argument 670 bt_le_per_adv_sync_get_index(sync), le_addr, biginfo->sid, in pa_biginfo_cb() [all …]
|
D | test_past.c | 240 static void pa_sync_cb(struct bt_le_per_adv_sync *sync, in pa_sync_cb() argument 245 default_sync = sync; in pa_sync_cb() 251 bt_le_per_adv_sync_get_index(sync), le_addr, in pa_sync_cb() 261 static void pa_terminated_cb(struct bt_le_per_adv_sync *sync, in pa_terminated_cb() argument 269 bt_le_per_adv_sync_get_index(sync), le_addr); in pa_terminated_cb() 273 pa_state_changed_cb(struct bt_le_per_adv_sync *sync, in pa_state_changed_cb() argument 277 bt_le_per_adv_sync_get_index(sync), in pa_state_changed_cb() 466 struct bt_le_per_adv_sync *sync = NULL; in test_past_send_main() local 514 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in test_past_send_main() 549 err = bt_le_per_adv_sync_transfer(sync, default_conn, service_data); in test_past_send_main() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_context.h | 62 struct k_sem sync; member 86 ._ctx_name.sync = Z_SEM_INITIALIZER(_data._ctx_name.sync, 0, 1) 98 k_sem_init(&ctx->sync, 0, 1); in adc_context_init() 175 int status = k_sem_take(&ctx->sync, ADC_CONTEXT_WAIT_FOR_COMPLETION_TIMEOUT); in adc_context_wait_for_completion() 209 k_sem_give(&ctx->sync); in adc_context_complete()
|
/Zephyr-latest/samples/subsys/input/draw_touch_events/src/ |
D | main.c | 41 static struct k_sem sync; variable 60 if (evt->sync) { in touch_event_callback() 61 k_sem_give(&sync); in touch_event_callback() 138 k_sem_init(&sync, 0, 1); in main() 142 k_sem_take(&sync, K_FOREVER); in main()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_mgmt.c | 296 struct net_mgmt_event_callback sync = { in mgmt_event_wait_call() local 306 NET_DBG("Synchronous event 0x%08x wait %p", sync.event_mask, &sync); in mgmt_event_wait_call() 308 net_mgmt_add_event_callback(&sync); in mgmt_event_wait_call() 310 ret = k_sem_take(sync.sync_call, timeout); in mgmt_event_wait_call() 316 net_mgmt_del_event_callback(&sync); in mgmt_event_wait_call() 321 *raised_event = sync.raised_event; in mgmt_event_wait_call() 330 *info = sync.info; in mgmt_event_wait_call() 333 *info_length = sync.info_length; in mgmt_event_wait_call()
|
/Zephyr-latest/samples/bluetooth/periodic_sync_rsp/src/ |
D | main.c | 28 static void sync_cb(struct bt_le_per_adv_sync *sync, struct bt_le_per_adv_sync_synced_info *info) in sync_cb() argument 38 default_sync = sync; in sync_cb() 45 err = bt_le_per_adv_sync_subevent(sync, ¶ms); in sync_cb() 55 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 91 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 111 err = bt_le_per_adv_set_response_data(sync, &rsp_params, &rsp_buf); in recv_cb()
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | bap_scan_delegator.rst | 18 The Scan Delegator can currently only set the sync state of a receive state, but 29 term_pa : Terminate PA sync <src_id> 63 Adding a source from a PA sync 71 uart:~$ bt per-adv-sync-create 2C:44:05:82:EB:82 (random) 0 79 Set sync state for a source:
|
D | bap_broadcast_assistant.rst | 41 add_pa_sync : Add a PA sync as a source <sync_pa> <broadcast_id> 43 mod_src : Set sync <src_id> <sync_pa> [<pa_interval> | "unknown"] [<sync_bis>] 88 [0]: BIS sync 0, metadata_len 0 100 [0]: BIS sync 0x0000, metadata_len 0 103 [0]: BIS sync 0x0000, metadata_len 0 105 [0]: BIS sync 0x0000, metadata_len 4 117 [0]: BIS sync 0x0001, metadata_len 4
|
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/ |
D | README.rst | 5 Measure packet loss and sync loss of an ISO broadcaster against one or more receivers. 7 The ISO Broadcast Benchmark sample measures and report packet loss and sync loss 15 and measures the quality of the sync. 58 The receiver will output statistics for overall (since boot), current sync 71 [00:00:05.796,081] <inf> iso_broadcast_receiver: Waiting for periodic sync 74 [00:00:06.454,010] <inf> iso_broadcast_receiver: Periodic sync established 78 [00:00:08.853,973] <inf> iso_broadcast_receiver: Waiting for BIG sync 80 [00:00:11.254,333] <inf> iso_broadcast_receiver: BIG sync established
|
/Zephyr-latest/samples/bluetooth/hap_ha/src/ |
D | has_server.c | 20 static int select_cb(uint8_t index, bool sync) in select_cb() argument 22 printk("%s %u sync %d", __func__, index, sync); in select_cb()
|
/Zephyr-latest/drivers/dai/intel/dmic/ |
D | Kconfig.dmic | 52 bool "Use DMIC sync for multiple lines" 56 dmic sync registers must be set before use of dmic 74 DMIC sync period used for: 76 From spec: E.g. for 19.2 MHz XTAL oscillator clock, 4 KHz sync period,
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_cc13xx_cc26xx.c | 32 struct k_sem sync; member 121 k_sem_take(&data->sync, K_FOREVER); in entropy_cc13xx_cc26xx_get_entropy() 158 k_sem_give(&data->sync); in entropy_cc13xx_cc26xx_isr() 344 .sync = Z_SEM_INITIALIZER(entropy_cc13xx_cc26xx_data.sync, 0, 1),
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | direction.c | 58 prepare_cl_cte_rx_enable_cmd_params(struct net_buf **buf, struct bt_le_per_adv_sync *sync, 61 static int hci_df_set_cl_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable, 278 prepare_cl_cte_rx_enable_cmd_params(struct net_buf **buf, struct bt_le_per_adv_sync *sync, in prepare_cl_cte_rx_enable_cmd_params() argument 304 cp->sync_handle = sys_cpu_to_le16(sync->handle); in prepare_cl_cte_rx_enable_cmd_params() 334 static int hci_df_set_cl_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable, in hci_df_set_cl_cte_rx_enable() argument 348 err = prepare_cl_cte_rx_enable_cmd_params(&buf, sync, params, enable); in hci_df_set_cl_cte_rx_enable() 353 bt_hci_cmd_state_set_init(buf, &state, sync->flags, BT_PER_ADV_SYNC_CTE_ENABLED, enable); in hci_df_set_cl_cte_rx_enable() 361 if (sync->handle != sys_le16_to_cpu(rp->sync_handle)) { in hci_df_set_cl_cte_rx_enable() 364 sync->cte_types = (enable ? params->cte_types : 0); in hci_df_set_cl_cte_rx_enable() 1024 bt_df_set_per_adv_sync_cte_rx_enable(struct bt_le_per_adv_sync *sync, bool enable, in bt_df_set_per_adv_sync_cte_rx_enable() argument [all …]
|