Lines Matching refs:I

71    unsigned I,Uniq;  in jedec_probe()  local
112 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in jedec_probe()
116 if (priv->chips[I].sectorsize > SectorSize) in jedec_probe()
117 SectorSize = priv->chips[I].sectorsize; in jedec_probe()
121 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in jedec_probe()
123 if ((SectorSize/priv->chips[I].sectorsize)*priv->chips[I].sectorsize != SectorSize) in jedec_probe()
138 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in jedec_probe()
142 if (priv->chips[I+1].jedec == priv->chips[I].jedec) in jedec_probe()
149 JEDEC = jedec_idtoinf(priv->chips[I].jedec >> 8,priv->chips[I].jedec); in jedec_probe()
189 for (I = 0; I != priv->size/my_bank_size - 1; I++) in jedec_probe()
191 if (priv->bank_fill[I] != my_bank_size) in jedec_probe()
196 …printk("priv->bank_fill[%d] is %lx, priv->bank_fill[0] is %lx\n",I,priv->bank_fill[I],priv->bank_f… in jedec_probe()
197 if (priv->bank_fill[I] != priv->bank_fill[0]) in jedec_probe()
256 unsigned I,J; in handle_jedecs() local
262 for (I = 0; I != Count; I++) in handle_jedecs()
264 if (checkparity(Mfg[I]) == 0 || checkparity(Id[I]) == 0) in handle_jedecs()
279 for (I = 0; I != Count; I++) in handle_jedecs()
296 for (I = 0; I != MAX_JEDEC_CHIPS; I++) in handle_jedecs()
298 if (priv->chips[I].jedec == 0) in handle_jedecs()
302 if (I + Count > MAX_JEDEC_CHIPS) in handle_jedecs()
314 priv->chips[I].jedec = (Mfg[J] << 8) | Id[J]; in handle_jedecs()
315 priv->chips[I].size = JEDEC->size; in handle_jedecs()
316 priv->chips[I].sectorsize = JEDEC->sectorsize; in handle_jedecs()
317 priv->chips[I].base = base + J; in handle_jedecs()
318 priv->chips[I].datashift = J*8; in handle_jedecs()
319 priv->chips[I].capabilities = JEDEC->capabilities; in handle_jedecs()
320 priv->chips[I].offset = priv->size + J; in handle_jedecs()
323 priv->chips[I].addrshift = 0; in handle_jedecs()
324 for (Bank = Count; Bank != 1; Bank >>= 1, priv->chips[I].addrshift++); in handle_jedecs()
329 (JEDEC->size << priv->chips[I].addrshift) - Bank) in handle_jedecs()
330 priv->bank_fill[Bank/my_bank_size] = base + (JEDEC->size << priv->chips[I].addrshift) - Bank; in handle_jedecs()
331 I++; in handle_jedecs()
334 priv->size += priv->chips[I-1].size*Count; in handle_jedecs()
336 return priv->chips[I-1].size; in handle_jedecs()
343 unsigned long I = 0; in jedec_idtoinf() local
344 for (I = 0; JEDEC_table[I].jedec != 0; I++) in jedec_idtoinf()
345 if (JEDEC_table[I].jedec == Id) in jedec_idtoinf()
346 return JEDEC_table + I; in jedec_idtoinf()
364 unsigned I; in jedec_probe8() local
369 for (I = 0; OldVal != flread(base) && I < 10000; I++) in jedec_probe8()
424 unsigned I; in jedec_probe32() local
429 for (I = 0; OldVal != flread(base) && I < 10000; I++) in jedec_probe32()
450 for (I = 0; I != 4; I++) in jedec_probe32()
451 Mfg[I] = (OldVal >> (I*8)); in jedec_probe32()
453 for (I = 0; I != 4; I++) in jedec_probe32()
454 Id[I] = (OldVal >> (I*8)); in jedec_probe32()
554 unsigned int I; in flash_erase() local
568 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in flash_erase()
571 struct jedec_flash_chip *chip = priv->chips + I; in flash_erase()
618 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in flash_erase()
620 struct jedec_flash_chip *chip = priv->chips + I; in flash_erase()
842 unsigned int I; in jedec_flash_chip_scan() local
845 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in jedec_flash_chip_scan()
846 priv->chips[I].start = priv->chips[I].length = 0; in jedec_flash_chip_scan()
849 for (I = 0; priv->chips[I].jedec != 0 && I < MAX_JEDEC_CHIPS; I++) in jedec_flash_chip_scan()
851 struct jedec_flash_chip *chip = priv->chips + I; in jedec_flash_chip_scan()