Lines Matching defs:mtd_info
102 struct mtd_info { struct
116 * Any driver registering a struct mtd_info must ensure a writesize of argument
119 u_int32_t writesize;
121 u_int32_t oobsize; // Amount of OOB data per block (e.g. 16)
122 u_int32_t ecctype;
123 u_int32_t eccsize;
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
174 …int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *… argument
175 int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); argument
176 …int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *… argument
177 …int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char … argument
178 int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len); argument
184 …int (*writev) (struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size… argument
187 void (*sync) (struct mtd_info *mtd); argument
190 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len); argument
191 int (*unlock) (struct mtd_info *mtd, loff_t ofs, size_t len); argument
194 int (*suspend) (struct mtd_info *mtd); argument
195 void (*resume) (struct mtd_info *mtd); argument
198 int (*block_isbad) (struct mtd_info *mtd, loff_t ofs); argument
199 int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); argument
215 extern int add_mtd_device(struct mtd_info *mtd); argument