Home | History | Annotate | Download | only in mtdutils

Lines Matching full:stored

48     size_t stored;
394 ctx->stored = 0;
481 if (ctx->stored > 0 || len - wrote < ctx->partition->erase_size) {
482 size_t avail = ctx->partition->erase_size - ctx->stored;
484 memcpy(ctx->buffer + ctx->stored, data + wrote, copy);
485 ctx->stored += copy;
490 if (ctx->stored == ctx->partition->erase_size) {
492 ctx->stored = 0;
496 while (ctx->stored == 0 && len - wrote >= ctx->partition->erase_size) {
508 if (ctx->stored > 0) {
509 size_t zero = ctx->partition->erase_size - ctx->stored;
510 memset(ctx->buffer + ctx->stored, 0, zero);
512 ctx->stored = 0;