• Home
  • Raw
  • Download

Lines Matching refs:slot_data

133 static int cmdline_append_option(AvbSlotVerifyData* slot_data,  in cmdline_append_option()  argument
143 if (slot_data->cmdline != NULL) { in cmdline_append_option()
144 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option()
155 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option()
161 if (slot_data->cmdline != NULL) { in cmdline_append_option()
162 avb_free(slot_data->cmdline); in cmdline_append_option()
164 slot_data->cmdline = new_cmdline; in cmdline_append_option()
169 static int cmdline_append_version(AvbSlotVerifyData* slot_data, in cmdline_append_version() argument
185 return cmdline_append_option(slot_data, key, combined); in cmdline_append_version()
188 static int cmdline_append_uint64_base10(AvbSlotVerifyData* slot_data, in cmdline_append_uint64_base10() argument
193 return cmdline_append_option(slot_data, key, digits); in cmdline_append_uint64_base10()
196 static int cmdline_append_hex(AvbSlotVerifyData* slot_data, in cmdline_append_hex() argument
205 ret = cmdline_append_option(slot_data, key, hex_data); in cmdline_append_hex()
213 AvbSlotVerifyData* slot_data, in avb_append_options() argument
227 if (!cmdline_append_option(slot_data, in avb_append_options()
236 if (!cmdline_append_version(slot_data, in avb_append_options()
254 if (!cmdline_append_option(slot_data, in avb_append_options()
273 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in avb_append_options()
274 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
275 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
278 slot_data, "androidboot.vbmeta.hash_alg", "sha256") || in avb_append_options()
280 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
281 !cmdline_append_hex(slot_data, in avb_append_options()
296 slot_data, AVB_DIGEST_TYPE_SHA512, vbmeta_digest); in avb_append_options()
297 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
298 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
301 slot_data, "androidboot.vbmeta.hash_alg", "sha512") || in avb_append_options()
303 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
304 !cmdline_append_hex(slot_data, in avb_append_options()
327 slot_data, "androidboot.vbmeta.invalidate_on_error", "yes")) { in avb_append_options()
362 slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); in avb_append_options()
363 avb_free(slot_data->cmdline); in avb_append_options()
364 slot_data->cmdline = new_ret; in avb_append_options()
365 if (slot_data->cmdline == NULL) { in avb_append_options()
371 slot_data, "androidboot.veritymode", verity_mode)) { in avb_append_options()
377 slot_data, "androidboot.veritymode.managed", "yes")) { in avb_append_options()