Lines Matching defs:mtd

183 	struct mtd_info __maybe_unused *mtd = dev_get_drvdata(dev);  in mtd_release()  local
193 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_suspend() local
200 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_cls_resume() local
210 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_type_show() local
249 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_flags_show() local
259 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_size_show() local
270 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_erasesize_show() local
280 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_writesize_show() local
290 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_subpagesize_show() local
301 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_oobsize_show() local
311 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_numeraseregions_show() local
322 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_name_show() local
332 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_strength_show() local
342 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_show() local
351 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_bitflip_threshold_store() local
369 struct mtd_info *mtd = dev_get_drvdata(dev); in mtd_ecc_step_size_show() local
410 int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
524 int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
601 int mtd_device_parse_register(struct mtd_info *mtd, const char * const *types, in mtd_device_parse_register()
663 struct mtd_info *mtd; in register_mtd_user() local
689 struct mtd_info *mtd; in unregister_mtd_user() local
716 struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) in get_mtd_device()
751 int __get_mtd_device(struct mtd_info *mtd) in __get_mtd_device()
782 struct mtd_info *mtd = NULL, *other; in get_mtd_device_nm() local
821 void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, in mtd_get_len_incl_bad()
853 void put_mtd_device(struct mtd_info *mtd) in put_mtd_device()
862 void __put_mtd_device(struct mtd_info *mtd) in __put_mtd_device()
881 int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
901 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point()
919 int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
937 unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, unsigned long len, in mtd_get_unmapped_area()
948 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read()
985 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write()
1020 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write()
1036 static int mtd_check_oob_ops(struct mtd_info *mtd, loff_t offs, in mtd_check_oob_ops()
1069 int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) in mtd_read_oob()
1102 int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
1144 int mtd_ooblayout_ecc(struct mtd_info *mtd, int section, in mtd_ooblayout_ecc()
1176 int mtd_ooblayout_free(struct mtd_info *mtd, int section, in mtd_ooblayout_free()
1208 static int mtd_ooblayout_find_region(struct mtd_info *mtd, int byte, in mtd_ooblayout_find_region()
1254 int mtd_ooblayout_find_eccregion(struct mtd_info *mtd, int eccbyte, in mtd_ooblayout_find_eccregion()
1277 static int mtd_ooblayout_get_bytes(struct mtd_info *mtd, u8 *buf, in mtd_ooblayout_get_bytes()
1320 static int mtd_ooblayout_set_bytes(struct mtd_info *mtd, const u8 *buf, in mtd_ooblayout_set_bytes()
1358 static int mtd_ooblayout_count_bytes(struct mtd_info *mtd, in mtd_ooblayout_count_bytes()
1392 int mtd_ooblayout_get_eccbytes(struct mtd_info *mtd, u8 *eccbuf, in mtd_ooblayout_get_eccbytes()
1412 int mtd_ooblayout_set_eccbytes(struct mtd_info *mtd, const u8 *eccbuf, in mtd_ooblayout_set_eccbytes()
1432 int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, in mtd_ooblayout_get_databytes()
1452 int mtd_ooblayout_set_databytes(struct mtd_info *mtd, const u8 *databuf, in mtd_ooblayout_set_databytes()
1468 int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) in mtd_ooblayout_count_freebytes()
1482 int mtd_ooblayout_count_eccbytes(struct mtd_info *mtd) in mtd_ooblayout_count_eccbytes()
1493 int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_fact_prot_info()
1504 int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_fact_prot_reg()
1516 int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, in mtd_get_user_prot_info()
1527 int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read_user_prot_reg()
1539 int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write_user_prot_reg()
1561 int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) in mtd_lock_user_prot_reg()
1572 int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
1584 int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
1596 int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
1608 int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) in mtd_block_isreserved()
1618 int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
1628 int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
1652 static int default_mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in default_mtd_writev()
1684 int mtd_writev(struct mtd_info *mtd, const struct kvec *vecs, in mtd_writev()
1720 void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size) in mtd_kmalloc_up_to()
1754 struct mtd_info *mtd; in mtd_proc_show() local