Lines Matching refs:filesize
67 def filesize(f): function
80 sha.update(pack('I', filesize(f)))
98 num_kernel_pages = get_number_of_pages(filesize(args.kernel), args.pagesize)
99 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk),
101 num_second_pages = get_number_of_pages(filesize(args.second), args.pagesize)
115 args.output.write(pack('I', filesize(args.kernel)))
117 args.output.write(pack('I', filesize(args.ramdisk)))
134 if filesize(args.dtb) == 0:
141 vendor_ramdisk_size = filesize(args.vendor_ramdisk)
167 args.vendor_boot.write(pack('I', filesize(args.dtb)))
181 args.vendor_boot.write(pack('I', filesize(args.vendor_bootconfig)))
193 if filesize(args.ramdisk) > 0 else 0)
195 if filesize(args.second) > 0 else 0)
199 args.output.write(pack('I', filesize(args.kernel)))
203 args.output.write(pack('I', filesize(args.ramdisk)))
207 args.output.write(pack('I', filesize(args.second)))
240 args.output.write(pack('I', filesize(args.recovery_dtbo)))
255 if filesize(args.dtb) == 0:
259 args.output.write(pack('I', filesize(args.dtb)))
329 ramdisk_size = filesize(f)
618 if filesize(boot_signature) > BOOT_IMAGE_V4_SIGNATURE_SIZE: