Searched refs:mtd_info (Results 1 - 25 of 244) sorted by relevance

12345678910

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/mtd/
H A Dconcat.h26 struct mtd_info *mtd_concat_create(
27 struct mtd_info *subdev[], /* subdevices to concatenate */
31 void mtd_concat_destroy(struct mtd_info *mtd);
H A Dmtd.h49 struct mtd_info *mtd;
114 struct mtd_info { struct
128 * Any driver registering a struct mtd_info must ensure a writesize of
169 int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
173 int (*point) (struct mtd_info *mtd, loff_t from, size_t len,
177 void (*unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
183 unsigned long (*get_unmapped_area) (struct mtd_info *mtd,
194 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
195 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf);
204 int (*panic_write) (struct mtd_info *mt
[all...]
H A Dnand_ecc.h18 struct mtd_info;
29 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code);
40 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
H A Dmtdram.h5 int mtdram_init_device(struct mtd_info *mtd, void *mapped_address,
H A Dnand.h27 struct mtd_info;
30 extern int nand_scan (struct mtd_info *mtd, int max_chips);
33 extern int nand_scan_ident(struct mtd_info *mtd, int max_chips,
35 extern int nand_scan_tail(struct mtd_info *mtd);
38 extern void nand_release (struct mtd_info *mtd);
41 extern void nand_wait_ready(struct mtd_info *mtd);
44 extern int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
47 extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
279 void (*hwctl)(struct mtd_info *mtd, int mode);
280 int (*calculate)(struct mtd_info *mt
[all...]
H A Dpartitions.h50 struct mtd_info;
52 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
53 int del_mtd_partitions(struct mtd_info *);
63 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long);
68 extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
H A Donenand.h25 extern int onenand_scan(struct mtd_info *mtd, int max_chips);
27 extern void onenand_release(struct mtd_info *mtd);
57 int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
58 int (*wait)(struct mtd_info *mtd, int state);
59 int (*bbt_wait)(struct mtd_info *mtd, int state);
60 void (*unlock_all)(struct mtd_info *mtd);
61 int (*read_bufferram)(struct mtd_info *mtd, int area,
63 int (*write_bufferram)(struct mtd_info *mtd, int area,
67 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
68 int (*chip_probe)(struct mtd_info *mt
[all...]
H A Dpmc551.h30 struct mtd_info *nextpmc551;
36 static int pmc551_erase(struct mtd_info *, struct erase_info *);
37 static void pmc551_unpoint(struct mtd_info *, loff_t, size_t);
38 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len,
40 static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
41 static int pmc551_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
H A Dgen_probe.h35 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/include/asm/mach/
H A Dflash.h14 struct mtd_info;
34 void (*mmcontrol)(struct mtd_info *mtd, int sync_read);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/47xxnand/
H A Dbrcmnand_priv.h61 struct mtd_info mtd;
83 extern int brcmnand_scan(struct mtd_info *mtd, int maxchips);
90 extern void brcmnand_release(struct mtd_info *mtd);
92 extern int brcmnand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
93 extern int brcmnand_default_bbt(struct mtd_info *mtd);
94 extern int brcmnand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
96 extern int brcmnand_update_bbt(struct mtd_info *mtd, loff_t offs);
104 extern int brcmnand_cet_update(struct mtd_info *mtd, loff_t from, int *status);
105 extern int brcmnand_cet_prepare_reboot(struct mtd_info *mtd);
106 extern int brcmnand_cet_erasecallback(struct mtd_info *mt
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/bcm947xx/nand/
H A Dbrcmnand_priv.h61 struct mtd_info mtd;
83 extern int brcmnand_scan(struct mtd_info *mtd, int maxchips);
90 extern void brcmnand_release(struct mtd_info *mtd);
92 extern int brcmnand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
93 extern int brcmnand_default_bbt(struct mtd_info *mtd);
94 extern int brcmnand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt);
96 extern int brcmnand_update_bbt(struct mtd_info *mtd, loff_t offs);
104 extern int brcmnand_cet_update(struct mtd_info *mtd, loff_t from, int *status);
105 extern int brcmnand_cet_prepare_reboot(struct mtd_info *mtd);
106 extern int brcmnand_cet_erasecallback(struct mtd_info *mt
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/chips/
H A Dmap_absent.c29 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
30 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
31 static int map_absent_erase (struct mtd_info *, struct erase_info *);
32 static void map_absent_sync (struct mtd_info *);
33 static struct mtd_info *map_absent_probe(struct map_info *map);
34 static void map_absent_destroy (struct mtd_info *);
44 static struct mtd_info *map_absent_probe(struct map_info *map)
46 struct mtd_info *mtd;
71 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
77 static int map_absent_write(struct mtd_info *mt
[all...]
H A Dmap_rom.c17 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
18 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
19 static void maprom_nop (struct mtd_info *);
20 static struct mtd_info *map_rom_probe(struct map_info *map);
21 static int maprom_erase (struct mtd_info *mtd, struct erase_info *info);
22 static unsigned long maprom_unmapped_area(struct mtd_info *, unsigned long,
31 static struct mtd_info *map_rom_probe(struct map_info *map)
33 struct mtd_info *mtd;
63 static unsigned long maprom_unmapped_area(struct mtd_info *mtd,
72 static int maprom_read (struct mtd_info *mt
[all...]
H A Dmap_ram.c18 static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
19 static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
20 static int mapram_erase (struct mtd_info *, struct erase_info *);
21 static void mapram_nop (struct mtd_info *);
22 static struct mtd_info *map_ram_probe(struct map_info *map);
23 static unsigned long mapram_unmapped_area(struct mtd_info *, unsigned long,
33 static struct mtd_info *map_ram_probe(struct map_info *map)
35 struct mtd_info *mtd;
71 static unsigned long mapram_unmapped_area(struct mtd_info *mtd,
80 static int mapram_read (struct mtd_info *mt
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/devices/
H A Dmtdram.c33 static struct mtd_info *mtd_info; variable in typeref:struct:mtd_info
35 static int ram_erase(struct mtd_info *mtd, struct erase_info *instr)
48 static int ram_point(struct mtd_info *mtd, loff_t from, size_t len,
63 static void ram_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
72 static unsigned long ram_get_unmapped_area(struct mtd_info *mtd,
80 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len,
92 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len,
106 if (mtd_info) {
107 del_mtd_device(mtd_info);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/
H A Dmtdcore.h11 extern struct mtd_info *__mtd_next_device(int i);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-orion/include/plat/
H A Dorion_nand.h17 int (*dev_ready)(struct mtd_info *mtd);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/mtd/nand/
H A Dams-delta.c33 static struct mtd_info *ams_delta_mtd = NULL;
62 static void ams_delta_write_byte(struct mtd_info *mtd, u_char byte)
74 static u_char ams_delta_read_byte(struct mtd_info *mtd)
89 static void ams_delta_write_buf(struct mtd_info *mtd, const u_char *buf,
98 static void ams_delta_read_buf(struct mtd_info *mtd, u_char *buf, int len)
106 static int ams_delta_verify_buf(struct mtd_info *mtd, const u_char *buf,
126 static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd,
146 static int ams_delta_nand_ready(struct mtd_info *mtd)
160 ams_delta_mtd = kmalloc(sizeof(struct mtd_info) +
174 memset(ams_delta_mtd, 0, sizeof(struct mtd_info));
[all...]
H A Dcmx270_nand.c36 static struct mtd_info *cmx270_nand_mtd;
55 static u_char cmx270_read_byte(struct mtd_info *mtd)
62 static void cmx270_write_buf(struct mtd_info *mtd, const u_char *buf, int len)
71 static void cmx270_read_buf(struct mtd_info *mtd, u_char *buf, int len)
80 static int cmx270_verify_buf(struct mtd_info *mtd, const u_char *buf, int len)
107 static void cmx270_hwcontrol(struct mtd_info *mtd, int dat,
141 static int cmx270_device_ready(struct mtd_info *mtd)
179 cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) +
H A Dspia.c33 static struct mtd_info *spia_mtd = NULL;
89 static void spia_hwcontrol(struct mtd_info *mtd, int cmd)
114 spia_mtd = kmalloc(sizeof(struct mtd_info) + sizeof(struct nand_chip), GFP_KERNEL);
124 memset(spia_mtd, 0, sizeof(struct mtd_info));
H A Dmpc5121_nfc.c119 struct mtd_info mtd;
131 static void mpc5121_nfc_done(struct mtd_info *mtd);
138 static inline u16 nfc_read(struct mtd_info *mtd, uint reg)
147 static inline void nfc_write(struct mtd_info *mtd, uint reg, u16 val)
156 static inline void nfc_set(struct mtd_info *mtd, uint reg, u16 bits)
162 static inline void nfc_clear(struct mtd_info *mtd, uint reg, u16 bits)
168 static inline void mpc5121_nfc_send_addr(struct mtd_info *mtd, u16 addr)
176 static inline void mpc5121_nfc_send_cmd(struct mtd_info *mtd, u16 cmd)
184 static inline void mpc5121_nfc_send_prog_page(struct mtd_info *mtd)
192 static inline void mpc5121_nfc_send_read_page(struct mtd_info *mt
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/rc/
H A Dmtd.c87 mtd_info_t mtd_info; local
99 if (ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0) {
109 erase_info.length = mtd_info.erasesize;
113 erase_info.start < mtd_info.size;
114 erase_info.start += mtd_info.erasesize) {
118 mtd_info.size -= mtd_info.erasesize;
146 mtd_info_t mtd_info; local
170 ioctl(mtd_fd, MEMGETINFO, &mtd_info) != 0 ||
171 mtd_info
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/mach-kirkwood/
H A Dcommon.h19 struct mtd_info;
49 void kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts, int (*dev_ready)(struct mtd_info *));
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/cris/arch-v32/drivers/
H A Daxisflashmap.c58 struct mtd_info* axisflash_mtd = NULL;
229 static struct mtd_info *probe_cs(struct map_info *map_cs)
231 struct mtd_info *mtd_cs = NULL;
250 * both cse0 and cse1, the mtd_info structs will be concatenated to one struct
258 extern struct mtd_info* __init crisv32_nand_flash_probe (void);
259 static struct mtd_info *flash_probe(void)
261 struct mtd_info *mtd_cse0;
262 struct mtd_info *mtd_cse1;
263 struct mtd_info *mtd_total;
264 struct mtd_info *mtd
[all...]

Completed in 199 milliseconds

12345678910