• Home
  • Raw
  • Download

Lines Matching refs:afi

92 			struct afs_image *afi = &afs_images[num_afs_images];  in parse_bank()  local
95 afi->flinfo = info; in parse_bank()
96 afi->version = 1; in parse_bank()
97 afi->flash_mem_start = readl((void *)secend - 0x10); in parse_bank()
98 afi->flash_mem_end = readl((void *)secend - 0x14); in parse_bank()
99 afi->attributes = readl((void *)secend - 0x08); in parse_bank()
101 imginfo = afi->flash_mem_end + afi->flash_mem_end % 4; in parse_bank()
103 afi->region_count = 1; in parse_bank()
104 afi->regions[0].offset = readl((void *)imginfo + 0x04); in parse_bank()
105 afi->regions[0].load_address = in parse_bank()
107 afi->regions[0].size = readl((void *)imginfo + 0x0C); in parse_bank()
108 afi->entrypoint = readl((void *)imginfo + 0x10); in parse_bank()
109 afi->name = (const char *)imginfo + 0x14; in parse_bank()
118 struct afs_image *afi = &afs_images[num_afs_images]; in parse_bank() local
123 afi->flinfo = info; in parse_bank()
124 afi->version = readl((void *)secend - 0x0c); in parse_bank()
126 afi->name = (const char *)secend - 0x30; in parse_bank()
128 afi->entrypoint = readl((void *)imginfo+0x08); in parse_bank()
129 afi->attributes = readl((void *)imginfo+0x0c); in parse_bank()
130 afi->region_count = readl((void *)imginfo+0x10); in parse_bank()
133 afi->flash_mem_start = afi->flinfo->start[block_start]; in parse_bank()
134 afi->flash_mem_end = afi->flinfo->start[block_end]; in parse_bank()
147 for (j = 0; j < afi->region_count; j++) { in parse_bank()
148 afi->regions[j].load_address = in parse_bank()
150 afi->regions[j].size = in parse_bank()
152 afi->regions[j].offset = in parse_bank()
180 struct afs_image *afi = NULL; in load_image() local
188 afi = tmp; in load_image()
192 if (!afi) { in load_image()
197 for (i = 0; i < afi->region_count; i++) { in load_image()
200 from = afi->flash_mem_start + afi->regions[i].offset; in load_image()
203 } else if (afi->regions[i].load_address) { in load_image()
204 to = afi->regions[i].load_address; in load_image()
210 memcpy((void *)to, (void *)from, afi->regions[i].size); in load_image()
216 afi->regions[i].size); in load_image()
227 struct afs_image *afi = &afs_images[i]; in print_images() local
230 printf("Image: \"%s\" (v%d):\n", afi->name, afi->version); in print_images()
231 printf(" Entry point: 0x%08X\n", afi->entrypoint); in print_images()
232 printf(" Attributes: 0x%08X: ", afi->attributes); in print_images()
233 if (afi->attributes == 0x01) in print_images()
235 if (afi->attributes == 0x08) in print_images()
239 afi->flash_mem_start); in print_images()
241 afi->flash_mem_end); in print_images()
242 for (j = 0; j < afi->region_count; j++) { in print_images()
248 afi->regions[j].load_address, in print_images()
249 afi->regions[j].size, in print_images()
250 afi->regions[j].offset); in print_images()
261 struct afs_image *afi = &afs_images[i]; in exists() local
263 if (strcmp(afi->name, name) == 0) in exists()