• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/chips/

Lines Matching refs:extp

114 static void cfi_tell_features(struct cfi_pri_intelext *extp)
117 printk(" Extended Query version %c.%c\n", extp->MajorVersion, extp->MinorVersion);
118 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport);
119 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported");
120 printk(" - Suspend Erase: %s\n", extp->FeatureSupport&2?"supported":"unsupported");
121 printk(" - Suspend Program: %s\n", extp->FeatureSupport&4?"supported":"unsupported");
122 printk(" - Legacy Lock/Unlock: %s\n", extp->FeatureSupport&8?"supported":"unsupported");
123 printk(" - Queued Erase: %s\n", extp->FeatureSupport&16?"supported":"unsupported");
124 printk(" - Instant block lock: %s\n", extp->FeatureSupport&32?"supported":"unsupported");
125 printk(" - Protection Bits: %s\n", extp->FeatureSupport&64?"supported":"unsupported");
126 printk(" - Page-mode read: %s\n", extp->FeatureSupport&128?"supported":"unsupported");
127 printk(" - Synchronous read: %s\n", extp->FeatureSupport&256?"supported":"unsupported");
128 printk(" - Simultaneous operations: %s\n", extp->FeatureSupport&512?"supported":"unsupported");
129 printk(" - Extended Flash Array: %s\n", extp->FeatureSupport&1024?"supported":"unsupported");
131 if (extp->FeatureSupport & (1<<i))
135 printk(" Supported functions after Suspend: %2.2X\n", extp->SuspendCmdSupport);
136 printk(" - Program after Erase Suspend: %s\n", extp->SuspendCmdSupport&1?"supported":"unsupported");
138 if (extp->SuspendCmdSupport & (1<<i))
142 printk(" Block Status Register Mask: %4.4X\n", extp->BlkStatusRegMask);
143 printk(" - Lock Bit Active: %s\n", extp->BlkStatusRegMask&1?"yes":"no");
144 printk(" - Lock-Down Bit Active: %s\n", extp->BlkStatusRegMask&2?"yes":"no");
146 if (extp->BlkStatusRegMask & (1<<i))
149 printk(" - EFA Lock Bit: %s\n", extp->BlkStatusRegMask&16?"yes":"no");
150 printk(" - EFA Lock-Down Bit: %s\n", extp->BlkStatusRegMask&32?"yes":"no");
152 if (extp->BlkStatusRegMask & (1<<i))
157 extp->VccOptimal >> 4, extp->VccOptimal & 0xf);
158 if (extp->VppOptimal)
160 extp->VppOptimal >> 4, extp->VppOptimal & 0xf);
169 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
174 extp->FeatureSupport = cpu_to_le32(extp->FeatureSupport);
175 extp->BlkStatusRegMask = cpu_to_le16(extp->BlkStatusRegMask);
176 extp->ProtRegAddr = cpu_to_le16(extp->ProtRegAddr);
178 memcpy(&atmel_pri, extp, sizeof(atmel_pri));
179 memset((char *)extp + 5, 0, sizeof(*extp) - 5);
198 extp->FeatureSupport = features;
221 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
225 extp->SuspendCmdSupport &= ~1;
335 struct cfi_pri_intelext *extp)
338 cfi->id == PF38F4476 && extp->MinorVersion == '3')
339 extp->MinorVersion = '1';
346 struct cfi_pri_intelext *extp;
348 unsigned int extp_size = sizeof(*extp);
351 extp = (struct cfi_pri_intelext *)cfi_read_pri(map, adr, extp_size, "Intel/Sharp");
352 if (!extp)
355 cfi_fixup_major_minor(cfi, extp);
357 if (extp->MajorVersion != '1' ||
358 (extp->MinorVersion < '0' || extp->MinorVersion > '5')) {
360 "version %c.%c.\n", extp->MajorVersion,
361 extp->MinorVersion);
362 kfree(extp);
367 extp->FeatureSupport = le32_to_cpu(extp->FeatureSupport);
368 extp->BlkStatusRegMask = le16_to_cpu(extp->BlkStatusRegMask);
369 extp->ProtRegAddr = le16_to_cpu(extp->ProtRegAddr);
371 if (extp->MinorVersion >= '0') {
375 extra_size += (extp->NumProtectionFields - 1) *
379 if (extp->MinorVersion >= '1') {
382 if (extp_size < sizeof(*extp) + extra_size)
384 extra_size += extp->extra[extra_size - 1];
387 if (extp->MinorVersion >= '3') {
392 if (extp_size < sizeof(*extp) + extra_size)
394 nb_parts = extp->extra[extra_size - 1];
397 if (extp->MinorVersion >= '4')
402 rinfo = (struct cfi_intelext_regioninfo *)&extp->extra[extra_size];
404 if (extp_size < sizeof(*extp) + extra_size)
411 if (extp->MinorVersion >= '4')
414 if (extp_size < sizeof(*extp) + extra_size) {
416 extp_size = sizeof(*extp) + extra_size;
417 kfree(extp);
428 return extp;
468 struct cfi_pri_intelext *extp;
470 extp = read_pri_intelext(map, adr);
471 if (!extp) {
477 cfi->cmdset_priv = extp;
483 cfi_tell_features(extp);
486 if(extp->SuspendCmdSupport & 1) {
631 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
644 if (extp && extp->MajorVersion == '1' && extp->MinorVersion >= '3'
645 && extp->FeatureSupport & (1 << 9)) {
652 offs = (extp->NumProtectionFields - 1) *
656 offs += extp->extra[offs+1]+2;
659 numregions = extp->extra[offs];
663 if (extp->MinorVersion >= '4')
670 rinfo = (struct cfi_intelext_regioninfo *)&extp->extra[offs];
681 if (extp->MinorVersion >= '4') {
683 prinfo = (struct cfi_intelext_programming_regioninfo *)&extp->extra[offs];
2049 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
2079 udelay = (!extp || !(extp->FeatureSupport & (1 << 5))) ? 1000000/HZ : 0;
2237 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
2248 if (!extp || !(extp->FeatureSupport & 64) || !extp->NumProtectionFields)
2269 otp = (struct cfi_intelext_otpinfo *)&extp->extra[0];
2273 reg_prot_offset = extp->ProtRegAddr;
2275 reg_fact_size = 1 << extp->FactProtRegSize;
2277 reg_user_size = 1 << extp->UserProtRegSize;
2351 if (++field == extp->NumProtectionFields)
2449 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
2455 && extp && (extp->FeatureSupport & (1 << 5)))
2545 struct cfi_pri_intelext *extp = cfi->cmdset_priv;
2566 && extp && (extp->FeatureSupport & (1 << 5)))