Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/mtd/chips/
Dgen_probe.c18 struct cfi_private *cfi);
23 struct cfi_private *cfi; in mtd_do_chip_probe() local
26 cfi = genprobe_ident_chips(map, cp); in mtd_do_chip_probe()
28 if (!cfi) in mtd_do_chip_probe()
31 map->fldrv_priv = cfi; in mtd_do_chip_probe()
43 kfree(cfi->cfiq); in mtd_do_chip_probe()
44 kfree(cfi); in mtd_do_chip_probe()
54 struct cfi_private cfi; in genprobe_ident_chips() local
59 memset(&cfi, 0, sizeof(cfi)); in genprobe_ident_chips()
63 if (!genprobe_new_chip(map, cp, &cfi)) { in genprobe_ident_chips()
[all …]
Dcfi_probe.c28 struct flchip *chips, struct cfi_private *cfi);
29 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi);
38 struct cfi_private *cfi) in qry_present() argument
40 int osf = cfi->interleave * cfi->device_type; // scale factor in qry_present()
42 if (cfi_read(map,base+osf*0x10)==cfi_build_cmd('Q',map,cfi) && in qry_present()
43 cfi_read(map,base+osf*0x11)==cfi_build_cmd('R',map,cfi) && in qry_present()
44 cfi_read(map,base+osf*0x12)==cfi_build_cmd('Y',map,cfi)) in qry_present()
51 struct flchip *chips, struct cfi_private *cfi) in cfi_probe_chip() argument
67 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in cfi_probe_chip()
68 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_probe_chip()
[all …]
Dcfi_cmdset_0002.c56 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0002() local
58 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_cmdset_0002()
61 __u32 base = cfi->chips[0].start; in cfi_cmdset_0002()
63 if (cfi->cfi_mode==CFI_MODE_CFI){ in cfi_cmdset_0002()
64 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0002()
66 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0002()
73 cfi_send_gen_cmd(0xf0, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0002()
75 cfi_send_gen_cmd(0xaa, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0002()
76 cfi_send_gen_cmd(0x55, 0x2aa, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0002()
77 cfi_send_gen_cmd(0x90, 0x555, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0002()
[all …]
Djedec_probe.c910 struct flchip *chips, struct cfi_private *cfi);
915 struct cfi_private *cfi) in jedec_read_mfr() argument
918 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_mfr()
925 struct cfi_private *cfi) in jedec_read_id() argument
929 osf = cfi->interleave *cfi->device_type; in jedec_read_id()
930 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id()
937 struct cfi_private *cfi) in jedec_reset() argument
940 cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); in jedec_reset()
946 cfi_send_gen_cmd(0xFF, 0, base, map, cfi, cfi->device_type, NULL); in jedec_reset()
978 struct flchip *chips, struct cfi_private *cfi) in jedec_probe_chip() argument
[all …]
Dcfi_cmdset_0020.c114 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0020() local
116 __u32 base = cfi->chips[0].start; in cfi_cmdset_0020()
118 if (cfi->cfi_mode) { in cfi_cmdset_0020()
124 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0020()
126 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_cmdset_0020()
133 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0020()
166 cfi->cmdset_priv = extp; in cfi_cmdset_0020()
169 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020()
170 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020()
171 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020()
[all …]
Dcfi_cmdset_0001.c121 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0001() local
123 __u32 base = cfi->chips[0].start; in cfi_cmdset_0001()
125 if (cfi->cfi_mode == CFI_MODE_CFI) { in cfi_cmdset_0001()
131 __u16 adr = primary?cfi->cfiq->P_ADR:cfi->cfiq->A_ADR; in cfi_cmdset_0001()
133 int ofs_factor = cfi->interleave * cfi->device_type; in cfi_cmdset_0001()
140 cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL); in cfi_cmdset_0001()
185 cfi->cmdset_priv = extp; in cfi_cmdset_0001()
188 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0001()
189 cfi->chips[i].word_write_time = 1<<cfi->cfiq->WordWriteTimeoutTyp; in cfi_cmdset_0001()
190 cfi->chips[i].buffer_write_time = 1<<cfi->cfiq->BufWriteTimeoutTyp; in cfi_cmdset_0001()
[all …]
/linux-2.4.37.9/fs/coda/
Dfile.c35 struct coda_file_info *cfi; in coda_file_read() local
38 cfi = CODA_FTOC(coda_file); in coda_file_read()
39 if (!cfi || cfi->cfi_magic != CODA_MAGIC) BUG(); in coda_file_read()
40 host_file = cfi->cfi_container; in coda_file_read()
52 struct coda_file_info *cfi; in coda_file_write() local
56 cfi = CODA_FTOC(coda_file); in coda_file_write()
57 if (!cfi || cfi->cfi_magic != CODA_MAGIC) BUG(); in coda_file_write()
58 host_file = cfi->cfi_container; in coda_file_write()
78 struct coda_file_info *cfi; in coda_file_mmap() local
83 cfi = CODA_FTOC(coda_file); in coda_file_mmap()
[all …]
Ddir.c493 struct coda_file_info *cfi; in coda_readdir() local
497 cfi = CODA_FTOC(coda_file); in coda_readdir()
498 if (!cfi || cfi->cfi_magic != CODA_MAGIC) BUG(); in coda_readdir()
499 host_file = cfi->cfi_container; in coda_readdir()
/linux-2.4.37.9/fs/udf/
Dnamei.c46 int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi, in udf_write_fi() argument
55 uint16_t liu = le16_to_cpu(cfi->lengthOfImpUse); in udf_write_fi()
56 uint8_t lfi = cfi->lengthFileIdent; in udf_write_fi()
102 crc = udf_crc((uint8_t *)cfi + sizeof(tag), sizeof(struct fileIdentDesc) - in udf_write_fi()
118 cfi->descTag.descCRC = cpu_to_le32(crc); in udf_write_fi()
119 cfi->descTag.descCRCLength = cpu_to_le16(crclen); in udf_write_fi()
123 checksum += ((uint8_t *)&cfi->descTag)[i]; in udf_write_fi()
125 cfi->descTag.tagChecksum = checksum; in udf_write_fi()
127 memcpy((uint8_t *)sfi, (uint8_t *)cfi, sizeof(struct fileIdentDesc)); in udf_write_fi()
130 memcpy((uint8_t *)sfi, (uint8_t *)cfi, -fibh->soffset); in udf_write_fi()
[all …]
Ddir.c103 struct fileIdentDesc cfi; in do_udf_readdir() local
178 fi = udf_fileident_read(dir, &nf_pos, &fibh, &cfi, &bloc, &extoffset, &eloc, &elen, &offset, &bh); in do_udf_readdir()
189 liu = le16_to_cpu(cfi.lengthOfImpUse); in do_udf_readdir()
190 lfi = cfi.lengthFileIdent; in do_udf_readdir()
210 if ( (cfi.fileCharacteristics & FID_FILE_CHAR_DELETED) != 0 ) in do_udf_readdir()
216 if ( (cfi.fileCharacteristics & FID_FILE_CHAR_HIDDEN) != 0 ) in do_udf_readdir()
222 if ( cfi.fileCharacteristics & FID_FILE_CHAR_PARENT ) in do_udf_readdir()
231 iblock = udf_get_lb_pblock(dir->i_sb, lelb_to_cpu(cfi.icb.extLocation), 0); in do_udf_readdir()
Ddirectory.c76 struct fileIdentDesc *cfi, in udf_fileident_read() argument
149 memcpy((uint8_t *)cfi, (uint8_t *)fi, sizeof(struct fileIdentDesc)); in udf_fileident_read()
180 memcpy((uint8_t *)cfi, (uint8_t *)fi, - fibh->soffset); in udf_fileident_read()
181 memcpy((uint8_t *)cfi - fibh->soffset, fibh->ebh->b_data, in udf_fileident_read()
184 fi_len = (sizeof(struct fileIdentDesc) + cfi->lengthFileIdent + in udf_fileident_read()
185 le16_to_cpu(cfi->lengthOfImpUse) + 3) & ~3; in udf_fileident_read()
192 memcpy((uint8_t *)cfi, (uint8_t *)fi, sizeof(struct fileIdentDesc)); in udf_fileident_read()
Dinode.c228 struct fileIdentDesc cfi, *sfi, *dfi; in udf_expand_dir_adinicb() local
269 sfi = udf_fileident_read(inode, &f_pos, &sfibh, &cfi, NULL, NULL, NULL, NULL, NULL, NULL); in udf_expand_dir_adinicb()
/linux-2.4.37.9/include/linux/mtd/
Dcfi.h109 # define CFIDEV_INTERLEAVE (cfi->interleave)
121 # define CFIDEV_INTERLEAVE (cfi->interleave)
133 # define CFIDEV_INTERLEAVE (cfi->interleave)
145 # define CFIDEV_INTERLEAVE (cfi->interleave)
330 static inline cfi_word cfi_build_cmd(u_char cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd() argument
381 #define CMD(x) cfi_build_cmd((x), map, cfi)
427 struct map_info *map, struct cfi_private *cfi, in cfi_send_gen_cmd() argument
433 val = cfi_build_cmd(cmd, map, cfi); in cfi_send_gen_cmd()
Dgen_probe.h17 struct flchip *chips, struct cfi_private *cfi);
/linux-2.4.37.9/drivers/mtd/maps/
Dscb2_flash.c131 struct cfi_private *cfi = map->fldrv_priv; in scb2_fixup_mtd() local
134 if (cfi->cfiq->InterfaceDesc != 1) { in scb2_fixup_mtd()
136 cfi->cfiq->InterfaceDesc); in scb2_fixup_mtd()
Dnettel.c200 struct cfi_private *cfi = nettel_intel_map.fldrv_priv; in nettel_reboot_notifier() local
205 cfi_send_gen_cmd(0xff, 0x55, b, &nettel_intel_map, cfi, in nettel_reboot_notifier()
206 cfi->device_type, NULL); in nettel_reboot_notifier()
/linux-2.4.37.9/Documentation/
DConfigure.help14199 option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>