Lines Matching defs:mtd

184 	struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev);  in mtd_release()  local
194 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
201 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
211 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
250 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
260 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
271 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
281 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
291 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
302 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
312 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
323 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
333 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
343 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
352 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
370 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
411 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
525 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
602 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
664 struct mtd_info *mtd; in register_mtd_user() local
690 struct mtd_info *mtd; in unregister_mtd_user() local
717 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
752 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
783 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
822 void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, in mtd_get_len_incl_bad()
854 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
863 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
882 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
902 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
920 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
938 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
949 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
986 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1021 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1037 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1070 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1103 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1145 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1177 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1209 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1255 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1278 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1321 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1359 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1393 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1413 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1433 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1453 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1469 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1483 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1494 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1505 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1517 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1528 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1540 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1562 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1573 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1585 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
1597 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
1609 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
1619 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
1629 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
1653 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
1685 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
1721 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
1755 struct mtd_info *mtd; in mtd_proc_show() local