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
92 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local
102 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
141 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
150 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
160 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
169 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
178 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
188 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
197 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobavail_show() local
206 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
216 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
225 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
235 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
244 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
262 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
272 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_corrected_show() local
283 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_stats_errors_show() local
293 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_badblocks_show() local
303 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bbtblocks_show() local
340 struct mtd_info *mtd = s->private; in mtd_partid_debug_show() local
351 struct mtd_info *mtd = s->private; in mtd_partname_debug_show() local
362 static void mtd_debugfs_populate(struct mtd_info *mtd) in mtd_debugfs_populate()
383 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) in mtd_mmap_capabilities()
402 struct mtd_info *mtd; in mtd_reboot_notifier() local
436 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info()
479 int mtd_pairing_info_to_wunit(struct mtd_info *mtd, in mtd_pairing_info_to_wunit()
507 int mtd_pairing_groups(struct mtd_info *mtd) in mtd_pairing_groups()
521 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
532 static int mtd_nvmem_add(struct mtd_info *mtd) in mtd_nvmem_add()
572 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
717 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
763 static void mtd_set_dev_defaults(struct mtd_info *mtd) in mtd_set_dev_defaults()
806 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
892 struct mtd_info *mtd; in register_mtd_user() local
918 struct mtd_info *mtd; in unregister_mtd_user() local
944 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
979 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
1016 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
1043 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
1052 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
1074 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
1125 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
1147 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
1166 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
1184 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats()
1203 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
1219 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1242 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1264 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1297 static int mtd_read_oob_std(struct mtd_info *mtd, loff_t from, in mtd_read_oob_std()
1313 static int mtd_write_oob_std(struct mtd_info *mtd, loff_t to, in mtd_write_oob_std()
1329 static int mtd_io_emulated_slc(struct mtd_info *mtd, loff_t start, bool read, in mtd_io_emulated_slc()
1392 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1431 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1475 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1509 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1543 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1589 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1612 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1655 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1693 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1727 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1747 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1767 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1787 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1803 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1817 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1828 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1841 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1855 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1868 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1882 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1905 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1918 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1938 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
1958 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
1978 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
1994 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
2010 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
2049 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
2081 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
2122 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
2154 struct mtd_info *mtd; in mtd_proc_show() local