/bootable/recovery/mtdutils/ |
mtdutils.c | 246 struct mtd_info_user mtd_info; local 247 int ret = ioctl(fd, MEMGETINFO, &mtd_info); 251 if (total_size != NULL) *total_size = mtd_info.size; 252 if (erase_size != NULL) *erase_size = mtd_info.erasesize; 253 if (write_size != NULL) *write_size = mtd_info.writesize;
|
/bionic/libc/kernel/common/linux/mtd/ |
mtd.h | 41 struct mtd_info *mtd; 81 struct mtd_info { struct 102 int (*erase) (struct mtd_info *mtd, struct erase_info *instr); 104 int (*point) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char **mtdbuf); 105 void (*unpoint) (struct mtd_info *mtd, u_char * addr, loff_t from, size_t len); 106 int (*read) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); 107 int (*write) (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf); 109 int (*read_oob) (struct mtd_info *mtd, loff_t from, 111 int (*write_oob) (struct mtd_info *mtd, loff_t to, 114 int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len) [all...] |
/development/ndk/platforms/android-3/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/external/kernel-headers/original/linux/mtd/ |
mtd.h | 38 struct mtd_info *mtd; 102 struct mtd_info { struct 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 [all...] |
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-3/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-3/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-4/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-4/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-5/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-5/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-8/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-8/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-9/arch-arm/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |
/prebuilts/ndk/7/platforms/android-9/arch-x86/usr/include/linux/mtd/ |
mtd.h | 36 struct mtd_info *mtd; 72 struct mtd_info { struct 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) [all...] |