Home
last modified time | relevance | path

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

/external/kernel-headers/original/linux/mtd/
Dmtd.h38 struct mtd_info *mtd;
102 struct mtd_info { struct
151 int (*erase) (struct mtd_info *mtd, struct erase_info *instr); argument
154 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); argument
157 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len); argument
160 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); argument
161 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); argument
163 int (*read_oob) (struct mtd_info *mtd, loff_t from, argument
165 int (*write_oob) (struct mtd_info *mtd, loff_t to, argument
173 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); argument
[all …]
Dnand.h27 struct mtd_info;
29 extern int nand_scan (struct mtd_info *mtd, int max_chips);
31 extern void nand_release (struct mtd_info *mtd);
245 void (*hwctl)(struct mtd_info *mtd, int mode);
246 int (*calculate)(struct mtd_info *mtd,
249 int (*correct)(struct mtd_info *mtd, uint8_t *dat,
252 int (*read_page)(struct mtd_info *mtd,
255 void (*write_page)(struct mtd_info *mtd,
258 int (*read_oob)(struct mtd_info *mtd,
262 int (*write_oob)(struct mtd_info *mtd,
[all …]
Dpartitions.h45 struct mtd_info **mtdp; /* pointer to store the MTD object */
53 int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
54 int del_mtd_partitions(struct mtd_info *);
64 int (*parse_fn)(struct mtd_info *, struct mtd_partition **, unsigned long);
69 extern int parse_mtd_partitions(struct mtd_info *master, const char **types,
Dnand_ecc.h18 struct mtd_info;
23 int nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code);
28 int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc);
Dbbm.h113 int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt);
122 extern int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
123 extern int onenand_default_bbt(struct mtd_info *mtd);
Dblktrans.h16 struct mtd_info;
24 struct mtd_info *mtd;
56 void (*add_mtd)(struct mtd_blktrans_ops *tr, struct mtd_info *mtd);
Dcfi.h251 struct mtd_info *(*cmdset_setup)(struct map_info *);
471 void (*fixup)(struct mtd_info *mtd, void* param);
482 void cfi_fixup(struct mtd_info *mtd, struct cfi_fixup* fixups);
487 int cfi_varsize_frob(struct mtd_info *mtd, varsize_frob_t frob,
Dmap.h226 struct mtd_info *(*probe)(struct map_info *map);
227 void (*destroy)(struct mtd_info *);
236 struct mtd_info *do_map_probe(const char *name, struct map_info *map);
237 void map_destroy(struct mtd_info *mtd);
/external/yaffs2/yaffs2/mtdemul/
Dnandemul2k.c64 static struct mtd_info nandemul2k_mtd;
280 static int nand_read (struct mtd_info *mtd, loff_t from, size_t len,
282 static int nand_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,
284 static int nand_read_oob (struct mtd_info *mtd, loff_t from, size_t len,
286 static int nand_write (struct mtd_info *mtd, loff_t to, size_t len,
288 static int nand_write_ecc (struct mtd_info *mtd, loff_t to, size_t len,
291 static int nand_write_oob (struct mtd_info *mtd, loff_t to, size_t len,
294 static int nand_writev (struct mtd_info *mtd, const struct kvec *vecs,
297 static int nand_writev (struct mtd_info *mtd, const struct iovec *vecs,
300 static int nand_erase (struct mtd_info *mtd, struct erase_info *instr);
[all …]
/external/yaffs2/yaffs2/
Dyaffs_mtdif2.c35 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd2_pt2buf()
83 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd2_buf2pt()
123 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd2_WriteChunkWithTagsToNAND()
183 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd2_ReadChunkWithTagsFromNAND()
253 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
273 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice);
Dyaffs_mtdif.c77 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd_WriteChunkToNAND()
141 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd_ReadChunkFromNAND()
210 struct mtd_info *mtd = (struct mtd_info *)(dev->genericDevice); in nandmtd_EraseBlockInNAND()
Dyaffs_fs.c1432 struct mtd_info *mtd = yaffs_SuperToDevice(sb)->genericDevice;
1460 struct mtd_info *mtd;