Home
last modified time | relevance | path

Searched refs:instant (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/tests/bluetooth/controller/ctrl_chmu/src/
Dmain.c54 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
56 return ((event_counter(conn) - instant) & 0xFFFF) <= 0x7FFF; in is_instant_reached()
66 uint16_t instant; in ZTEST() local
68 .instant = 6, in ZTEST()
96 instant = sys_le16_to_cpu(pdu->llctrl.chan_map_ind.instant); in ZTEST()
102 while (!is_instant_reached(&conn, instant)) { in ZTEST()
150 .instant = 6, in ZTEST()
217 .instant = 6, in ZTEST()
220 uint16_t instant = 6; in ZTEST() local
244 while (!is_instant_reached(&conn, instant)) { in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_conn_update/src/
Dmain.c59 .instant = 6U };
158 .instant = 6U
209 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
211 return ((event_counter(conn) - instant) & 0xFFFF) <= 0x7FFF; in is_instant_reached()
247 uint16_t instant; in ZTEST() local
283 conn_update_ind.instant = event_counter(&conn) + 6U; in ZTEST()
292 instant = sys_le16_to_cpu(pdu->llctrl.conn_update_ind.instant); in ZTEST()
298 while (!is_instant_reached(&conn, instant)) { in ZTEST()
383 uint16_t instant; in ZTEST() local
517 conn_update_ind.instant = event_counter(&conn) + 6U; in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_collision/src/
Dmain.c62 .instant = 6U };
144 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
146 return ((event_counter(conn) - instant) & 0xFFFF) <= 0x7FFF; in is_instant_reached()
158 struct pdu_data_llctrl_phy_upd_ind ind = { .instant = 9, in ZTEST()
161 uint16_t instant; in ZTEST() local
276 instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in ZTEST()
282 while (!is_instant_reached(&conn, instant)) { in ZTEST()
328 struct pdu_data_llctrl_phy_upd_ind ind_1 = { .instant = 7, in ZTEST()
331 struct pdu_data_llctrl_phy_upd_ind ind_2 = { .instant = 15, in ZTEST()
334 uint16_t instant; in ZTEST() local
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_phy_update/src/
Dmain.c105 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
107 return ((event_counter(conn) - instant) & 0xFFFF) <= 0x7FFF; in is_instant_reached()
124 struct pdu_data_llctrl_phy_upd_ind ind = { .instant = 8, in ZTEST()
131 uint16_t instant; in ZTEST() local
210 instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in ZTEST()
216 while (!is_instant_reached(&conn, instant)) { in ZTEST()
383 struct pdu_data_llctrl_phy_upd_ind ind = { .instant = 8, in ZTEST()
386 uint16_t instant; in ZTEST() local
448 instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in ZTEST()
454 while (!is_instant_reached(&conn, instant)) { in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/controller/ctrl_cte_req/src/
Dmain.c785 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
794 return (uint16_t)(event_counter(conn) - instant) <= (uint16_t)0x7FFF; in is_instant_reached()
870 static void wait_for_phy_update_instant(uint8_t instant) in wait_for_phy_update_instant() argument
873 while (!is_instant_reached(&conn, instant)) { in wait_for_phy_update_instant()
951 struct pdu_data_llctrl_phy_upd_ind ind = { .instant = events_at_start + in run_phy_update_central()
957 uint16_t instant; in run_phy_update_central() local
973 ind.instant += 1; in run_phy_update_central()
1004 instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in run_phy_update_central()
1009 wait_for_phy_update_instant(instant); in run_phy_update_central()
1030 uint16_t instant; in run_phy_update_peripheral() local
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_llcp_chmu.c121 ctx->data.chmu.instant = ull_conn_event_counter(conn) + CHMU_INSTANT_DELTA; in lp_chmu_send_channel_map_update_ind()
147 if (is_instant_reached_or_passed(ctx->data.chmu.instant, event_counter)) { in lp_chmu_check_instant()
241 if (is_instant_not_passed(ctx->data.chmu.instant, in rp_chmu_st_wait_rx_channel_map_update_ind()
262 if (((event_counter - ctx->data.chmu.instant) & 0xFFFF) <= 0x7FFF) { in rp_chmu_check_instant()
Dull_llcp_internal.h216 uint16_t instant; member
234 uint16_t instant; member
254 uint16_t instant; member
373 static inline bool is_instant_passed(uint16_t instant, uint16_t event_count) in is_instant_passed() argument
390 return ((instant - event_count) & 0xFFFFU) > 0x7FFFU; in is_instant_passed()
393 static inline bool is_instant_not_passed(uint16_t instant, uint16_t event_count) in is_instant_not_passed() argument
410 return ((instant - event_count) & 0xFFFFU) < 0x7FFFU; in is_instant_not_passed()
413 static inline bool is_instant_reached_or_passed(uint16_t instant, uint16_t event_count) in is_instant_reached_or_passed() argument
430 return ((event_count - instant) & 0xFFFFU) <= 0x7FFFU; in is_instant_reached_or_passed()
Dull_conn_iso_types.h37 uint16_t instant; member
Dull_llcp_pdu.c477 ctx->data.pu.instant = sys_le16_to_cpu(pdu->llctrl.phy_upd_ind.instant); in llcp_pdu_decode_phy_update_ind()
489 pdu->llctrl.phy_upd_ind.instant = sys_cpu_to_le16(ctx->data.pu.instant); in llcp_pdu_encode_phy_update_ind()
587 p->instant = sys_cpu_to_le16(ctx->data.cu.instant); in llcp_pdu_encode_conn_update_ind()
600 ctx->data.cu.instant = sys_le16_to_cpu(p->instant); in llcp_pdu_decode_conn_update_ind()
614 p->instant = sys_cpu_to_le16(ctx->data.chmu.instant); in llcp_pdu_encode_chan_map_update_ind()
620 ctx->data.chmu.instant = sys_le16_to_cpu(pdu->llctrl.chan_map_ind.instant); in llcp_pdu_decode_chan_map_update_ind()
Dull_central_iso.c846 uint16_t instant; in ull_central_iso_setup() local
861 instant = MAX(*conn_event_count, event_counter + 1); in ull_central_iso_setup()
886 ((instant - event_counter) * conn->lll.interval * CONN_INT_UNIT_US); in ull_central_iso_setup()
928 cis->central.instant = instant; in ull_central_iso_setup()
954 *conn_event_count = instant; in ull_central_iso_setup()
973 cis->central.instant = ull_conn_event_counter(conn) + 3U; in ull_central_iso_cis_offset_get()
974 *conn_event_count = cis->central.instant; in ull_central_iso_cis_offset_get()
1175 latency_acl = cis->central.instant - ull_conn_event_counter(conn); in mfy_cis_offset_get()
Dpdu.h530 uint16_t instant; member
635 uint16_t instant; member
640 uint16_t instant; member
803 uint16_t instant; member
1107 uint16_t instant; member
1112 uint16_t instant; member
Dull_conn_internal.h92 uint16_t timeout, uint16_t instant);
Dull_llcp_conn_upd.c173 ctx->data.cu.instant); in cu_update_conn_parameters()
244 ctx->data.cu.instant = ull_conn_event_counter(conn) + conn->lll.latency + in cu_prepare_update_ind()
642 if (is_instant_reached_or_passed(ctx->data.cu.instant, event_counter)) { in lp_cu_check_instant()
1227 if (is_instant_reached_or_passed(ctx->data.cu.instant, event_counter)) { in rp_cu_check_instant()
1270 if (is_instant_not_passed(ctx->data.cu.instant, in rp_cu_st_wait_rx_conn_update_ind()
Dull_llcp_phy.c220 if (is_instant_reached_or_passed(ctx->data.pu.instant, in pu_check_update_ind()
365 ctx->data.pu.instant = ull_conn_event_counter(conn) + conn->lll.latency + in pu_prepare_instant()
368 ctx->data.pu.instant = 0; in pu_prepare_instant()
773 if (is_instant_reached_or_passed(ctx->data.pu.instant, ull_conn_event_counter(conn))) { in lp_pu_check_instant()
1194 if (is_instant_reached_or_passed(ctx->data.pu.instant, ull_conn_event_counter(conn))) { in rp_pu_check_instant()
Dull_adv_sync.c2551 uint16_t instant; local
2587 instant = lll_sync->event_counter + 6U;
2588 chm_upd_ind->instant = sys_cpu_to_le16(instant);
2603 lll_sync->chm_instant = instant;
Dull_conn.c2218 uint16_t timeout, uint16_t instant) in ull_conn_update_parameters() argument
2242 instant_latency = (event_counter - instant) & 0xFFFF; in ull_conn_update_parameters()
/Zephyr-latest/doc/kernel/
Dtimeutil.rst11 nominally constant rate from zero at the instant the system started. The POSIX
77 * The rate of discrete instant representation change. For example Zephyr
81 * The absolute offset required to align the two scales at a single instant.
91 * An instant in a time scale is represented by an (unsigned) 64-bit integer,
97 instant in both the reference and local time scales.
98 * :c:struct:`timeutil_sync_state` provides storage for an initial instant, a
120 * A *time scale* is a way of representing an instant relative to an origin
149 time has a fixed offset from UT at any given instant, primarily
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c248 pdu->llctrl.phy_upd_ind.instant = p->instant; in helper_pdu_encode_phy_update_ind()
326 pdu->llctrl.conn_update_ind.instant = sys_cpu_to_le16(p->instant); in helper_pdu_encode_conn_update_ind()
348 pdu->llctrl.chan_map_ind.instant = p->instant; in helper_pdu_encode_channel_map_update_ind()
798 zassert_equal(pdu->llctrl.phy_upd_ind.instant, p->instant, in helper_pdu_verify_phy_update_ind()
951 zassert_equal(pdu->llctrl.conn_update_ind.instant, p->instant, in helper_pdu_verify_conn_update_ind()
997 zassert_equal(pdu->llctrl.chan_map_ind.instant, p->instant, in helper_pdu_verify_channel_map_update_ind()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_adv_sync.c101 static bool is_instant_or_past(uint16_t event_counter, uint16_t instant) in is_instant_or_past() argument
105 instant_latency = (event_counter - instant) & in is_instant_or_past()
Dlll_adv_iso.c531 term->instant = lll->ctrl_instant; in isr_tx_common()
554 chm->instant = lll->ctrl_instant; in isr_tx_common()
Dlll_sync_iso.c1439 lll->ctrl_instant = term->instant; in isr_rx_ctrl_recv()
1453 lll->ctrl_instant = chm->instant; in isr_rx_ctrl_recv()
/Zephyr-latest/include/zephyr/bluetooth/
Dhci_vs.h396 uint32_t instant; member
445 uint32_t instant; member
/Zephyr-latest/tests/bluetooth/controller/ctrl_cis_create/src/
Dmain.c65 static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) in is_instant_reached() argument
67 return ((event_counter(conn) - instant) & 0xFFFF) <= 0x7FFF; in is_instant_reached()
/Zephyr-latest/doc/connectivity/bluetooth/api/
Dgatt.rst60 pass a callback to be called when it is necessary to know the exact instant when
/Zephyr-latest/doc/connectivity/bluetooth/
Dbluetooth-ctlr-arch.rst201 …* Handling of procedure flow from init (possibly through instant) to completion and host notificat…
208 …* Basically some procedures can exist in parallel but some can't - for instance only one instant b…

12