Searched refs:cfiq (Results 1 – 8 of 8) sorted by relevance
185 cfi->cfiq->DevSize = 27; in fixup_s70gl02gs_chips()212 if (!cfi->cfiq) in cfi_chip_setup()227 cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); in cfi_chip_setup()229 cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); in cfi_chip_setup()230 cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); in cfi_chip_setup()231 cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); in cfi_chip_setup()232 cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); in cfi_chip_setup()233 cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); in cfi_chip_setup()237 print_cfi_ident(cfi->cfiq); in cfi_chip_setup()241 cfi->cfiq->EraseRegionInfo[i] = le32_to_cpu(cfi->cfiq->EraseRegionInfo[i]); in cfi_chip_setup()[all …]
51 kfree(cfi->cfiq); in mtd_do_chip_probe()82 if (cfi.cfiq->NumEraseRegions == 0) { in genprobe_ident_chips()84 kfree(cfi.cfiq); in genprobe_ident_chips()88 cfi.chipshift = cfi.cfiq->DevSize; in genprobe_ident_chips()116 kfree(cfi.cfiq); in genprobe_ident_chips()140 kfree(cfi.cfiq); in genprobe_ident_chips()202 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in cfi_cmdset_unknown()235 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in check_cmd_set()
208 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()209 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()265 cfi->cfiq->EraseRegionInfo[1] = in fixup_st_m28w320cb()312 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()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()570 if (cfi->cfiq->BufWriteTimeoutTyp) in cfi_cmdset_0001()572 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()582 cfi->cfiq->WordWriteTimeoutMax) in cfi_cmdset_0001()590 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0001()[all …]
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()361 cfi->cfiq->NumEraseRegions = 1; in fixup_old_sst_eraseregion()639 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002()707 swap(cfi->cfiq->EraseRegionInfo[i], in cfi_cmdset_0002()708 cfi->cfiq->EraseRegionInfo[j]); in cfi_cmdset_0002()740 if (cfi->cfiq->BufWriteTimeoutTyp && in cfi_cmdset_0002()741 cfi->cfiq->BufWriteTimeoutMax) in cfi_cmdset_0002()[all …]
125 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020()173 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_staa_setup()187 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup()197 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_staa_setup()199 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_staa_setup()200 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_staa_setup()207 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_staa_setup()208 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()241 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_staa_setup()434 wbufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in do_write_buffer()[all …]
1988 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_jedec_setup()1989 if (!cfi->cfiq) { in cfi_jedec_setup()1994 memset(cfi->cfiq, 0, sizeof(struct cfi_ident)); in cfi_jedec_setup()1996 cfi->cfiq->P_ID = jedec_table[index].cmd_set; in cfi_jedec_setup()1997 cfi->cfiq->NumEraseRegions = jedec_table[index].nr_regions; in cfi_jedec_setup()1998 cfi->cfiq->DevSize = jedec_table[index].dev_size; in cfi_jedec_setup()2003 cfi->cfiq->EraseRegionInfo[i] = jedec_table[index].regions[i]; in cfi_jedec_setup()
80 if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { in scb2_fixup_mtd()82 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
282 struct cfi_ident *cfiq; /* For now only one. We insist that all devs member