/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_sync.c | 83 static void sync_ticker_cleanup(struct ll_sync_set *sync, ticker_op_func stop_op_cb); 121 struct ll_sync_set *sync; in ll_sync_create() local 126 if (!scan || scan->periodic.sync) { in ll_sync_create() 132 if (!scan_coded || scan_coded->periodic.sync) { in ll_sync_create() 148 sync = ull_sync_create(sid, sync_timeout, skip, sync_cte_type, rx_enable, nodups); in ll_sync_create() 149 if (!sync) { in ll_sync_create() 165 sync->peer_id_addr_type = adv_addr_type; in ll_sync_create() 166 (void)memcpy(sync->peer_id_addr, adv_addr, BDADDR_SIZE); in ll_sync_create() 175 sync->peer_id_addr_type = adv_addr_type; in ll_sync_create() 176 (void)memcpy(sync->peer_id_addr, adv_addr, in ll_sync_create() [all …]
|
D | ull_sync_internal.h | 9 uint16_t ull_sync_handle_get(struct ll_sync_set *sync); 11 void ull_sync_release(struct ll_sync_set *sync); 12 void ull_sync_setup_addr_check(struct ll_sync_set *sync, struct ll_scan_set *scan, 14 bool ull_sync_setup_sid_match(struct ll_sync_set *sync, struct ll_scan_set *scan, uint8_t sid); 16 struct ll_sync_set *sync, 21 void ull_sync_setup_reset(struct ll_sync_set *sync); 25 int ull_sync_slot_update(struct ll_sync_set *sync, uint32_t slot_plus_us, 27 struct ll_sync_set *ull_sync_is_valid_get(struct ll_sync_set *sync);
|
D | ull_adv_sync.c | 98 static inline void sync_release(struct ll_adv_sync_set *sync); 99 static inline uint16_t sync_handle_get(const struct ll_adv_sync_set *sync); 100 static uint32_t sync_time_get(const struct ll_adv_sync_set *sync, 102 static inline uint8_t sync_remove(struct ll_adv_sync_set *sync, 137 struct ll_adv_sync_set *sync; in ll_adv_sync_param_set() local 153 lll_sync = adv->lll.sync; in ll_adv_sync_param_set() 159 sync = sync_acquire(); in ll_adv_sync_param_set() 160 if (!sync) { in ll_adv_sync_param_set() 165 lll_sync = &sync->lll; in ll_adv_sync_param_set() 166 lll->sync = lll_sync; in ll_adv_sync_param_set() [all …]
|
D | ull_scan_aux.c | 150 return (!scan->periodic.cancelled) ? scan->periodic.sync : NULL; in sync_create_get() 158 sync_iso_create_get(struct ll_sync_set *sync) in sync_iso_create_get() argument 161 return sync->iso.sync_iso; in sync_iso_create_get() 185 struct ll_sync_set *sync; in ull_scan_aux_setup() local 220 sync = sync_create_get(scan); in ull_scan_aux_setup() 239 sync = sync_create_get(scan); in ull_scan_aux_setup() 307 sync = (void *)scan; in ull_scan_aux_setup() 310 sync = NULL; in ull_scan_aux_setup() 314 sync = HDR_LLL2ULL(sync_lll); in ull_scan_aux_setup() 320 sync = sync_create_get(scan); in ull_scan_aux_setup() [all …]
|
D | ull_sched.c | 337 if (aux->lll.adv->sync) { in group_free_slot_get() 338 const struct ll_adv_sync_set *sync; in group_free_slot_get() local 340 sync = HDR_LLL2ULL(aux->lll.adv->sync); in group_free_slot_get() 341 if (sync->is_started) { in group_free_slot_get() 342 *ticks_anchor += sync->ull.ticks_slot; in group_free_slot_get() 647 struct ll_adv_sync_set *sync; in ull_hdr_get_cb() local 649 sync = HDR_LLL2ULL(aux->lll.adv->sync); in ull_hdr_get_cb() 650 if (sync->ull.ticks_slot > *ticks_slot) { in ull_hdr_get_cb() 651 *ticks_slot = sync->ull.ticks_slot; in ull_hdr_get_cb() 663 struct ll_adv_sync_set *sync; in ull_hdr_get_cb() local [all …]
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_rx/src/ |
D | common.c | 42 struct ll_sync_set *sync; in common_create_per_sync_set() local 59 sync = scan->periodic.sync; in common_create_per_sync_set() 60 g_per_sync->handle = ull_sync_handle_get(sync); in common_create_per_sync_set() 61 sync->lll.phy = PHY_2M; in common_create_per_sync_set() 63 sync->timeout_reload = 1; in common_create_per_sync_set()
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/ |
D | ull_sync.c | 46 struct ll_sync_set *sync; in ull_sync_is_enabled_get() local 48 sync = ull_sync_set_get(handle); in ull_sync_is_enabled_get() 49 if (!sync) { in ull_sync_is_enabled_get() 53 return sync; in ull_sync_is_enabled_get() 56 uint16_t ull_sync_handle_get(struct ll_sync_set *sync) in ull_sync_handle_get() argument
|
/Zephyr-latest/include/zephyr/input/ |
D | input.h | 40 uint8_t sync; member 71 uint8_t type, uint16_t code, int32_t value, bool sync, 81 uint16_t code, int32_t value, bool sync, in input_report_key() argument 84 return input_report(dev, INPUT_EV_KEY, code, !!value, sync, timeout); in input_report_key() 93 uint16_t code, int32_t value, bool sync, in input_report_rel() argument 96 return input_report(dev, INPUT_EV_REL, code, value, sync, timeout); in input_report_rel() 105 uint16_t code, int32_t value, bool sync, in input_report_abs() argument 108 return input_report(dev, INPUT_EV_ABS, code, value, sync, timeout); in input_report_abs()
|
/Zephyr-latest/modules/lvgl/ |
D | lvgl_zephyr_osal.c | 100 lv_result_t lv_thread_sync_init(lv_thread_sync_t *sync) in lv_thread_sync_init() argument 104 ret = k_sem_init(sync, 0, 1); in lv_thread_sync_init() 113 lv_result_t lv_thread_sync_wait(lv_thread_sync_t *sync) in lv_thread_sync_wait() argument 117 ret = k_sem_take(sync, K_FOREVER); in lv_thread_sync_wait() 126 lv_result_t lv_thread_sync_signal(lv_thread_sync_t *sync) in lv_thread_sync_signal() argument 128 k_sem_give(sync); in lv_thread_sync_signal() 132 lv_result_t lv_thread_sync_signal_isr(lv_thread_sync_t *sync) in lv_thread_sync_signal_isr() argument 134 k_sem_give(sync); in lv_thread_sync_signal_isr() 138 lv_result_t lv_thread_sync_delete(lv_thread_sync_t *sync) in lv_thread_sync_delete() argument 140 ARG_UNUSED(sync); in lv_thread_sync_delete()
|
/Zephyr-latest/samples/drivers/ipm/ipm_esp32/remote/src/ |
D | main.c | 15 struct k_sem sync; variable 20 k_sem_give(&sync); in ipm_receive_callback() 25 k_sem_init(&sync, 0, 1); in main() 36 k_sem_take(&sync, K_FOREVER); in main()
|
/Zephyr-latest/tests/bsim/bluetooth/host/adv/periodic/src/ |
D | per_adv_sync.c | 110 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 119 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb() 125 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 133 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 204 static void create_pa_sync(struct bt_le_per_adv_sync **sync) in create_pa_sync() argument 215 err = bt_le_per_adv_sync_create(&sync_create_param, sync); in create_pa_sync() 242 struct bt_le_per_adv_sync *sync = NULL; in main_per_adv_sync() local 251 create_pa_sync(&sync); in main_per_adv_sync() 262 struct bt_le_per_adv_sync *sync = NULL; in main_per_adv_sync_app_not_scanning() local 278 create_pa_sync(&sync); in main_per_adv_sync_app_not_scanning() [all …]
|
/Zephyr-latest/tests/kernel/smp_abort/src/ |
D | main.c | 23 volatile bool *sync; member 28 volatile bool sync[NUM_THREADS]; variable 36 *(var->sync) = true; /* Flag that ISR is in progress */ in isr() 72 isr_args[i].sync = &sync[i]; in ZTEST() 73 isr_args[i].wait = &sync[(i + 1) % NUM_THREADS]; in ZTEST()
|
/Zephyr-latest/samples/drivers/ipm/ipm_esp32/src/ |
D | main.c | 17 static struct k_sem sync; variable 26 k_sem_give(&sync); in ipm_receive_callback() 33 k_sem_init(&sync, 0, 1); in main() 51 ret = k_sem_take(&sync, K_MSEC(5000)); in main()
|
/Zephyr-latest/modules/canopennode/ |
D | canopen_sync.c | 25 bool sync; in canopen_sync_thread() local 35 sync = CO_process_SYNC(CO, elapsed); in canopen_sync_thread() 36 CO_process_RPDO(CO, sync); in canopen_sync_thread() 37 CO_process_TPDO(CO, sync, elapsed); in canopen_sync_thread()
|
/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/ |
D | receiver.c | 120 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 128 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 137 static void biginfo_cb(struct bt_le_per_adv_sync *sync, in biginfo_cb() argument 301 static int create_pa_sync(struct bt_le_per_adv_sync **sync) in create_pa_sync() argument 315 err = bt_le_per_adv_sync_create(&sync_create_param, sync); in create_pa_sync() 328 err = bt_le_per_adv_sync_delete(*sync); in create_pa_sync() 341 static int create_big_sync(struct bt_iso_big **big, struct bt_le_per_adv_sync *sync) in create_big_sync() argument 381 err = bt_iso_big_sync(sync, &big_sync_param, big); in create_big_sync() 400 static int cleanup(struct bt_le_per_adv_sync *sync, struct bt_iso_big *big) in cleanup() argument 405 if (!per_adv_lost && sync) { in cleanup() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | has_client.c | 141 bool sync = false; in cmd_has_client_preset_set() local 155 sync = true; in cmd_has_client_preset_set() 172 err = bt_has_client_preset_set(inst, index, sync); in cmd_has_client_preset_set() 183 bool sync = false; in cmd_has_client_preset_next() local 190 sync = true; in cmd_has_client_preset_next() 207 err = bt_has_client_preset_next(inst, sync); in cmd_has_client_preset_next() 218 bool sync = false; in cmd_has_client_preset_prev() local 225 sync = true; in cmd_has_client_preset_prev() 242 err = bt_has_client_preset_prev(inst, sync); in cmd_has_client_preset_prev()
|
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/ |
D | test_driver.c | 16 struct k_sem sync; member 28 k_sem_take(&data->sync, K_FOREVER); in test_driver_action() 51 k_sem_give(&data->sync); in test_driver_pm_done() 72 k_sem_init(&data->sync, 0, 1); in test_driver_init()
|
/Zephyr-latest/samples/bluetooth/peripheral_past/src/ |
D | main.c | 18 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 35 bt_le_per_adv_sync_get_index(sync), le_addr, info->interval, in sync_cb() 41 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 49 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 54 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 65 "data: %s\n", bt_le_per_adv_sync_get_index(sync), le_addr, in recv_cb()
|
/Zephyr-latest/samples/bluetooth/periodic_sync/src/ |
D | main.c | 130 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 139 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb() 145 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 153 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 158 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 170 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb() 183 struct bt_le_per_adv_sync *sync; in main() local 255 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main() 268 err = bt_le_per_adv_sync_delete(sync); in main()
|
/Zephyr-latest/samples/bluetooth/direction_finding_connectionless_rx/src/ |
D | main.c | 57 static void sync_cb(struct bt_le_per_adv_sync *sync, 59 static void term_cb(struct bt_le_per_adv_sync *sync, 61 static void recv_cb(struct bt_le_per_adv_sync *sync, 67 static void cte_recv_cb(struct bt_le_per_adv_sync *sync, 158 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 167 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb() 173 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 181 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 191 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 203 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb() [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/ |
D | bap_broadcast_sink.c | 44 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, 46 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, 49 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, 247 static void broadcast_pa_recv(struct bt_le_per_adv_sync *sync, in broadcast_pa_recv() argument 270 static void broadcast_pa_synced(struct bt_le_per_adv_sync *sync, in broadcast_pa_synced() argument 273 if (sync == bcast_pa_sync) { in broadcast_pa_synced() 274 printk("PA sync %p synced for broadcast sink with broadcast ID 0x%06X\n", sync, in broadcast_pa_synced() 281 static void broadcast_pa_terminated(struct bt_le_per_adv_sync *sync, in broadcast_pa_terminated() argument 284 if (sync == bcast_pa_sync) { in broadcast_pa_terminated() 285 printk("PA sync %p lost with reason %u\n", sync, info->reason); in broadcast_pa_terminated()
|
/Zephyr-latest/tests/arch/x86/info/src/ |
D | timer.c | 13 static uint32_t sync(const struct device *cmos) in sync() function 63 start = sync(cmos); in timer() 64 end = sync(cmos); in timer()
|
/Zephyr-latest/samples/bluetooth/iso_receive/src/ |
D | main.c | 132 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 141 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb() 147 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 155 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 161 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 173 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb() 177 static void biginfo_cb(struct bt_le_per_adv_sync *sync, in biginfo_cb() argument 189 bt_le_per_adv_sync_get_index(sync), le_addr, biginfo->sid, in biginfo_cb() 296 struct bt_le_per_adv_sync *sync; in main() local 385 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main() [all …]
|
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_chains/src/ |
D | common.c | 83 adv_set->lll.sync = &g_sync_set.lll; in common_create_adv_set() 111 struct ll_adv_sync_set *sync; in common_release_adv_set() local 113 if (adv_set->lll.sync) { in common_release_adv_set() 114 sync = HDR_LLL2ULL(adv_set->lll.sync); in common_release_adv_set() 115 if (sync) { in common_release_adv_set() 116 sync->is_started = 0U; in common_release_adv_set() 119 lll_adv_data_reset(&sync->lll.data); in common_release_adv_set() 121 adv_set->lll.sync = NULL; in common_release_adv_set() 150 lll_sync = adv_set->lll.sync; in common_create_per_adv_chain() 241 lll_sync = adv_set->lll.sync; in common_release_per_adv_chain() [all …]
|
/Zephyr-latest/samples/bluetooth/central_past/src/ |
D | main.c | 203 static void sync_cb(struct bt_le_per_adv_sync *sync, in sync_cb() argument 212 bt_le_per_adv_sync_get_index(sync), le_addr, in sync_cb() 218 static void term_cb(struct bt_le_per_adv_sync *sync, in term_cb() argument 226 bt_le_per_adv_sync_get_index(sync), le_addr); in term_cb() 229 static void recv_cb(struct bt_le_per_adv_sync *sync, in recv_cb() argument 241 bt_le_per_adv_sync_get_index(sync), le_addr, info->tx_power, in recv_cb() 254 struct bt_le_per_adv_sync *sync; in main() local 317 err = bt_le_per_adv_sync_create(&sync_create_param, &sync); in main() 333 err = bt_le_per_adv_sync_transfer(sync, default_conn, 0); in main()
|