Lines Matching defs:mtd
169 struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev); in mtd_release() local
179 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
186 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
196 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
235 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
245 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
256 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
266 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
276 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
287 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
297 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
308 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
318 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
328 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
337 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
355 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
396 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
508 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
578 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
640 struct mtd_info *mtd; in register_mtd_user() local
666 struct mtd_info *mtd; in unregister_mtd_user() local
693 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
728 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
759 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
798 void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, in mtd_get_len_incl_bad()
830 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
839 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
858 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
878 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
896 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
914 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
925 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
949 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
970 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
986 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1023 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1055 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1087 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1133 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1156 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1199 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1237 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1271 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1291 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1311 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1331 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1347 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1361 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1372 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1383 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1395 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1406 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1418 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1440 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1451 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1463 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
1475 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
1487 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
1497 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
1507 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
1531 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
1563 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
1599 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
1633 struct mtd_info *mtd; in mtd_proc_show() local