Lines Matching refs:blk_sz
85 uint32_t blk_sz; in bootutil_img_hash() local
102 (void)blk_sz; in bootutil_img_hash()
165 for (off = 0; off < size; off += blk_sz) { in bootutil_img_hash()
166 blk_sz = size - off; in bootutil_img_hash()
167 if (blk_sz > tmp_buf_sz) { in bootutil_img_hash()
168 blk_sz = tmp_buf_sz; in bootutil_img_hash()
174 if ((off < hdr_size) && ((off + blk_sz) > hdr_size)) { in bootutil_img_hash()
176 blk_sz = hdr_size - off; in bootutil_img_hash()
178 if ((off < tlv_off) && ((off + blk_sz) > tlv_off)) { in bootutil_img_hash()
180 blk_sz = tlv_off - off; in bootutil_img_hash()
184 rc = flash_area_read(fap, off + sector_off, tmp_buf, blk_sz); in bootutil_img_hash()
186 rc = flash_area_read(fap, off, tmp_buf, blk_sz); in bootutil_img_hash()
201 blk_sz, blk_off, tmp_buf); in bootutil_img_hash()
205 bootutil_sha_update(&sha_ctx, tmp_buf, blk_sz); in bootutil_img_hash()