Lines Matching refs:cfiq
208 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()
209 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()
255 cfi->cfiq->BufWriteTimeoutTyp = 0; /* Not supported */ in fixup_st_m28w320ct()
256 cfi->cfiq->BufWriteTimeoutMax = 0; /* Not supported */ in fixup_st_m28w320ct()
265 cfi->cfiq->EraseRegionInfo[1] = in fixup_st_m28w320cb()
266 (cfi->cfiq->EraseRegionInfo[1] & 0xffff0000) | 0x3e; in fixup_st_m28w320cb()
312 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()
507 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_cmdset_0001()
517 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()
548 if (cfi->cfiq->WordWriteTimeoutTyp) in cfi_cmdset_0001()
550 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0001()
554 if (cfi->cfiq->BufWriteTimeoutTyp) in cfi_cmdset_0001()
556 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()
559 if (cfi->cfiq->BlockEraseTimeoutTyp) in cfi_cmdset_0001()
561 1000<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0001()
565 if (cfi->cfiq->WordWriteTimeoutTyp && in cfi_cmdset_0001()
566 cfi->cfiq->WordWriteTimeoutMax) in cfi_cmdset_0001()
568 1<<(cfi->cfiq->WordWriteTimeoutTyp + in cfi_cmdset_0001()
569 cfi->cfiq->WordWriteTimeoutMax); in cfi_cmdset_0001()
573 if (cfi->cfiq->BufWriteTimeoutTyp && in cfi_cmdset_0001()
574 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0001()
576 1<<(cfi->cfiq->BufWriteTimeoutTyp + in cfi_cmdset_0001()
577 cfi->cfiq->BufWriteTimeoutMax); in cfi_cmdset_0001()
579 if (cfi->cfiq->BlockEraseTimeoutTyp && in cfi_cmdset_0001()
580 cfi->cfiq->BlockEraseTimeoutMax) in cfi_cmdset_0001()
582 1000<<(cfi->cfiq->BlockEraseTimeoutTyp + in cfi_cmdset_0001()
583 cfi->cfiq->BlockEraseTimeoutMax); in cfi_cmdset_0001()
607 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_setup()
613 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
620 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_intelext_setup()
622 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_intelext_setup()
623 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()
629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup()
630 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_intelext_setup()
631 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
632 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()
633 if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) in cfi_intelext_setup()
672 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) in cfi_intelext_setup()
674 kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); in cfi_intelext_setup()
1564 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); in do_write_oneword()
1720 wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in do_write_buffer()
1732 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); in do_write_buffer()
1878 int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_intelext_writev()
2321 devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_otp_walk()
2679 kfree(cfi->cfiq); in cfi_intelext_destroy()