Home
last modified time | relevance | path

Searched refs:bytes_written (Results 1 – 20 of 20) sorted by relevance

/Zephyr-Core-3.7.0/subsys/storage/stream/
Dstream_flash.c30 size_t bytes_written = 0; in settings_direct_loader() local
31 ssize_t cb_len = read_cb(cb_arg, &bytes_written, in settings_direct_loader()
32 sizeof(bytes_written)); in settings_direct_loader()
34 if (cb_len != sizeof(ctx->bytes_written)) { in settings_direct_loader()
40 if (bytes_written >= ctx->bytes_written) { in settings_direct_loader()
41 ctx->bytes_written = bytes_written; in settings_direct_loader()
44 bytes_written, ctx->bytes_written); in settings_direct_loader()
51 off_t offset = (off_t) (ctx->offset + ctx->bytes_written) - 1; in settings_direct_loader()
56 if (ctx->bytes_written > 0) { in settings_direct_loader()
122 size_t write_addr = ctx->offset + ctx->bytes_written; in flash_sync()
[all …]
/Zephyr-Core-3.7.0/tests/subsys/storage/stream/stream_flash/src/
Dmain.c374 zassert_equal(cmp_ctx.bytes_written, bad_ctx.bytes_written, in ZTEST()
484 size_t bytes_written; in write_and_save_progress() local
489 bytes_written = stream_flash_bytes_written(&ctx); in write_and_save_progress()
490 zassert_true(bytes_written > 0, "expected bytes to be written"); in write_and_save_progress()
497 return bytes_written; in write_and_save_progress()
559 size_t bytes_written; in ZTEST() local
580 bytes_written = stream_flash_bytes_written(&ctx); in ZTEST()
581 zassert_equal(bytes_written, bytes_written_old, in ZTEST()
603 bytes_written = load_progress(progress_key); in ZTEST()
604 zassert_equal(bytes_written, bytes_written_old, in ZTEST()
[all …]
/Zephyr-Core-3.7.0/drivers/mipi_dbi/
Dmipi_dbi_nxp_lcdic.c326 uint32_t bytes_written = 0U; in mipi_dbi_lcdic_fill_tx() local
340 base->TFIFO_WDATA = word_buf[bytes_written >> 2]; in mipi_dbi_lcdic_fill_tx()
348 return bytes_written; in mipi_dbi_lcdic_fill_tx()
350 bytes_written += write_len; in mipi_dbi_lcdic_fill_tx()
353 return bytes_written; in mipi_dbi_lcdic_fill_tx()
674 uint32_t bytes_written, isr_status; in mipi_dbi_lcdic_isr() local
719 bytes_written = mipi_dbi_lcdic_fill_tx(base, data->xfer_buf, in mipi_dbi_lcdic_isr()
722 if (bytes_written > 0) { in mipi_dbi_lcdic_isr()
723 data->xfer_buf += bytes_written; in mipi_dbi_lcdic_isr()
724 data->cmd_bytes -= bytes_written; in mipi_dbi_lcdic_isr()
[all …]
/Zephyr-Core-3.7.0/scripts/coredump/
Dcoredump_serial_log_parser.py49 bytes_written = 0
83 bytes_written += len(binary_data)
/Zephyr-Core-3.7.0/tests/kernel/pipe/pipe/src/
Dtest_pipe.c907 size_t bytes_written = 0; in ZTEST_USER() local
911 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in ZTEST_USER()
914 zassert_equal(bytes_written, 3, "did not write entire message"); in ZTEST_USER()
930 size_t bytes_written = 0; in ZTEST_USER() local
934 bytes_written = 0; in ZTEST_USER()
935 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in ZTEST_USER()
938 zassert_equal(bytes_written, 3, "did not write entire message"); in ZTEST_USER()
942 bytes_written = 0; in ZTEST_USER()
943 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in ZTEST_USER()
946 zassert_true(bytes_written >= 1, "did not write min_xfer"); in ZTEST_USER()
[all …]
/Zephyr-Core-3.7.0/kernel/
Dpipes.c381 size_t bytes_to_write, size_t *bytes_written, in z_impl_k_pipe_put() argument
397 CHECKIF((min_xfer > bytes_to_write) || (bytes_written == NULL)) { in z_impl_k_pipe_put()
433 *bytes_written = 0U; in z_impl_k_pipe_put()
453 *bytes_written = pipe_write(pipe, &src_list, in z_impl_k_pipe_put()
461 if ((pipe->bytes_used != 0U) && (*bytes_written != 0U)) { in z_impl_k_pipe_put()
470 if ((*bytes_written == bytes_to_write) || in z_impl_k_pipe_put()
472 ((*bytes_written >= min_xfer) && (min_xfer > 0U))) { in z_impl_k_pipe_put()
505 *bytes_written = bytes_to_write - src_desc->bytes_to_xfer; in z_impl_k_pipe_put()
517 size_t bytes_to_write, size_t *bytes_written, in z_vrfy_k_pipe_put() argument
521 K_OOPS(K_SYSCALL_MEMORY_WRITE(bytes_written, sizeof(*bytes_written))); in z_vrfy_k_pipe_put()
[all …]
/Zephyr-Core-3.7.0/tests/modules/nanopb/src/
Dmain.c36 pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written); in ZTEST()
63 pb_istream_t istream = pb_istream_from_buffer(buffer, ostream.bytes_written); in ZTEST()
/Zephyr-Core-3.7.0/drivers/eeprom/
Deeprom_simulator.c60 STATS_SECT_ENTRY32(bytes_written) /* total bytes written */
70 STATS_NAME(eeprom_sim_stats, bytes_written)
185 STATS_INCN(eeprom_sim_stats, bytes_written, len); in eeprom_sim_write()
/Zephyr-Core-3.7.0/include/zephyr/storage/
Dstream_flash.h61 size_t bytes_written; /* Number of bytes written to flash */ member
/Zephyr-Core-3.7.0/subsys/mgmt/updatehub/
Dupdatehub_storage.c50 ctx->flash_ctx.stream.bytes_written, size, in updatehub_storage_write()
/Zephyr-Core-3.7.0/samples/modules/nanopb/src/
Dmain.c42 *message_length = stream.bytes_written; in encode_message()
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Di2c.h542 STATS_SECT_ENTRY32(bytes_written)
549 STATS_NAME(i2c, bytes_written)
578 uint32_t bytes_written = 0U; in i2c_xfer_stats() local
586 bytes_written += msgs[i].len; in i2c_xfer_stats()
590 STATS_INCN(state->stats, bytes_written, bytes_written); in i2c_xfer_stats()
Dsmbus.h413 STATS_SECT_ENTRY32(bytes_written)
419 STATS_NAME(smbus, bytes_written)
473 STATS_INCN(state->stats, bytes_written, sent); in smbus_xfer_stats()
/Zephyr-Core-3.7.0/drivers/flash/
Dflash_simulator.c83 STATS_SECT_ENTRY32(bytes_written) /* total bytes written */
101 STATS_NAME(flash_sim_stats, bytes_written)
288 FLASH_SIM_STATS_INCN(flash_sim_stats, bytes_written, len); in flash_sim_write()
/Zephyr-Core-3.7.0/doc/kernel/services/data_passing/
Dpipes.rst109 size_t bytes_written;
119 rc = k_pipe_put(&my_pipe, data, total_size, &bytes_written,
125 } else if (bytes_written < total_size) {
/Zephyr-Core-3.7.0/tests/kernel/semaphore/semaphore/src/
Dmain.c975 size_t bytes_written; in sem_multiple_take_and_timeouts_helper() local
990 &bytes_written, sizeof(int), K_FOREVER); in sem_multiple_take_and_timeouts_helper()
1041 size_t bytes_written; in sem_multi_take_timeout_diff_sem_helper() local
1060 &bytes_written, sizeof(struct timeout_info), K_FOREVER); in sem_multi_take_timeout_diff_sem_helper()
/Zephyr-Core-3.7.0/subsys/tracing/test/
Dtracing_test.h358 sys_trace_k_pipe_put_enter(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout)
360 sys_trace_k_pipe_put_blocking(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout)
362 sys_trace_k_pipe_put_exit(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout, ret)
629 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout);
631 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout);
633 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout,
/Zephyr-Core-3.7.0/subsys/net/lib/sockets/
Dsocketpair.c407 size_t bytes_written; in spair_write() local
554 &bytes_written, 1, K_NO_WAIT); in spair_write()
564 res = bytes_written; in spair_write()
/Zephyr-Core-3.7.0/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt80 73 k_pipe_put pipe=%I, data=%p, bytes_to_write=%u, bytes_written=%u, min_xfer=%u, …
/Zephyr-Core-3.7.0/include/zephyr/
Dkernel.h5077 size_t bytes_to_write, size_t *bytes_written,