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
108 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
147 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
156 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
165 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
174 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
183 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
193 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
202 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobavail_show() local
211 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
220 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
229 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
239 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
248 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
264 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
274 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_corrected_bits_show() local
284 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_failures_show() local
294 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bad_blocks_show() local
304 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bbt_blocks_show() local
341 struct mtd_info *mtd = s->private; in mtd_partid_debug_show() local
352 struct mtd_info *mtd = s->private; in mtd_partname_debug_show() local
363 static void mtd_debugfs_populate(struct mtd_info *mtd) in mtd_debugfs_populate()
385 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) in mtd_mmap_capabilities()
404 struct mtd_info *mtd; in mtd_reboot_notifier() local
438 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info()
481 int mtd_pairing_info_to_wunit(struct mtd_info *mtd, in mtd_pairing_info_to_wunit()
509 int mtd_pairing_groups(struct mtd_info *mtd) in mtd_pairing_groups()
523 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
534 static int mtd_nvmem_add(struct mtd_info *mtd) in mtd_nvmem_add()
575 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
720 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
766 static void mtd_set_dev_defaults(struct mtd_info *mtd) in mtd_set_dev_defaults()
782 static ssize_t mtd_otp_size(struct mtd_info *mtd, bool is_user) in mtd_otp_size()
814 static struct nvmem_device *mtd_otp_nvmem_register(struct mtd_info *mtd, in mtd_otp_nvmem_register()
852 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local
866 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local
877 static int mtd_otp_nvmem_add(struct mtd_info *mtd) in mtd_otp_nvmem_add()
954 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
1051 struct mtd_info *mtd; in register_mtd_user() local
1077 struct mtd_info *mtd; in unregister_mtd_user() local
1103 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
1138 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
1177 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
1204 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
1213 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
1237 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
1288 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
1310 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
1329 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
1347 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats()
1366 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
1382 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1405 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1427 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1460 static int mtd_read_oob_std(struct mtd_info *mtd, loff_t from, in mtd_read_oob_std()
1476 static int mtd_write_oob_std(struct mtd_info *mtd, loff_t to, in mtd_write_oob_std()
1492 static int mtd_io_emulated_slc(struct mtd_info *mtd, loff_t start, bool read, in mtd_io_emulated_slc()
1555 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1594 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1638 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1672 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1706 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1752 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1775 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1818 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1856 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1890 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1910 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1930 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1950 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1966 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1980 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1991 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
2004 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
2018 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
2031 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
2045 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
2068 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
2080 int mtd_erase_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_erase_user_prot_reg()
2093 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
2113 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
2133 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
2153 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
2169 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
2185 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
2224 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
2256 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
2297 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
2329 struct mtd_info *mtd; in mtd_proc_show() local