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()
523 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_cmdset_0001()
533 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()
564 if (cfi->cfiq->WordWriteTimeoutTyp) in cfi_cmdset_0001()
566 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0001()
570 if (cfi->cfiq->BufWriteTimeoutTyp) in cfi_cmdset_0001()
572 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()
575 if (cfi->cfiq->BlockEraseTimeoutTyp) in cfi_cmdset_0001()
577 1000<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0001()
581 if (cfi->cfiq->WordWriteTimeoutTyp && in cfi_cmdset_0001()
582 cfi->cfiq->WordWriteTimeoutMax) in cfi_cmdset_0001()
584 1<<(cfi->cfiq->WordWriteTimeoutTyp + in cfi_cmdset_0001()
585 cfi->cfiq->WordWriteTimeoutMax); in cfi_cmdset_0001()
589 if (cfi->cfiq->BufWriteTimeoutTyp && in cfi_cmdset_0001()
590 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0001()
592 1<<(cfi->cfiq->BufWriteTimeoutTyp + in cfi_cmdset_0001()
593 cfi->cfiq->BufWriteTimeoutMax); in cfi_cmdset_0001()
595 if (cfi->cfiq->BlockEraseTimeoutTyp && in cfi_cmdset_0001()
596 cfi->cfiq->BlockEraseTimeoutMax) in cfi_cmdset_0001()
598 1000<<(cfi->cfiq->BlockEraseTimeoutTyp + in cfi_cmdset_0001()
599 cfi->cfiq->BlockEraseTimeoutMax); in cfi_cmdset_0001()
623 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_setup()
629 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
636 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_intelext_setup()
638 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_intelext_setup()
639 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()
645 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup()
646 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_intelext_setup()
647 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
648 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()
649 if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) in cfi_intelext_setup()
688 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) in cfi_intelext_setup()
690 kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); in cfi_intelext_setup()
1580 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); in do_write_oneword()
1736 wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in do_write_buffer()
1748 write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); in do_write_buffer()
1894 int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_intelext_writev()
2337 devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; in cfi_intelext_otp_walk()
2695 kfree(cfi->cfiq); in cfi_intelext_destroy()