Home
last modified time | relevance | path

Searched refs:mtd_info (Results 1 – 25 of 104) sorted by relevance

12345

/linux-2.4.37.9/drivers/mtd/devices/
Dmtdram.c43 static struct mtd_info *mtd_info; variable
47 ram_erase(struct mtd_info *mtd, struct erase_info *instr) in ram_erase()
64 static int ram_point (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbu… in ram_point()
74 static void ram_unpoint (struct mtd_info *mtd, u_char *addr, loff_t from, in ram_unpoint()
80 static int ram_read(struct mtd_info *mtd, loff_t from, size_t len, in ram_read()
95 static int ram_write(struct mtd_info *mtd, loff_t to, size_t len, in ram_write()
112 if (mtd_info) { in cleanup_mtdram()
113 del_mtd_device(mtd_info); in cleanup_mtdram()
115 if (mtd_info->priv) in cleanup_mtdram()
117 iounmap(mtd_info->priv); in cleanup_mtdram()
[all …]
Dblkmtd.c59 struct mtd_info mtd_info; member
70 static void blkmtd_sync(struct mtd_info *mtd);
410 static int blkmtd_erase(struct mtd_info *mtd, struct erase_info *instr) in blkmtd_erase()
479 static int blkmtd_read(struct mtd_info *mtd, loff_t from, size_t len, in blkmtd_read()
549 static int blkmtd_write(struct mtd_info *mtd, loff_t to, size_t len, in blkmtd_write()
588 static void blkmtd_sync(struct mtd_info *mtd) in blkmtd_sync()
657 dev->mtd_info.index, in blkmtd_proc_read()
678 del_mtd_device(&dev->mtd_info); in free_device()
679 info("mtd%d: [%s] removed", dev->mtd_info.index, in free_device()
680 dev->mtd_info.name + strlen("blkmtd: ")); in free_device()
[all …]
Dslram.c63 struct mtd_info *mtdinfo;
78 int slram_erase(struct mtd_info *, struct erase_info *);
79 int slram_point(struct mtd_info *, loff_t, size_t, size_t *, u_char **);
80 void slram_unpoint(struct mtd_info *, u_char *, loff_t, size_t);
81 int slram_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
82 int slram_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
84 int slram_erase(struct mtd_info *mtd, struct erase_info *instr) in slram_erase()
111 int slram_point(struct mtd_info *mtd, loff_t from, size_t len, in slram_point()
121 void slram_unpoint(struct mtd_info *mtd, u_char *addr, loff_t from, size_t len) in slram_unpoint()
125 int slram_read(struct mtd_info *mtd, loff_t from, size_t len, in slram_read()
[all …]
Ddoc1000.c46 static struct mtd_info *mymtd;
71 static int flashcard_erase (struct mtd_info *mtd, struct erase_info *instr);
72 static int flashcard_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b…
73 static int flashcard_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch…
74 static void flashcard_sync (struct mtd_info *mtd);
88 static u_char *pagein(struct mtd_info *mtd, u_long addr) in pagein()
101 void flashcard_sync (struct mtd_info *mtd) in flashcard_sync()
112 int flashcard_erase (struct mtd_info *mtd, struct erase_info *instr) in flashcard_erase()
254 int flashcard_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in flashcard_read()
320 int flashcard_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf) in flashcard_write()
[all …]
Ddoc2001.c35 static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,
37 static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
39 static int doc_read_ecc(struct mtd_info *mtd, loff_t from, size_t len,
41 static int doc_write_ecc(struct mtd_info *mtd, loff_t to, size_t len,
43 static int doc_read_oob(struct mtd_info *mtd, loff_t ofs, size_t len,
45 static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, size_t len,
47 static int doc_erase (struct mtd_info *mtd, struct erase_info *instr);
49 static struct mtd_info *docmillist = NULL;
333 static void DoCMil_init(struct mtd_info *mtd) in DoCMil_init()
401 static int doc_read (struct mtd_info *mtd, loff_t from, size_t len, in doc_read()
[all …]
/linux-2.4.37.9/include/linux/mtd/
Dmtd.h118 struct mtd_info *mtd;
137 struct mtd_info { struct
167 int (*erase) (struct mtd_info *mtd, struct erase_info *instr); argument
170 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); argument
173 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len); argument
176 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); argument
177 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); argument
179 …int (*read_ecc) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf, u_cha… argument
180 …int (*write_ecc) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf, … argument
182 int (*read_oob) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); argument
[all …]
Dpmc551.h32 struct mtd_info *nextpmc551;
38 static int pmc551_erase(struct mtd_info *, struct erase_info *);
39 static void pmc551_unpoint(struct mtd_info *, u_char *, loff_t, size_t);
40 static int pmc551_point (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mt…
41 static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
42 static int pmc551_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
Dconcat.h15 struct mtd_info *mtd_concat_create(
16 struct mtd_info *subdev[], /* subdevices to concatenate */
20 void mtd_concat_destroy(struct mtd_info *mtd);
Dpartitions.h44 struct mtd_info **mtdp; /* pointer to store the MTD object */
52 int add_mtd_partitions(struct mtd_info *, struct mtd_partition *, int);
53 int del_mtd_partitions(struct mtd_info *);
Dmap.h66 struct mtd_info *(*probe)(struct map_info *map);
67 void (*destroy)(struct mtd_info *);
76 struct mtd_info *do_map_probe(const char *name, struct map_info *map);
83 static inline void map_destroy(struct mtd_info *mtd) in map_destroy()
/linux-2.4.37.9/drivers/mtd/chips/
Dmap_absent.c30 static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
31 static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
32 static int map_absent_erase (struct mtd_info *, struct erase_info *);
33 static void map_absent_sync (struct mtd_info *);
34 static struct mtd_info *map_absent_probe(struct map_info *map);
35 static void map_absent_destroy (struct mtd_info *);
45 static struct mtd_info *map_absent_probe(struct map_info *map) in map_absent_probe()
47 struct mtd_info *mtd; in map_absent_probe()
73 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read()
79 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write()
[all …]
Dmap_rom.c18 static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
19 static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
20 static void maprom_nop (struct mtd_info *);
21 struct mtd_info *map_rom_probe(struct map_info *map);
29 struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe()
31 struct mtd_info *mtd; in map_rom_probe()
57 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read()
66 static void maprom_nop(struct mtd_info *mtd) in maprom_nop()
71 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write()
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);
31 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe()
33 struct mtd_info *mtd; in map_ram_probe()
82 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read()
91 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write()
100 static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr) in mapram_erase()
[all …]
Dsharp.c65 struct mtd_info *sharp_probe(struct map_info *);
67 static int sharp_probe_map(struct map_info *map,struct mtd_info *mtd);
69 static int sharp_read(struct mtd_info *mtd, loff_t from, size_t len,
71 static int sharp_write(struct mtd_info *mtd, loff_t from, size_t len,
73 static int sharp_erase(struct mtd_info *mtd, struct erase_info *instr);
74 static void sharp_sync(struct mtd_info *mtd);
75 static int sharp_suspend(struct mtd_info *mtd);
76 static void sharp_resume(struct mtd_info *mtd);
77 static void sharp_destroy(struct mtd_info *mtd);
97 struct mtd_info *sharp_probe(struct map_info *map);
[all …]
Dcfi_cmdset_0001.c37 static int cfi_intelext_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
38 static int cfi_intelext_read_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
39 static int cfi_intelext_read_fact_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
40 static int cfi_intelext_write_words(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
41 static int cfi_intelext_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
42 static int cfi_intelext_erase_varsize(struct mtd_info *, struct erase_info *);
43 static void cfi_intelext_sync (struct mtd_info *);
44 static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len);
45 static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
46 static int cfi_intelext_suspend (struct mtd_info *);
[all …]
Dgen_probe.c14 static struct mtd_info *check_cmd_set(struct map_info *, int);
20 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) in mtd_do_chip_probe()
22 struct mtd_info *mtd = NULL; in mtd_do_chip_probe()
276 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int);
282 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown()
296 struct mtd_info *mtd; in cfi_cmdset_unknown()
310 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
Dcfi_cmdset_0020.c36 static int cfi_staa_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);
37 static int cfi_staa_write_buffers(struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
38 static int cfi_staa_writev(struct mtd_info *mtd, const struct iovec *vecs,
40 static int cfi_staa_erase_varsize(struct mtd_info *, struct erase_info *);
41 static void cfi_staa_sync (struct mtd_info *);
42 static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, size_t len);
43 static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
44 static int cfi_staa_suspend (struct mtd_info *);
45 static void cfi_staa_resume (struct mtd_info *);
47 static void cfi_staa_destroy(struct mtd_info *);
[all …]
/linux-2.4.37.9/drivers/mtd/
Dmtdconcat.c26 struct mtd_info mtd;
28 struct mtd_info **subdev;
36 ((sizeof(struct mtd_concat) + (num_subdev) * sizeof(struct mtd_info *)))
51 static int concat_read (struct mtd_info *mtd, loff_t from, size_t len, in concat_read()
62 struct mtd_info *subdev = concat->subdev[i]; in concat_read()
95 static int concat_write (struct mtd_info *mtd, loff_t to, size_t len, in concat_write()
109 struct mtd_info *subdev = concat->subdev[i]; in concat_write()
150 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase()
184 static int concat_erase (struct mtd_info *mtd, struct erase_info *instr) in concat_erase()
187 struct mtd_info *subdev; in concat_erase()
[all …]
Dmtdpart.c29 struct mtd_info mtd;
30 struct mtd_info *master;
49 static int part_read (struct mtd_info *mtd, loff_t from, size_t len, in part_read()
61 static int part_point (struct mtd_info *mtd, loff_t from, size_t len, in part_point()
72 static void part_unpoint (struct mtd_info *mtd, u_char *addr, loff_t from, size_t len) in part_unpoint()
80 static int part_read_ecc (struct mtd_info *mtd, loff_t from, size_t len, in part_read_ecc()
92 static int part_read_oob (struct mtd_info *mtd, loff_t from, size_t len, in part_read_oob()
104 static int part_read_user_prot_reg (struct mtd_info *mtd, loff_t from, size_t len, in part_read_user_prot_reg()
112 static int part_read_fact_prot_reg (struct mtd_info *mtd, loff_t from, size_t len, in part_read_fact_prot_reg()
120 static int part_write (struct mtd_info *mtd, loff_t to, size_t len, in part_write()
[all …]
Dmtdchar.c17 static void mtd_notify_add(struct mtd_info* mtd);
18 static void mtd_notify_remove(struct mtd_info* mtd);
32 struct mtd_info *mtd=(struct mtd_info *)file->private_data; in mtd_lseek()
65 struct mtd_info *mtd; in mtd_open()
101 struct mtd_info *mtd; in mtd_close()
105 mtd = (struct mtd_info *)file->private_data; in mtd_close()
122 struct mtd_info *mtd = (struct mtd_info *)file->private_data; in mtd_read()
181 struct mtd_info *mtd = (struct mtd_info *)file->private_data; in mtd_write()
249 struct mtd_info *mtd = (struct mtd_info *)file->private_data; in mtd_ioctl()
291 if (copy_to_user((struct mtd_info *)arg, mtd, in mtd_ioctl()
[all …]
Dmtdcore.c28 static struct mtd_info *mtd_table[MAX_MTD_DEVICES];
41 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
79 int del_mtd_device (struct mtd_info *mtd) in del_mtd_device()
184 struct mtd_info *__get_mtd_device(struct mtd_info *mtd, int num) in __get_mtd_device()
186 struct mtd_info *ret = NULL; in __get_mtd_device()
210 int default_mtd_writev(struct mtd_info *mtd, const struct iovec *vecs, in default_mtd_writev()
240 int default_mtd_readv(struct mtd_info *mtd, struct iovec *vecs, in default_mtd_readv()
318 struct mtd_info *this = mtd_table[i]; in mtd_proc_info()
/linux-2.4.37.9/arch/cris/drivers/
Daxisflashmap.c152 struct mtd_info* axisflash_mtd = NULL;
311 static struct mtd_info *probe_cs(struct map_info *map_cs) in probe_cs()
313 struct mtd_info *mtd_cs = NULL; in probe_cs()
341 static struct mtd_info *flash_probe(void) in flash_probe()
343 struct mtd_info *mtd_cse0; in flash_probe()
344 struct mtd_info *mtd_cse1; in flash_probe()
345 struct mtd_info *mtd_cse; in flash_probe()
357 struct mtd_info *mtds[] = { mtd_cse0, mtd_cse1 }; in flash_probe()
397 struct mtd_info *mymtd; in init_axis_flash()
521 struct mtd_info *mtd_ram; in init_axis_flash()
[all …]
/linux-2.4.37.9/drivers/mtd/maps/
Dnora.c18 static struct mtd_info *mymtd;
75 static int nora_mtd_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *bu… in nora_mtd_read()
80 static int nora_mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char… in nora_mtd_write()
85 static int nora_mtd_erase (struct mtd_info *mtd, struct erase_info *instr) in nora_mtd_erase()
91 static void nora_mtd_sync (struct mtd_info *mtd) in nora_mtd_sync()
96 static int nora_mtd_suspend (struct mtd_info *mtd) in nora_mtd_suspend()
101 static void nora_mtd_resume (struct mtd_info *mtd) in nora_mtd_resume()
107 static struct mtd_info nora_mtds[4] = { /* boot, kernel, ramdisk, fs */
Dceiva.c159 struct mtd_info *mtd;
167 static int __init clps_setup_mtd(struct clps_info *clps, int nr, struct mtd_info **rmtd) in clps_setup_mtd()
169 struct mtd_info *subdev[nr]; in clps_setup_mtd()
278 static void __exit clps_destroy_mtd(struct clps_info *clps, struct mtd_info *mtd) in clps_destroy_mtd()
321 extern int parse_redboot_partitions(struct mtd_info *master, struct mtd_partition **pparts);
322 extern int parse_cmdline_partitions(struct mtd_info *master, struct mtd_partition **pparts, char *);
326 static void __init clps_locate_partitions(struct mtd_info *mtd) in clps_locate_partitions()
377 static struct mtd_info *mymtd;
/linux-2.4.37.9/drivers/mtd/nand/
Dnand.c159 static int nand_read (struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * buf);
160 static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,
162 static int nand_read_oob (struct mtd_info *mtd, loff_t from, size_t len, size_t * retlen, u_char * …
163 static int nand_write (struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_char *…
164 static int nand_write_ecc (struct mtd_info *mtd, loff_t to, size_t len,
166 static int nand_write_oob (struct mtd_info *mtd, loff_t to, size_t len, size_t * retlen, const u_ch…
167 static int nand_writev (struct mtd_info *mtd, const struct iovec *vecs,
169 static int nand_writev_ecc (struct mtd_info *mtd, const struct iovec *vecs,
171 static int nand_erase (struct mtd_info *mtd, struct erase_info *instr);
172 static void nand_sync (struct mtd_info *mtd);
[all …]

12345