Searched refs:buf_bytes (Results 1 – 4 of 4) sorted by relevance
| /Zephyr-latest/subsys/storage/stream/ |
| D | stream_flash.c | 196 if (ctx->buf_bytes == 0) { in flash_sync() 202 rc = stream_flash_erase_to_append(ctx, ctx->buf_bytes); in flash_sync() 205 rc, ctx->buf_bytes); in flash_sync() 211 if (ctx->buf_bytes % fill_length) { in flash_sync() 212 fill_length -= ctx->buf_bytes % fill_length; in flash_sync() 215 memset(ctx->buf + ctx->buf_bytes, filler, fill_length); in flash_sync() 220 buf_bytes_aligned = ctx->buf_bytes + fill_length; in flash_sync() 235 for (int i = 0; i < ctx->buf_bytes; i++) { in flash_sync() 240 ctx->buf_bytes); in flash_sync() 246 rc = ctx->callback(ctx->buf, ctx->buf_bytes, write_addr); in flash_sync() [all …]
|
| /Zephyr-latest/drivers/entropy/ |
| D | entropy_esp32.c | 82 uint8_t *buf_bytes = buf; in entropy_esp32_get_entropy() local 88 memcpy(buf_bytes, &word, to_copy); in entropy_esp32_get_entropy() 89 buf_bytes += to_copy; in entropy_esp32_get_entropy()
|
| /Zephyr-latest/include/zephyr/storage/ |
| D | stream_flash.h | 59 size_t buf_bytes; /* Number of bytes currently stored in write buf */ member
|
| /Zephyr-latest/tests/subsys/storage/stream/stream_flash/src/ |
| D | main.c | 344 zassert_equal(ctx.buf_bytes, BUF_LEN, "Expected bytes to be left in buffer"); in ZTEST() 363 zassert_equal(ctx.buf_bytes, BUF_LEN, "Expected bytes to be left in buffer"); in ZTEST() 370 bad_ctx.buf_bytes = 0; in ZTEST() 382 zassert_equal(bad_ctx.buf_bytes, cmp_ctx.buf_bytes + tow, in ZTEST()
|