Lines Matching refs:slot_data
98 static int cmdline_append_option(AvbSlotVerifyData* slot_data, in cmdline_append_option() argument
108 if (slot_data->cmdline != NULL) { in cmdline_append_option()
109 offset = avb_strlen(slot_data->cmdline); in cmdline_append_option()
120 avb_memcpy(new_cmdline, slot_data->cmdline, offset - 1); in cmdline_append_option()
126 if (slot_data->cmdline != NULL) { in cmdline_append_option()
127 avb_free(slot_data->cmdline); in cmdline_append_option()
129 slot_data->cmdline = new_cmdline; in cmdline_append_option()
158 static int cmdline_append_version(AvbSlotVerifyData* slot_data, in cmdline_append_version() argument
174 return cmdline_append_option(slot_data, key, combined); in cmdline_append_version()
177 static int cmdline_append_uint64_base10(AvbSlotVerifyData* slot_data, in cmdline_append_uint64_base10() argument
182 return cmdline_append_option(slot_data, key, digits); in cmdline_append_uint64_base10()
185 static int cmdline_append_hex(AvbSlotVerifyData* slot_data, in cmdline_append_hex() argument
194 ret = cmdline_append_option(slot_data, key, hex_data); in cmdline_append_hex()
201 AvbSlotVerifyData* slot_data, in avb_append_options() argument
211 if (!cmdline_append_option(slot_data, in avb_append_options()
219 if (!cmdline_append_version(slot_data, in avb_append_options()
237 if (!cmdline_append_option(slot_data, in avb_append_options()
256 slot_data, AVB_DIGEST_TYPE_SHA256, vbmeta_digest); in avb_append_options()
257 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
258 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
261 slot_data, "androidboot.vbmeta.hash_alg", "sha256") || in avb_append_options()
263 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
264 !cmdline_append_hex(slot_data, in avb_append_options()
279 slot_data, AVB_DIGEST_TYPE_SHA512, vbmeta_digest); in avb_append_options()
280 for (n = 0; n < slot_data->num_vbmeta_images; n++) { in avb_append_options()
281 total_size += slot_data->vbmeta_images[n].vbmeta_size; in avb_append_options()
284 slot_data, "androidboot.vbmeta.hash_alg", "sha512") || in avb_append_options()
286 slot_data, "androidboot.vbmeta.size", total_size) || in avb_append_options()
287 !cmdline_append_hex(slot_data, in avb_append_options()
310 slot_data, "androidboot.vbmeta.invalidate_on_error", "yes")) { in avb_append_options()
336 slot_data->cmdline, "$(ANDROID_VERITY_MODE)", dm_verity_mode); in avb_append_options()
337 avb_free(slot_data->cmdline); in avb_append_options()
338 slot_data->cmdline = new_ret; in avb_append_options()
339 if (slot_data->cmdline == NULL) { in avb_append_options()
345 slot_data, "androidboot.veritymode", verity_mode)) { in avb_append_options()