Lines Matching refs:ip
39 struct INFTLPartition *ip; in find_boot_record() local
177 ip = &mh->Partitions[i]; in find_boot_record()
178 ip->virtualUnits = le32_to_cpu(ip->virtualUnits); in find_boot_record()
179 ip->firstUnit = le32_to_cpu(ip->firstUnit); in find_boot_record()
180 ip->lastUnit = le32_to_cpu(ip->lastUnit); in find_boot_record()
181 ip->flags = le32_to_cpu(ip->flags); in find_boot_record()
182 ip->spareUnits = le32_to_cpu(ip->spareUnits); in find_boot_record()
183 ip->Reserved0 = le32_to_cpu(ip->Reserved0); in find_boot_record()
191 i, ip->virtualUnits, ip->firstUnit, in find_boot_record()
192 ip->lastUnit, ip->flags, in find_boot_record()
193 ip->spareUnits); in find_boot_record()
195 if (ip->Reserved0 != ip->firstUnit) { in find_boot_record()
205 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record()
209 if ((ip->lastUnit - ip->firstUnit + 1) < ip->virtualUnits) { in find_boot_record()
213 "virtualUnits %d\n", i, ip->lastUnit, in find_boot_record()
214 ip->firstUnit, ip->Reserved0); in find_boot_record()
217 if (ip->Reserved1 != 0) { in find_boot_record()
221 i, ip->Reserved1); in find_boot_record()
225 if (ip->flags & INFTL_BDTL) in find_boot_record()
236 inftl->nb_boot_blocks = ip->firstUnit; in find_boot_record()
237 inftl->numvunits = ip->virtualUnits; in find_boot_record()
255 inftl->firstEUN = ip->firstUnit; in find_boot_record()
256 inftl->lastEUN = ip->lastUnit; in find_boot_record()
257 inftl->nb_blocks = ip->lastUnit + 1; in find_boot_record()