Lines Matching refs:bytes_written
30 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()
128 size_t write_addr = ctx->offset + ctx->bytes_written; in flash_sync()
194 ctx->bytes_written += ctx->buf_bytes; in flash_sync()
211 if (ctx->bytes_written + ctx->buf_bytes + len > ctx->available) { in stream_flash_buffered_write()
246 return ctx->bytes_written; in stream_flash_bytes_written()
319 ctx->bytes_written = 0; in stream_flash_init()
368 &ctx->bytes_written, in stream_flash_progress_save()
369 sizeof(ctx->bytes_written)); in stream_flash_progress_save()