Lines Matching refs:image_index
20 static int authenticate_image(struct boot_img_t *img, int image_index) in authenticate_image() argument
28 image_index, (uint32_t)img->dst, img->offset, img->size); in authenticate_image()
37 image_index, img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1), err); in authenticate_image()
49 image_index, err); in authenticate_image()
54 1 << image_index); in authenticate_image()
57 image_index, err); in authenticate_image()
65 image_index, err); in authenticate_image()
76 int image_index, in read_auth_image() argument
83 if (image_index > container->num_images) { in read_auth_image()
91 if (images[image_index].offset % info->bl_len) { in read_auth_image()
93 __func__, image_index, info->bl_len); in read_auth_image()
97 sectors = roundup(images[image_index].size, info->bl_len) / in read_auth_image()
99 sector = images[image_index].offset / info->bl_len + in read_auth_image()
105 (void *)images[image_index].entry) != sectors) { in read_auth_image()
111 if (authenticate_image(&images[image_index], image_index)) { in read_auth_image()
112 printf("Failed to authenticate image %d\n", image_index); in read_auth_image()
117 return &images[image_index]; in read_auth_image()