Lines Matching refs:image_buf
86 uint8_t* image_buf = NULL; in load_and_verify_hash_partition() local
162 image_buf = avb_malloc(image_size); in load_and_verify_hash_partition()
163 if (image_buf == NULL) { in load_and_verify_hash_partition()
169 ops, part_name, 0 /* offset */, image_size, image_buf, &part_num_read); in load_and_verify_hash_partition()
188 avb_sha256_update(&sha256_ctx, image_buf, hash_desc.image_size); in load_and_verify_hash_partition()
195 avb_sha512_update(&sha512_ctx, image_buf, hash_desc.image_size); in load_and_verify_hash_partition()
225 image_buf != NULL) { in load_and_verify_hash_partition()
236 loaded_partition->data = image_buf; in load_and_verify_hash_partition()
237 image_buf = NULL; in load_and_verify_hash_partition()
241 if (image_buf != NULL) { in load_and_verify_hash_partition()
242 avb_free(image_buf); in load_and_verify_hash_partition()
253 uint8_t* image_buf = NULL; in load_requested_partitions() local
291 image_buf = avb_malloc(image_size); in load_requested_partitions()
292 if (image_buf == NULL) { in load_requested_partitions()
298 ops, part_name, 0 /* offset */, image_size, image_buf, &part_num_read); in load_requested_partitions()
327 loaded_partition->data = image_buf; in load_requested_partitions()
328 image_buf = NULL; in load_requested_partitions()
334 if (image_buf != NULL) { in load_requested_partitions()
335 avb_free(image_buf); in load_requested_partitions()