Lines Matching refs:extp

65 static void cfi_tell_features(struct cfi_pri_intelext *extp)  in cfi_tell_features()  argument
68 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
69 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
70 printk(" - Suspend Erase: %s\n", extp->FeatureSupport&2?"supported":"unsupported"); in cfi_tell_features()
71 printk(" - Suspend Program: %s\n", extp->FeatureSupport&4?"supported":"unsupported"); in cfi_tell_features()
72 printk(" - Legacy Lock/Unlock: %s\n", extp->FeatureSupport&8?"supported":"unsupported"); in cfi_tell_features()
73 printk(" - Queued Erase: %s\n", extp->FeatureSupport&16?"supported":"unsupported"); in cfi_tell_features()
74 printk(" - Instant block lock: %s\n", extp->FeatureSupport&32?"supported":"unsupported"); in cfi_tell_features()
75 printk(" - Protection Bits: %s\n", extp->FeatureSupport&64?"supported":"unsupported"); in cfi_tell_features()
76 printk(" - Page-mode read: %s\n", extp->FeatureSupport&128?"supported":"unsupported"); in cfi_tell_features()
77 printk(" - Synchronous read: %s\n", extp->FeatureSupport&256?"supported":"unsupported"); in cfi_tell_features()
79 if (extp->FeatureSupport & (1<<i)) in cfi_tell_features()
83 printk(" Supported functions after Suspend: %2.2X\n", extp->SuspendCmdSupport); in cfi_tell_features()
84 …printk(" - Program after Erase Suspend: %s\n", extp->SuspendCmdSupport&1?"supported":"unsuppor… in cfi_tell_features()
86 if (extp->SuspendCmdSupport & (1<<i)) in cfi_tell_features()
90 printk(" Block Status Register Mask: %4.4X\n", extp->BlkStatusRegMask); in cfi_tell_features()
91 printk(" - Lock Bit Active: %s\n", extp->BlkStatusRegMask&1?"yes":"no"); in cfi_tell_features()
92 printk(" - Valid Bit Active: %s\n", extp->BlkStatusRegMask&2?"yes":"no"); in cfi_tell_features()
94 if (extp->BlkStatusRegMask & (1<<i)) in cfi_tell_features()
99 extp->VccOptimal >> 8, extp->VccOptimal & 0xf); in cfi_tell_features()
100 if (extp->VppOptimal) in cfi_tell_features()
102 extp->VppOptimal >> 8, extp->VppOptimal & 0xf); in cfi_tell_features()
125 struct cfi_pri_intelext *extp; in cfi_cmdset_0020() local
127 extp = (struct cfi_pri_intelext*)cfi_read_pri(map, adr, sizeof(*extp), "ST Microelectronics"); in cfi_cmdset_0020()
128 if (!extp) in cfi_cmdset_0020()
131 if (extp->MajorVersion != '1' || in cfi_cmdset_0020()
132 (extp->MinorVersion < '0' || extp->MinorVersion > '3')) { in cfi_cmdset_0020()
135 extp->MajorVersion, extp->MinorVersion); in cfi_cmdset_0020()
136 kfree(extp); in cfi_cmdset_0020()
141 extp->FeatureSupport = cfi32_to_cpu(map, extp->FeatureSupport); in cfi_cmdset_0020()
142 extp->BlkStatusRegMask = cfi32_to_cpu(map, in cfi_cmdset_0020()
143 extp->BlkStatusRegMask); in cfi_cmdset_0020()
147 cfi_tell_features(extp); in cfi_cmdset_0020()
151 cfi->cmdset_priv = extp; in cfi_cmdset_0020()