H A D | libmtd.c | 24 /* Imported from mtd-utils by dehrenberg */ 38 #include <mtd/mtd-user.h> 486 * Very old kernels did not have "/sys/class/mtd" directory. Not very old 487 * kernels (e.g., 2.6.29) did have "/sys/class/mtd/mtdX" directories, by there 489 * is to check for a "/sys/class/mtd/mtdX/name" file. But this is not a 541 /* No mtd device, treat this as pre-sysfs system */ 569 lib->mtd = mkpath(lib->sysfs_mtd, MTD_NAME_PATT); 570 if (!lib->mtd) 573 lib->mtd_name = mkpath(lib->mtd, MTD_NAM 734 mtd_get_dev_info1(libmtd_t desc, int mtd_num, struct mtd_dev_info *mtd) argument 787 mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd) argument 801 mtd_ioctl_error(const struct mtd_dev_info *mtd, int eb, const char *sreq) argument 808 mtd_valid_erase_block(const struct mtd_dev_info *mtd, int eb) argument 819 mtd_xlock(const struct mtd_dev_info *mtd, int fd, int eb, int req, const char *sreq) argument 840 mtd_lock(const struct mtd_dev_info *mtd, int fd, int eb) argument 845 mtd_unlock(const struct mtd_dev_info *mtd, int fd, int eb) argument 850 mtd_erase(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb) argument 916 mtd_is_locked(const struct mtd_dev_info *mtd, int fd, int eb) argument 957 mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb) argument 1013 mtd_is_bad(const struct mtd_dev_info *mtd, int fd, int eb) argument 1032 mtd_mark_bad(const struct mtd_dev_info *mtd, int fd, int eb) argument 1053 mtd_read(const struct mtd_dev_info *mtd, int fd, int eb, int offs, void *buf, int len) argument 1087 legacy_auto_oob_layout(const struct mtd_dev_info *mtd, int fd, int ooblen, void *oob) argument 1124 mtd_write(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb, int offs, void *data, int len, void *oob, int ooblen, uint8_t mode) argument 1194 do_oob_op(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, uint64_t start, uint64_t length, void *data, unsigned int cmd64, unsigned int cmd) argument 1271 mtd_read_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, uint64_t start, uint64_t length, void *data) argument 1278 mtd_write_oob(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, uint64_t start, uint64_t length, void *data) argument 1285 mtd_write_img(const struct mtd_dev_info *mtd, int fd, int eb, int offs, const char *img_name) argument [all...] |