Lines Matching refs:mtd_info
43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend()
50 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume()
76 struct mtd_info *__mtd_next_device(int i) in __mtd_next_device()
92 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release()
102 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show()
141 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show()
150 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show()
160 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show()
169 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show()
178 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show()
188 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show()
197 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobavail_show()
206 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show()
216 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show()
225 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show()
235 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show()
244 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store()
262 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show()
272 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_corrected_show()
283 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_errors_show()
293 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_badblocks_show()
303 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bbtblocks_show()
340 struct mtd_info *mtd = s->private; in mtd_partid_show()
361 struct mtd_info *mtd = s->private; in mtd_partname_show()
382 static void mtd_debugfs_populate(struct mtd_info *mtd) in mtd_debugfs_populate()
415 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) in mtd_mmap_capabilities()
434 struct mtd_info *mtd; in mtd_reboot_notifier()
436 mtd = container_of(n, struct mtd_info, reboot_notifier); in mtd_reboot_notifier()
468 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info()
510 int mtd_pairing_info_to_wunit(struct mtd_info *mtd, in mtd_pairing_info_to_wunit()
537 int mtd_pairing_groups(struct mtd_info *mtd) in mtd_pairing_groups()
549 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read()
560 static int mtd_nvmem_add(struct mtd_info *mtd) in mtd_nvmem_add()
600 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
723 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
769 static void mtd_set_dev_defaults(struct mtd_info *mtd) in mtd_set_dev_defaults()
811 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
869 int mtd_device_unregister(struct mtd_info *master) in mtd_device_unregister()
897 struct mtd_info *mtd; in register_mtd_user()
923 struct mtd_info *mtd; in unregister_mtd_user()
949 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
951 struct mtd_info *ret = NULL, *other; in get_mtd_device()
984 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
1012 struct mtd_info *get_mtd_device_nm(const char *name) in get_mtd_device_nm()
1015 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm()
1042 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
1051 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
1068 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
1091 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
1109 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
1126 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
1144 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
1160 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1183 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1202 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1235 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1270 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1314 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1346 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1378 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1380 int (*iter)(struct mtd_info *, in mtd_ooblayout_find_region() argument
1424 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1447 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1449 int (*iter)(struct mtd_info *, in mtd_ooblayout_get_bytes() argument
1490 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1492 int (*iter)(struct mtd_info *, in mtd_ooblayout_set_bytes() argument
1528 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1529 int (*iter)(struct mtd_info *, in mtd_ooblayout_count_bytes() argument
1562 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1582 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1602 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1622 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1638 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1652 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1663 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1674 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1686 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1697 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1709 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1731 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1742 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1754 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
1766 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
1778 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
1788 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
1798 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
1821 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
1853 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
1889 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
1921 struct mtd_info *mtd; in mtd_proc_show()