Home
last modified time | relevance | path

Searched full:last (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/Zephyr-Core-3.4.0/subsys/bluetooth/controller/util/
Ddbuf.c19 uint8_t first, last; in dbuf_alloc() local
22 last = hdr->last; in dbuf_alloc()
23 if (first == last) { in dbuf_alloc()
25 last++; in dbuf_alloc()
26 if (last == DOUBLE_BUFFER_SIZE) { in dbuf_alloc()
27 last = 0U; in dbuf_alloc()
32 /* LLL has not consumed the first PDU. Revert back the `last` so in dbuf_alloc()
37 * 1. LLL runs before `pdu->last` is reverted, then `pdu->first` in dbuf_alloc()
38 * has changed, hence restore `pdu->last` and return index of in dbuf_alloc()
40 * 2. LLL runs after `pdu->last` is reverted, then `pdu->first` in dbuf_alloc()
[all …]
Dmfifo.h8 * Memory FIFO permitting enqueue at tail (last) and dequeue from head (first).
17 * Invariant: last-index refers to the buffer that is safe to write while in
18 * limbo-state. Outside limbo state, last-index refers one buffer ahead of what
51 uint8_t l; /* Last. Write index */ \
62 * @details API 1 and 2. An MFIFO is empty if first == last
82 static inline bool mfifo_enqueue_idx_get(uint8_t count, uint8_t first, uint8_t last, in mfifo_enqueue_idx_get() argument
86 last = last + 1; in mfifo_enqueue_idx_get()
87 if (last == count) { in mfifo_enqueue_idx_get()
88 last = 0U; in mfifo_enqueue_idx_get()
93 * first == last, but we just advanced a copy of the write-index before in mfifo_enqueue_idx_get()
[all …]
Ddbuf.h16 /* Last enqueued element. It will be used after buffer is swapped. */
17 uint8_t last; member
39 * @brief Provides pointer to last allocated element.
46 * @return Pointer to last allocated element.
50 return &hdr->data[hdr->last * hdr->elem_size]; in dbuf_peek()
61 hdr->last = idx; in dbuf_enqueue()
67 * Latest enqueued element is pointed by last member of dbuf_hdr.
81 * @brief Returns pointer to the current element, the one after last swap operation.
85 * dbuf_latest_get. The pointer will be the same as the one pointed by last if the dbuf_alloc
86 * is not called after last dbuf_latest_get call.
[all …]
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_df_internal.h20 /* Returns pointer to last allocated DF sync configuration. If it is called before
26 return &df_cfg->cfg[df_cfg->last]; in lll_df_sync_cfg_peek()
32 df_cfg->last = idx; in lll_df_sync_cfg_enqueue()
36 * that were enqueued by last lll_df_sync_cfg_enqueue call.
41 * are the one that are available after last buffer swap done by call
49 /* Return information if DF sync configuration data were modified since last
54 return df_cfg->first != df_cfg->last; in lll_df_sync_cfg_is_modified()
Dlll_adv_pdu.h26 pdu->last = idx; in lll_adv_pdu_enqueue()
45 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
66 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.last]; in lll_adv_scan_rsp_peek()
75 if (first != pdu->last) { in lll_adv_pdu_latest_peek()
112 return (void *)lll->data.pdu[lll->data.last]; in lll_adv_aux_data_peek()
178 uint8_t last = lll->data.last; in lll_adv_sync_data_peek() local
182 *extra_data = lll->data.extra_data[last]; in lll_adv_sync_data_peek()
186 return (void *)lll->data.pdu[last]; in lll_adv_sync_data_peek()
198 return lll->data.extra_data[lll->data.last]; in lll_adv_sync_extra_data_peek()
235 struct pdu_adv *last; in lll_adv_pdu_linked_append_end() local
[all …]
Dlll_df.c134 uint8_t first, last; in lll_df_sync_cfg_alloc() local
136 /* TODO: Make this unique mechanism to update last element in double in lll_df_sync_cfg_alloc()
140 last = df_cfg->last; in lll_df_sync_cfg_alloc()
141 if (first == last) { in lll_df_sync_cfg_alloc()
143 last++; in lll_df_sync_cfg_alloc()
144 if (last == DOUBLE_BUFFER_SIZE) { in lll_df_sync_cfg_alloc()
145 last = 0U; in lll_df_sync_cfg_alloc()
150 /* LLL has not consumed the first PDU. Revert back the `last` so in lll_df_sync_cfg_alloc()
155 * 1. LLL runs before `pdu->last` is reverted, then `pdu->first` in lll_df_sync_cfg_alloc()
156 * has changed, hence restore `pdu->last` and return index of in lll_df_sync_cfg_alloc()
[all …]
Dlll_adv.c60 static void *adv_extra_data_allocate(struct lll_adv_pdu *pdu, uint8_t last);
61 static int adv_extra_data_free(struct lll_adv_pdu *pdu, uint8_t last);
297 pdu->last = 0U; in lll_adv_data_reset()
316 if (first == pdu->last) { in lll_adv_data_dequeue()
335 uint8_t last; in lll_adv_data_release() local
338 last = pdu->last; in lll_adv_data_release()
339 p = pdu->pdu[last]; in lll_adv_data_release()
341 pdu->pdu[last] = NULL; in lll_adv_data_release()
345 last++; in lll_adv_data_release()
346 if (last == DOUBLE_BUFFER_SIZE) { in lll_adv_data_release()
[all …]
Dlll_adv_types.h8 * The first and last members are used to make modification to AD data to be
10 * the array element indexed by the member last.
17 uint8_t last; member
/Zephyr-Core-3.4.0/tests/bluetooth/host/keys/bt_keys_update_usage/src/
Dmain.c37 /* Holds the last key reference updated */
64 * - Last updated key reference isn't changed
74 "bt_keys_update_usage() changed last updated key reference unexpectedly"); in ZTEST()
82 * - ID and address pair used are the last added pair to the list
85 * - Last updated key reference isn't changed
95 "bt_keys_update_usage() changed last updated key reference unexpectedly"); in ZTEST()
107 * - Last updated key reference matches the last updated key reference
135 "bt_keys_update_usage() changed last updated key reference unexpectedly"); in ZTEST()
Dtest_suite_save_aging_counter.c49 * - Last updated key reference matches the last updated key reference
77 "bt_keys_update_usage() changed last updated key reference unexpectedly"); in ZTEST()
/Zephyr-Core-3.4.0/tests/bluetooth/controller/mock_ctrl/include/lll/
Dlll_adv_pdu.h13 pdu->last = idx; in lll_adv_pdu_enqueue()
30 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
50 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.last]; in lll_adv_scan_rsp_peek()
66 return (void *)lll->data.pdu[lll->data.last]; in lll_adv_aux_data_peek()
106 uint8_t last = lll->data.last; in lll_adv_sync_data_peek() local
110 *extra_data = lll->data.extra_data[last]; in lll_adv_sync_data_peek()
114 return (void *)lll->data.pdu[last]; in lll_adv_sync_data_peek()
Dlll_adv_types.h8 * The first and last members are used to make modification to AD data to be
10 * the array element indexed by the member last.
17 uint8_t last; member
/Zephyr-Core-3.4.0/lib/libc/minimal/source/math/
Dsqrtf.c13 float root, last, diff; in sqrtf() local
22 last = root; in sqrtf()
24 diff = root - last; in sqrtf()
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ll_sw/openisa/lll/
Dlll_adv_types.h8 * The first and last members are used to make modification to AD data to be
10 * the array element indexed by the member last.
17 uint8_t last; member
Dlll_adv.c171 pdu->last = 0U; in lll_adv_data_reset()
179 uint8_t last; in lll_adv_data_release() local
182 last = pdu->last; in lll_adv_data_release()
183 p = pdu->pdu[last]; in lll_adv_data_release()
184 pdu->pdu[last] = NULL; in lll_adv_data_release()
187 last++; in lll_adv_data_release()
188 if (last == DOUBLE_BUFFER_SIZE) { in lll_adv_data_release()
189 last = 0U; in lll_adv_data_release()
191 p = pdu->pdu[last]; in lll_adv_data_release()
193 pdu->pdu[last] = NULL; in lll_adv_data_release()
[all …]
Dlll_adv_pdu.h13 pdu->last = idx; in lll_adv_pdu_enqueue()
31 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek()
47 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.last]; in lll_adv_scan_rsp_peek()
/Zephyr-Core-3.4.0/drivers/net/
Dslip.c130 if (slip->last && slip->last->len) { in slip_poll_handler()
185 slip->last = NULL; in process_msg()
244 slip->last = net_pkt_get_frag(slip->rx, SLIP_FRAG_LEN, in slip_input_byte()
246 if (!slip->last) { in slip_input_byte()
254 net_pkt_append_buffer(slip->rx, slip->last); in slip_input_byte()
261 /* It is possible that slip->last is not set during the startup in slip_input_byte()
265 if (!slip->last) { in slip_input_byte()
269 if (!net_buf_tailroom(slip->last)) { in slip_input_byte()
278 slip->last = NULL; in slip_input_byte()
283 net_buf_frag_insert(slip->last, buf); in slip_input_byte()
[all …]
/Zephyr-Core-3.4.0/drivers/entropy/
Dentropy_nrf5.c76 uint8_t last; member
125 uint32_t last = rngp->last; in rng_pool_get() local
142 available = (last - first) & mask; in rng_pool_get()
160 * If this call is the last one accessing the pool, move read index in rng_pool_get()
183 uint8_t last = rngp->last; in rng_pool_put() local
187 if (((last - first) & mask) == mask) { in rng_pool_put()
191 rngp->buffer[last] = byte; in rng_pool_put()
192 rngp->last = (last + 1) & mask; in rng_pool_put()
201 rngp->last = 0U; in rng_pool_init()
Dentropy_smartbond.c22 uint8_t last; member
109 uint32_t last = rngp->last; in rng_pool_get() local
126 available = (last - first) & mask; in rng_pool_get()
144 * If this call is the last one accessing the pool, move read index in rng_pool_get()
167 uint8_t last = rngp->last; in rng_pool_put() local
171 if (((last - first) & mask) == mask) { in rng_pool_put()
175 rngp->buffer[last] = byte; in rng_pool_put()
176 rngp->last = (last + 1) & mask; in rng_pool_put()
201 rngp->last = 0U; in rng_pool_init()
/Zephyr-Core-3.4.0/include/zephyr/arch/xtensa/
Dcache.h31 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range() local
34 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_range()
46 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range() local
49 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_and_invd_range()
61 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_invd_range() local
64 for (line = first; bytes && line < last; line += step) { in arch_dcache_invd_range()
/Zephyr-Core-3.4.0/tests/kernel/workq/critical/src/
Dmain.c86 int64_t last; in critical_loop() local
89 last = mseconds = k_uptime_get(); in critical_loop()
90 TC_PRINT("Start %s at %u\n", tag, (uint32_t)last); in critical_loop()
94 if (now < last) { in critical_loop()
96 (uint32_t)now, (uint32_t)last); in critical_loop()
98 last = now; in critical_loop()
/Zephyr-Core-3.4.0/tests/arch/x86/info/src/
Dtimer.c15 uint32_t this, last; in sync() local
25 last = this; in sync()
31 } while (last == this); in sync()
/Zephyr-Core-3.4.0/subsys/bluetooth/controller/ticker/
Dticker.c117 uint8_t last:1; member
266 uint8_t middle; /* Slot index of last managed user op.
270 uint8_t last; /* Slot index of last user operation */ member
290 uint32_t ticks_current; /* Absolute ticks elapsed at last
759 /* If this is not the last ticker, increment the
823 /* Age is time since last expiry */
850 /* Age is time since last expiry */
1081 instance->expire_infos[i].last = is_last;
1086 } else if (instance->expire_infos[i].last && i < TICKER_EXPIRE_INFO_MAX - 1) {
1087 instance->expire_infos[i].last = 0;
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/wsen_pdus/
Dwsen_pdus.h25 /* Last pressure sample */
28 /* Last temperature sample */
/Zephyr-Core-3.4.0/subsys/net/l2/ethernet/gptp/
Dgptp_state.h300 /** Precise Origin Timestamp of the last received PortSyncSync. */
309 /** GM Phase Change of the last received PortSyncSync. */
312 /** Follow Up Correction Field of the last received PortSyncSync. */
315 /** Upstream Tx Time of the last received PortSyncSync. */
321 /** Rate Ratio of the last received PortSyncSync. */
324 /** GM Freq Change of the last received PortSyncSync. */
330 /** GM Time Base Indicator of the last received PortSyncSync. */
333 /** Received Port Number of the last received PortSyncSync. */
348 /** Source Port Identity of the last received PortSyncSync. */
543 /** Last announce message time source. */
[all …]

12345678910>>...31