Lines Matching defs:mddev
101 static inline int speed_min(struct mddev *mddev) in speed_min()
107 static inline int speed_max(struct mddev *mddev) in speed_max()
162 struct mddev *mddev) in bio_alloc_mddev()
177 struct mddev *mddev) in bio_clone_mddev()
238 void md_new_event(struct mddev *mddev) in md_new_event()
248 static void md_new_event_inintr(struct mddev *mddev) in md_new_event_inintr()
295 struct mddev *mddev = q->queuedata; in md_make_request() local
348 void mddev_suspend(struct mddev *mddev) in mddev_suspend()
360 void mddev_resume(struct mddev *mddev) in mddev_resume()
372 int mddev_congested(struct mddev *mddev, int bits) in mddev_congested()
385 struct mddev *mddev = rdev->mddev; in md_end_flush() local
400 struct mddev *mddev = container_of(ws, struct mddev, flush_work); in submit_flushes() local
433 struct mddev *mddev = container_of(ws, struct mddev, flush_work); in md_submit_flush_data() local
448 void md_flush_request(struct mddev *mddev, struct bio *bio) in md_flush_request()
464 struct mddev *mddev = cb->data; in md_unplug() local
470 static inline struct mddev *mddev_get(struct mddev *mddev) in mddev_get()
478 static void mddev_put(struct mddev *mddev) in mddev_put()
507 void mddev_init(struct mddev *mddev) in mddev_init()
532 struct mddev *mddev, *new = NULL; in mddev_find() local
604 static inline int mddev_lock(struct mddev * mddev) in mddev_lock()
609 static inline int mddev_is_locked(struct mddev *mddev) in mddev_is_locked()
614 static inline int mddev_trylock(struct mddev * mddev) in mddev_trylock()
621 static void mddev_unlock(struct mddev * mddev) in mddev_unlock()
664 static struct md_rdev * find_rdev_nr(struct mddev *mddev, int nr) in find_rdev_nr()
675 static struct md_rdev *find_rdev_nr_rcu(struct mddev *mddev, int nr) in find_rdev_nr_rcu()
686 static struct md_rdev *find_rdev(struct mddev *mddev, dev_t dev) in find_rdev()
697 static struct md_rdev *find_rdev_rcu(struct mddev *mddev, dev_t dev) in find_rdev_rcu()
762 struct mddev *mddev = rdev->mddev; in super_written() local
776 void md_super_write(struct mddev *mddev, struct md_rdev *rdev, in md_super_write()
797 void md_super_wait(struct mddev *mddev) in md_super_wait()
1000 int md_check_no_bitmap(struct mddev *mddev) in md_check_no_bitmap()
1112 static int super_90_validate(struct mddev *mddev, struct md_rdev *rdev) in super_90_validate()
1233 static void super_90_sync(struct mddev *mddev, struct md_rdev *rdev) in super_90_sync()
1599 static int super_1_validate(struct mddev *mddev, struct md_rdev *rdev) in super_1_validate()
1727 static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev) in super_1_sync()
1958 static void sync_super(struct mddev *mddev, struct md_rdev *rdev) in sync_super()
1995 int md_integrity_register(struct mddev *mddev) in md_integrity_register()
2042 void md_integrity_add_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_integrity_add_rdev()
2065 static int bind_rdev_to_array(struct md_rdev * rdev, struct mddev * mddev) in bind_rdev_to_array()
2230 static void export_array(struct mddev *mddev) in export_array()
2353 struct mddev *mddev; in md_print_devices() local
2378 static void sync_sbs(struct mddev * mddev, int nospares) in sync_sbs()
2401 static void md_update_sb(struct mddev * mddev, int force_change) in md_update_sb()
2666 struct mddev *mddev = rdev->mddev; in state_store() local
2896 struct mddev *mddev = rdev->mddev; in new_offset_store() local
3012 struct mddev *mddev; in rdev_size_store() local
3140 struct mddev *mddev = rdev->mddev; in rdev_attr_show() local
3164 struct mddev *mddev = rdev->mddev; in rdev_attr_store() local
3309 static void analyze_sbs(struct mddev * mddev) in analyze_sbs()
3412 safe_delay_show(struct mddev *mddev, char *page) in safe_delay_show()
3418 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len) in safe_delay_store()
3440 level_show(struct mddev *mddev, char *page) in level_show()
3454 level_store(struct mddev *mddev, const char *buf, size_t len) in level_store()
3635 layout_show(struct mddev *mddev, char *page) in layout_show()
3646 layout_store(struct mddev *mddev, const char *buf, size_t len) in layout_store()
3676 raid_disks_show(struct mddev *mddev, char *page) in raid_disks_show()
3690 raid_disks_store(struct mddev *mddev, const char *buf, size_t len) in raid_disks_store()
3724 chunk_size_show(struct mddev *mddev, char *page) in chunk_size_show()
3735 chunk_size_store(struct mddev *mddev, const char *buf, size_t len) in chunk_size_store()
3764 resync_start_show(struct mddev *mddev, char *page) in resync_start_show()
3772 resync_start_store(struct mddev *mddev, const char *buf, size_t len) in resync_start_store()
3844 array_state_show(struct mddev *mddev, char *page) in array_state_show()
3883 array_state_store(struct mddev *mddev, const char *buf, size_t len) in array_state_store()
3975 max_corrected_read_errors_show(struct mddev *mddev, char *page) { in max_corrected_read_errors_show()
3981 max_corrected_read_errors_store(struct mddev *mddev, const char *buf, size_t len) in max_corrected_read_errors_store()
3998 null_show(struct mddev *mddev, char *page) in null_show()
4004 new_dev_store(struct mddev *mddev, const char *buf, size_t len) in new_dev_store()
4061 bitmap_store(struct mddev *mddev, const char *buf, size_t len) in bitmap_store()
4090 size_show(struct mddev *mddev, char *page) in size_show()
4099 size_store(struct mddev *mddev, const char *buf, size_t len) in size_store()
4134 metadata_show(struct mddev *mddev, char *page) in metadata_show()
4146 metadata_store(struct mddev *mddev, const char *buf, size_t len) in metadata_store()
4200 action_show(struct mddev *mddev, char *page) in action_show()
4223 action_store(struct mddev *mddev, const char *page, size_t len) in action_store()
4276 mismatch_cnt_show(struct mddev *mddev, char *page) in mismatch_cnt_show()
4290 sync_min_show(struct mddev *mddev, char *page) in sync_min_show()
4297 sync_min_store(struct mddev *mddev, const char *buf, size_t len) in sync_min_store()
4316 sync_max_show(struct mddev *mddev, char *page) in sync_max_show()
4323 sync_max_store(struct mddev *mddev, const char *buf, size_t len) in sync_max_store()
4342 degraded_show(struct mddev *mddev, char *page) in degraded_show()
4349 sync_force_parallel_show(struct mddev *mddev, char *page) in sync_force_parallel_show()
4355 sync_force_parallel_store(struct mddev *mddev, const char *buf, size_t len) in sync_force_parallel_store()
4379 sync_speed_show(struct mddev *mddev, char *page) in sync_speed_show()
4394 sync_completed_show(struct mddev *mddev, char *page) in sync_completed_show()
4418 min_sync_show(struct mddev *mddev, char *page) in min_sync_show()
4424 min_sync_store(struct mddev *mddev, const char *buf, size_t len) in min_sync_store()
4449 max_sync_show(struct mddev *mddev, char *page) in max_sync_show()
4458 max_sync_store(struct mddev *mddev, const char *buf, size_t len) in max_sync_store()
4489 suspend_lo_show(struct mddev *mddev, char *page) in suspend_lo_show()
4495 suspend_lo_store(struct mddev *mddev, const char *buf, size_t len) in suspend_lo_store()
4523 suspend_hi_show(struct mddev *mddev, char *page) in suspend_hi_show()
4529 suspend_hi_store(struct mddev *mddev, const char *buf, size_t len) in suspend_hi_store()
4556 reshape_position_show(struct mddev *mddev, char *page) in reshape_position_show()
4566 reshape_position_store(struct mddev *mddev, const char *buf, size_t len) in reshape_position_store()
4591 reshape_direction_show(struct mddev *mddev, char *page) in reshape_direction_show()
4598 reshape_direction_store(struct mddev *mddev, const char *buf, size_t len) in reshape_direction_store()
4627 array_size_show(struct mddev *mddev, char *page) in array_size_show()
4637 array_size_store(struct mddev *mddev, const char *buf, size_t len) in array_size_store()
4713 struct mddev *mddev = container_of(kobj, struct mddev, kobj); in md_attr_show() local
4740 struct mddev *mddev = container_of(kobj, struct mddev, kobj); in md_attr_store() local
4767 struct mddev *mddev = container_of(ko, struct mddev, kobj); in md_free() local
4796 struct mddev *mddev = container_of(ws, struct mddev, del_work); in mddev_delayed_delete() local
4806 struct mddev *mddev = mddev_find(dev); in md_alloc() local
4935 struct mddev *mddev = (struct mddev *) data; in md_safemode_timeout() local
4947 int md_run(struct mddev *mddev) in md_run()
5149 static int do_md_run(struct mddev *mddev) in do_md_run()
5173 static int restart_array(struct mddev *mddev) in restart_array()
5223 static void md_clean(struct mddev *mddev) in md_clean()
5269 static void __md_stop_writes(struct mddev *mddev) in __md_stop_writes()
5290 void md_stop_writes(struct mddev *mddev) in md_stop_writes()
5298 static void __md_stop(struct mddev *mddev) in __md_stop()
5309 void md_stop(struct mddev *mddev) in md_stop()
5322 static int md_set_readonly(struct mddev *mddev, struct block_device *bdev) in md_set_readonly()
5354 static int do_md_stop(struct mddev * mddev, int mode, in do_md_stop()
5428 static void autorun_array(struct mddev *mddev) in autorun_array()
5466 struct mddev *mddev; in autorun_devices() local
5561 static int get_array_info(struct mddev * mddev, void __user * arg) in get_array_info()
5616 static int get_bitmap_file(struct mddev * mddev, void __user * arg) in get_bitmap_file()
5657 static int get_disk_info(struct mddev * mddev, void __user * arg) in get_disk_info()
5693 static int add_new_disk(struct mddev * mddev, mdu_disk_info_t *info) in add_new_disk()
5864 static int hot_remove_disk(struct mddev * mddev, dev_t dev) in hot_remove_disk()
5890 static int hot_add_disk(struct mddev * mddev, dev_t dev) in hot_add_disk()
5964 static int set_bitmap_file(struct mddev *mddev, int fd) in set_bitmap_file()
6037 static int set_array_info(struct mddev * mddev, mdu_array_info_t *info) in set_array_info()
6109 void md_set_array_sectors(struct mddev *mddev, sector_t array_sectors) in md_set_array_sectors()
6120 static int update_size(struct mddev *mddev, sector_t num_sectors) in update_size()
6154 static int update_raid_disks(struct mddev *mddev, int raid_disks) in update_raid_disks()
6199 static int update_array_info(struct mddev *mddev, mdu_array_info_t *info) in update_array_info()
6294 static int set_disk_faulty(struct mddev *mddev, dev_t dev) in set_disk_faulty()
6323 struct mddev *mddev = bdev->bd_disk->private_data; in md_getgeo() local
6336 struct mddev *mddev = NULL; in md_ioctl() local
6638 struct mddev *mddev = mddev_find(bdev->bd_dev); in md_open() local
6670 struct mddev *mddev = disk->private_data; in md_release() local
6679 struct mddev *mddev = disk->private_data; in md_media_changed() local
6686 struct mddev *mddev = disk->private_data; in md_revalidate() local
6756 struct mddev *mddev, const char *name) in md_register_thread()
6797 void md_error(struct mddev *mddev, struct md_rdev *rdev) in md_error()
6843 static void status_resync(struct seq_file *seq, struct mddev * mddev) in status_resync()
6939 struct mddev *mddev; in md_seq_start() local
6964 struct mddev *next_mddev, *mddev = v; in md_seq_next() local
6991 struct mddev *mddev = v; in md_seq_stop() local
6999 struct mddev *mddev = v; in md_seq_show() local
7161 static int is_mddev_idle(struct mddev *mddev, int init) in is_mddev_idle()
7205 void md_done_sync(struct mddev *mddev, int blocks, int ok) in md_done_sync()
7224 void md_write_start(struct mddev *mddev, struct bio *bi) in md_write_start()
7259 void md_write_end(struct mddev *mddev) in md_write_end()
7278 int md_allow_write(struct mddev *mddev) in md_allow_write()
7313 struct mddev *mddev = thread->mddev; in md_do_sync() local
7659 static int remove_and_add_spares(struct mddev *mddev, in remove_and_add_spares()
7751 void md_check_recovery(struct mddev *mddev) in md_check_recovery()
7906 void md_reap_sync_thread(struct mddev *mddev) in md_reap_sync_thread()
7951 void md_wait_for_blocked_rdev(struct md_rdev *rdev, struct mddev *mddev) in md_wait_for_blocked_rdev()
7962 void md_finish_reshape(struct mddev *mddev) in md_finish_reshape()
8477 struct mddev *mddev; in md_notify_reboot() local
8624 struct mddev *mddev; in md_exit() local