Lines Matching defs:badblocks
28 struct badblocks {
36 * a -ve shift means badblocks are
51 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
53 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
55 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
56 void ack_all_badblocks(struct badblocks *bb);
57 ssize_t badblocks_show(struct badblocks *bb, char *page, int unack);
58 ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len,
60 int badblocks_init(struct badblocks *bb, int enable);
61 void badblocks_exit(struct badblocks *bb);
63 int devm_init_badblocks(struct device *dev, struct badblocks *bb);
64 static inline void devm_exit_badblocks(struct device *dev, struct badblocks *bb)
67 dev_WARN_ONCE(dev, 1, "%s: badblocks instance not associated\n",
74 static inline int badblocks_full(struct badblocks *bb)
79 static inline int badblocks_empty(struct badblocks *bb)
84 static inline void set_changed(struct badblocks *bb)
90 static inline void clear_changed(struct badblocks *bb)