Lines Matching refs:slot_data
125 static int cmdline_append_option(AvbSlotVerifyData* slot_data, in cmdline_append_option() argument
135 if (slot_data->cmdline != NULL) { in cmdline_append_option()
136 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option()
147 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option()
153 if (slot_data->cmdline != NULL) { in cmdline_append_option()
154 avb_free(slot_data->cmdline); in cmdline_append_option()
156 slot_data->cmdline = new_cmdline; in cmdline_append_option()
185 static int cmdline_append_version(AvbSlotVerifyData* slot_data, in cmdline_append_version() argument
201 return cmdline_append_option(slot_data, key, combined); in cmdline_append_version()
204 static int cmdline_append_uint64_base10(AvbSlotVerifyData* slot_data, in cmdline_append_uint64_base10() argument
209 return cmdline_append_option(slot_data, key, digits); in cmdline_append_uint64_base10()
212 static int cmdline_append_hex(AvbSlotVerifyData* slot_data, in cmdline_append_hex() argument
221 ret = cmdline_append_option(slot_data, key, hex_data); in cmdline_append_hex()
228 AvbSlotVerifyData* slot_data, in avb_append_options() argument
239 if (!cmdline_append_option(slot_data, in avb_append_options()
247 if (!cmdline_append_version(slot_data, in avb_append_options()
265 if (!cmdline_append_option(slot_data, in avb_append_options()
284 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in avb_append_options()
285 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
286 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
289 slot_data, "androidboot.vbmeta.hash_alg", "sha256") || in avb_append_options()
291 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
292 !cmdline_append_hex(slot_data, in avb_append_options()
307 slot_data, AVB_DIGEST_TYPE_SHA512, vbmeta_digest); in avb_append_options()
308 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
309 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
312 slot_data, "androidboot.vbmeta.hash_alg", "sha512") || in avb_append_options()
314 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
315 !cmdline_append_hex(slot_data, in avb_append_options()
338 slot_data, "androidboot.vbmeta.invalidate_on_error", "yes")) { in avb_append_options()
369 slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); in avb_append_options()
370 avb_free(slot_data->cmdline); in avb_append_options()
371 slot_data->cmdline = new_ret; in avb_append_options()
372 if (slot_data->cmdline == NULL) { in avb_append_options()
378 slot_data, "androidboot.veritymode", verity_mode)) { in avb_append_options()
384 slot_data, "androidboot.veritymode.managed", "yes")) { in avb_append_options()