/linux/drivers/mtd/chips/ |
H A D | gen_probe.c | 102 cfi.numchips = 1; in genprobe_ident_chips() 137 retcfi = kmalloc(struct_size(retcfi, chips, cfi.numchips), GFP_KERNEL); in genprobe_ident_chips() 146 memset(&retcfi->chips[0], 0, sizeof(struct flchip) * cfi.numchips); in genprobe_ident_chips() 148 for (i = 0, j = 0; (j < cfi.numchips) && (i < max_chips); i++) { in genprobe_ident_chips()
|
H A D | cfi_cmdset_0001.c | 563 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0001() 627 mtd->size = devsize * cfi->numchips; in cfi_intelext_setup() 629 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup() 644 for (j=0; j<cfi->numchips; j++) { in cfi_intelext_setup() 689 for (j=0; j<cfi->numchips; j++) in cfi_intelext_setup() 779 numvirtchips = cfi->numchips * numparts; in cfi_intelext_partition_fixup() 784 shared = kmalloc_array(cfi->numchips, in cfi_intelext_partition_fixup() 792 newcfi->numchips = numvirtchips; in cfi_intelext_partition_fixup() 796 for (i = 0; i < cfi->numchips; i++) { in cfi_intelext_partition_fixup() 813 map->name, cfi->numchips, cfi->interleave, in cfi_intelext_partition_fixup() [all …]
|
H A D | cfi_cmdset_0020.c | 155 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020() 185 mtd->size = devsize * cfi->numchips; in cfi_staa_setup() 187 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup() 205 for (j=0; j<cfi->numchips; j++) { in cfi_staa_setup() 399 if (chipnum >= cfi->numchips) in cfi_staa_read() 647 if (chipnum == cfi->numchips) in cfi_staa_write_buffers() 965 if (chipnum >= cfi->numchips) in cfi_staa_erase_varsize() 982 for (i=0; !ret && i<cfi->numchips; i++) { in cfi_staa_sync() 1172 if (chipnum >= cfi->numchips) in cfi_staa_lock() 1320 for (i=0; !ret && i<cfi->numchips; i++) { in cfi_staa_suspend() [all …]
|
H A D | cfi_cmdset_0002.c | 730 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0002() 774 (cfi->cfi_mode == CFI_MODE_CFI)?"CFI":"JEDEC",cfi->numchips); in cfi_amdstd_setup() 776 mtd->size = devsize * cfi->numchips; in cfi_amdstd_setup() 778 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup() 793 for (j=0; j<cfi->numchips; j++) { in cfi_amdstd_setup() 1250 if (chipnum >= cfi->numchips) in cfi_amdstd_read() 1359 if (chipnum >= cfi->numchips) in cfi_amdstd_secsi_read() 1499 for (chipnum = 0; chipnum < cfi->numchips; chipnum++) { in cfi_amdstd_otp_walk() 1873 if (chipnum == cfi->numchips) in cfi_amdstd_write_words() 1897 if (chipnum == cfi->numchips) in cfi_amdstd_write_words() [all …]
|
H A D | cfi_probe.c | 120 if (!cfi->numchips) { in cfi_probe_chip() 166 cfi->numchips++; in cfi_probe_chip()
|
H A D | cfi_util.c | 434 if (chipnum >= cfi->numchips) in cfi_varsize_frob()
|
H A D | jedec_probe.c | 2158 if (!cfi->numchips) { in jedec_probe_chip() 2194 if (!cfi->numchips) { in jedec_probe_chip() 2267 cfi->numchips++; in jedec_probe_chip()
|
/linux/include/linux/mtd/ |
H A D | qinfo.h | 25 int numchips; member 27 struct flchip chips[] __counted_by(numchips);
|
H A D | cfi.h | 285 int numchips; member 290 struct flchip chips[] __counted_by(numchips); /* per-chip data structure for each chip */
|
H A D | doc2000.h | 198 int numchips; member
|
/linux/kernel/irq/ |
H A D | generic-chip.c | 291 int numchips, i; in irq_domain_alloc_generic_chips() local 301 numchips = DIV_ROUND_UP(d->revmap_size, info->irqs_per_chip); in irq_domain_alloc_generic_chips() 302 if (!numchips) in irq_domain_alloc_generic_chips() 307 dgc_sz = struct_size(dgc, gc, numchips); in irq_domain_alloc_generic_chips() 308 sz = dgc_sz + numchips * gc_sz; in irq_domain_alloc_generic_chips() 314 dgc->num_chips = numchips; in irq_domain_alloc_generic_chips() 323 for (i = 0; i < numchips; i++) { in irq_domain_alloc_generic_chips()
|
/linux/drivers/mtd/lpddr/ |
H A D | qinfo_probe.c | 167 lpddr.numchips = 1; in lpddr_probe_chip() 169 numvirtchips = lpddr.numchips * lpddr.qinfo->HWPartsNum; in lpddr_probe_chip() 177 retlpddr->numchips = numvirtchips; in lpddr_probe_chip()
|
H A D | lpddr_cmds.c | 41 int numchips; in lpddr_cmdset() local 68 shared = kmalloc_array(lpddr->numchips, sizeof(struct flchip_shared), in lpddr_cmdset() 76 numchips = lpddr->numchips / lpddr->qinfo->HWPartsNum; in lpddr_cmdset() 77 for (i = 0; i < numchips; i++) { in lpddr_cmdset() 552 if (chipnum >= lpddr->numchips) in lpddr_point() 600 if (chipnum >= lpddr->numchips) in lpddr_unpoint()
|
/linux/drivers/mtd/nand/raw/ |
H A D | diskonchip.c | 1308 int reg, len, numchips; in doc_probe() local 1488 numchips = doc2000_init(mtd); in doc_probe() 1490 numchips = doc2001plus_init(mtd); in doc_probe() 1492 numchips = doc2001_init(mtd); in doc_probe() 1494 ret = nand_scan(nand, numchips); in doc_probe()
|
/linux/drivers/mtd/maps/ |
H A D | amd76xrom.c | 258 for(i = 0; i < cfi->numchips; i++) { in amd76xrom_init_one()
|
H A D | ichxrom.c | 285 for(i = 0; i < cfi->numchips; i++) { in ichxrom_init_one()
|
H A D | ck804xrom.c | 288 for(i = 0; i < cfi->numchips; i++) in ck804xrom_init_one()
|
H A D | esb2rom.c | 350 for(i = 0; i < cfi->numchips; i++) in esb2rom_init_one()
|