Lines Matching refs:cfiq
206 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()
207 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()
253 cfi->cfiq->BufWriteTimeoutTyp = 0; /* Not supported */ in fixup_st_m28w320ct()
254 cfi->cfiq->BufWriteTimeoutMax = 0; /* Not supported */ in fixup_st_m28w320ct()
263 cfi->cfiq->EraseRegionInfo[1] = in fixup_st_m28w320cb()
264 (cfi->cfiq->EraseRegionInfo[1] & 0xffff0000) | 0x3e; in fixup_st_m28w320cb()
310 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()
505 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_cmdset_0001()
515 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()
546 if (cfi->cfiq->WordWriteTimeoutTyp) in cfi_cmdset_0001()
548 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0001()
552 if (cfi->cfiq->BufWriteTimeoutTyp) in cfi_cmdset_0001()
554 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()
557 if (cfi->cfiq->BlockEraseTimeoutTyp) in cfi_cmdset_0001()
559 1000<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0001()
563 if (cfi->cfiq->WordWriteTimeoutTyp && in cfi_cmdset_0001()
564 cfi->cfiq->WordWriteTimeoutMax) in cfi_cmdset_0001()
566 1<<(cfi->cfiq->WordWriteTimeoutTyp + in cfi_cmdset_0001()
567 cfi->cfiq->WordWriteTimeoutMax); in cfi_cmdset_0001()
571 if (cfi->cfiq->BufWriteTimeoutTyp && in cfi_cmdset_0001()
572 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0001()
574 1<<(cfi->cfiq->BufWriteTimeoutTyp + in cfi_cmdset_0001()
575 cfi->cfiq->BufWriteTimeoutMax); in cfi_cmdset_0001()
577 if (cfi->cfiq->BlockEraseTimeoutTyp && in cfi_cmdset_0001()
578 cfi->cfiq->BlockEraseTimeoutMax) in cfi_cmdset_0001()
580 1000<<(cfi->cfiq->BlockEraseTimeoutTyp + in cfi_cmdset_0001()
581 cfi->cfiq->BlockEraseTimeoutMax); in cfi_cmdset_0001()
605 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_setup()
611 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
618 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_intelext_setup()
620 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_intelext_setup()
621 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()
627 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup()
628 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_intelext_setup()
629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
630 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()
631 if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) in cfi_intelext_setup()
670 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) in cfi_intelext_setup()
672 kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); in cfi_intelext_setup()
1562 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); in do_write_oneword()
1718 wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in do_write_buffer()
1730 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); in do_write_buffer()
1876 int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_intelext_writev()
2319 devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_otp_walk()
2676 kfree(cfi->cfiq); in cfi_intelext_destroy()