Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/lib/os/
Dmpsc_pbuf.c150 static ALWAYS_INLINE void tmp_wr_idx_inc(struct mpsc_pbuf_buffer *buffer, int32_t wlen) in tmp_wr_idx_inc() argument
152 buffer->tmp_wr_idx = idx_inc(buffer, buffer->tmp_wr_idx, wlen); in tmp_wr_idx_inc()
158 static void rd_idx_inc(struct mpsc_pbuf_buffer *buffer, int32_t wlen) in rd_idx_inc() argument
160 buffer->rd_idx = idx_inc(buffer, buffer->rd_idx, wlen); in rd_idx_inc()
164 static void add_skip_item(struct mpsc_pbuf_buffer *buffer, uint32_t wlen) in add_skip_item() argument
167 .skip = { .valid = 0, .busy = 1, .len = wlen } in add_skip_item()
171 tmp_wr_idx_inc(buffer, wlen); in add_skip_item()
172 buffer->wr_idx = idx_inc(buffer, buffer->wr_idx, wlen); in add_skip_item()
337 size_t wlen, k_timeout_t timeout) in mpsc_pbuf_alloc() argument
346 MPSC_PBUF_DBG(buffer, "alloc %d words", (int)wlen); in mpsc_pbuf_alloc()
[all …]
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool.py675 (wlen, start, end, seq) = win_hdr(hdr)
676 if wlen > SHELL_MAX_VALID_SLOT_SIZE:
679 if wlen == 0:
682 last_seq = seq if args.no_history else (seq - ((end - start) % wlen))
686 if behind > ((end - start) % wlen):
688 copy = (end - behind) % wlen
689 suffix = min(behind, wlen - copy)
693 (wlen, start1, end, seq1) = win_hdr(hdr)
699 def idx_mod(wlen, idx): argument
700 if idx >= wlen:
[all …]
/Zephyr-latest/subsys/shell/
Dshell_log_backend.c129 size_t wlen; in copy_to_pbuffer() local
132 wlen = log_msg_generic_get_wlen((union mpsc_pbuf_generic *)msg); in copy_to_pbuffer()
133 dst = mpsc_pbuf_alloc(mpsc_buffer, wlen, K_MSEC(timeout)); in copy_to_pbuffer()
146 if (wlen <= hdr_wlen) { in copy_to_pbuffer()
151 memcpy(dst_data, src_data, (wlen - hdr_wlen) * sizeof(uint32_t)); in copy_to_pbuffer()
/Zephyr-latest/include/zephyr/sys/
Dmpsc_pbuf.h172 size_t wlen, k_timeout_t timeout);
224 const uint32_t *data, size_t wlen);
Dcbprintf_cxx.h319 size_t wlen = z_cbprintf_cxx_arg_size(arg) / sizeof(int); in z_cbprintf_cxx_store_arg() local
322 z_cbprintf_wcpy((int *)dst, (int *)p, wlen); in z_cbprintf_cxx_store_arg()
/Zephyr-latest/subsys/logging/frontends/
Dlog_frontend_stmesp_demux.c274 static const size_t wlen = sizeof(packet) / sizeof(uint32_t); in store_turbo_log0() local
276 mpsc_pbuf_put_data(&demux.pbuf, (const uint32_t *)&packet, wlen); in store_turbo_log0()
291 static const size_t wlen = sizeof(packet) / sizeof(uint32_t); in store_turbo_log1() local
293 mpsc_pbuf_put_data(&demux.pbuf, (const uint32_t *)&packet, wlen); in store_turbo_log1()
306 static const size_t wlen = sizeof(packet) / sizeof(uint32_t); in store_tracepoint() local
308 mpsc_pbuf_put_data(&demux.pbuf, (const uint32_t *)&packet, wlen); in store_tracepoint()
318 static const size_t wlen = sizeof(packet) / sizeof(uint32_t); in log_frontend_stmesp_demux_hw_event() local
320 mpsc_pbuf_put_data(&demux.pbuf, (const uint32_t *)&packet, wlen); in log_frontend_stmesp_demux_hw_event()
475 uint32_t wlen = calc_wlen(pkt_len); in log_frontend_stmesp_demux_packet_start() local
486 p.generic = mpsc_pbuf_alloc(&demux.pbuf, wlen, K_NO_WAIT); in log_frontend_stmesp_demux_packet_start()
Dlog_frontend_dict_uart.c131 size_t wlen = DIV_ROUND_UP(len, sizeof(uint32_t)); in add_drop_msg() local
137 generic_pkt.rw_pkt = mpsc_pbuf_alloc(&buf, wlen, K_NO_WAIT); in add_drop_msg()
144 pkt->hdr.len = wlen; in add_drop_msg()
145 pkt->hdr.noff = sizeof(uint32_t) * wlen - len; in add_drop_msg()
/Zephyr-latest/tests/lib/spsc_pbuf/src/
Dmain.c33 int wlen; in test_spsc_pbuf_flags() local
59 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
60 zassert_equal(wlen, sizeof(message)); in test_spsc_pbuf_flags()
71 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
72 zassert_equal(wlen, sizeof(message)); in test_spsc_pbuf_flags()
75 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
76 zassert_equal(wlen, -ENOMEM); in test_spsc_pbuf_flags()
88 wlen = spsc_pbuf_read(ib, rbuf, sizeof(rbuf)); in test_spsc_pbuf_flags()
89 zassert_equal(wlen, sizeof(message)); in test_spsc_pbuf_flags()
97 wlen = spsc_pbuf_write(ib, message, sizeof(message)); in test_spsc_pbuf_flags()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_ite_it8xxx2.c169 void __soc_ram_code ramcode_flash_transaction(int wlen, uint8_t *wbuf, int rlen, uint8_t *rbuf, in ramcode_flash_transaction() argument
178 for (i = 0; i < wlen; i++) { in ramcode_flash_transaction()
269 void __soc_ram_code ramcode_flash_cmd_write(int addr, int wlen, uint8_t *wbuf) in ramcode_flash_cmd_write() argument
280 for (i = 0; i < wlen; i++) { in ramcode_flash_cmd_write()
313 void __soc_ram_code ramcode_flash_write(int addr, int wlen, const char *wbuf) in ramcode_flash_write() argument
316 ramcode_flash_cmd_write(addr, wlen, (uint8_t *)wbuf); in ramcode_flash_write()
/Zephyr-latest/drivers/display/
Ddisplay_rm67162.c357 ssize_t wlen; in rm67162_write_fb() local
373 wlen = mipi_dsi_transfer(config->mipi_dsi, config->channel, &msg); in rm67162_write_fb()
374 if (wlen < 0) { in rm67162_write_fb()
375 return (int)wlen; in rm67162_write_fb()
378 src += wlen; in rm67162_write_fb()
379 len -= wlen; in rm67162_write_fb()
383 return wlen; in rm67162_write_fb()
/Zephyr-latest/tests/lib/mpsc_pbuf/src/
Dconcurrent.c173 uint32_t wlen = sys_rand32_get() % (buffer->size / 4) + 1; in produce() local
174 struct test_packet *packet = (struct test_packet *)mpsc_pbuf_alloc(buffer, wlen, K_NO_WAIT); in produce()
193 packet->len = wlen; in produce()
194 for (int i = 0; i < (wlen - 1); i++) { in produce()
Dmain.c90 static void init(struct mpsc_pbuf_buffer *buffer, uint32_t wlen, bool overwrite) in init() argument
95 mpsc_buf_cfg.size = wlen; in init()
949 uint32_t wlen = rand_get(1, 15); in ZTEST() local
953 wlen, in ZTEST()
955 tdv2->hdr.len = wlen; in ZTEST()
/Zephyr-latest/subsys/logging/
Dlog_core.c646 static struct log_msg *msg_alloc(struct mpsc_pbuf_buffer *buffer, uint32_t wlen) in msg_alloc() argument
653 buffer, wlen, in msg_alloc()
659 struct log_msg *z_log_msg_alloc(uint32_t wlen) in z_log_msg_alloc() argument
661 return msg_alloc(&log_buffer, wlen); in z_log_msg_alloc()
841 size_t wlen = DIV_ROUND_UP(ROUND_UP(len, Z_LOG_MSG_ALIGNMENT), sizeof(int)); in z_log_msg_enqueue() local
843 struct log_msg *local_msg = msg_alloc(mpsc_pbuffer, wlen); in z_log_msg_enqueue()
/Zephyr-latest/subsys/sd/
Dsd_ops.c713 uint32_t wlen; in card_write_blocks() local
743 wlen = sizeof(card->card_buffer) / card->block_size; in card_write_blocks()
748 memcpy(card->card_buffer, buf_offset, wlen * card->block_size); in card_write_blocks()
750 ret = card_write(card, card->card_buffer, sector + start_block, wlen); in card_write_blocks()
757 sector += wlen; in card_write_blocks()
758 buf_offset += wlen * card->block_size; in card_write_blocks()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c55 const uint8_t *wbuffer, uint32_t wlen) in inv_io_hal_write_reg() argument
57 return icm42670_reg_write(serif->context, reg, wbuffer, wlen); in inv_io_hal_write_reg()
/Zephyr-latest/include/zephyr/logging/
Dlog_msg.h595 struct log_msg *z_log_msg_alloc(uint32_t wlen);