Lines Matching refs:cfiq
143 cfi->cfiq = kmalloc(sizeof(struct cfi_ident) + num_erase_regions * 4, GFP_KERNEL); in cfi_chip_setup()
144 if (!cfi->cfiq) { in cfi_chip_setup()
149 memset(cfi->cfiq,0,sizeof(struct cfi_ident)); in cfi_chip_setup()
156 ((unsigned char *)cfi->cfiq)[i] = cfi_read_query(map,base + (0x10 + i)*ofs_factor); in cfi_chip_setup()
160 cfi->cfiq->P_ID = le16_to_cpu(cfi->cfiq->P_ID); in cfi_chip_setup()
162 cfi->cfiq->P_ADR = le16_to_cpu(cfi->cfiq->P_ADR); in cfi_chip_setup()
163 cfi->cfiq->A_ID = le16_to_cpu(cfi->cfiq->A_ID); in cfi_chip_setup()
164 cfi->cfiq->A_ADR = le16_to_cpu(cfi->cfiq->A_ADR); in cfi_chip_setup()
165 cfi->cfiq->InterfaceDesc = le16_to_cpu(cfi->cfiq->InterfaceDesc); in cfi_chip_setup()
166 cfi->cfiq->MaxBufWriteSize = le16_to_cpu(cfi->cfiq->MaxBufWriteSize); in cfi_chip_setup()
170 print_cfi_ident(cfi->cfiq); in cfi_chip_setup()
173 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_chip_setup()
174 cfi->cfiq->EraseRegionInfo[i] = le32_to_cpu(cfi->cfiq->EraseRegionInfo[i]); in cfi_chip_setup()
178 i, (cfi->cfiq->EraseRegionInfo[i] >> 8) & ~0xff, in cfi_chip_setup()
179 (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1); in cfi_chip_setup()