Lines Matching refs:nand_device

15 struct nand_device;
226 int (*erase)(struct nand_device *nand, const struct nand_pos *pos);
227 int (*markbad)(struct nand_device *nand, const struct nand_pos *pos);
228 bool (*isbad)(struct nand_device *nand, const struct nand_pos *pos);
256 int (*init_ctx)(struct nand_device *nand);
257 void (*cleanup_ctx)(struct nand_device *nand);
258 int (*prepare_io_req)(struct nand_device *nand,
260 int (*finish_io_req)(struct nand_device *nand,
272 void of_get_nand_ecc_user_config(struct nand_device *nand);
273 int nand_ecc_init_ctx(struct nand_device *nand);
274 void nand_ecc_cleanup_ctx(struct nand_device *nand);
275 int nand_ecc_prepare_io_req(struct nand_device *nand,
277 int nand_ecc_finish_io_req(struct nand_device *nand,
279 bool nand_ecc_is_strong_enough(struct nand_device *nand);
319 struct nand_device { struct
352 static inline struct nand_device *mtd_to_nanddev(struct mtd_info *mtd) in mtd_to_nanddev()
354 return container_of(mtd, struct nand_device, mtd); in mtd_to_nanddev()
363 static inline struct mtd_info *nanddev_to_mtd(struct nand_device *nand) in nanddev_to_mtd()
374 static inline unsigned int nanddev_bits_per_cell(const struct nand_device *nand) in nanddev_bits_per_cell()
385 static inline size_t nanddev_page_size(const struct nand_device *nand) in nanddev_page_size()
397 nanddev_per_page_oobsize(const struct nand_device *nand) in nanddev_per_page_oobsize()
409 nanddev_pages_per_eraseblock(const struct nand_device *nand) in nanddev_pages_per_eraseblock()
421 nanddev_pages_per_target(const struct nand_device *nand) in nanddev_pages_per_target()
434 static inline size_t nanddev_eraseblock_size(const struct nand_device *nand) in nanddev_eraseblock_size()
446 nanddev_eraseblocks_per_lun(const struct nand_device *nand) in nanddev_eraseblocks_per_lun()
458 nanddev_eraseblocks_per_target(const struct nand_device *nand) in nanddev_eraseblocks_per_target()
469 static inline u64 nanddev_target_size(const struct nand_device *nand) in nanddev_target_size()
483 static inline unsigned int nanddev_ntargets(const struct nand_device *nand) in nanddev_ntargets()
494 static inline unsigned int nanddev_neraseblocks(const struct nand_device *nand) in nanddev_neraseblocks()
506 static inline u64 nanddev_size(const struct nand_device *nand) in nanddev_size()
521 nanddev_get_memorg(struct nand_device *nand) in nanddev_get_memorg()
531 nanddev_get_ecc_conf(struct nand_device *nand) in nanddev_get_ecc_conf()
542 nanddev_get_ecc_requirements(struct nand_device *nand) in nanddev_get_ecc_requirements()
554 nanddev_set_ecc_requirements(struct nand_device *nand, in nanddev_set_ecc_requirements()
560 int nanddev_init(struct nand_device *nand, const struct nand_ops *ops,
562 void nanddev_cleanup(struct nand_device *nand);
574 static inline int nanddev_register(struct nand_device *nand) in nanddev_register()
589 static inline int nanddev_unregister(struct nand_device *nand) in nanddev_unregister()
601 static inline void nanddev_set_of_node(struct nand_device *nand, in nanddev_set_of_node()
613 static inline struct device_node *nanddev_get_of_node(struct nand_device *nand) in nanddev_get_of_node()
628 static inline unsigned int nanddev_offs_to_pos(struct nand_device *nand, in nanddev_offs_to_pos()
683 static inline loff_t nanddev_pos_to_offs(struct nand_device *nand, in nanddev_pos_to_offs()
708 static inline unsigned int nanddev_pos_to_row(struct nand_device *nand, in nanddev_pos_to_row()
724 static inline void nanddev_pos_next_target(struct nand_device *nand, in nanddev_pos_next_target()
742 static inline void nanddev_pos_next_lun(struct nand_device *nand, in nanddev_pos_next_lun()
762 static inline void nanddev_pos_next_eraseblock(struct nand_device *nand, in nanddev_pos_next_eraseblock()
781 static inline void nanddev_pos_next_page(struct nand_device *nand, in nanddev_pos_next_page()
800 static inline void nanddev_io_iter_init(struct nand_device *nand, in nanddev_io_iter_init()
831 static inline void nanddev_io_iter_next_page(struct nand_device *nand, in nanddev_io_iter_next_page()
858 static inline bool nanddev_io_iter_end(struct nand_device *nand, in nanddev_io_iter_end()
882 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos);
883 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos);
884 int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos);
885 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos);
897 int nanddev_bbt_init(struct nand_device *nand);
898 void nanddev_bbt_cleanup(struct nand_device *nand);
899 int nanddev_bbt_update(struct nand_device *nand);
900 int nanddev_bbt_get_block_status(const struct nand_device *nand,
902 int nanddev_bbt_set_block_status(struct nand_device *nand, unsigned int entry,
904 int nanddev_bbt_markbad(struct nand_device *nand, unsigned int block);
916 static inline unsigned int nanddev_bbt_pos_to_entry(struct nand_device *nand, in nanddev_bbt_pos_to_entry()
930 static inline bool nanddev_bbt_is_initialized(struct nand_device *nand) in nanddev_bbt_is_initialized()