Lines Matching refs:cfiq
282 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()
317 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()
318 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()
332 if ((cfi->cfiq->NumEraseRegions == 1) && in fixup_use_erase_chip()
333 ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0)) { in fixup_use_erase_chip()
361 cfi->cfiq->NumEraseRegions = 1; in fixup_old_sst_eraseregion()
399 cfi->cfiq->EraseRegionInfo[0] = 0x002003ff; in fixup_sst38vf640x_sectorsize()
409 if ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0x003f) { in fixup_s29gl064n_sectors()
410 cfi->cfiq->EraseRegionInfo[0] |= 0x0040; in fixup_s29gl064n_sectors()
421 if ((cfi->cfiq->EraseRegionInfo[1] & 0xffff) == 0x007e) { in fixup_s29gl032n_sectors()
422 cfi->cfiq->EraseRegionInfo[1] &= ~0x0040; in fixup_s29gl032n_sectors()
437 cfi->cfiq->EraseRegionInfo[0] = 0x020001ff; in fixup_s29ns512p_sectors()
629 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_cmdset_0002()
639 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002()
701 if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) { in cfi_cmdset_0002()
704 for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) { in cfi_cmdset_0002()
705 int j = (cfi->cfiq->NumEraseRegions-1)-i; in cfi_cmdset_0002()
707 swap(cfi->cfiq->EraseRegionInfo[i], in cfi_cmdset_0002()
708 cfi->cfiq->EraseRegionInfo[j]); in cfi_cmdset_0002()
731 cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0002()
732 cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0002()
733 cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0002()
740 if (cfi->cfiq->BufWriteTimeoutTyp && in cfi_cmdset_0002()
741 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0002()
743 1 << (cfi->cfiq->BufWriteTimeoutTyp + in cfi_cmdset_0002()
744 cfi->cfiq->BufWriteTimeoutMax); in cfi_cmdset_0002()
769 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_amdstd_setup()
778 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup()
785 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_amdstd_setup()
787 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_amdstd_setup()
788 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_amdstd_setup()
794 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup()
795 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_amdstd_setup()
796 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()
2100 int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_amdstd_write_buffers()
3105 kfree(cfi->cfiq); in cfi_amdstd_destroy()