Lines Matching defs:mtd

46 	struct mtd_info *mtd;  member
335 static inline void mtd_set_ofnode(struct mtd_info *mtd, ofnode node) in mtd_set_ofnode()
340 static inline const ofnode mtd_get_ofnode(struct mtd_info *mtd) in mtd_get_ofnode()
347 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
352 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
358 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
363 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
388 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
394 static inline u32 mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
434 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
448 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
453 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
460 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
468 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
475 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
483 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
490 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
495 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand()
500 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb()
571 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions()
578 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions()
585 #define mtd_for_each_device(mtd) \ argument