Lines Matching defs:mtd
43 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
50 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
127 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local
137 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
176 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
185 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
195 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
204 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
213 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
223 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
232 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobavail_show() local
241 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
251 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
260 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
270 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
279 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
297 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
307 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_corrected_show() local
318 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_errors_show() local
328 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_badblocks_show() local
338 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bbtblocks_show() local
375 struct mtd_info *mtd = s->private; in mtd_partid_debug_show() local
386 struct mtd_info *mtd = s->private; in mtd_partname_debug_show() local
397 static void mtd_debugfs_populate(struct mtd_info *mtd) in mtd_debugfs_populate()
418 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) in mtd_mmap_capabilities()
437 struct mtd_info *mtd; in mtd_reboot_notifier() local
471 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info()
514 int mtd_pairing_info_to_wunit(struct mtd_info *mtd, in mtd_pairing_info_to_wunit()
542 int mtd_pairing_groups(struct mtd_info *mtd) in mtd_pairing_groups()
556 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
567 static int mtd_nvmem_add(struct mtd_info *mtd) in mtd_nvmem_add()
607 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
754 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
800 static void mtd_set_dev_defaults(struct mtd_info *mtd) in mtd_set_dev_defaults()
843 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
932 struct mtd_info *mtd; in register_mtd_user() local
958 struct mtd_info *mtd; in unregister_mtd_user() local
984 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
1019 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
1058 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
1085 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
1094 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
1118 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
1169 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
1191 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
1210 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
1228 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats()
1247 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
1263 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1286 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1308 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1341 static int mtd_read_oob_std(struct mtd_info *mtd, loff_t from, in mtd_read_oob_std()
1357 static int mtd_write_oob_std(struct mtd_info *mtd, loff_t to, in mtd_write_oob_std()
1373 static int mtd_io_emulated_slc(struct mtd_info *mtd, loff_t start, bool read, in mtd_io_emulated_slc()
1436 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1475 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1519 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1553 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1587 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1633 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1656 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1699 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1737 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1771 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1791 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1811 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1831 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1847 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1861 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1872 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1885 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1899 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1912 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1926 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1949 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1962 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1982 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
2002 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
2022 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
2038 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
2054 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
2093 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
2125 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
2166 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
2198 struct mtd_info *mtd; in mtd_proc_show() local