Searched refs:retcfi (Results 1 – 1 of 1) sorted by relevance
62 struct cfi_private *retcfi; in genprobe_ident_chips() local138 retcfi = kmalloc(sizeof(struct cfi_private) + cfi.numchips * sizeof(struct flchip), GFP_KERNEL); in genprobe_ident_chips()140 if (!retcfi) { 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()151 struct flchip *pchip = &retcfi->chips[j++]; in genprobe_ident_chips()161 return retcfi; in genprobe_ident_chips()