cfiq 206 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutTyp = 0; cfiq 207 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax = 0; cfiq 253 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutTyp = 0; /* Not supported */ cfiq 254 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax = 0; /* Not supported */ cfiq 263 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->EraseRegionInfo[1] = cfiq 264 drivers/mtd/chips/cfi_cmdset_0001.c (cfi->cfiq->EraseRegionInfo[1] & 0xffff0000) | 0x3e; cfiq 310 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp) { cfiq 504 drivers/mtd/chips/cfi_cmdset_0001.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 514 drivers/mtd/chips/cfi_cmdset_0001.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfiq 545 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->WordWriteTimeoutTyp) cfiq 547 drivers/mtd/chips/cfi_cmdset_0001.c 1<<cfi->cfiq->WordWriteTimeoutTyp; cfiq 551 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp) cfiq 553 drivers/mtd/chips/cfi_cmdset_0001.c 1<<cfi->cfiq->BufWriteTimeoutTyp; cfiq 556 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BlockEraseTimeoutTyp) cfiq 558 drivers/mtd/chips/cfi_cmdset_0001.c 1000<<cfi->cfiq->BlockEraseTimeoutTyp; cfiq 562 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->WordWriteTimeoutTyp && cfiq 563 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->WordWriteTimeoutMax) cfiq 565 drivers/mtd/chips/cfi_cmdset_0001.c 1<<(cfi->cfiq->WordWriteTimeoutTyp + cfiq 566 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->WordWriteTimeoutMax); cfiq 570 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BufWriteTimeoutTyp && cfiq 571 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax) cfiq 573 drivers/mtd/chips/cfi_cmdset_0001.c 1<<(cfi->cfiq->BufWriteTimeoutTyp + cfiq 574 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BufWriteTimeoutMax); cfiq 576 drivers/mtd/chips/cfi_cmdset_0001.c if (cfi->cfiq->BlockEraseTimeoutTyp && cfiq 577 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BlockEraseTimeoutMax) cfiq 579 drivers/mtd/chips/cfi_cmdset_0001.c 1000<<(cfi->cfiq->BlockEraseTimeoutTyp + cfiq 580 drivers/mtd/chips/cfi_cmdset_0001.c cfi->cfiq->BlockEraseTimeoutMax); cfiq 604 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfiq 610 drivers/mtd/chips/cfi_cmdset_0001.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfiq 617 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfiq 619 drivers/mtd/chips/cfi_cmdset_0001.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfiq 620 drivers/mtd/chips/cfi_cmdset_0001.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfiq 626 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfiq 627 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfiq 628 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfiq 629 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); cfiq 630 drivers/mtd/chips/cfi_cmdset_0001.c if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) cfiq 669 drivers/mtd/chips/cfi_cmdset_0001.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) cfiq 671 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); cfiq 1559 drivers/mtd/chips/cfi_cmdset_0001.c write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0x40) : CMD(0x41); cfiq 1715 drivers/mtd/chips/cfi_cmdset_0001.c wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 1727 drivers/mtd/chips/cfi_cmdset_0001.c write_cmd = (cfi->cfiq->P_ID != P_ID_INTEL_PERFORMANCE) ? CMD(0xe8) : CMD(0xe9); cfiq 1873 drivers/mtd/chips/cfi_cmdset_0001.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 2316 drivers/mtd/chips/cfi_cmdset_0001.c devsize = (1 << cfi->cfiq->DevSize) * cfi->interleave; cfiq 2673 drivers/mtd/chips/cfi_cmdset_0001.c kfree(cfi->cfiq); cfiq 275 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->cfiq->BufWriteTimeoutTyp) { cfiq 310 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutTyp = 0; cfiq 311 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax = 0; cfiq 325 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->NumEraseRegions == 1) && cfiq 326 drivers/mtd/chips/cfi_cmdset_0002.c ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0)) { cfiq 354 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->NumEraseRegions = 1; cfiq 392 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] = 0x002003ff; cfiq 402 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0x003f) { cfiq 403 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] |= 0x0040; cfiq 414 drivers/mtd/chips/cfi_cmdset_0002.c if ((cfi->cfiq->EraseRegionInfo[1] & 0xffff) == 0x007e) { cfiq 415 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[1] &= ~0x0040; cfiq 430 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[0] = 0x020001ff; cfiq 612 drivers/mtd/chips/cfi_cmdset_0002.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 622 drivers/mtd/chips/cfi_cmdset_0002.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfiq 684 drivers/mtd/chips/cfi_cmdset_0002.c if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) { cfiq 687 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) { cfiq 688 drivers/mtd/chips/cfi_cmdset_0002.c int j = (cfi->cfiq->NumEraseRegions-1)-i; cfiq 690 drivers/mtd/chips/cfi_cmdset_0002.c swap(cfi->cfiq->EraseRegionInfo[i], cfiq 691 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->EraseRegionInfo[j]); cfiq 714 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; cfiq 715 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; cfiq 716 drivers/mtd/chips/cfi_cmdset_0002.c cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp; cfiq 723 drivers/mtd/chips/cfi_cmdset_0002.c if (cfi->cfiq->BufWriteTimeoutTyp && cfiq 724 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax) cfiq 726 drivers/mtd/chips/cfi_cmdset_0002.c 1 << (cfi->cfiq->BufWriteTimeoutTyp + cfiq 727 drivers/mtd/chips/cfi_cmdset_0002.c cfi->cfiq->BufWriteTimeoutMax); cfiq 752 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfiq 761 drivers/mtd/chips/cfi_cmdset_0002.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfiq 768 drivers/mtd/chips/cfi_cmdset_0002.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfiq 770 drivers/mtd/chips/cfi_cmdset_0002.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfiq 771 drivers/mtd/chips/cfi_cmdset_0002.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfiq 777 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfiq 778 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfiq 779 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfiq 797 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cfiq); cfiq 2105 drivers/mtd/chips/cfi_cmdset_0002.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 3107 drivers/mtd/chips/cfi_cmdset_0002.c kfree(cfi->cfiq); cfiq 124 drivers/mtd/chips/cfi_cmdset_0020.c __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; cfiq 172 drivers/mtd/chips/cfi_cmdset_0020.c unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; cfiq 186 drivers/mtd/chips/cfi_cmdset_0020.c mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; cfiq 196 drivers/mtd/chips/cfi_cmdset_0020.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfiq 198 drivers/mtd/chips/cfi_cmdset_0020.c ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; cfiq 199 drivers/mtd/chips/cfi_cmdset_0020.c ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; cfiq 205 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; cfiq 206 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; cfiq 207 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; cfiq 240 drivers/mtd/chips/cfi_cmdset_0020.c mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 434 drivers/mtd/chips/cfi_cmdset_0020.c wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 613 drivers/mtd/chips/cfi_cmdset_0020.c int wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; cfiq 184 drivers/mtd/chips/cfi_probe.c cfi->cfiq->DevSize = 27; cfiq 185 drivers/mtd/chips/cfi_probe.c cfi->cfiq->EraseRegionInfo[0] = 0x20003ff; cfiq 210 drivers/mtd/chips/cfi_probe.c cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfiq 211 drivers/mtd/chips/cfi_probe.c if (!cfi->cfiq) cfiq 214 drivers/mtd/chips/cfi_probe.c memset(cfi->cfiq,0,sizeof(struct cfi_ident)); cfiq 223 drivers/mtd/chips/cfi_probe.c ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); cfiq 226 drivers/mtd/chips/cfi_probe.c cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); cfiq 228 drivers/mtd/chips/cfi_probe.c cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); cfiq 229 drivers/mtd/chips/cfi_probe.c cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); cfiq 230 drivers/mtd/chips/cfi_probe.c cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); cfiq 231 drivers/mtd/chips/cfi_probe.c cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); cfiq 232 drivers/mtd/chips/cfi_probe.c cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); cfiq 236 drivers/mtd/chips/cfi_probe.c print_cfi_ident(cfi->cfiq); cfiq 239 drivers/mtd/chips/cfi_probe.c for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { cfiq 240 drivers/mtd/chips/cfi_probe.c cfi->cfiq->EraseRegionInfo[i] = le32_to_cpu(cfi->cfiq->EraseRegionInfo[i]); cfiq 244 drivers/mtd/chips/cfi_probe.c i, (cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff, cfiq 245 drivers/mtd/chips/cfi_probe.c (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1); cfiq 249 drivers/mtd/chips/cfi_probe.c if (cfi->cfiq->P_ID == P_ID_SST_OLD) { cfiq 51 drivers/mtd/chips/gen_probe.c kfree(cfi->cfiq); cfiq 82 drivers/mtd/chips/gen_probe.c if (cfi.cfiq->NumEraseRegions == 0) { cfiq 84 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfiq 88 drivers/mtd/chips/gen_probe.c cfi.chipshift = cfi.cfiq->DevSize; cfiq 117 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfiq 141 drivers/mtd/chips/gen_probe.c kfree(cfi.cfiq); cfiq 203 drivers/mtd/chips/gen_probe.c __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; cfiq 236 drivers/mtd/chips/gen_probe.c __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; cfiq 1987 drivers/mtd/chips/jedec_probe.c cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); cfiq 1988 drivers/mtd/chips/jedec_probe.c if (!cfi->cfiq) { cfiq 1993 drivers/mtd/chips/jedec_probe.c memset(cfi->cfiq, 0, sizeof(struct cfi_ident)); cfiq 1995 drivers/mtd/chips/jedec_probe.c cfi->cfiq->P_ID = jedec_table[index].cmd_set; cfiq 1996 drivers/mtd/chips/jedec_probe.c cfi->cfiq->NumEraseRegions = jedec_table[index].nr_regions; cfiq 1997 drivers/mtd/chips/jedec_probe.c cfi->cfiq->DevSize = jedec_table[index].dev_size; cfiq 2002 drivers/mtd/chips/jedec_probe.c cfi->cfiq->EraseRegionInfo[i] = jedec_table[index].regions[i]; cfiq 80 drivers/mtd/maps/scb2_flash.c if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { cfiq 82 drivers/mtd/maps/scb2_flash.c cfi->cfiq->InterfaceDesc); cfiq 282 include/linux/mtd/cfi.h struct cfi_ident *cfiq; /* For now only one. We insist that all devs