Home
last modified time | relevance | path

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

/drivers/mtd/chips/
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 …]
Dcfi_util.c41 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr() argument
44 unsigned interleave = cfi_interleave(cfi); in cfi_build_cmd_addr()
45 unsigned type = cfi->device_type; in cfi_build_cmd_addr()
67 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd() argument
86 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd()
87 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd()
131 struct cfi_private *cfi) in cfi_merge_status() argument
149 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status()
150 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status()
198 struct map_info *map, struct cfi_private *cfi, in cfi_send_gen_cmd() argument
[all …]
Dcfi_cmdset_0002.c159 struct cfi_private *cfi = map->fldrv_priv; in fixup_amd_bootblock() local
160 struct cfi_pri_amdstd *extp = cfi->cmdset_priv; in fixup_amd_bootblock()
168 map->name, cfi->mfr, cfi->id); in fixup_amd_bootblock()
175 if (((cfi->id == 0xBA) || (cfi->id == 0x22BA)) && in fixup_amd_bootblock()
186 (cfi->mfr == CFI_MFR_MACRONIX)) { in fixup_amd_bootblock()
191 if (cfi->id & 0x80) { in fixup_amd_bootblock()
192 …tk(KERN_WARNING "%s: JEDEC Device ID is 0x%02X. Assuming broken CFI table.\n", map->name, cfi->id); in fixup_amd_bootblock()
208 struct cfi_private *cfi = map->fldrv_priv; in fixup_use_write_buffers() local
209 if (cfi->cfiq->BufWriteTimeoutTyp) { in fixup_use_write_buffers()
219 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local
[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_0001.c173 struct cfi_private *cfi = map->fldrv_priv; in fixup_convert_atmel_pri() local
174 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_convert_atmel_pri()
206 cfi->cfiq->BufWriteTimeoutTyp = 0; in fixup_convert_atmel_pri()
207 cfi->cfiq->BufWriteTimeoutMax = 0; in fixup_convert_atmel_pri()
213 struct cfi_private *cfi = map->fldrv_priv; in fixup_at49bv640dx_lock() local
214 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_at49bv640dx_lock()
225 struct cfi_private *cfi = map->fldrv_priv; in fixup_intel_strataflash() local
226 struct cfi_pri_intelext *extp = cfi->cmdset_priv; in fixup_intel_strataflash()
238 struct cfi_private *cfi = map->fldrv_priv; in fixup_no_write_suspend() local
239 struct cfi_pri_intelext *cfip = cfi->cmdset_priv; in fixup_no_write_suspend()
[all …]
Djedec_probe.c1879 struct cfi_private *cfi) in jedec_read_mfr() argument
1890 uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); in jedec_read_mfr()
1891 mask = (1 << (cfi->device_type * 8)) - 1; in jedec_read_mfr()
1902 struct cfi_private *cfi) in jedec_read_id() argument
1906 u32 ofs = cfi_build_cmd_addr(1, map, cfi); in jedec_read_id()
1907 mask = (1 << (cfi->device_type * 8)) -1; in jedec_read_id()
1912 static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) in jedec_reset() argument
1922 if (cfi->addr_unlock1) { in jedec_reset()
1924 cfi->addr_unlock1,cfi->addr_unlock2); in jedec_reset()
1925 cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, cfi->device_type, NULL); in jedec_reset()
[all …]
Dcfi_cmdset_0020.c115 struct cfi_private *cfi = map->fldrv_priv; in cfi_cmdset_0020() local
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()
151 cfi->cmdset_priv = extp; in cfi_cmdset_0020()
154 for (i=0; i< cfi->numchips; i++) { in cfi_cmdset_0020()
155 cfi->chips[i].word_write_time = 128; in cfi_cmdset_0020()
156 cfi->chips[i].buffer_write_time = 128; in cfi_cmdset_0020()
157 cfi->chips[i].erase_time = 1024; in cfi_cmdset_0020()
158 cfi->chips[i].ref_point_counter = 0; in cfi_cmdset_0020()
159 init_waitqueue_head(&(cfi->chips[i].wq)); in cfi_cmdset_0020()
[all …]
Dfwh_lock.h31 struct cfi_private *cfi = map->fldrv_priv; in fwh_xxlock_oneblock() local
DKconfig13 option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
/drivers/mtd/maps/
Dlantiq-flash.c115 struct cfi_private *cfi; in ltq_mtd_probe() local
165 cfi = ltq_mtd->map->fldrv_priv; in ltq_mtd_probe()
166 cfi->addr_unlock1 ^= 1; in ltq_mtd_probe()
167 cfi->addr_unlock2 ^= 1; in ltq_mtd_probe()
Dscb2_flash.c76 struct cfi_private *cfi = map->fldrv_priv; in scb2_fixup_mtd() local
79 if (cfi->cfiq->InterfaceDesc != CFI_INTERFACE_X16_ASYNC) { in scb2_fixup_mtd()
81 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.c209 struct cfi_private *cfi; in ichxrom_init_one() local
285 cfi = map->map.fldrv_priv; in ichxrom_init_one()
286 for(i = 0; i < cfi->numchips; i++) { in ichxrom_init_one()
287 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()
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()
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()
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1167 u32 cfi = 0, cfi_mask = 0; in gfar_convert_to_filer() local
1183 cfi = vlan_tci_cfi(rule); in gfar_convert_to_filer()
1188 if (cfi == VLAN_TAG_PRESENT && cfi_mask == VLAN_TAG_PRESENT) { in gfar_convert_to_filer()
1191 } else if (cfi != VLAN_TAG_PRESENT && in gfar_convert_to_filer()
/drivers/net/hyperv/
Dhyperv_net.h882 u32 cfi:1; /* Canonical Format ID */ member