• Home
  • Raw
  • Download

Lines Matching refs:cfi

19 			     struct cfi_private *cfi);
24 struct cfi_private *cfi; in mtd_do_chip_probe() local
27 cfi = genprobe_ident_chips(map, cp); in mtd_do_chip_probe()
29 if (!cfi) in mtd_do_chip_probe()
32 map->fldrv_priv = cfi; in mtd_do_chip_probe()
51 kfree(cfi->cfiq); in mtd_do_chip_probe()
52 kfree(cfi); in mtd_do_chip_probe()
61 struct cfi_private cfi; in genprobe_ident_chips() local
67 memset(&cfi, 0, sizeof(cfi)); in genprobe_ident_chips()
71 if (!genprobe_new_chip(map, cp, &cfi)) { in genprobe_ident_chips()
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()
90 if (cfi_interleave_is_1(&cfi)) { in genprobe_ident_chips()
92 } else if (cfi_interleave_is_2(&cfi)) { in genprobe_ident_chips()
93 cfi.chipshift++; in genprobe_ident_chips()
94 } else if (cfi_interleave_is_4((&cfi))) { in genprobe_ident_chips()
95 cfi.chipshift += 2; in genprobe_ident_chips()
96 } else if (cfi_interleave_is_8(&cfi)) { in genprobe_ident_chips()
97 cfi.chipshift += 3; in genprobe_ident_chips()
102 cfi.numchips = 1; in genprobe_ident_chips()
108 max_chips = map->size >> cfi.chipshift; in genprobe_ident_chips()
117 kfree(cfi.cfiq); in genprobe_ident_chips()
130 cp->probe_chip(map, i << cfi.chipshift, chip_map, &cfi); in genprobe_ident_chips()
138 retcfi = kmalloc(struct_size(retcfi, chips, cfi.numchips), GFP_KERNEL); in genprobe_ident_chips()
141 kfree(cfi.cfiq); in genprobe_ident_chips()
146 memcpy(retcfi, &cfi, sizeof(cfi)); in genprobe_ident_chips()
147 memset(&retcfi->chips[0], 0, sizeof(struct flchip) * cfi.numchips); in genprobe_ident_chips()
149 for (i = 0, j = 0; (j < cfi.numchips) && (i < max_chips); i++) { in genprobe_ident_chips()
153 pchip->start = (i << cfi.chipshift); in genprobe_ident_chips()
166 struct cfi_private *cfi) in genprobe_new_chip() argument
177 cfi->interleave = nr_chips; in genprobe_new_chip()
184 cfi->device_type = type; in genprobe_new_chip()
186 if (cp->probe_chip(map, 0, NULL, cfi)) in genprobe_new_chip()
202 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_unknown() local
203 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in cfi_cmdset_unknown()
235 struct cfi_private *cfi = map->fldrv_priv; in check_cmd_set() local
236 __u16 type = primary?cfi->cfiq->P_ID:cfi->cfiq->A_ID; in check_cmd_set()