Lines Matching defs:mtd
47 struct mtd_info *mtd; member
340 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
346 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
353 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
358 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
364 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
369 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
394 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
400 static inline int mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
440 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
454 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
459 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
466 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
474 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
481 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
489 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
496 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
501 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand()
506 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb()
577 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions()
584 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions()
591 #define mtd_for_each_device(mtd) \ argument