Home
last modified time | relevance | path

Searched refs:buf_bytes (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/storage/stream/
Dstream_flash.c134 if (ctx->buf_bytes == 0) { in flash_sync()
141 write_addr + ctx->buf_bytes - 1); in flash_sync()
150 if (ctx->buf_bytes % fill_length) { in flash_sync()
151 fill_length -= ctx->buf_bytes % fill_length; in flash_sync()
154 memset(ctx->buf + ctx->buf_bytes, filler, fill_length); in flash_sync()
159 buf_bytes_aligned = ctx->buf_bytes + fill_length; in flash_sync()
174 for (int i = 0; i < ctx->buf_bytes; i++) { in flash_sync()
179 ctx->buf_bytes); in flash_sync()
185 rc = ctx->callback(ctx->buf, ctx->buf_bytes, write_addr); in flash_sync()
194 ctx->bytes_written += ctx->buf_bytes; in flash_sync()
[all …]
/Zephyr-latest/drivers/entropy/
Dentropy_esp32.c51 uint8_t *buf_bytes = buf; in entropy_esp32_get_entropy() local
57 memcpy(buf_bytes, &word, to_copy); in entropy_esp32_get_entropy()
58 buf_bytes += to_copy; in entropy_esp32_get_entropy()
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h59 size_t buf_bytes; /* Number of bytes currently stored in write buf */ member
/Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/
Dmain.c341 zassert_equal(ctx.buf_bytes, BUF_LEN, "Expected bytes to be left in buffer"); in ZTEST()
360 zassert_equal(ctx.buf_bytes, BUF_LEN, "Expected bytes to be left in buffer"); in ZTEST()
367 bad_ctx.buf_bytes = 0; in ZTEST()
379 zassert_equal(bad_ctx.buf_bytes, cmp_ctx.buf_bytes + tow, in ZTEST()