• Home
  • Raw
  • Download

Lines Matching refs:partition_size

2111   # meaningful errors if the value passed in via --partition_size is
2244 def resize_image(self, image_filename, partition_size):
2249 partition_size: The new size of the image.
2257 if partition_size % image.block_size != 0:
2259 'block size {}.'.format(partition_size,
2275 if partition_size < vbmeta_end_offset + 1*image.block_size:
2278 .format(partition_size,
2283 # of partition_size.
2285 image.append_dont_care(partition_size - vbmeta_end_offset -
3074 partition_size):
3080 partition_size: Size of partition.
3087 if partition_size % image.block_size != 0:
3089 'block size {}.'.format(partition_size,
3134 # final Footer block is at the end of partition_size..
3135 image.append_dont_care(partition_size - vbmeta_end_offset -
3155 def add_hash_footer(self, image_filename, partition_size, partition_name,
3171 partition_size: Size of partition.
3190 given |partition_size|.
3216 # |partition_size|.
3218 if partition_size < max_metadata_size:
3221 partition_size, max_metadata_size))
3222 max_image_size = partition_size - max_metadata_size
3231 if partition_size % image.block_size != 0:
3233 'block size {}.'.format(partition_size,
3260 partition_size))
3331 # final Footer block is at the end of partition_size..
3332 image.append_dont_care(partition_size - vbmeta_end_offset -
3352 def add_hashtree_footer(self, image_filename, partition_size, partition_name,
3375 partition_size: Size of partition or 0 to put it right at the end.
3399 and metadata with the given |partition_size|.
3427 # If |partition_size| is given (e.g. not 0), calculate the maximum image
3429 # vbmeta struct) fits in |partition_size|. We use very conservative figures
3431 if partition_size > 0:
3436 partition_size, block_size, digest_size + digest_padding)
3438 max_fec_size = calc_fec_data_size(partition_size, fec_num_roots)
3442 max_image_size = partition_size - max_metadata_size
3453 if partition_size > 0:
3454 if partition_size % image.block_size != 0:
3456 'block size {}.'.format(partition_size,
3488 if partition_size > 0:
3493 partition_size))
3597 # final Footer block is at the end of partition_size..
3598 if partition_size > 0:
3599 image.append_dont_care(partition_size - image.image_size -
4117 sub_parser.add_argument('--partition_size',
4150 sub_parser.add_argument('--partition_size',
4165 sub_parser.add_argument('--partition_size',
4268 sub_parser.add_argument('--partition_size',
4508 args.partition_size)
4514 args.partition_size,
4545 args.partition_size,
4584 self.avb.resize_image(args.image.name, args.partition_size)