/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;
|
/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...] |
/prebuilts/ndk/current/platforms/android-12/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/current/platforms/android-12/arch-mips/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/current/platforms/android-12/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/current/platforms/android-13/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/current/platforms/android-13/arch-mips/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/current/platforms/android-13/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/current/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/current/platforms/android-14/arch-mips/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/current/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/current/platforms/android-15/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/current/platforms/android-15/arch-mips/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/current/platforms/android-15/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/current/platforms/android-16/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/current/platforms/android-16/arch-mips/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/current/platforms/android-16/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/current/platforms/android-17/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/current/platforms/android-17/arch-mips/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/current/platforms/android-17/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/current/platforms/android-18/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/current/platforms/android-18/arch-mips/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/current/platforms/android-18/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/current/platforms/android-19/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/current/platforms/android-19/arch-mips/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...] |