Home | History | Annotate | Download | only in mtd

Lines Matching defs:mtd_info

38 	struct mtd_info *mtd;
102 struct mtd_info {
116 * Any driver registering a struct mtd_info must ensure a writesize of
151 int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
154 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf);
157 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len);
160 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
161 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf);
163 int (*read_oob) (struct mtd_info *mtd, loff_t from,
165 int (*write_oob) (struct mtd_info *mtd, loff_t to,
173 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
174 int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
175 int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
176 int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
177 int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
178 int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len);
184 int (*writev) (struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen);
187 void (*sync) (struct mtd_info *mtd);
190 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len);
191 int (*unlock) (struct mtd_info *mtd, loff_t ofs, size_t len);
194 int (*suspend) (struct mtd_info *mtd);
195 void (*resume) (struct mtd_info *mtd);
198 int (*block_isbad) (struct mtd_info *mtd, loff_t ofs);
199 int (*block_markbad) (struct mtd_info *mtd, loff_t ofs);
215 extern int add_mtd_device(struct mtd_info *mtd);
216 extern int del_mtd_device (struct mtd_info *mtd);
218 extern struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num);
220 extern void put_mtd_device(struct mtd_info *mtd);
224 void (*add)(struct mtd_info *mtd);
225 void (*remove)(struct mtd_info *mtd);
233 int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs,
236 int default_mtd_readv(struct mtd_info *mtd, struct kvec *vecs,