Lines Matching refs:cfiq
185 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()
232 cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); in cfi_chip_setup()
233 cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); in cfi_chip_setup()
237 print_cfi_ident(cfi->cfiq); in cfi_chip_setup()
240 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_chip_setup()
241 cfi->cfiq->EraseRegionInfo[i] = le32_to_cpu(cfi->cfiq->EraseRegionInfo[i]); in cfi_chip_setup()
245 i, (cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff, in cfi_chip_setup()
246 (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1); in cfi_chip_setup()
250 if (cfi->cfiq->P_ID == P_ID_SST_OLD) { in cfi_chip_setup()