Lines Matching refs:extp

122 	struct cfi_pri_amdstd *extp = cfi->cmdset_priv;  in cfi_use_status_reg()  local
125 return extp && extp->MinorVersion >= '5' && in cfi_use_status_reg()
126 (extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG; in cfi_use_status_reg()
173 static void cfi_tell_features(struct cfi_pri_amdstd *extp) in cfi_tell_features() argument
184 printk(" Silicon revision: %d\n", extp->SiliconRevision >> 1); in cfi_tell_features()
186 (extp->SiliconRevision & 1) ? "Not required" : "Required"); in cfi_tell_features()
188 if (extp->EraseSuspend < ARRAY_SIZE(erase_suspend)) in cfi_tell_features()
189 printk(" Erase Suspend: %s\n", erase_suspend[extp->EraseSuspend]); in cfi_tell_features()
191 printk(" Erase Suspend: Unknown value %d\n", extp->EraseSuspend); in cfi_tell_features()
193 if (extp->BlkProt == 0) in cfi_tell_features()
196 printk(" Block protection: %d sectors per group\n", extp->BlkProt); in cfi_tell_features()
200 extp->TmpBlkUnprotect ? "Supported" : "Not supported"); in cfi_tell_features()
201 printk(" Block protect/unprotect scheme: %d\n", extp->BlkProtUnprot); in cfi_tell_features()
202 printk(" Number of simultaneous operations: %d\n", extp->SimultaneousOps); in cfi_tell_features()
204 extp->BurstMode ? "Supported" : "Not supported"); in cfi_tell_features()
205 if (extp->PageMode == 0) in cfi_tell_features()
208 printk(" Page mode: %d word page\n", extp->PageMode << 2); in cfi_tell_features()
211 extp->VppMin >> 4, extp->VppMin & 0xf); in cfi_tell_features()
213 extp->VppMax >> 4, extp->VppMax & 0xf); in cfi_tell_features()
215 if (extp->TopBottom < ARRAY_SIZE(top_bottom)) in cfi_tell_features()
216 printk(" Top/Bottom Boot Block: %s\n", top_bottom[extp->TopBottom]); in cfi_tell_features()
218 printk(" Top/Bottom Boot Block: Unknown value %d\n", extp->TopBottom); in cfi_tell_features()
228 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock() local
229 __u8 major = extp->MajorVersion; in fixup_amd_bootblock()
230 __u8 minor = extp->MinorVersion; in fixup_amd_bootblock()
257 extp->TopBottom = 2; /* bottom boot */ in fixup_amd_bootblock()
261 extp->TopBottom = 3; /* top boot */ in fixup_amd_bootblock()
263 extp->TopBottom = 2; /* bottom boot */ in fixup_amd_bootblock()
268 extp->TopBottom == 2 ? "bottom" : "top"); in fixup_amd_bootblock()
294 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri() local
297 memcpy(&atmel_pri, extp, sizeof(atmel_pri)); in fixup_convert_atmel_pri()
298 memset((char *)extp + 5, 0, sizeof(*extp) - 5); in fixup_convert_atmel_pri()
301 extp->EraseSuspend = 2; in fixup_convert_atmel_pri()
306 extp->TopBottom = 3; in fixup_convert_atmel_pri()
308 extp->TopBottom = 2; in fixup_convert_atmel_pri()
311 extp->TopBottom = 2; in fixup_convert_atmel_pri()
313 extp->TopBottom = 3; in fixup_convert_atmel_pri()
512 struct cfi_pri_amdstd *extp) in cfi_fixup_major_minor() argument
515 if ((extp->MajorVersion == '0' && extp->MinorVersion == '0') || in cfi_fixup_major_minor()
516 (extp->MajorVersion == '3' && extp->MinorVersion == '3')) { in cfi_fixup_major_minor()
524 extp->MinorVersion); in cfi_fixup_major_minor()
525 extp->MajorVersion = '1'; in cfi_fixup_major_minor()
533 extp->MajorVersion = '1'; in cfi_fixup_major_minor()
534 extp->MinorVersion = '0'; in cfi_fixup_major_minor()
640 struct cfi_pri_amdstd *extp; in cfi_cmdset_0002() local
642 extp = (struct cfi_pri_amdstd*)cfi_read_pri(map, adr, sizeof(*extp), "Amd/Fujitsu"); in cfi_cmdset_0002()
643 if (extp) { in cfi_cmdset_0002()
648 cfi_fixup_major_minor(cfi, extp); in cfi_cmdset_0002()
657 if (extp->MajorVersion != '1' || in cfi_cmdset_0002()
658 (extp->MajorVersion == '1' && (extp->MinorVersion < '0' || extp->MinorVersion > '5'))) { in cfi_cmdset_0002()
661 extp->MajorVersion, extp->MinorVersion, in cfi_cmdset_0002()
662 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0002()
663 kfree(extp); in cfi_cmdset_0002()
669 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0002()
672 cfi->cmdset_priv = extp; in cfi_cmdset_0002()
679 cfi_tell_features(extp); in cfi_cmdset_0002()
685 && extp->BlkProtUnprot == 8) { in cfi_cmdset_0002()
693 bootloc = extp->TopBottom; in cfi_cmdset_0002()
1060 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in xip_udelay() local
1067 if (xip_irqpending() && extp && in xip_udelay()
1068 ((chip->state == FL_ERASING && (extp->EraseSuspend & 2))) && in xip_udelay()