Lines Matching refs:mddev_t
58 typedef struct mddev_s mddev_t; typedef
72 mddev_t *mddev;
78 static inline mddev_t * kdev_to_mddev (kdev_t dev) in kdev_to_mddev()
168 mddev_t *mddev; /* RAID array if running */
224 int (*make_request)(mddev_t *mddev, int rw, struct buffer_head * bh);
225 int (*run)(mddev_t *mddev);
226 int (*stop)(mddev_t *mddev);
227 void (*status)(struct seq_file *seq, mddev_t *mddev);
228 int (*error_handler)(mddev_t *mddev, kdev_t dev);
240 int (*diskop) (mddev_t *mddev, mdp_disk_t **descriptor, int state);
242 int (*stop_resync)(mddev_t *mddev);
243 int (*restart_resync)(mddev_t *mddev);
244 int (*sync_request)(mddev_t *mddev, unsigned long block_nr);
253 static inline int mdidx (mddev_t * mddev) in mdidx()
258 static inline kdev_t mddev_to_kdev(mddev_t * mddev) in mddev_to_kdev()
263 extern mdk_rdev_t * find_rdev(mddev_t * mddev, kdev_t dev);
264 extern mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr);
265 extern mdp_disk_t *get_spare(mddev_t *mddev);
309 mddev = md_list_entry(tmp, mddev_t, all_mddevs), \
313 static inline int lock_mddev (mddev_t * mddev) in lock_mddev()
318 static inline void unlock_mddev (mddev_t * mddev) in unlock_mddev()