Home
last modified time | relevance | path

Searched refs:cfi (Results 1 – 25 of 142) sorted by relevance

123456

/linux-3.4.99/drivers/mtd/chips/
Dcfi_util.c27 struct cfi_private *cfi) in cfi_qry_present() argument
29 int osf = cfi->interleave * cfi->device_type; /* scale factor */ in cfi_qry_present()
33 qry[0] = cfi_build_cmd('Q', map, cfi); in cfi_qry_present()
34 qry[1] = cfi_build_cmd('R', map, cfi); in cfi_qry_present()
35 qry[2] = cfi_build_cmd('Y', map, cfi); in cfi_qry_present()
55 struct cfi_private *cfi) in cfi_qry_mode_on() argument
57 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
58 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
59 if (cfi_qry_present(map, base, cfi)) in cfi_qry_mode_on()
63 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_qry_mode_on()
[all …]
Dcfi_probe.c28 unsigned long *chip_map, struct cfi_private *cfi);
29 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi);
45 #define xip_enable(base, map, cfi) \ argument
47 cfi_qry_mode_off(base, map, cfi); \
51 #define xip_disable_qry(base, map, cfi) \ argument
54 cfi_qry_mode_on(base, map, cfi); \
61 #define xip_enable(base, map, cfi) do { } while (0) argument
62 #define xip_disable_qry(base, map, cfi) do { } while (0) argument
72 unsigned long *chip_map, struct cfi_private *cfi) in cfi_probe_chip() argument
90 if (!cfi_qry_mode_on(base, map, cfi)) { in cfi_probe_chip()
[all …]
Dgen_probe.c19 struct cfi_private *cfi);
24 struct cfi_private *cfi; in mtd_do_chip_probe() local
27 cfi = genprobe_ident_chips(map, cp); in mtd_do_chip_probe()
29 if (!cfi) in mtd_do_chip_probe()
32 map->fldrv_priv = cfi; in mtd_do_chip_probe()
51 kfree(cfi->cfiq); in mtd_do_chip_probe()
52 kfree(cfi); in mtd_do_chip_probe()
61 struct cfi_private cfi; in genprobe_ident_chips() local
67 memset(&cfi, 0, sizeof(cfi)); in genprobe_ident_chips()
71 if (!genprobe_new_chip(map, cp, &cfi)) { in genprobe_ident_chips()
[all …]
Dcfi_cmdset_0002.c143 struct cfi_private *cfi = map->fldrv_priv; in fixup_amd_bootblock() local
144 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock()
152 map->name, cfi->mfr, cfi->id); in fixup_amd_bootblock()
159 if (((cfi->id == 0xBA) || (cfi->id == 0x22BA)) && in fixup_amd_bootblock()
170 (cfi->mfr == CFI_MFR_MACRONIX)) { in fixup_amd_bootblock()
175 if (cfi->id & 0x80) { in fixup_amd_bootblock()
176 …tk(KERN_WARNING "%s: JEDEC Device ID is 0x%02X. Assuming broken CFI table.\n", map->name, cfi->id); in fixup_amd_bootblock()
192 struct cfi_private *cfi = map->fldrv_priv; in fixup_use_write_buffers() local
193 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()
203 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local
[all …]
Djedec_probe.c1878 struct cfi_private *cfi) in jedec_read_mfr() argument
1889 uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); in jedec_read_mfr()
1890 mask = (1 << (cfi->device_type * 8)) - 1; in jedec_read_mfr()
1899 struct cfi_private *cfi) in jedec_read_id() argument
1903 u32 ofs = cfi_build_cmd_addr(1, map, cfi); in jedec_read_id()
1904 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id()
1909 static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) in jedec_reset() argument
1919 if (cfi->addr_unlock1) { in jedec_reset()
1921 cfi->addr_unlock1,cfi->addr_unlock2); in jedec_reset()
1922 cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset()
[all …]
Dcfi_cmdset_0020.c116 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0020() local
119 if (cfi->cfi_mode) { in cfi_cmdset_0020()
125 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020()
152 cfi->cmdset_priv = extp; in cfi_cmdset_0020()
155 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020()
156 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020()
157 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020()
158 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020()
159 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020()
160 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020()
[all …]
Dcfi_cmdset_0001.c168 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local
169 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri()
201 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()
202 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()
208 struct cfi_private *cfi = map->fldrv_priv; in fixup_at49bv640dx_lock() local
209 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_at49bv640dx_lock()
220 struct cfi_private *cfi = map->fldrv_priv; in fixup_intel_strataflash() local
221 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_intel_strataflash()
233 struct cfi_private *cfi = map->fldrv_priv; in fixup_no_write_suspend() local
234 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_no_write_suspend()
[all …]
/linux-3.4.99/fs/coda/
Dfile.c32 struct coda_file_info *cfi; in coda_file_read() local
35 cfi = CODA_FTOC(coda_file); in coda_file_read()
36 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_file_read()
37 host_file = cfi->cfi_container; in coda_file_read()
52 struct coda_file_info *cfi; in coda_file_splice_read() local
55 cfi = CODA_FTOC(coda_file); in coda_file_splice_read()
56 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_file_splice_read()
57 host_file = cfi->cfi_container; in coda_file_splice_read()
70 struct coda_file_info *cfi; in coda_file_write() local
74 cfi = CODA_FTOC(coda_file); in coda_file_write()
[all …]
Ddir.c383 struct coda_file_info *cfi; in coda_readdir() local
387 cfi = CODA_FTOC(coda_file); in coda_readdir()
388 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_readdir()
389 host_file = cfi->cfi_container; in coda_readdir()
444 struct coda_file_info *cfi; in coda_venus_readdir() local
455 cfi = CODA_FTOC(coda_file); in coda_venus_readdir()
456 BUG_ON(!cfi || cfi->cfi_magic != CODA_MAGIC); in coda_venus_readdir()
457 host_file = cfi->cfi_container; in coda_venus_readdir()
/linux-3.4.99/include/linux/mtd/
Dcfi.h33 #define cfi_interleave(cfi) 1 argument
34 #define cfi_interleave_is_1(cfi) (cfi_interleave(cfi) == 1) argument
36 #define cfi_interleave_is_1(cfi) (0) argument
42 # define cfi_interleave(cfi) ((cfi)->interleave) argument
44 # define cfi_interleave(cfi) 2 argument
46 #define cfi_interleave_is_2(cfi) (cfi_interleave(cfi) == 2) argument
48 #define cfi_interleave_is_2(cfi) (0) argument
54 # define cfi_interleave(cfi) ((cfi)->interleave) argument
56 # define cfi_interleave(cfi) 4 argument
58 #define cfi_interleave_is_4(cfi) (cfi_interleave(cfi) == 4) argument
[all …]
Dgen_probe.h32 unsigned long *chip_map, struct cfi_private *cfi);
/linux-3.4.99/fs/udf/
Dnamei.c44 int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi, in udf_write_fi() argument
51 uint16_t liu = le16_to_cpu(cfi->lengthOfImpUse); in udf_write_fi()
52 uint8_t lfi = cfi->lengthFileIdent; in udf_write_fi()
100 crc = crc_itu_t(0, (uint8_t *)cfi + sizeof(struct tag), in udf_write_fi()
119 cfi->descTag.descCRC = cpu_to_le16(crc); in udf_write_fi()
120 cfi->descTag.descCRCLength = cpu_to_le16(crclen); in udf_write_fi()
121 cfi->descTag.tagChecksum = udf_tag_checksum(&cfi->descTag); in udf_write_fi()
124 memcpy((uint8_t *)sfi, (uint8_t *)cfi, in udf_write_fi()
127 memcpy((uint8_t *)sfi, (uint8_t *)cfi, -fibh->soffset); in udf_write_fi()
128 memcpy(fibh->ebh->b_data, (uint8_t *)cfi - fibh->soffset, in udf_write_fi()
[all …]
Ddir.c43 struct fileIdentDesc cfi; in do_udf_readdir() local
121 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &epos, &eloc, in do_udf_readdir()
126 liu = le16_to_cpu(cfi.lengthOfImpUse); in do_udf_readdir()
127 lfi = cfi.lengthFileIdent; in do_udf_readdir()
147 if ((cfi.fileCharacteristics & FID_FILE_CHAR_DELETED) != 0) { in do_udf_readdir()
152 if ((cfi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) != 0) { in do_udf_readdir()
157 if (cfi.fileCharacteristics & FID_FILE_CHAR_PARENT) { in do_udf_readdir()
163 struct kernel_lb_addr tloc = lelb_to_cpu(cfi.icb.extLocation); in do_udf_readdir()
Ddirectory.c23 struct fileIdentDesc *cfi, in udf_fileident_read() argument
47 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
110 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
138 memcpy((uint8_t *)cfi, (uint8_t *)fi, -fibh->soffset); in udf_fileident_read()
139 memcpy((uint8_t *)cfi - fibh->soffset, in udf_fileident_read()
144 cfi->lengthFileIdent + in udf_fileident_read()
145 le16_to_cpu(cfi->lengthOfImpUse) + 3) & ~3; in udf_fileident_read()
150 memcpy((uint8_t *)cfi, (uint8_t *)fi, in udf_fileident_read()
/linux-3.4.99/arch/x86/
DMakefile111 cfi := $(call as-instr,.cfi_startproc\n.cfi_rel_offset $(sp-y)$(comma)0\n.cfi_endproc,-DCONFIG_AS_C… macro
113 cfi-sigframe := $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIG…
114 cfi-sections := $(call as-instr,.cfi_sections .debug_frame,-DCONFIG_AS_CFI_SECTIONS=1)
119 KBUILD_AFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections) $(asinstr)
120 KBUILD_CFLAGS += $(cfi) $(cfi-sigframe) $(cfi-sections) $(asinstr)
/linux-3.4.99/drivers/mtd/maps/
Dlantiq-flash.c117 struct cfi_private *cfi; in ltq_mtd_probe() local
168 cfi = ltq_mtd->map->fldrv_priv; in ltq_mtd_probe()
169 cfi->addr_unlock1 ^= 1; in ltq_mtd_probe()
170 cfi->addr_unlock2 ^= 1; in ltq_mtd_probe()
Dscb2_flash.c78 struct cfi_private *cfi = map->fldrv_priv; in scb2_fixup_mtd() local
81 if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { in scb2_fixup_mtd()
83 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
Damd76xrom.c185 struct cfi_private *cfi; in amd76xrom_init_one() local
258 cfi = map->map.fldrv_priv; in amd76xrom_init_one()
259 for(i = 0; i < cfi->numchips; i++) { in amd76xrom_init_one()
260 cfi->chips[i].start += offset; in amd76xrom_init_one()
Dichxrom.c207 struct cfi_private *cfi; in ichxrom_init_one() local
283 cfi = map->map.fldrv_priv; in ichxrom_init_one()
284 for(i = 0; i < cfi->numchips; i++) { in ichxrom_init_one()
285 cfi->chips[i].start += offset; in ichxrom_init_one()
Dck804xrom.c215 struct cfi_private *cfi; in ck804xrom_init_one() local
288 cfi = map->map.fldrv_priv; in ck804xrom_init_one()
289 for(i = 0; i < cfi->numchips; i++) in ck804xrom_init_one()
290 cfi->chips[i].start += offset; in ck804xrom_init_one()
Dnettel.c144 struct cfi_private *cfi = nettel_intel_map.fldrv_priv; in nettel_reboot_notifier() local
149 cfi_send_gen_cmd(0xff, 0x55, b, &nettel_intel_map, cfi, in nettel_reboot_notifier()
150 cfi->device_type, NULL); in nettel_reboot_notifier()
Desb2rom.c275 struct cfi_private *cfi; in esb2rom_init_one() local
349 cfi = map->map.fldrv_priv; in esb2rom_init_one()
350 for(i = 0; i < cfi->numchips; i++) in esb2rom_init_one()
351 cfi->chips[i].start += offset; in esb2rom_init_one()
/linux-3.4.99/Documentation/devicetree/bindings/mtd/
Dmtd-physmap.txt7 used, if known, followed by either "cfi-flash", "jedec-flash"
32 compatible = "amd,am29lv128ml", "cfi-flash";
54 compatible = "intel,PC48F4400P0VB", "cfi-flash";
/linux-3.4.99/Documentation/devicetree/bindings/powerpc/fsl/
Difc.txt23 cfi-flash) and NAND (fsl,ifc-nand). There might be board specific devices
43 compatible = "cfi-flash";
/linux-3.4.99/arch/powerpc/boot/dts/
Dmedia5200.dts117 compatible = "amd,am29lv28ml", "cfi-flash";
124 compatible = "amd,am29lv28ml", "cfi-flash";

123456