Lines Matching defs:mtd

48 	struct mtd_info *mtd;  member
337 static inline void mtd_set_ofnode(struct mtd_info *mtd, ofnode node) in mtd_set_ofnode()
342 static inline ofnode mtd_get_ofnode(struct mtd_info *mtd) in mtd_get_ofnode()
349 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
354 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
360 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
365 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
390 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
396 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
434 static inline int mtd_bind(struct udevice *dev, struct mtd_info **mtd) in mtd_bind()
460 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
474 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
479 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
486 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
494 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
501 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
509 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
516 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
521 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand()
526 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb()
582 static inline int add_mtd_device(struct mtd_info *mtd) in add_mtd_device()
587 static inline int del_mtd_device(struct mtd_info *mtd) in del_mtd_device()
597 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions()
604 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions()
621 #define mtd_for_each_device(mtd) \ argument