Searched refs:cfiq (Results 1 – 8 of 8) sorted by relevance
143 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_chip_setup()144 if (!cfi->cfiq) { in cfi_chip_setup()149 memset(cfi->cfiq,0,sizeof(struct cfi_ident)); in cfi_chip_setup()156 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); in cfi_chip_setup()160 cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); in cfi_chip_setup()162 cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); in cfi_chip_setup()163 cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); in cfi_chip_setup()164 cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); in cfi_chip_setup()165 cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); in cfi_chip_setup()166 cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); in cfi_chip_setup()[all …]
43 kfree(cfi->cfiq); in mtd_do_chip_probe()74 if (cfi.cfiq->NumEraseRegions == 0) { in genprobe_ident_chips()76 kfree(cfi.cfiq); in genprobe_ident_chips()82 cfi.chipshift = cfi.cfiq->DevSize; in genprobe_ident_chips()130 kfree(cfi.cfiq); in genprobe_ident_chips()286 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in cfi_cmdset_unknown()313 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in check_cmd_set()
64 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002()97 if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) { in cfi_cmdset_0002()100 for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) { in cfi_cmdset_0002()101 int j = (cfi->cfiq->NumEraseRegions-1)-i; in cfi_cmdset_0002()104 swap = cfi->cfiq->EraseRegionInfo[i]; in cfi_cmdset_0002()105 cfi->cfiq->EraseRegionInfo[i] = cfi->cfiq->EraseRegionInfo[j]; in cfi_cmdset_0002()106 cfi->cfiq->EraseRegionInfo[j] = swap; in cfi_cmdset_0002()134 cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0002()135 cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0002()136 cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0002()[all …]
131 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()189 cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0001()190 cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()191 cfi->chips[i].erase_time = 1<<cfi->cfiq->BlockEraseTimeoutTyp; in cfi_cmdset_0001()208 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave;223 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips;231 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) {233 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave;234 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1;240 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset;[all …]
124 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020()189 unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave; in cfi_staa_setup()205 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup()214 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_staa_setup()216 ersize = ((cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff) * cfi->interleave; in cfi_staa_setup()217 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_staa_setup()223 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup()224 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_staa_setup()225 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()451 wbufsize = CFIDEV_INTERLEAVE << cfi->cfiq->MaxBufWriteSize; in do_write_buffer()[all …]
957 p_cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_jedec_setup()958 if (!p_cfi->cfiq) { in cfi_jedec_setup()963 memset(p_cfi->cfiq,0,sizeof(struct cfi_ident)); in cfi_jedec_setup()965 p_cfi->cfiq->P_ID = jedec_table[index].CmdSet; in cfi_jedec_setup()966 p_cfi->cfiq->NumEraseRegions = jedec_table[index].NumEraseRegions; in cfi_jedec_setup()967 p_cfi->cfiq->DevSize = jedec_table[index].DevSize; in cfi_jedec_setup()971 p_cfi->cfiq->EraseRegionInfo[i] = jedec_table[index].regions[i]; in cfi_jedec_setup()
134 if (cfi->cfiq->InterfaceDesc != 1) { in scb2_fixup_mtd()136 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
308 struct cfi_ident *cfiq; /* For now only one. We insist that all devs member