Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/subsys/storage/stream/
Dstream_flash.c30 size_t bytes_written = 0; in settings_direct_loader() local
31 ssize_t len = read_cb(cb_arg, &bytes_written, in settings_direct_loader()
32 sizeof(bytes_written)); in settings_direct_loader()
34 if (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()
110 size_t write_addr = ctx->offset + ctx->bytes_written; in flash_sync()
[all …]
/Zephyr-Core-2.7.6/tests/subsys/storage/stream/stream_flash/src/
Dmain.c360 zassert_equal(cmp_ctx.bytes_written, bad_ctx.bytes_written, in test_stream_flash_buffered_write_callback()
470 size_t bytes_written; in write_and_save_progress() local
475 bytes_written = stream_flash_bytes_written(&ctx); in write_and_save_progress()
476 zassert_true(bytes_written > 0, "expected bytes to be written"); in write_and_save_progress()
483 return bytes_written; in write_and_save_progress()
545 size_t bytes_written; in test_stream_flash_progress_resume() local
566 bytes_written = stream_flash_bytes_written(&ctx); in test_stream_flash_progress_resume()
567 zassert_equal(bytes_written, bytes_written_old, in test_stream_flash_progress_resume()
589 bytes_written = load_progress(progress_key); in test_stream_flash_progress_resume()
590 zassert_equal(bytes_written, bytes_written_old, in test_stream_flash_progress_resume()
[all …]
/Zephyr-Core-2.7.6/kernel/
Dpipes.c400 size_t *bytes_written, size_t min_xfer, in z_pipe_put_internal() argument
415 CHECKIF((min_xfer > bytes_to_write) || bytes_written == NULL) { in z_pipe_put_internal()
432 *bytes_written = 0; in z_pipe_put_internal()
499 *bytes_written = num_bytes_written; in z_pipe_put_internal()
510 *bytes_written = num_bytes_written; in z_pipe_put_internal()
539 *bytes_written = bytes_to_write - pipe_desc.bytes_to_xfer; in z_pipe_put_internal()
731 size_t *bytes_written, size_t min_xfer, in z_impl_k_pipe_put() argument
735 bytes_to_write, bytes_written, in z_impl_k_pipe_put()
741 size_t *bytes_written, size_t min_xfer, in z_vrfy_k_pipe_put() argument
745 Z_OOPS(Z_SYSCALL_MEMORY_WRITE(bytes_written, sizeof(*bytes_written))); in z_vrfy_k_pipe_put()
[all …]
/Zephyr-Core-2.7.6/scripts/coredump/
Dcoredump_serial_log_parser.py49 bytes_written = 0
83 bytes_written += len(binary_data)
/Zephyr-Core-2.7.6/tests/kernel/pipe/pipe/src/
Dtest_pipe.c904 size_t bytes_written = 0; in test_pipe_get_min_xfer() local
908 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in test_pipe_get_min_xfer()
911 zassert_equal(bytes_written, 3, "did not write entire message"); in test_pipe_get_min_xfer()
927 size_t bytes_written = 0; in test_pipe_put_min_xfer() local
931 bytes_written = 0; in test_pipe_put_min_xfer()
932 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in test_pipe_put_min_xfer()
935 zassert_equal(bytes_written, 3, "did not write entire message"); in test_pipe_put_min_xfer()
939 bytes_written = 0; in test_pipe_put_min_xfer()
940 res = k_pipe_put(&test_pipe, "Hi!", 3, &bytes_written, in test_pipe_put_min_xfer()
943 zassert_true(bytes_written >= 1, "did not write min_xfer"); in test_pipe_put_min_xfer()
/Zephyr-Core-2.7.6/drivers/eeprom/
Deeprom_simulator.c58 STATS_SECT_ENTRY32(bytes_written) /* total bytes written */
68 STATS_NAME(eeprom_sim_stats, bytes_written)
183 STATS_INCN(eeprom_sim_stats, bytes_written, len); in eeprom_sim_write()
/Zephyr-Core-2.7.6/subsys/mgmt/mcumgr/
Dbuf.c145 cnw->enc.bytes_written += len; in cbor_nb_write()
154 cnw->enc.bytes_written = 0; in cbor_nb_writer_init()
Dsmp.c161 writer->bytes_written = nb->len; in zephyr_smp_write_at()
/Zephyr-Core-2.7.6/samples/modules/nanopb/src/
Dmain.c36 *message_length = stream.bytes_written; in encode_message()
/Zephyr-Core-2.7.6/include/storage/
Dstream_flash.h58 size_t bytes_written; /* Number of bytes written to flash */ member
/Zephyr-Core-2.7.6/drivers/flash/
Dflash_simulator.c86 STATS_SECT_ENTRY32(bytes_written) /* total bytes written */
104 STATS_NAME(flash_sim_stats, bytes_written)
269 FLASH_SIM_STATS_INCN(flash_sim_stats, bytes_written, len); in flash_sim_write()
/Zephyr-Core-2.7.6/doc/reference/kernel/data_passing/
Dpipes.rst100 size_t bytes_written;
110 rc = k_pipe_put(&my_pipe, data, total_size, &bytes_written,
116 } else if (bytes_written < total_size) {
/Zephyr-Core-2.7.6/tests/kernel/semaphore/semaphore/src/
Dmain.c965 size_t bytes_written; in sem_multiple_take_and_timeouts_helper() local
980 &bytes_written, sizeof(int), K_FOREVER); in sem_multiple_take_and_timeouts_helper()
1026 size_t bytes_written; in sem_multi_take_timeout_diff_sem_helper() local
1045 &bytes_written, sizeof(struct timeout_info), K_FOREVER); in sem_multi_take_timeout_diff_sem_helper()
/Zephyr-Core-2.7.6/subsys/tracing/test/
Dtracing_test.h349 sys_trace_k_pipe_put_enter(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout)
351 sys_trace_k_pipe_put_blocking(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout)
353 sys_trace_k_pipe_put_exit(pipe, data, bytes_to_write, bytes_written, min_xfer, timeout, ret)
598 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout);
600 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout);
602 size_t *bytes_written, size_t min_xfer, k_timeout_t timeout,
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsocketpair.c393 size_t bytes_written; in spair_write() local
542 &bytes_written, 1, K_NO_WAIT); in spair_write()
552 res = bytes_written; in spair_write()
/Zephyr-Core-2.7.6/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt81 73 k_pipe_put pipe=%I, data=%p, bytes_to_write=%u, bytes_written=%u, min_xfer=%u, …
/Zephyr-Core-2.7.6/subsys/mgmt/updatehub/
Dupdatehub.c475 ctx.flash_ctx.stream.bytes_written, payload_len, in install_update_cb()
/Zephyr-Core-2.7.6/include/
Dkernel.h4714 size_t bytes_to_write, size_t *bytes_written,