Lines Matching refs:iis
129 afs_read_iis(struct mtd_info *mtd, struct image_info_struct *iis, u_int ptr)
134 memset(iis, 0, sizeof(*iis));
135 ret = mtd->read(mtd, ptr, sizeof(*iis), &sz, (u_char *) iis);
139 if (sz != sizeof(*iis)) {
149 for (i = 0; i < sizeof(iis->name); i++)
150 if (iis->name[i] == '\0')
153 if (i < sizeof(iis->name))
185 struct image_info_struct iis;
194 ret = afs_read_iis(mtd, &iis, iis_ptr);
201 sz += strlen(iis.name) + 1;
218 struct image_info_struct iis;
229 ret = afs_read_iis(mtd, &iis, iis_ptr);
235 strcpy(str, iis.name);
238 parts[idx].size = (iis.length + mtd->erasesize - 1) & ~(mtd->erasesize - 1);
244 iis.imageNumber, str);
247 str = str + strlen(iis.name) + 1;