Home
last modified time | relevance | path

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

/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 …]
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 …]
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 …]
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_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 …]
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 …]
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.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()
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()
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()
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.c1060 u32 cfi = 0, cfi_mask = 0; in gfar_convert_to_filer() local
1076 cfi = rule->h_ext.vlan_tci & VLAN_CFI_MASK; in gfar_convert_to_filer()
1081 if (cfi == VLAN_TAG_PRESENT && cfi_mask == VLAN_TAG_PRESENT) { in gfar_convert_to_filer()
1084 } else if (cfi != VLAN_TAG_PRESENT && cfi_mask == VLAN_TAG_PRESENT) { in gfar_convert_to_filer()
/drivers/net/hyperv/
Dhyperv_net.h953 u32 cfi:1; /* Canonical Format ID */ member
/drivers/net/wireless/bcmdhd/common/include/proto/
D802.11.h1812 uint8 cfi; member