Searched refs:cached_bytes (Results 1 – 1 of 1) sorted by relevance
56 size_t cached_bytes; member212 if (ctx->cached_bytes == 0) { in bootuf2_flash_flush()216 err = bootuf2_flash_write(ctx->cached_address, ctx->cache, ctx->cached_bytes); in bootuf2_flash_flush()220 err, ctx->cached_address, ctx->cached_bytes); in bootuf2_flash_flush()224 ctx->cached_bytes = 0; in bootuf2_flash_flush()233 if ((ctx->cached_bytes && ((ctx->cached_address + ctx->cached_bytes) != uf2->TargetAddress)) || in bootuf2_flash_write_internal()234 (ctx->cached_bytes == ctx->cache_size)) { in bootuf2_flash_write_internal()241 memcpy(ctx->cache + ctx->cached_bytes, uf2->Data, uf2->PayloadSize); in bootuf2_flash_write_internal()243 ctx->cached_address = uf2->TargetAddress - ctx->cached_bytes; in bootuf2_flash_write_internal()244 ctx->cached_bytes += uf2->PayloadSize; in bootuf2_flash_write_internal()[all …]
Completed in 12 milliseconds