Lines Matching defs:mtd
46 struct mtd_info *mtd; member
335 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
341 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
348 static inline void mtd_set_of_node(struct mtd_info *mtd, in mtd_set_of_node()
353 static inline const struct device_node *mtd_get_of_node(struct mtd_info *mtd) in mtd_get_of_node()
359 static inline bool mtd_is_partition(const struct mtd_info *mtd) in mtd_is_partition()
364 static inline bool mtd_has_partitions(const struct mtd_info *mtd) in mtd_has_partitions()
389 static inline void mtd_set_ooblayout(struct mtd_info *mtd, in mtd_set_ooblayout()
395 static inline int mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops) in mtd_oobavail()
435 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
449 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
454 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
461 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
469 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
476 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
484 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
491 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
496 static inline int mtd_type_is_nand(const struct mtd_info *mtd) in mtd_type_is_nand()
501 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb()
572 static inline int add_mtd_partitions(struct mtd_info *mtd, in add_mtd_partitions()
579 static inline int del_mtd_partitions(struct mtd_info *mtd) in del_mtd_partitions()
586 #define mtd_for_each_device(mtd) \ argument