Lines Matching refs:extp

71 static void cfi_tell_features(struct cfi_pri_intelext *extp)  in cfi_tell_features()  argument
74 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
75 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
76 printk(" - Suspend Erase: %s\n", extp->FeatureSupport&2?"supported":"unsupported"); in cfi_tell_features()
77 printk(" - Suspend Program: %s\n", extp->FeatureSupport&4?"supported":"unsupported"); in cfi_tell_features()
78 printk(" - Legacy Lock/Unlock: %s\n", extp->FeatureSupport&8?"supported":"unsupported"); in cfi_tell_features()
79 printk(" - Queued Erase: %s\n", extp->FeatureSupport&16?"supported":"unsupported"); in cfi_tell_features()
80 printk(" - Instant block lock: %s\n", extp->FeatureSupport&32?"supported":"unsupported"); in cfi_tell_features()
81 printk(" - Protection Bits: %s\n", extp->FeatureSupport&64?"supported":"unsupported"); in cfi_tell_features()
82 printk(" - Page-mode read: %s\n", extp->FeatureSupport&128?"supported":"unsupported"); in cfi_tell_features()
83 printk(" - Synchronous read: %s\n", extp->FeatureSupport&256?"supported":"unsupported"); in cfi_tell_features()
85 if (extp->FeatureSupport & (1<<i)) in cfi_tell_features()
89 printk(" Supported functions after Suspend: %2.2X\n", extp->SuspendCmdSupport); in cfi_tell_features()
90 …printk(" - Program after Erase Suspend: %s\n", extp->SuspendCmdSupport&1?"supported":"unsuppor… in cfi_tell_features()
92 if (extp->SuspendCmdSupport & (1<<i)) in cfi_tell_features()
96 printk(" Block Status Register Mask: %4.4X\n", extp->BlkStatusRegMask); in cfi_tell_features()
97 printk(" - Lock Bit Active: %s\n", extp->BlkStatusRegMask&1?"yes":"no"); in cfi_tell_features()
98 printk(" - Valid Bit Active: %s\n", extp->BlkStatusRegMask&2?"yes":"no"); in cfi_tell_features()
100 if (extp->BlkStatusRegMask & (1<<i)) in cfi_tell_features()
105 extp->VccOptimal >> 8, extp->VccOptimal & 0xf); in cfi_tell_features()
106 if (extp->VppOptimal) in cfi_tell_features()
108 extp->VppOptimal >> 8, extp->VppOptimal & 0xf); in cfi_tell_features()
132 struct cfi_pri_intelext *extp; in cfi_cmdset_0001() local
142 extp = kmalloc(sizeof(*extp), GFP_KERNEL); in cfi_cmdset_0001()
143 if (!extp) { in cfi_cmdset_0001()
149 for (i=0; i<sizeof(*extp); i++) { in cfi_cmdset_0001()
150 ((unsigned char *)extp)[i] = in cfi_cmdset_0001()
154 if (extp->MajorVersion != '1' || in cfi_cmdset_0001()
155 (extp->MinorVersion < '0' || extp->MinorVersion > '4')) { in cfi_cmdset_0001()
157 "version %c.%c.\n", extp->MajorVersion, in cfi_cmdset_0001()
158 extp->MinorVersion); in cfi_cmdset_0001()
159 kfree(extp); in cfi_cmdset_0001()
164 extp->FeatureSupport = le32_to_cpu(extp->FeatureSupport); in cfi_cmdset_0001()
165 extp->BlkStatusRegMask = le16_to_cpu(extp->BlkStatusRegMask); in cfi_cmdset_0001()
166 extp->ProtRegAddr = le16_to_cpu(extp->ProtRegAddr); in cfi_cmdset_0001()
170 cfi_tell_features(extp); in cfi_cmdset_0001()
173 if(extp->SuspendCmdSupport & 1) { in cfi_cmdset_0001()
179 extp->SuspendCmdSupport &= ~1; in cfi_cmdset_0001()
185 cfi->cmdset_priv = extp; in cfi_cmdset_0001()
643 struct cfi_pri_intelext *extp=cfi->cmdset_priv; local
691 *buf=map->read8(map,(chip->start+((extp->ProtRegAddr+1)*ofs_factor)+offst));
714 struct cfi_pri_intelext *extp=cfi->cmdset_priv; local
718 if(!(extp->FeatureSupport&64)){
723 base_offst=(1<<extp->FactProtRegSize);
724 reg_sz=(1<<extp->UserProtRegSize);
733 struct cfi_pri_intelext *extp=cfi->cmdset_priv; local
737 if(!(extp->FeatureSupport&64)){
743 reg_sz=(1<<extp->FactProtRegSize);
752 struct cfi_pri_intelext *extp = cfi->cmdset_priv; local
799 if (!extp ||
800 !((extp->FeatureSupport & 2) && (extp->SuspendCmdSupport & 1)))
1062 struct cfi_pri_intelext *extp = cfi->cmdset_priv; local
1108 if (!extp ||
1109 !((extp->FeatureSupport & 2) && (extp->SuspendCmdSupport & 1)))