Lines Matching refs:extp
119 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in cfi_use_status_reg() local
122 return extp->MinorVersion >= '5' && in cfi_use_status_reg()
123 (extp->SoftwareFeatures & poll_mask) == CFI_POLL_STATUS_REG; in cfi_use_status_reg()
170 static void cfi_tell_features(struct cfi_pri_amdstd *extp) in cfi_tell_features() argument
181 printk(" Silicon revision: %d\n", extp->SiliconRevision >> 1); in cfi_tell_features()
183 (extp->SiliconRevision & 1) ? "Not required" : "Required"); in cfi_tell_features()
185 if (extp->EraseSuspend < ARRAY_SIZE(erase_suspend)) in cfi_tell_features()
186 printk(" Erase Suspend: %s\n", erase_suspend[extp->EraseSuspend]); in cfi_tell_features()
188 printk(" Erase Suspend: Unknown value %d\n", extp->EraseSuspend); in cfi_tell_features()
190 if (extp->BlkProt == 0) in cfi_tell_features()
193 printk(" Block protection: %d sectors per group\n", extp->BlkProt); in cfi_tell_features()
197 extp->TmpBlkUnprotect ? "Supported" : "Not supported"); in cfi_tell_features()
198 printk(" Block protect/unprotect scheme: %d\n", extp->BlkProtUnprot); in cfi_tell_features()
199 printk(" Number of simultaneous operations: %d\n", extp->SimultaneousOps); in cfi_tell_features()
201 extp->BurstMode ? "Supported" : "Not supported"); in cfi_tell_features()
202 if (extp->PageMode == 0) in cfi_tell_features()
205 printk(" Page mode: %d word page\n", extp->PageMode << 2); in cfi_tell_features()
208 extp->VppMin >> 4, extp->VppMin & 0xf); in cfi_tell_features()
210 extp->VppMax >> 4, extp->VppMax & 0xf); in cfi_tell_features()
212 if (extp->TopBottom < ARRAY_SIZE(top_bottom)) in cfi_tell_features()
213 printk(" Top/Bottom Boot Block: %s\n", top_bottom[extp->TopBottom]); in cfi_tell_features()
215 printk(" Top/Bottom Boot Block: Unknown value %d\n", extp->TopBottom); in cfi_tell_features()
225 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock() local
226 __u8 major = extp->MajorVersion; in fixup_amd_bootblock()
227 __u8 minor = extp->MinorVersion; in fixup_amd_bootblock()
254 extp->TopBottom = 2; /* bottom boot */ in fixup_amd_bootblock()
258 extp->TopBottom = 3; /* top boot */ in fixup_amd_bootblock()
260 extp->TopBottom = 2; /* bottom boot */ in fixup_amd_bootblock()
265 extp->TopBottom == 2 ? "bottom" : "top"); in fixup_amd_bootblock()
287 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri() local
290 memcpy(&atmel_pri, extp, sizeof(atmel_pri)); in fixup_convert_atmel_pri()
291 memset((char *)extp + 5, 0, sizeof(*extp) - 5); in fixup_convert_atmel_pri()
294 extp->EraseSuspend = 2; in fixup_convert_atmel_pri()
299 extp->TopBottom = 3; in fixup_convert_atmel_pri()
301 extp->TopBottom = 2; in fixup_convert_atmel_pri()
304 extp->TopBottom = 2; in fixup_convert_atmel_pri()
306 extp->TopBottom = 3; in fixup_convert_atmel_pri()
495 struct cfi_pri_amdstd *extp) in cfi_fixup_major_minor() argument
498 if ((extp->MajorVersion == '0' && extp->MinorVersion == '0') || in cfi_fixup_major_minor()
499 (extp->MajorVersion == '3' && extp->MinorVersion == '3')) { in cfi_fixup_major_minor()
507 extp->MinorVersion); in cfi_fixup_major_minor()
508 extp->MajorVersion = '1'; in cfi_fixup_major_minor()
516 extp->MajorVersion = '1'; in cfi_fixup_major_minor()
517 extp->MinorVersion = '0'; in cfi_fixup_major_minor()
623 struct cfi_pri_amdstd *extp; in cfi_cmdset_0002() local
625 extp = (struct cfi_pri_amdstd*)cfi_read_pri(map, adr, sizeof(*extp), "Amd/Fujitsu"); in cfi_cmdset_0002()
626 if (extp) { in cfi_cmdset_0002()
631 cfi_fixup_major_minor(cfi, extp); in cfi_cmdset_0002()
640 if (extp->MajorVersion != '1' || in cfi_cmdset_0002()
641 (extp->MajorVersion == '1' && (extp->MinorVersion < '0' || extp->MinorVersion > '5'))) { in cfi_cmdset_0002()
644 extp->MajorVersion, extp->MinorVersion, in cfi_cmdset_0002()
645 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0002()
646 kfree(extp); in cfi_cmdset_0002()
652 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0002()
655 cfi->cmdset_priv = extp; in cfi_cmdset_0002()
662 cfi_tell_features(extp); in cfi_cmdset_0002()
668 && extp->BlkProtUnprot == 8) { in cfi_cmdset_0002()
676 bootloc = extp->TopBottom; in cfi_cmdset_0002()
1063 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in xip_udelay() local
1070 if (xip_irqpending() && extp && in xip_udelay()
1071 ((chip->state == FL_ERASING && (extp->EraseSuspend & 2))) && in xip_udelay()