Lines Matching refs:stored
48 size_t stored;
393 ctx->stored = 0;
483 if (ctx->stored > 0 || len - wrote < ctx->partition->erase_size) {
484 size_t avail = ctx->partition->erase_size - ctx->stored;
486 memcpy(ctx->buffer + ctx->stored, data + wrote, copy);
487 ctx->stored += copy;
492 if (ctx->stored == ctx->partition->erase_size) {
494 ctx->stored = 0;
498 while (ctx->stored == 0 && len - wrote >= ctx->partition->erase_size) {
510 if (ctx->stored > 0) {
511 size_t zero = ctx->partition->erase_size - ctx->stored;
512 memset(ctx->buffer + ctx->stored, 0, zero);
514 ctx->stored = 0;