Home
last modified time | relevance | path

Searched refs:cfiq (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.6/drivers/mtd/chips/
Dcfi_probe.c185 cfi->cfiq->DevSize = 27; in fixup_s70gl02gs_chips()
186 cfi->cfiq->EraseRegionInfo[0] = 0x20003ff; in fixup_s70gl02gs_chips()
211 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_chip_setup()
212 if (!cfi->cfiq) in cfi_chip_setup()
215 memset(cfi->cfiq,0,sizeof(struct cfi_ident)); in cfi_chip_setup()
224 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); 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()
[all …]
Dgen_probe.c51 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()
Dcfi_cmdset_0001.c208 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()
507 mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize; in cfi_cmdset_0001()
517 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()
548 if (cfi->cfiq->WordWriteTimeoutTyp) in cfi_cmdset_0001()
[all …]
Dcfi_cmdset_0002.c282 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()
333 ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0)) { in fixup_use_erase_chip()
361 cfi->cfiq->NumEraseRegions = 1; in fixup_old_sst_eraseregion()
399 cfi->cfiq->EraseRegionInfo[0] = 0x002003ff; in fixup_sst38vf640x_sectorsize()
409 if ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0x003f) { in fixup_s29gl064n_sectors()
410 cfi->cfiq->EraseRegionInfo[0] |= 0x0040; in fixup_s29gl064n_sectors()
421 if ((cfi->cfiq->EraseRegionInfo[1] & 0xffff) == 0x007e) { in fixup_s29gl032n_sectors()
[all …]
Dcfi_cmdset_0020.c125 __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()
206 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; 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()
[all …]
Djedec_probe.c1988 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()
/Linux-v6.6/drivers/mtd/maps/
Dscb2_flash.c80 if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { in scb2_fixup_mtd()
82 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
/Linux-v6.6/include/linux/mtd/
Dcfi.h282 struct cfi_ident *cfiq; /* For now only one. We insist that all devs member