Lines Matching full:extp
66 static void cfi_tell_features(struct cfi_pri_intelext *extp) in cfi_tell_features() argument
69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
70 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
71 printk(" - Suspend Erase: %s\n", extp->FeatureSupport&2?"supported":"unsupported"); in cfi_tell_features()
72 printk(" - Suspend Program: %s\n", extp->FeatureSupport&4?"supported":"unsupported"); in cfi_tell_features()
73 printk(" - Legacy Lock/Unlock: %s\n", extp->FeatureSupport&8?"supported":"unsupported"); in cfi_tell_features()
74 printk(" - Queued Erase: %s\n", extp->FeatureSupport&16?"supported":"unsupported"); in cfi_tell_features()
75 printk(" - Instant block lock: %s\n", extp->FeatureSupport&32?"supported":"unsupported"); in cfi_tell_features()
76 printk(" - Protection Bits: %s\n", extp->FeatureSupport&64?"supported":"unsupported"); in cfi_tell_features()
77 printk(" - Page-mode read: %s\n", extp->FeatureSupport&128?"supported":"unsupported"); in cfi_tell_features()
78 printk(" - Synchronous read: %s\n", extp->FeatureSupport&256?"supported":"unsupported"); in cfi_tell_features()
80 if (extp->FeatureSupport & (1<<i)) in cfi_tell_features()
84 printk(" Supported functions after Suspend: %2.2X\n", extp->SuspendCmdSupport); in cfi_tell_features()
85 …printk(" - Program after Erase Suspend: %s\n", extp->SuspendCmdSupport&1?"supported":"unsuppor… in cfi_tell_features()
87 if (extp->SuspendCmdSupport & (1<<i)) in cfi_tell_features()
91 printk(" Block Status Register Mask: %4.4X\n", extp->BlkStatusRegMask); in cfi_tell_features()
92 printk(" - Lock Bit Active: %s\n", extp->BlkStatusRegMask&1?"yes":"no"); in cfi_tell_features()
93 printk(" - Valid Bit Active: %s\n", extp->BlkStatusRegMask&2?"yes":"no"); in cfi_tell_features()
95 if (extp->BlkStatusRegMask & (1<<i)) in cfi_tell_features()
100 extp->VccOptimal >> 8, extp->VccOptimal & 0xf); in cfi_tell_features()
101 if (extp->VppOptimal) in cfi_tell_features()
103 extp->VppOptimal >> 8, extp->VppOptimal & 0xf); in cfi_tell_features()
126 struct cfi_pri_intelext *extp; in cfi_cmdset_0020() local
128 extp = (struct cfi_pri_intelext*)cfi_read_pri(map, adr, sizeof(*extp), "ST Microelectronics"); in cfi_cmdset_0020()
129 if (!extp) in cfi_cmdset_0020()
132 if (extp->MajorVersion != '1' || in cfi_cmdset_0020()
133 (extp->MinorVersion < '0' || extp->MinorVersion > '3')) { in cfi_cmdset_0020()
136 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0020()
137 kfree(extp); in cfi_cmdset_0020()
142 extp->FeatureSupport = cfi32_to_cpu(map, extp->FeatureSupport); in cfi_cmdset_0020()
143 extp->BlkStatusRegMask = cfi32_to_cpu(map, in cfi_cmdset_0020()
144 extp->BlkStatusRegMask); in cfi_cmdset_0020()
148 cfi_tell_features(extp); in cfi_cmdset_0020()
152 cfi->cmdset_priv = extp; in cfi_cmdset_0020()