Lines Matching defs:mtd
49 struct mtd_info *mtd; member
250 static inline int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) in mtd_erase()
258 static inline int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, in mtd_point()
268 static inline void mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) in mtd_unpoint()
278 static inline unsigned long mtd_get_unmapped_area(struct mtd_info *mtd, in mtd_get_unmapped_area()
288 static inline int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, in mtd_read()
294 static inline int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, in mtd_write()
310 static inline int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, in mtd_panic_write()
319 static inline int mtd_read_oob(struct mtd_info *mtd, loff_t from, in mtd_read_oob()
328 static inline int mtd_write_oob(struct mtd_info *mtd, loff_t to, in mtd_write_oob()
342 static inline int mtd_get_fact_prot_info(struct mtd_info *mtd, in mtd_get_fact_prot_info()
350 static inline int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, in mtd_read_fact_prot_reg()
360 static inline int mtd_get_user_prot_info(struct mtd_info *mtd, in mtd_get_user_prot_info()
369 static inline int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, in mtd_read_user_prot_reg()
379 static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, in mtd_write_user_prot_reg()
389 static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, in mtd_lock_user_prot_reg()
400 static inline void mtd_sync(struct mtd_info *mtd) in mtd_sync()
407 static inline int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_lock()
414 static inline int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_unlock()
421 static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) in mtd_is_locked()
428 static inline int mtd_suspend(struct mtd_info *mtd) in mtd_suspend()
433 static inline void mtd_resume(struct mtd_info *mtd) in mtd_resume()
439 static inline int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_isbad()
446 static inline int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) in mtd_block_markbad()
453 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb()
461 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb()
468 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws()
476 static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_ws()
483 static inline int mtd_has_oob(const struct mtd_info *mtd) in mtd_has_oob()
488 static inline int mtd_can_have_bb(const struct mtd_info *mtd) in mtd_can_have_bb()