Home
last modified time | relevance | path

Searched refs:random_delay (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/bluetooth/mesh/
Ddelayable_msg.c46 struct k_work_delayable random_delay; member
47 } access_delayable_msg = {.random_delay = Z_WORK_DELAYABLE_INITIALIZER(delayable_msg_handler)};
111 k_work_reschedule(&access_delayable_msg.random_delay, delay); in reschedule_delayable_msg()
226 uint16_t random_delay; in bt_mesh_delayable_msg_manage() local
271 bt_rand(&random_delay, sizeof(uint16_t)); in bt_mesh_delayable_msg_manage()
272 random_delay = 20 + random_delay % (BT_MESH_ADDR_IS_UNICAST(ctx->recv_dst) ? 30 : 480); in bt_mesh_delayable_msg_manage()
273 msg->fired_time = k_uptime_get_32() + random_delay; in bt_mesh_delayable_msg_manage()
305 k_work_cancel_delayable(&access_delayable_msg.random_delay); in bt_mesh_delayable_msg_stop()
Dpb_adv.c157 uint16_t random_delay; in tx_schedule() local
164 (void)bt_rand(&random_delay, sizeof(random_delay)); in tx_schedule()
165 random_delay = 20 + (random_delay % 30); in tx_schedule()
167 LOG_DBG("Next PDU delayed by %ums", random_delay); in tx_schedule()
169 (void)k_work_schedule(&tx_work, K_MSEC(random_delay)); in tx_schedule()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_adv.c1961 uint32_t random_delay; local
1968 lll_rand_isr_get(&random_delay, sizeof(random_delay));
1969 random_delay %= ticks_delay_window;
1970 random_delay += (ticks_delay_window_offset + 1);
1975 random_delay,
1983 return random_delay;
2034 uint32_t random_delay; local
2059 random_delay = ticker_update_rand(adv, delay_remain - prepare_overhead,
2064 adv->delay = random_delay;
2348 uint32_t random_delay; local
[all …]