Lines Matching refs:partition_size
2325 def resize_image(self, image_filename, partition_size): argument
2337 if partition_size % image.block_size != 0:
2339 'block size {}.'.format(partition_size,
2352 if partition_size < vbmeta_end_offset + 1 * image.block_size:
2355 .format(partition_size,
2362 image.append_dont_care(partition_size - vbmeta_end_offset -
3251 partition_size): argument
3264 if partition_size % image.block_size != 0:
3266 'block size {}.'.format(partition_size,
3312 image.append_dont_care(partition_size - vbmeta_end_offset -
3332 def add_hash_footer(self, image_filename, partition_size, argument
3385 if not partition_size and not dynamic_partition_size:
3408 if not dynamic_partition_size and partition_size < max_metadata_size:
3411 partition_size, max_metadata_size))
3415 print('{}'.format(partition_size - max_metadata_size))
3437 partition_size = round_to_multiple(
3440 max_image_size = partition_size - max_metadata_size
3441 if partition_size % image.block_size != 0:
3443 'block size {}.'.format(partition_size,
3454 partition_size))
3528 image.append_dont_care(partition_size - vbmeta_end_offset -
3547 def add_hashtree_footer(self, image_filename, partition_size, partition_name, argument
3633 if partition_size > 0:
3638 partition_size, block_size, digest_size + digest_padding)
3640 max_fec_size = calc_fec_data_size(partition_size, fec_num_roots)
3644 max_image_size = partition_size - max_metadata_size
3655 if partition_size > 0:
3656 if partition_size % image.block_size != 0:
3658 'block size {}.'.format(partition_size,
3690 if partition_size > 0:
3695 partition_size))
3804 if partition_size > 0:
3805 image.append_dont_care(partition_size - image.image_size -
4773 args.partition_size)
4779 args.partition_size, args.dynamic_partition_size,
4811 args.partition_size,
4852 self.avb.resize_image(args.image.name, args.partition_size)