Lines Matching defs:mtd

46 	struct mtd_info *mtd = dev_get_drvdata(dev);  in mtd_cls_suspend()  local
53 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
94 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_release() local
109 struct mtd_info *mtd = container_of(kref, struct mtd_info, refcnt); in mtd_device_release() local
139 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
178 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
187 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
196 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
205 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
214 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
224 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
233 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobavail_show() local
242 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
295 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
305 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_corrected_bits_show() local
315 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_failures_show() local
325 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bad_blocks_show() local
335 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bbt_blocks_show() local
387 static void mtd_debugfs_populate(struct mtd_info *mtd) in mtd_debugfs_populate()
398 unsigned mtd_mmap_capabilities(struct mtd_info *mtd) in mtd_mmap_capabilities()
417 struct mtd_info *mtd; in mtd_reboot_notifier() local
451 int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, in mtd_wunit_to_pairing_info()
494 int mtd_pairing_info_to_wunit(struct mtd_info *mtd, in mtd_pairing_info_to_wunit()
522 int mtd_pairing_groups(struct mtd_info *mtd) in mtd_pairing_groups()
536 struct mtd_info *mtd = priv; in mtd_nvmem_reg_read() local
547 static int mtd_nvmem_add(struct mtd_info *mtd) in mtd_nvmem_add()
579 static void mtd_check_of_node(struct mtd_info *mtd) in mtd_check_of_node()
643 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
809 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
838 static void mtd_set_dev_defaults(struct mtd_info *mtd) in mtd_set_dev_defaults()
854 static ssize_t mtd_otp_size(struct mtd_info *mtd, bool is_user) in mtd_otp_size()
886 static struct nvmem_device *mtd_otp_nvmem_register(struct mtd_info *mtd, in mtd_otp_nvmem_register()
925 struct mtd_info *mtd = priv; in mtd_nvmem_user_otp_reg_read() local
939 struct mtd_info *mtd = priv; in mtd_nvmem_fact_otp_reg_read() local
950 static int mtd_otp_nvmem_add(struct mtd_info *mtd) in mtd_otp_nvmem_add()
1051 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
1154 struct mtd_info *mtd; in register_mtd_user() local
1180 struct mtd_info *mtd; in unregister_mtd_user() local
1206 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
1241 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
1278 struct mtd_info *mtd = NULL; in of_get_mtd_device_by_node() local
1310 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
1337 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
1346 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
1375 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
1427 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
1449 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
1468 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
1486 static void mtd_update_ecc_stats(struct mtd_info *mtd, struct mtd_info *master, in mtd_update_ecc_stats()
1505 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
1524 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1548 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1570 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1603 static int mtd_read_oob_std(struct mtd_info *mtd, loff_t from, in mtd_read_oob_std()
1619 static int mtd_write_oob_std(struct mtd_info *mtd, loff_t to, in mtd_write_oob_std()
1635 static int mtd_io_emulated_slc(struct mtd_info *mtd, loff_t start, bool read, in mtd_io_emulated_slc()
1698 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1742 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1786 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1820 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1854 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1900 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1923 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1966 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
2004 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
2038 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
2058 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
2078 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
2098 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
2114 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
2128 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
2139 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
2152 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
2166 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
2179 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
2193 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
2216 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
2228 int mtd_erase_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_erase_user_prot_reg()
2241 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
2261 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
2281 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
2301 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
2317 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
2333 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
2373 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
2405 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
2446 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
2478 struct mtd_info *mtd; in mtd_proc_show() local