Lines Matching refs:sz
119 int64_t sz; member
921 int64_t sz = get_file_size(fd); in load_buf_fd() local
922 if (sz == -1) { in load_buf_fd()
930 buf->image_size = sz; in load_buf_fd()
934 int64_t limit = get_sparse_limit(sz); in load_buf_fd()
946 buf->sz = sz; in load_buf_fd()
974 if (buf->sz < 256) { in rewrite_vbmeta_buffer()
986 uint64_t footer_offset = buf->sz - AVB_FOOTER_SIZE; in rewrite_vbmeta_buffer()
1064 if (buf->sz < AVB_FOOTER_SIZE) { in copy_boot_avb_footer()
1073 uint64_t footer_offset = buf->sz - AVB_FOOTER_SIZE; in copy_boot_avb_footer()
1080 if (partition_size == buf->sz) { in copy_boot_avb_footer()
1083 if (partition_size < buf->sz) { in copy_boot_avb_footer()
1096 buf->sz = partition_size; in copy_boot_avb_footer()
1123 int64_t sz = sparse_file_len(*s, true, false); in flash_buf() local
1124 sparse_files.emplace_back(*s, sz); in flash_buf()
1135 fb->FlashPartition(partition, buf->fd, buf->sz); in flash_buf()
1336 if (buf->sz <= 0) { in repack_ramdisk()
1337 die("repack_ramdisk() sees negative size: %" PRId64, buf->sz); in repack_ramdisk()
1345 static_cast<uint64_t>(buf->sz)); in repack_ramdisk()
1351 buf->sz = vendor_boot_size; in repack_ramdisk()
2233 fb->Download(filename, buf.fd.get(), buf.sz); in Main()