Home | History | Annotate | Download | only in mtd

Lines Matching refs:mtd

15 #error This is a kernel header. Perhaps include mtd-user.h instead?
22 #include <linux/mtd/compatmac.h>
23 #include <mtd/mtd-abi.h>
36 struct mtd_info *mtd;
85 #define MTD_PROGREGION_CTRLMODE_VALID(mtd) (mtd)->oobsize
86 #define MTD_PROGREGION_CTRLMODE_INVALID(mtd) (mtd)->ecctype
98 int (*erase) (struct mtd_info *mtd, struct erase_info *instr);
100 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf);
102 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len);
104 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
105 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf);
107 int (*read_oob) (struct mtd_info *mtd, loff_t from,
109 int (*write_oob) (struct mtd_info *mtd, loff_t to,
112 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
113 int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
114 int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len);
115 int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
116 int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf);
117 int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len);
119 int (*writev) (struct mtd_info *mtd, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen);
121 void (*sync) (struct mtd_info *mtd);
123 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len);
124 int (*unlock) (struct mtd_info *mtd, loff_t ofs, size_t len);
126 int (*suspend) (struct mtd_info *mtd);
127 void (*resume) (struct mtd_info *mtd);
129 int (*block_isbad) (struct mtd_info *mtd, loff_t ofs);
130 int (*block_markbad) (struct mtd_info *mtd, loff_t ofs);
143 void (*add)(struct mtd_info *mtd);
144 void (*remove)(struct mtd_info *mtd);