/Zephyr-latest/subsys/bluetooth/controller/util/ |
D | dbuf.c | 19 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() 44 hdr->last = first; in dbuf_alloc() 48 hdr->last = last; in dbuf_alloc() 49 last++; in dbuf_alloc() 50 if (last == DOUBLE_BUFFER_SIZE) { in dbuf_alloc() [all …]
|
D | mfifo.h | 81 uint8_t last, uint8_t *idx) in mfifo_enqueue_idx_get() argument 84 last = last + 1; in mfifo_enqueue_idx_get() 85 if (last == count) { in mfifo_enqueue_idx_get() 86 last = 0U; in mfifo_enqueue_idx_get() 95 if (last == first) { in mfifo_enqueue_idx_get() 99 *idx = last; /* Emit the allocated buffer's index */ in mfifo_enqueue_idx_get() 118 uint8_t idx, void *mem, uint8_t *last) in mfifo_by_idx_enqueue() argument 121 void **p = (void **)(fifo + (*last) * size); /* buffer preceding idx */ in mfifo_by_idx_enqueue() 125 *last = idx; /* Commit: Update write index */ in mfifo_by_idx_enqueue() 145 uint8_t last, void **mem) in mfifo_enqueue_get() argument [all …]
|
D | dbuf.h | 17 uint8_t last; member 50 return &hdr->data[hdr->last * hdr->elem_size]; in dbuf_peek() 61 hdr->last = idx; in dbuf_enqueue() 106 return hdr->first != hdr->last; in dbuf_is_modified()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_df.c | 134 uint8_t first, last; in lll_df_sync_cfg_alloc() local 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() 162 df_cfg->last = first; in lll_df_sync_cfg_alloc() 166 df_cfg->last = last; in lll_df_sync_cfg_alloc() 167 last++; in lll_df_sync_cfg_alloc() 168 if (last == DOUBLE_BUFFER_SIZE) { in lll_df_sync_cfg_alloc() [all …]
|
D | lll_adv_pdu.h | 29 pdu->last = idx; in lll_adv_pdu_enqueue() 48 return (void *)lll->adv_data.pdu[lll->adv_data.last]; in lll_adv_data_peek() 69 return (void *)lll->scan_rsp.pdu[lll->scan_rsp.last]; in lll_adv_scan_rsp_peek() 78 if (first != pdu->last) { in lll_adv_pdu_latest_peek() 115 return (void *)lll->data.pdu[lll->data.last]; in lll_adv_aux_data_peek() 181 uint8_t last = lll->data.last; in lll_adv_sync_data_peek() local 185 *extra_data = lll->data.extra_data[last]; in lll_adv_sync_data_peek() 189 return (void *)lll->data.pdu[last]; in lll_adv_sync_data_peek() 206 return lll->data.extra_data[lll->data.last]; in lll_adv_sync_extra_data_peek() 243 struct pdu_adv *last; in lll_adv_pdu_linked_append_end() local [all …]
|
D | lll_adv.c | 60 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); 294 pdu->last = 0U; in lll_adv_data_reset() 313 if (first == pdu->last) { in lll_adv_data_dequeue() 332 uint8_t last; in lll_adv_data_release() local 335 last = pdu->last; in lll_adv_data_release() 336 p = pdu->pdu[last]; in lll_adv_data_release() 338 pdu->pdu[last] = NULL; in lll_adv_data_release() 342 last++; in lll_adv_data_release() 343 if (last == DOUBLE_BUFFER_SIZE) { in lll_adv_data_release() [all …]
|
D | lll_df_internal.h | 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() 54 return df_cfg->first != df_cfg->last; in lll_df_sync_cfg_is_modified()
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/lll/ |
D | lll_adv_pdu.h | 13 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()
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_nrf5.c | 77 uint8_t last; member 122 uint32_t last = rngp->last; in rng_pool_get() local 139 available = (last - first) & mask; in rng_pool_get() 179 uint8_t last = rngp->last; in rng_pool_put() local 183 if (((last - first) & mask) == mask) { in rng_pool_put() 187 rngp->buffer[last] = byte; in rng_pool_put() 188 rngp->last = (last + 1) & mask; in rng_pool_put() 197 rngp->last = 0U; in rng_pool_init()
|
D | entropy_smartbond.c | 28 uint8_t last; member 139 uint32_t last = rngp->last; in rng_pool_get() local 156 available = (last - first) & mask; in rng_pool_get() 196 uint8_t last = rngp->last; in rng_pool_put() local 200 if (((last - first) & mask) == mask) { in rng_pool_put() 204 rngp->buffer[last] = byte; in rng_pool_put() 205 rngp->last = (last + 1) & mask; in rng_pool_put() 230 rngp->last = 0U; in rng_pool_init()
|
D | entropy_stm32.c | 65 uint8_t last; member 449 uint32_t last = rngp->last; in rng_pool_get() local 466 available = (last - first) & mask; in rng_pool_get() 515 uint8_t last = rngp->last; in rng_pool_put() local 519 if (((last - first) & mask) == mask) { in rng_pool_put() 523 rngp->buffer[last] = byte; in rng_pool_put() 524 rngp->last = (last + 1) & mask; in rng_pool_put() 534 rngp->last = 0U; in rng_pool_init()
|
/Zephyr-latest/drivers/net/ |
D | slip.c | 130 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() 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() 284 slip->last = buf; in slip_input_byte() [all …]
|
/Zephyr-latest/tests/bluetooth/common/testlib/include/testlib/ |
D | addr.h | 14 #define BT_TESTLIB_ADDR_LE_RANDOM_C0_00_00_00_00_(last) \ argument 17 .a = {{last, 0x00, 0x00, 0x00, 0x00, 0xc0}}, \
|
/Zephyr-latest/tests/kernel/workq/critical/src/ |
D | main.c | 86 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-latest/lib/libc/minimal/source/math/ |
D | sqrt.c | 28 int64double_t last; in sqrt() local 53 last = root; in sqrt() 56 if ((root.i ^ last.i) < MAX_D_ERROR_COUNT) { in sqrt()
|
D | sqrtf.c | 28 intfloat_t last; in sqrtf() local 53 last = root; in sqrtf() 56 if ((root.i ^ last.i) < MAX_F_ERROR_COUNT) { in sqrtf()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/lll/ |
D | lll_adv.c | 171 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 …]
|
D | lll_adv_pdu.h | 16 pdu->last = idx; in lll_adv_pdu_enqueue() 34 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()
|
/Zephyr-latest/tests/arch/x86/info/src/ |
D | timer.c | 15 uint32_t this, last; in sync() local 25 last = this; in sync() 31 } while (last == this); in sync()
|
/Zephyr-latest/subsys/bluetooth/controller/ticker/ |
D | ticker.c | 129 uint8_t last:1; member 287 uint8_t last; /* Slot index of last user operation */ member 1134 instance->expire_infos[i].last = is_last; 1139 } else if (instance->expire_infos[i].last && i < TICKER_EXPIRE_INFO_MAX - 1) { 1140 instance->expire_infos[i].last = 0; 1164 is_last = instance->expire_infos[index].last; 1165 instance->expire_infos[index].last = 0; 1174 instance->expire_infos[index].last = 1; 1207 if (instance->expire_infos[i].last) { 1237 if (info->last) { [all …]
|
/Zephyr-latest/include/zephyr/arch/xtensa/ |
D | cache.h | 33 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_range() local 36 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_range() 49 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_flush_and_invd_range() local 52 for (line = first; bytes && line < last; line += step) { in arch_dcache_flush_and_invd_range() 65 size_t last = ROUND_UP(((long)addr) + bytes, step); in arch_dcache_invd_range() local 68 for (line = first; bytes && line < last; line += step) { in arch_dcache_invd_range()
|
/Zephyr-latest/tests/lib/ringbuffer/src/ |
D | concurrent.c | 63 static bool user_handler(void *user_data, uint32_t iter_cnt, bool last, int prio) in user_handler() argument 100 static bool produce_cpy(void *user_data, uint32_t iter_cnt, bool last, int prio) in produce_cpy() argument 120 static bool consume_cpy(void *user_data, uint32_t iter_cnt, bool last, int prio) in consume_cpy() argument 139 static bool produce_item(void *user_data, uint32_t cnt, bool last, int prio) in produce_item() argument 157 static bool consume_item(void *user_data, uint32_t cnt, bool last, int prio) in consume_item() argument 182 static bool produce(void *user_data, uint32_t iter_cnt, bool last, int prio) in produce() argument 218 static bool consume(void *user_data, uint32_t iter_cnt, bool last, int prio) in consume() argument
|
/Zephyr-latest/lib/crc/ |
D | crc_shell.c | 73 bool last = false; in cmd_crc() local 92 last = true; in cmd_crc() 143 shell_print(sh, "0x%x", crc_by_type(type, addr, size, seed, poly, reflect, first, last)); in cmd_crc()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | rpl.c | 241 int last = 0; in bt_mesh_rpl_reset() local 259 last = i; in bt_mesh_rpl_reset() 263 (void)memset(&replay_list[last - shift + 1], 0, sizeof(struct bt_mesh_rpl) * shift); in bt_mesh_rpl_reset() 347 int last = 0; in bt_mesh_rpl_pending_store() local 394 last = i; in bt_mesh_rpl_pending_store() 404 (void)memset(&replay_list[last - shift + 1], 0, sizeof(struct bt_mesh_rpl) * shift); in bt_mesh_rpl_pending_store()
|
/Zephyr-latest/drivers/led_strip/ |
D | lpd880x.c | 52 uint8_t last = 0x00; in lpd880x_update() local 66 .buf = &last, in lpd880x_update() 67 .len = sizeof(last) in lpd880x_update()
|