/kernel/linux/linux-5.10/drivers/md/ |
H A D | raid5-log.h | 5 extern int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 6 extern void r5l_exit_log(struct r5conf *conf); 13 extern bool r5l_log_disk_error(struct r5conf *conf); 16 r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 19 r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 24 extern void r5c_handle_cached_data_endio(struct r5conf *conf, 28 extern void r5c_flush_cache(struct r5conf *conf, int num); 29 extern void r5c_check_stripe_cache_usage(struct r5conf *conf); 30 extern void r5c_check_cached_full_stripe(struct r5conf *conf); 34 extern bool r5c_big_stripe_cached(struct r5conf *conf, sector_ 50 raid5_has_log(struct r5conf *conf) raid5_has_log() argument 55 raid5_has_ppl(struct r5conf *conf) raid5_has_ppl() argument 62 struct r5conf *conf = sh->raid_conf; log_stripe() local 83 struct r5conf *conf = sh->raid_conf; log_stripe_write_finished() local 91 log_write_stripe_run(struct r5conf *conf) log_write_stripe_run() argument 99 log_flush_stripe_to_raid(struct r5conf *conf) log_flush_stripe_to_raid() argument 107 log_handle_flush_request(struct r5conf *conf, struct bio *bio) log_handle_flush_request() argument 119 log_quiesce(struct r5conf *conf, int quiesce) log_quiesce() argument 127 log_exit(struct r5conf *conf) log_exit() argument 135 log_init(struct r5conf *conf, struct md_rdev *journal_dev, bool ppl) log_init() argument 146 log_modify(struct r5conf *conf, struct md_rdev *rdev, bool add) log_modify() argument [all...] |
H A D | md-faulty.c | 85 static int check_mode(struct faulty_conf *conf, int mode) in check_mode() argument 87 if (conf->period[mode] == 0 && in check_mode() 88 atomic_read(&conf->counters[mode]) <= 0) in check_mode() 92 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode() 93 if (conf->period[mode]) in check_mode() 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 100 static int check_sector(struct faulty_conf *conf, sector_t start, sector_t end, int dir) in check_sector() argument 104 for (i=0; i<conf->nfaults; i++) in check_sector() 105 if (conf in check_sector() 124 add_sector(struct faulty_conf *conf, sector_t start, int mode) add_sector() argument 166 struct faulty_conf *conf = mddev->private; faulty_make_request() local 223 struct faulty_conf *conf = mddev->private; faulty_status() local 258 struct faulty_conf *conf = mddev->private; faulty_reshape() local 298 struct faulty_conf *conf; faulty_run() local 329 struct faulty_conf *conf = priv; faulty_free() local [all...] |
H A D | raid10.c | 67 static void allow_barrier(struct r10conf *conf); 68 static void lower_barrier(struct r10conf *conf); 69 static int _enough(struct r10conf *conf, int previous, int ignore); 70 static int enough(struct r10conf *conf, int ignore); 75 static void end_reshape(struct r10conf *conf); 93 struct r10conf *conf = data; in r10bio_pool_alloc() local 94 int size = offsetof(struct r10bio, devs[conf->copies]); in r10bio_pool_alloc() 118 struct r10conf *conf = data; in r10buf_pool_alloc() local 125 r10_bio = r10bio_pool_alloc(gfp_flags, conf); in r10buf_pool_alloc() 129 if (test_bit(MD_RECOVERY_SYNC, &conf in r10buf_pool_alloc() 212 struct r10conf *conf = data; r10buf_pool_free() local 237 put_all_bios(struct r10conf *conf, struct r10bio *r10_bio) put_all_bios() argument 255 struct r10conf *conf = r10_bio->mddev->private; free_r10bio() local 263 struct r10conf *conf = r10_bio->mddev->private; put_buf() local 274 struct r10conf *conf = mddev->private; reschedule_retry() local 295 struct r10conf *conf = r10_bio->mddev->private; raid_end_bio_io() local 315 struct r10conf *conf = r10_bio->mddev->private; update_head_pos() local 324 find_bio_disk(struct r10conf *conf, struct r10bio *r10_bio, struct bio *bio, int *slotp, int *replp) find_bio_disk() argument 355 struct r10conf *conf = r10_bio->mddev->private; raid10_end_read_request() local 432 struct r10conf *conf = r10_bio->mddev->private; raid10_end_write_request() local 624 raid10_find_phys(struct r10conf *conf, struct r10bio *r10bio) raid10_find_phys() argument 639 raid10_find_virt(struct r10conf *conf, sector_t sector, int dev) raid10_find_virt() argument 703 read_balance(struct r10conf *conf, struct r10bio *r10_bio, int *max_sectors) read_balance() argument 859 flush_pending_writes(struct r10conf *conf) flush_pending_writes() argument 934 raise_barrier(struct r10conf *conf, int force) raise_barrier() argument 954 lower_barrier(struct r10conf *conf) lower_barrier() argument 963 wait_barrier(struct r10conf *conf) wait_barrier() argument 1001 allow_barrier(struct r10conf *conf) allow_barrier() argument 1008 freeze_array(struct r10conf *conf, int extra) freeze_array() argument 1035 unfreeze_array(struct r10conf *conf) unfreeze_array() argument 1066 struct r10conf *conf = mddev->private; raid10_unplug() local 1110 regular_request_wait(struct mddev *mddev, struct r10conf *conf, struct bio *bio, sector_t sectors) regular_request_wait() argument 1130 struct r10conf *conf = mddev->private; raid10_read_request() local 1231 struct r10conf *conf = mddev->private; raid10_write_one_disk() local 1292 struct r10conf *conf = mddev->private; raid10_write_request() local 1501 struct r10conf *conf = mddev->private; __make_request() local 1523 struct r10conf *conf = mddev->private; raid10_make_request() local 1556 struct r10conf *conf = mddev->private; raid10_status() local 1587 _enough(struct r10conf *conf, int previous, int ignore) _enough() argument 1623 enough(struct r10conf *conf, int ignore) enough() argument 1637 struct r10conf *conf = mddev->private; raid10_error() local 1672 print_conf(struct r10conf *conf) print_conf() argument 1698 close_sync(struct r10conf *conf) close_sync() argument 1709 struct r10conf *conf = mddev->private; raid10_spare_active() local 1756 struct r10conf *conf = mddev->private; raid10_add_disk() local 1824 struct r10conf *conf = mddev->private; raid10_remove_disk() local 1888 struct r10conf *conf = r10_bio->mddev->private; __end_sync_read() local 1915 struct r10conf *conf = r10_bio->mddev->private; end_sync_read() local 1960 struct r10conf *conf = mddev->private; end_sync_write() local 2013 struct r10conf *conf = mddev->private; sync_request_write() local 2154 struct r10conf *conf = mddev->private; fix_recovery_read_error() local 2229 struct r10conf *conf = mddev->private; recovery_request_write() local 2336 fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10bio *r10_bio) fix_read_error() argument 2525 struct r10conf *conf = mddev->private; narrow_write_error() local 2586 struct r10conf *conf = mddev->private; handle_read_error() local 2616 handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) handle_write_completed() argument 2722 struct r10conf *conf = mddev->private; raid10d() local 2791 init_resync(struct r10conf *conf) init_resync() argument 2809 raid10_alloc_init_r10buf(struct r10conf *conf) raid10_alloc_init_r10buf() argument 2842 raid10_set_cluster_sync_high(struct r10conf *conf) raid10_set_cluster_sync_high() argument 2910 struct r10conf *conf = mddev->private; raid10_sync_request() local 3530 struct r10conf *conf = mddev->private; raid10_size() local 3546 calc_sectors(struct r10conf *conf, sector_t size) calc_sectors() argument 3633 raid10_free_conf(struct r10conf *conf) raid10_free_conf() argument 3649 struct r10conf *conf = NULL; setup_conf() local 3733 raid10_set_io_opt(struct r10conf *conf) raid10_set_io_opt() argument 3745 struct r10conf *conf; raid10_run() local 3948 struct r10conf *conf = mddev->private; raid10_quiesce() local 3970 struct r10conf *conf = mddev->private; raid10_resize() local 4004 struct r10conf *conf; raid10_takeover_raid0() local 4075 struct r10conf *conf = mddev->private; raid10_check_reshape() local 4122 calc_degraded(struct r10conf *conf) calc_degraded() argument 4182 struct r10conf *conf = mddev->private; raid10_start_reshape() local 4424 struct r10conf *conf = mddev->private; reshape_request() local 4676 struct r10conf *conf = mddev->private; reshape_request_write() local 4716 end_reshape(struct r10conf *conf) end_reshape() argument 4736 struct r10conf *conf = mddev->private; raid10_update_reshape_pos() local 4752 struct r10conf *conf = mddev->private; handle_reshape_read_error() local 4826 struct r10conf *conf = mddev->private; end_reshape_write() local 4860 struct r10conf *conf = mddev->private; raid10_finish_reshape() local [all...] |
H A D | raid1.c | 46 static void allow_barrier(struct r1conf *conf, sector_t sector_nr); 47 static void lower_barrier(struct r1conf *conf, sector_t sector_nr); 237 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios() argument 241 for (i = 0; i < conf->raid_disks * 2; i++) { in put_all_bios() 251 struct r1conf *conf = r1_bio->mddev->private; in free_r1bio() local 253 put_all_bios(conf, r1_bio); in free_r1bio() 254 mempool_free(r1_bio, &conf->r1bio_pool); in free_r1bio() 259 struct r1conf *conf = r1_bio->mddev->private; in put_buf() local 263 for (i = 0; i < conf->raid_disks * 2; i++) { in put_buf() 266 rdev_dec_pending(conf in put_buf() 278 struct r1conf *conf = mddev->private; reschedule_retry() local 309 struct r1conf *conf = r1_bio->mddev->private; raid_end_bio_io() local 334 struct r1conf *conf = r1_bio->mddev->private; update_head_pos() local 346 struct r1conf *conf = r1_bio->mddev->private; find_bio_disk() local 363 struct r1conf *conf = r1_bio->mddev->private; raid1_end_read_request() local 446 struct r1conf *conf = r1_bio->mddev->private; raid1_end_write_request() local 594 read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) read_balance() argument 789 flush_bio_list(struct r1conf *conf, struct bio *bio) flush_bio_list() argument 813 flush_pending_writes(struct r1conf *conf) flush_pending_writes() argument 869 raise_barrier(struct r1conf *conf, sector_t sector_nr) raise_barrier() argument 919 lower_barrier(struct r1conf *conf, sector_t sector_nr) lower_barrier() argument 930 _wait_barrier(struct r1conf *conf, int idx) _wait_barrier() argument 989 wait_read_barrier(struct r1conf *conf, sector_t sector_nr) wait_read_barrier() argument 1022 wait_barrier(struct r1conf *conf, sector_t sector_nr) wait_barrier() argument 1029 _allow_barrier(struct r1conf *conf, int idx) _allow_barrier() argument 1035 allow_barrier(struct r1conf *conf, sector_t sector_nr) allow_barrier() argument 1043 get_unqueued_pending(struct r1conf *conf) get_unqueued_pending() argument 1055 freeze_array(struct r1conf *conf, int extra) freeze_array() argument 1090 unfreeze_array(struct r1conf *conf) unfreeze_array() argument 1158 struct r1conf *conf = mddev->private; raid1_unplug() local 1190 struct r1conf *conf = mddev->private; alloc_r1bio() local 1203 struct r1conf *conf = mddev->private; raid1_read_request() local 1317 struct r1conf *conf = mddev->private; raid1_write_request() local 1579 struct r1conf *conf = mddev->private; raid1_status() local 1597 struct r1conf *conf = mddev->private; raid1_error() local 1636 print_conf(struct r1conf *conf) print_conf() argument 1661 close_sync(struct r1conf *conf) close_sync() argument 1676 struct r1conf *conf = mddev->private; raid1_spare_active() local 1727 struct r1conf *conf = mddev->private; raid1_add_disk() local 1791 struct r1conf *conf = mddev->private; raid1_remove_disk() local 1915 struct r1conf *conf = mddev->private; end_sync_write() local 1972 struct r1conf *conf = mddev->private; fix_sync_read_error() local 2100 struct r1conf *conf = mddev->private; process_checks() local 2179 struct r1conf *conf = mddev->private; sync_request_write() local 2230 fix_read_error(struct r1conf *conf, int read_disk, sector_t sect, int sectors) fix_read_error() argument 2329 struct r1conf *conf = mddev->private; narrow_write_error() local 2396 handle_sync_write_finished(struct r1conf *conf, struct r1bio *r1_bio) handle_sync_write_finished() argument 2419 handle_write_finished(struct r1conf *conf, struct r1bio *r1_bio) handle_write_finished() argument 2465 handle_read_error(struct r1conf *conf, struct r1bio *r1_bio) handle_read_error() argument 2512 struct r1conf *conf = mddev->private; raid1d() local 2579 init_resync(struct r1conf *conf) init_resync() argument 2590 raid1_alloc_init_r1buf(struct r1conf *conf) raid1_alloc_init_r1buf() argument 2620 struct r1conf *conf = mddev->private; raid1_sync_request() local 2926 struct r1conf *conf; setup_conf() local 3066 struct r1conf *conf; raid1_run() local 3169 struct r1conf *conf = priv; raid1_free() local 3228 struct r1conf *conf = mddev->private; raid1_reshape() local 3324 struct r1conf *conf = mddev->private; raid1_quiesce() local 3338 struct r1conf *conf; raid1_takeover() local [all...] |
H A D | raid5.c | 22 * conf->seq_write is the number of the last batch successfully written. 23 * conf->seq_flush is the number of the last batch that was closed to 70 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument 72 int hash = (sect >> RAID5_STRIPE_SHIFT(conf)) & HASH_MASK; in stripe_hash() 73 return &conf->stripe_hashtbl[hash]; in stripe_hash() 76 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash() argument 78 return (sect >> RAID5_STRIPE_SHIFT(conf)) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash() 81 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock() argument 83 spin_lock_irq(conf->hash_locks + hash); in lock_device_hash_lock() 84 spin_lock(&conf in lock_device_hash_lock() 87 unlock_device_hash_lock(struct r5conf *conf, int hash) unlock_device_hash_lock() argument 93 lock_all_device_hash_locks_irq(struct r5conf *conf) lock_all_device_hash_locks_irq() argument 102 unlock_all_device_hash_locks_irq(struct r5conf *conf) unlock_all_device_hash_locks_irq() argument 168 struct r5conf *conf = sh->raid_conf; raid5_wakeup_stripe_thread() local 212 do_release_stripe(struct r5conf *conf, struct stripe_head *sh, struct list_head *temp_inactive_list) do_release_stripe() argument 297 __release_stripe(struct r5conf *conf, struct stripe_head *sh, struct list_head *temp_inactive_list) __release_stripe() argument 311 release_inactive_stripe_list(struct r5conf *conf, struct list_head *temp_inactive_list, int hash) release_inactive_stripe_list() argument 354 release_stripe_list(struct r5conf *conf, struct list_head *temp_inactive_list) release_stripe_list() argument 384 struct r5conf *conf = sh->raid_conf; raid5_release_stripe() local 421 insert_hash(struct r5conf *conf, struct stripe_head *sh) insert_hash() argument 432 get_free_stripe(struct r5conf *conf, int hash) get_free_stripe() argument 490 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) init_stripe_shared_pages() argument 567 struct r5conf *conf = sh->raid_conf; init_stripe() local 607 __find_stripe(struct r5conf *conf, sector_t sector, short generation) __find_stripe() argument 633 raid5_calc_degraded(struct r5conf *conf) raid5_calc_degraded() argument 689 has_failed(struct r5conf *conf) has_failed() argument 703 raid5_get_active_stripe(struct r5conf *conf, sector_t sector, int previous, int noblock, int noquiesce) raid5_get_active_stripe() argument 806 struct r5conf *conf = sh->raid_conf; stripe_can_batch() local 816 stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh) stripe_add_to_batch_list() argument 930 use_new_offset(struct r5conf *conf, struct stripe_head *sh) use_new_offset() argument 970 dispatch_defer_bios(struct r5conf *conf, int target, struct bio_list *list) dispatch_defer_bios() argument 1015 flush_deferred_bios(struct r5conf *conf) flush_deferred_bios() argument 1030 defer_issue_bios(struct r5conf *conf, sector_t sector, struct bio_list *bios) defer_issue_bios() argument 1059 struct r5conf *conf = sh->raid_conf; ops_run_io() local 1316 struct r5conf *conf = sh->raid_conf; async_copy_data() local 1374 struct r5conf *conf = sh->raid_conf; ops_complete_biofill() local 1413 struct r5conf *conf = sh->raid_conf; ops_run_biofill() local 1858 struct r5conf *conf = sh->raid_conf; ops_run_biodrain() local 2215 struct r5conf *conf = sh->raid_conf; raid_run_ops() local 2293 alloc_stripe(struct kmem_cache *sc, gfp_t gfp, int disks, struct r5conf *conf) alloc_stripe() argument 2333 grow_one_stripe(struct r5conf *conf, gfp_t gfp) grow_one_stripe() argument 2356 grow_stripes(struct r5conf *conf, int num) grow_stripes() argument 2426 resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) resize_chunks() argument 2461 resize_stripes(struct r5conf *conf, int newsize) resize_stripes() argument 2635 drop_one_stripe(struct r5conf *conf) drop_one_stripe() argument 2653 shrink_stripes(struct r5conf *conf) shrink_stripes() argument 2666 struct r5conf *conf = sh->raid_conf; raid5_end_read_request() local 2797 struct r5conf *conf = sh->raid_conf; raid5_end_write_request() local 2876 struct r5conf *conf = mddev->private; raid5_error() local 2912 raid5_compute_sector(struct r5conf *conf, sector_t r_sector, int previous, int *dd_idx, struct stripe_head *sh) raid5_compute_sector() argument 3116 struct r5conf *conf = sh->raid_conf; raid5_compute_blocknr() local 3272 delay_towrite(struct r5conf *conf, struct r5dev *dev, struct stripe_head_state *s) delay_towrite() argument 3295 struct r5conf *conf = sh->raid_conf; schedule_reconstruction() local 3408 struct r5conf *conf = sh->raid_conf; add_stripe_bio() local 3531 stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, struct stripe_head *sh) stripe_set_idx() argument 3548 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_failed_stripe() argument 3661 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s) handle_failed_sync() argument 3960 handle_stripe_clean_event(struct r5conf *conf, struct stripe_head *sh, int disks) handle_stripe_clean_event() argument 4075 handle_stripe_dirtying(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_stripe_dirtying() argument 4239 handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_parity_checks5() argument 4332 handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_parity_checks6() argument 4509 handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) handle_stripe_expansion() argument 4583 struct r5conf *conf = sh->raid_conf; analyse_stripe() local 4878 struct r5conf *conf = sh->raid_conf; handle_stripe() local 5270 raid5_activate_delayed(struct r5conf *conf) raid5_activate_delayed() argument 5287 activate_bit_delay(struct r5conf *conf, struct list_head *temp_inactive_list) activate_bit_delay() argument 5306 struct r5conf *conf = mddev->private; in_chunk_boundary() local 5322 add_bio_to_retry(struct bio *bi,struct r5conf *conf) add_bio_to_retry() argument 5335 remove_bio_from_retry(struct r5conf *conf, unsigned int *offset) remove_bio_from_retry() argument 5366 struct r5conf *conf; raid5_align_endio() local 5393 struct r5conf *conf = mddev->private; raid5_read_one_chunk() local 5489 struct r5conf *conf = mddev->private; chunk_aligned_read() local 5512 __get_priority_stripe(struct r5conf *conf, int group) __get_priority_stripe() argument 5616 struct r5conf *conf = mddev->private; raid5_unplug() local 5679 struct r5conf *conf = mddev->private; make_discard_request() local 5766 struct r5conf *conf = mddev->private; raid5_make_request() local 5950 struct r5conf *conf = mddev->private; reshape_request() local 6211 struct r5conf *conf = mddev->private; raid5_sync_request() local 6302 retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, unsigned int offset) retry_aligned_read() argument 6385 log_flush_stripe_to_raid(conf); global() variable 6404 log_write_stripe_run(conf); global() variable 6420 struct r5conf *conf = group->conf; raid5_do_work() local 6470 struct r5conf *conf = mddev->private; raid5d() local 6550 struct r5conf *conf; raid5_show_stripe_cache_size() local 6564 struct r5conf *conf = mddev->private; raid5_set_cache_size() local 6594 struct r5conf *conf; raid5_store_stripe_cache_size() local 6623 struct r5conf *conf = mddev->private; raid5_show_rmw_level() local 6633 struct r5conf *conf = mddev->private; raid5_store_rmw_level() local 6665 struct r5conf *conf; raid5_show_stripe_size() local 6680 struct r5conf *conf; raid5_store_stripe_size() local 6760 struct r5conf *conf; raid5_show_preread_threshold() local 6773 struct r5conf *conf; raid5_store_preread_threshold() local 6805 struct r5conf *conf; raid5_show_skip_copy() local 6818 struct r5conf *conf; raid5_store_skip_copy() local 6857 struct r5conf *conf = mddev->private; stripe_cache_active_show() local 6870 struct r5conf *conf; raid5_show_group_thread_cnt() local 6886 struct r5conf *conf; raid5_store_group_thread_cnt() local 6954 alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt, struct r5worker_group **worker_groups) alloc_thread_groups() argument 6999 free_thread_groups(struct r5conf *conf) free_thread_groups() argument 7010 struct r5conf *conf = mddev->private; raid5_size() local 7023 free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) free_scratch_buffer() argument 7031 alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) alloc_scratch_buffer() argument 7054 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_dead() local 7060 raid5_free_percpu(struct r5conf *conf) raid5_free_percpu() argument 7069 free_conf(struct r5conf *conf) free_conf() argument 7091 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_up_prepare() local 7102 raid5_alloc_percpu(struct r5conf *conf) raid5_alloc_percpu() argument 7123 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); raid5_cache_scan() local 7144 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); raid5_cache_count() local 7154 struct r5conf *conf; setup_conf() local 7429 raid5_set_io_opt(struct r5conf *conf) raid5_set_io_opt() argument 7437 struct r5conf *conf; raid5_run() local 7788 struct r5conf *conf = priv; raid5_free() local 7796 struct r5conf *conf = mddev->private; raid5_status() local 7811 print_raid5_conf(struct r5conf *conf) print_raid5_conf() argument 7838 struct r5conf *conf = mddev->private; raid5_spare_active() local 7880 struct r5conf *conf = mddev->private; raid5_remove_disk() local 7965 struct r5conf *conf = mddev->private; raid5_add_disk() local 8053 struct r5conf *conf = mddev->private; raid5_resize() local 8088 struct r5conf *conf = mddev->private; check_stripe_cache() local 8104 struct r5conf *conf = mddev->private; check_reshape() local 8148 struct r5conf *conf = mddev->private; raid5_start_reshape() local 8287 end_reshape(struct r5conf *conf) end_reshape() argument 8317 struct r5conf *conf = mddev->private; raid5_finish_reshape() local 8347 struct r5conf *conf = mddev->private; raid5_quiesce() local 8475 struct r5conf *conf = mddev->private; raid5_check_reshape() local 8618 struct r5conf *conf; raid5_change_consistency_policy() local 8680 struct r5conf *conf = mddev->private; raid5_start() local [all...] |
H A D | md-multipath.c | 26 static int multipath_map (struct mpconf *conf) in multipath_map() argument 28 int i, disks = conf->raid_disks; in multipath_map() 37 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_map() 55 struct mpconf *conf = mddev->private; in multipath_reschedule_retry() local 57 spin_lock_irqsave(&conf->device_lock, flags); in multipath_reschedule_retry() 58 list_add(&mp_bh->retry_list, &conf->retry_list); in multipath_reschedule_retry() 59 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_reschedule_retry() 71 struct mpconf *conf = mp_bh->mddev->private; in multipath_end_bh_io() local 75 mempool_free(mp_bh, &conf->pool); in multipath_end_bh_io() 81 struct mpconf *conf in multipath_end_request() local 103 struct mpconf *conf = mddev->private; multipath_make_request() local 140 struct mpconf *conf = mddev->private; multipath_status() local 159 struct mpconf *conf = mddev->private; multipath_error() local 189 print_multipath_conf(struct mpconf *conf) print_multipath_conf() argument 214 struct mpconf *conf = mddev->private; multipath_add_disk() local 251 struct mpconf *conf = mddev->private; multipath_remove_disk() local 297 struct mpconf *conf = mddev->private; multipathd() local 345 struct mpconf *conf; multipath_run() local 439 struct mpconf *conf = priv; multipath_free() local [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | raid5-log.h | 5 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 6 void r5l_exit_log(struct r5conf *conf); 13 bool r5l_log_disk_error(struct r5conf *conf); 15 int r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 17 void r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 22 void r5c_handle_cached_data_endio(struct r5conf *conf, 26 void r5c_flush_cache(struct r5conf *conf, int num); 27 void r5c_check_stripe_cache_usage(struct r5conf *conf); 28 void r5c_check_cached_full_stripe(struct r5conf *conf); 31 bool r5c_big_stripe_cached(struct r5conf *conf, sector_ 47 raid5_has_log(struct r5conf *conf) raid5_has_log() argument 52 raid5_has_ppl(struct r5conf *conf) raid5_has_ppl() argument 59 struct r5conf *conf = sh->raid_conf; log_stripe() local 80 struct r5conf *conf = sh->raid_conf; log_stripe_write_finished() local 88 log_write_stripe_run(struct r5conf *conf) log_write_stripe_run() argument 96 log_flush_stripe_to_raid(struct r5conf *conf) log_flush_stripe_to_raid() argument 104 log_handle_flush_request(struct r5conf *conf, struct bio *bio) log_handle_flush_request() argument 116 log_quiesce(struct r5conf *conf, int quiesce) log_quiesce() argument 124 log_exit(struct r5conf *conf) log_exit() argument 132 log_init(struct r5conf *conf, struct md_rdev *journal_dev, bool ppl) log_init() argument 143 log_modify(struct r5conf *conf, struct md_rdev *rdev, bool add) log_modify() argument [all...] |
H A D | md-faulty.c | 85 static int check_mode(struct faulty_conf *conf, int mode) in check_mode() argument 87 if (conf->period[mode] == 0 && in check_mode() 88 atomic_read(&conf->counters[mode]) <= 0) in check_mode() 92 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode() 93 if (conf->period[mode]) in check_mode() 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 100 static int check_sector(struct faulty_conf *conf, sector_t start, sector_t end, int dir) in check_sector() argument 104 for (i=0; i<conf->nfaults; i++) in check_sector() 105 if (conf in check_sector() 124 add_sector(struct faulty_conf *conf, sector_t start, int mode) add_sector() argument 166 struct faulty_conf *conf = mddev->private; faulty_make_request() local 225 struct faulty_conf *conf = mddev->private; faulty_status() local 260 struct faulty_conf *conf = mddev->private; faulty_reshape() local 300 struct faulty_conf *conf; faulty_run() local 331 struct faulty_conf *conf = priv; faulty_free() local [all...] |
H A D | raid10.c | 67 static void allow_barrier(struct r10conf *conf); 68 static void lower_barrier(struct r10conf *conf); 69 static int _enough(struct r10conf *conf, int previous, int ignore); 70 static int enough(struct r10conf *conf, int ignore); 75 static void end_reshape(struct r10conf *conf); 83 #define cmd_before(conf, cmd) \ 85 write_sequnlock_irq(&(conf)->resync_lock); \ 88 #define cmd_after(conf) write_seqlock_irq(&(conf)->resync_lock) 90 #define wait_event_barrier_cmd(conf, con 108 struct r10conf *conf = data; r10bio_pool_alloc() local 133 struct r10conf *conf = data; r10buf_pool_alloc() local 231 struct r10conf *conf = data; r10buf_pool_free() local 259 put_all_bios(struct r10conf *conf, struct r10bio *r10_bio) put_all_bios() argument 277 struct r10conf *conf = r10_bio->mddev->private; free_r10bio() local 285 struct r10conf *conf = r10_bio->mddev->private; put_buf() local 292 wake_up_barrier(struct r10conf *conf) wake_up_barrier() argument 302 struct r10conf *conf = mddev->private; reschedule_retry() local 323 struct r10conf *conf = r10_bio->mddev->private; raid_end_bio_io() local 343 struct r10conf *conf = r10_bio->mddev->private; update_head_pos() local 352 find_bio_disk(struct r10conf *conf, struct r10bio *r10_bio, struct bio *bio, int *slotp, int *replp) find_bio_disk() argument 382 struct r10conf *conf = r10_bio->mddev->private; raid10_end_read_request() local 458 struct r10conf *conf = r10_bio->mddev->private; raid10_end_write_request() local 650 raid10_find_phys(struct r10conf *conf, struct r10bio *r10bio) raid10_find_phys() argument 665 raid10_find_virt(struct r10conf *conf, sector_t sector, int dev) raid10_find_virt() argument 729 read_balance(struct r10conf *conf, struct r10bio *r10_bio, int *max_sectors) read_balance() argument 885 flush_pending_writes(struct r10conf *conf) flush_pending_writes() argument 948 raise_barrier(struct r10conf *conf, int force) raise_barrier() argument 968 lower_barrier(struct r10conf *conf) lower_barrier() argument 978 stop_waiting_barrier(struct r10conf *conf) stop_waiting_barrier() argument 1012 wait_barrier_nolock(struct r10conf *conf) wait_barrier_nolock() argument 1029 wait_barrier(struct r10conf *conf, bool nowait) wait_barrier() argument 1057 allow_barrier(struct r10conf *conf) allow_barrier() argument 1064 freeze_array(struct r10conf *conf, int extra) freeze_array() argument 1088 unfreeze_array(struct r10conf *conf) unfreeze_array() argument 1112 struct r10conf *conf = mddev->private; raid10_unplug() local 1146 regular_request_wait(struct mddev *mddev, struct r10conf *conf, struct bio *bio, sector_t sectors) regular_request_wait() argument 1175 struct r10conf *conf = mddev->private; raid10_read_request() local 1277 struct r10conf *conf = mddev->private; raid10_write_one_disk() local 1346 struct r10conf *conf = mddev->private; wait_blocked_dev() local 1410 struct r10conf *conf = mddev->private; raid10_write_request() local 1570 struct r10conf *conf = mddev->private; __make_request() local 1593 struct r10conf *conf = r10bio->mddev->private; raid_end_discard_bio() local 1616 struct r10conf *conf = r10_bio->mddev->private; raid10_end_discard_request() local 1652 struct r10conf *conf = mddev->private; raid10_handle_discard() local 1902 struct r10conf *conf = mddev->private; raid10_make_request() local 1939 struct r10conf *conf = mddev->private; raid10_status() local 1970 _enough(struct r10conf *conf, int previous, int ignore) _enough() argument 2006 enough(struct r10conf *conf, int ignore) enough() argument 2034 struct r10conf *conf = mddev->private; raid10_error() local 2062 print_conf(struct r10conf *conf) print_conf() argument 2087 close_sync(struct r10conf *conf) close_sync() argument 2098 struct r10conf *conf = mddev->private; raid10_spare_active() local 2145 struct r10conf *conf = mddev->private; raid10_add_disk() local 2216 struct r10conf *conf = mddev->private; raid10_remove_disk() local 2280 struct r10conf *conf = r10_bio->mddev->private; __end_sync_read() local 2307 struct r10conf *conf = r10_bio->mddev->private; end_sync_read() local 2352 struct r10conf *conf = mddev->private; end_sync_write() local 2405 struct r10conf *conf = mddev->private; sync_request_write() local 2544 struct r10conf *conf = mddev->private; fix_recovery_read_error() local 2619 struct r10conf *conf = mddev->private; recovery_request_write() local 2726 fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10bio *r10_bio) fix_read_error() argument 2907 struct r10conf *conf = mddev->private; narrow_write_error() local 2968 struct r10conf *conf = mddev->private; handle_read_error() local 3002 handle_write_completed(struct r10conf *conf, struct r10bio *r10_bio) handle_write_completed() argument 3108 struct r10conf *conf = mddev->private; raid10d() local 3177 init_resync(struct r10conf *conf) init_resync() argument 3195 raid10_alloc_init_r10buf(struct r10conf *conf) raid10_alloc_init_r10buf() argument 3228 raid10_set_cluster_sync_high(struct r10conf *conf) raid10_set_cluster_sync_high() argument 3296 struct r10conf *conf = mddev->private; raid10_sync_request() local 3933 struct r10conf *conf = mddev->private; raid10_size() local 3949 calc_sectors(struct r10conf *conf, sector_t size) calc_sectors() argument 4036 raid10_free_conf(struct r10conf *conf) raid10_free_conf() argument 4052 struct r10conf *conf = NULL; setup_conf() local 4137 raid10_set_io_opt(struct r10conf *conf) raid10_set_io_opt() argument 4149 struct r10conf *conf; raid10_run() local 4337 struct r10conf *conf = mddev->private; raid10_quiesce() local 4359 struct r10conf *conf = mddev->private; raid10_resize() local 4393 struct r10conf *conf; raid10_takeover_raid0() local 4463 struct r10conf *conf = mddev->private; raid10_check_reshape() local 4510 calc_degraded(struct r10conf *conf) calc_degraded() argument 4570 struct r10conf *conf = mddev->private; raid10_start_reshape() local 4812 struct r10conf *conf = mddev->private; reshape_request() local 5058 struct r10conf *conf = mddev->private; reshape_request_write() local 5098 end_reshape(struct r10conf *conf) end_reshape() argument 5118 struct r10conf *conf = mddev->private; raid10_update_reshape_pos() local 5134 struct r10conf *conf = mddev->private; handle_reshape_read_error() local 5208 struct r10conf *conf = mddev->private; end_reshape_write() local 5242 struct r10conf *conf = mddev->private; raid10_finish_reshape() local [all...] |
H A D | raid5.c | 22 * conf->seq_write is the number of the last batch successfully written. 23 * conf->seq_flush is the number of the last batch that was closed to 73 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument 75 int hash = (sect >> RAID5_STRIPE_SHIFT(conf)) & HASH_MASK; in stripe_hash() 76 return &conf->stripe_hashtbl[hash]; in stripe_hash() 79 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash() argument 81 return (sect >> RAID5_STRIPE_SHIFT(conf)) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash() 84 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) 85 __acquires(&conf->device_lock) 87 spin_lock_irq(conf 176 struct r5conf *conf = sh->raid_conf; global() variable 293 r5c_check_cached_full_stripe(conf); global() variable 321 release_inactive_stripe_list(struct r5conf *conf, struct list_head *temp_inactive_list, int hash) release_inactive_stripe_list() argument 394 struct r5conf *conf = sh->raid_conf; raid5_release_stripe() local 431 insert_hash(struct r5conf *conf, struct stripe_head *sh) insert_hash() argument 442 get_free_stripe(struct r5conf *conf, int hash) get_free_stripe() argument 500 init_stripe_shared_pages(struct stripe_head *sh, struct r5conf *conf, int disks) init_stripe_shared_pages() argument 577 struct r5conf *conf = sh->raid_conf; init_stripe() local 617 __find_stripe(struct r5conf *conf, sector_t sector, short generation) __find_stripe() argument 630 find_get_stripe(struct r5conf *conf, sector_t sector, short generation, int hash) find_get_stripe() argument 690 raid5_calc_degraded(struct r5conf *conf) raid5_calc_degraded() argument 746 has_failed(struct r5conf *conf) has_failed() argument 791 is_inactive_blocked(struct r5conf *conf, int hash) is_inactive_blocked() argument 803 raid5_get_active_stripe(struct r5conf *conf, struct stripe_request_ctx *ctx, sector_t sector, unsigned int flags) raid5_get_active_stripe() argument 904 struct r5conf *conf = sh->raid_conf; stripe_can_batch() local 914 stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh, struct stripe_head *last_sh) stripe_add_to_batch_list() argument 1012 use_new_offset(struct r5conf *conf, struct stripe_head *sh) use_new_offset() argument 1052 dispatch_defer_bios(struct r5conf *conf, int target, struct bio_list *list) dispatch_defer_bios() argument 1097 flush_deferred_bios(struct r5conf *conf) flush_deferred_bios() argument 1112 defer_issue_bios(struct r5conf *conf, sector_t sector, struct bio_list *bios) defer_issue_bios() argument 1141 struct r5conf *conf = sh->raid_conf; ops_run_io() local 1394 struct r5conf *conf = sh->raid_conf; async_copy_data() local 1452 struct r5conf *conf = sh->raid_conf; ops_complete_biofill() local 1491 struct r5conf *conf = sh->raid_conf; ops_run_biofill() local 1936 struct r5conf *conf = sh->raid_conf; ops_run_biodrain() local 2293 struct r5conf *conf = sh->raid_conf; raid_run_ops() local 2371 alloc_stripe(struct kmem_cache *sc, gfp_t gfp, int disks, struct r5conf *conf) alloc_stripe() argument 2404 grow_one_stripe(struct r5conf *conf, gfp_t gfp) grow_one_stripe() argument 2427 grow_stripes(struct r5conf *conf, int num) grow_stripes() argument 2497 resize_chunks(struct r5conf *conf, int new_disks, int new_sectors) resize_chunks() argument 2532 resize_stripes(struct r5conf *conf, int newsize) resize_stripes() argument 2706 drop_one_stripe(struct r5conf *conf) drop_one_stripe() argument 2724 shrink_stripes(struct r5conf *conf) shrink_stripes() argument 2759 struct r5conf *conf = sh->raid_conf; raid5_end_read_request() local 2887 struct r5conf *conf = sh->raid_conf; raid5_end_write_request() local 2964 struct r5conf *conf = mddev->private; raid5_error() local 3000 raid5_compute_sector(struct r5conf *conf, sector_t r_sector, int previous, int *dd_idx, struct stripe_head *sh) raid5_compute_sector() argument 3204 struct r5conf *conf = sh->raid_conf; raid5_compute_blocknr() local 3360 delay_towrite(struct r5conf *conf, struct r5dev *dev, struct stripe_head_state *s) delay_towrite() argument 3383 struct r5conf *conf = sh->raid_conf; schedule_reconstruction() local 3490 struct r5conf *conf = sh->raid_conf; stripe_bio_overlaps() local 3550 struct r5conf *conf = sh->raid_conf; __add_stripe_bio() local 3643 stripe_set_idx(sector_t stripe, struct r5conf *conf, int previous, struct stripe_head *sh) stripe_set_idx() argument 3660 handle_failed_stripe(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_failed_stripe() argument 3773 handle_failed_sync(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s) handle_failed_sync() argument 4072 handle_stripe_clean_event(struct r5conf *conf, struct stripe_head *sh, int disks) handle_stripe_clean_event() argument 4187 handle_stripe_dirtying(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_stripe_dirtying() argument 4351 handle_parity_checks5(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_parity_checks5() argument 4444 handle_parity_checks6(struct r5conf *conf, struct stripe_head *sh, struct stripe_head_state *s, int disks) handle_parity_checks6() argument 4621 handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh) handle_stripe_expansion() argument 4696 struct r5conf *conf = sh->raid_conf; analyse_stripe() local 4991 struct r5conf *conf = sh->raid_conf; handle_stripe() local 5422 struct r5conf *conf = mddev->private; in_chunk_boundary() local 5436 add_bio_to_retry(struct bio *bi,struct r5conf *conf) add_bio_to_retry() argument 5449 remove_bio_from_retry(struct r5conf *conf, unsigned int *offset) remove_bio_from_retry() argument 5481 struct r5conf *conf = mddev->private; raid5_align_endio() local 5502 struct r5conf *conf = mddev->private; raid5_read_one_chunk() local 5593 struct r5conf *conf = mddev->private; chunk_aligned_read() local 5721 struct r5conf *conf = mddev->private; raid5_unplug() local 5784 struct r5conf *conf = mddev->private; make_discard_request() local 5887 stripe_ahead_of_reshape(struct mddev *mddev, struct r5conf *conf, struct stripe_head *sh) stripe_ahead_of_reshape() argument 5914 add_all_stripe_bios(struct r5conf *conf, struct stripe_request_ctx *ctx, struct stripe_head *sh, struct bio *bi, int forwrite, int previous) add_all_stripe_bios() argument 5976 make_stripe_request(struct mddev *mddev, struct r5conf *conf, struct stripe_request_ctx *ctx, sector_t logical_sector, struct bio *bi) make_stripe_request() argument 6103 raid5_bio_lowest_chunk_sector(struct r5conf *conf, struct bio *bi) raid5_bio_lowest_chunk_sector() argument 6134 struct r5conf *conf = mddev->private; raid5_make_request() local 6272 struct r5conf *conf = mddev->private; reshape_request() local 6535 struct r5conf *conf = mddev->private; raid5_sync_request() local 6627 retry_aligned_read(struct r5conf *conf, struct bio *raid_bio, unsigned int offset) retry_aligned_read() argument 6709 log_flush_stripe_to_raid(conf); global() variable 6728 log_write_stripe_run(conf); global() variable 6744 struct r5conf *conf = group->conf; raid5_do_work() local 6794 struct r5conf *conf = mddev->private; raid5d() local 6885 struct r5conf *conf; raid5_show_stripe_cache_size() local 6899 struct r5conf *conf = mddev->private; raid5_set_cache_size() local 6929 struct r5conf *conf; raid5_store_stripe_cache_size() local 6958 struct r5conf *conf = mddev->private; raid5_show_rmw_level() local 6968 struct r5conf *conf = mddev->private; raid5_store_rmw_level() local 7000 struct r5conf *conf; raid5_show_stripe_size() local 7015 struct r5conf *conf; raid5_store_stripe_size() local 7095 struct r5conf *conf; raid5_show_preread_threshold() local 7108 struct r5conf *conf; raid5_store_preread_threshold() local 7140 struct r5conf *conf; raid5_show_skip_copy() local 7153 struct r5conf *conf; raid5_store_skip_copy() local 7192 struct r5conf *conf = mddev->private; stripe_cache_active_show() local 7205 struct r5conf *conf; raid5_show_group_thread_cnt() local 7221 struct r5conf *conf; raid5_store_group_thread_cnt() local 7289 alloc_thread_groups(struct r5conf *conf, int cnt, int *group_cnt, struct r5worker_group **worker_groups) alloc_thread_groups() argument 7334 free_thread_groups(struct r5conf *conf) free_thread_groups() argument 7345 struct r5conf *conf = mddev->private; raid5_size() local 7358 free_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) free_scratch_buffer() argument 7366 alloc_scratch_buffer(struct r5conf *conf, struct raid5_percpu *percpu) alloc_scratch_buffer() argument 7390 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_dead() local 7396 raid5_free_percpu(struct r5conf *conf) raid5_free_percpu() argument 7405 free_conf(struct r5conf *conf) free_conf() argument 7427 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_up_prepare() local 7438 raid5_alloc_percpu(struct r5conf *conf) raid5_alloc_percpu() argument 7459 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); raid5_cache_scan() local 7480 struct r5conf *conf = container_of(shrink, struct r5conf, shrinker); raid5_cache_count() local 7492 struct r5conf *conf; setup_conf() local 7773 raid5_set_io_opt(struct r5conf *conf) raid5_set_io_opt() argument 7781 struct r5conf *conf; raid5_run() local 8129 struct r5conf *conf = priv; raid5_free() local 8137 struct r5conf *conf = mddev->private; raid5_status() local 8152 print_raid5_conf(struct r5conf *conf) print_raid5_conf() argument 8180 struct r5conf *conf = mddev->private; raid5_spare_active() local 8224 struct r5conf *conf = mddev->private; raid5_remove_disk() local 8317 struct r5conf *conf = mddev->private; raid5_add_disk() local 8407 struct r5conf *conf = mddev->private; raid5_resize() local 8442 struct r5conf *conf = mddev->private; check_stripe_cache() local 8458 struct r5conf *conf = mddev->private; check_reshape() local 8502 struct r5conf *conf = mddev->private; raid5_start_reshape() local 8649 end_reshape(struct r5conf *conf) end_reshape() argument 8679 struct r5conf *conf = mddev->private; raid5_finish_reshape() local 8712 struct r5conf *conf = mddev->private; raid5_quiesce() local 8843 struct r5conf *conf = mddev->private; raid5_check_reshape() local 8986 struct r5conf *conf; raid5_change_consistency_policy() local 9051 struct r5conf *conf = mddev->private; raid5_start() local 9058 struct r5conf *conf = mddev->private; raid5_prepare_suspend() local [all...] |
H A D | raid1.c | 46 static void allow_barrier(struct r1conf *conf, sector_t sector_nr); 47 static void lower_barrier(struct r1conf *conf, sector_t sector_nr); 241 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios() argument 245 for (i = 0; i < conf->raid_disks * 2; i++) { in put_all_bios() 255 struct r1conf *conf = r1_bio->mddev->private; in free_r1bio() local 257 put_all_bios(conf, r1_bio); in free_r1bio() 258 mempool_free(r1_bio, &conf->r1bio_pool); in free_r1bio() 263 struct r1conf *conf = r1_bio->mddev->private; in put_buf() local 267 for (i = 0; i < conf->raid_disks * 2; i++) { in put_buf() 270 rdev_dec_pending(conf in put_buf() 282 struct r1conf *conf = mddev->private; reschedule_retry() local 313 struct r1conf *conf = r1_bio->mddev->private; raid_end_bio_io() local 339 struct r1conf *conf = r1_bio->mddev->private; update_head_pos() local 351 struct r1conf *conf = r1_bio->mddev->private; find_bio_disk() local 368 struct r1conf *conf = r1_bio->mddev->private; raid1_end_read_request() local 450 struct r1conf *conf = r1_bio->mddev->private; raid1_end_write_request() local 598 read_balance(struct r1conf *conf, struct r1bio *r1_bio, int *max_sectors) read_balance() argument 793 wake_up_barrier(struct r1conf *conf) wake_up_barrier() argument 799 flush_bio_list(struct r1conf *conf, struct bio *bio) flush_bio_list() argument 814 flush_pending_writes(struct r1conf *conf) flush_pending_writes() argument 869 raise_barrier(struct r1conf *conf, sector_t sector_nr) raise_barrier() argument 919 lower_barrier(struct r1conf *conf, sector_t sector_nr) lower_barrier() argument 930 _wait_barrier(struct r1conf *conf, int idx, bool nowait) _wait_barrier() argument 999 wait_read_barrier(struct r1conf *conf, sector_t sector_nr, bool nowait) wait_read_barrier() argument 1042 wait_barrier(struct r1conf *conf, sector_t sector_nr, bool nowait) wait_barrier() argument 1049 _allow_barrier(struct r1conf *conf, int idx) _allow_barrier() argument 1055 allow_barrier(struct r1conf *conf, sector_t sector_nr) allow_barrier() argument 1063 get_unqueued_pending(struct r1conf *conf) get_unqueued_pending() argument 1075 freeze_array(struct r1conf *conf, int extra) freeze_array() argument 1110 unfreeze_array(struct r1conf *conf) unfreeze_array() argument 1174 struct r1conf *conf = mddev->private; raid1_unplug() local 1205 struct r1conf *conf = mddev->private; alloc_r1bio() local 1218 struct r1conf *conf = mddev->private; raid1_read_request() local 1339 struct r1conf *conf = mddev->private; raid1_write_request() local 1616 struct r1conf *conf = mddev->private; raid1_status() local 1649 struct r1conf *conf = mddev->private; raid1_error() local 1681 print_conf(struct r1conf *conf) print_conf() argument 1705 close_sync(struct r1conf *conf) close_sync() argument 1720 struct r1conf *conf = mddev->private; raid1_spare_active() local 1771 struct r1conf *conf = mddev->private; raid1_add_disk() local 1837 struct r1conf *conf = mddev->private; raid1_remove_disk() local 1961 struct r1conf *conf = mddev->private; end_sync_write() local 2018 struct r1conf *conf = mddev->private; fix_sync_read_error() local 2145 struct r1conf *conf = mddev->private; process_checks() local 2223 struct r1conf *conf = mddev->private; sync_request_write() local 2274 fix_read_error(struct r1conf *conf, int read_disk, sector_t sect, int sectors) fix_read_error() argument 2372 struct r1conf *conf = mddev->private; narrow_write_error() local 2438 handle_sync_write_finished(struct r1conf *conf, struct r1bio *r1_bio) handle_sync_write_finished() argument 2461 handle_write_finished(struct r1conf *conf, struct r1bio *r1_bio) handle_write_finished() argument 2507 handle_read_error(struct r1conf *conf, struct r1bio *r1_bio) handle_read_error() argument 2556 struct r1conf *conf = mddev->private; raid1d() local 2623 init_resync(struct r1conf *conf) init_resync() argument 2634 raid1_alloc_init_r1buf(struct r1conf *conf) raid1_alloc_init_r1buf() argument 2664 struct r1conf *conf = mddev->private; raid1_sync_request() local 2970 struct r1conf *conf; setup_conf() local 3110 struct r1conf *conf; raid1_run() local 3199 struct r1conf *conf = priv; raid1_free() local 3258 struct r1conf *conf = mddev->private; raid1_reshape() local 3354 struct r1conf *conf = mddev->private; raid1_quiesce() local 3368 struct r1conf *conf; raid1_takeover() local [all...] |
H A D | md-multipath.c | 26 static int multipath_map (struct mpconf *conf) in multipath_map() argument 28 int i, disks = conf->raid_disks; in multipath_map() 37 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_map() 55 struct mpconf *conf = mddev->private; in multipath_reschedule_retry() local 57 spin_lock_irqsave(&conf->device_lock, flags); in multipath_reschedule_retry() 58 list_add(&mp_bh->retry_list, &conf->retry_list); in multipath_reschedule_retry() 59 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_reschedule_retry() 71 struct mpconf *conf = mp_bh->mddev->private; in multipath_end_bh_io() local 75 mempool_free(mp_bh, &conf->pool); in multipath_end_bh_io() 81 struct mpconf *conf in multipath_end_request() local 102 struct mpconf *conf = mddev->private; multipath_make_request() local 137 struct mpconf *conf = mddev->private; multipath_status() local 156 struct mpconf *conf = mddev->private; multipath_error() local 185 print_multipath_conf(struct mpconf *conf) print_multipath_conf() argument 209 struct mpconf *conf = mddev->private; multipath_add_disk() local 246 struct mpconf *conf = mddev->private; multipath_remove_disk() local 292 struct mpconf *conf = mddev->private; multipathd() local 339 struct mpconf *conf; multipath_run() local 433 struct mpconf *conf = priv; multipath_free() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 42 struct ath_beacon_config *conf, in ath9k_cmn_beacon_config_sta() 57 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta() 63 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta() 70 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta() 72 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 73 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 74 bs->bs_nexttbtt = conf in ath9k_cmn_beacon_config_sta() 41 ath9k_cmn_beacon_config_sta(struct ath_hw *ah, struct ath_beacon_config *conf, struct ath9k_beacon_state *bs) ath9k_cmn_beacon_config_sta() argument 114 ath9k_cmn_beacon_config_adhoc(struct ath_hw *ah, struct ath_beacon_config *conf) ath9k_cmn_beacon_config_adhoc() argument 144 ath9k_cmn_beacon_config_ap(struct ath_hw *ah, struct ath_beacon_config *conf, unsigned int bc_buf) ath9k_cmn_beacon_config_ap() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | common-beacon.c | 42 struct ath_beacon_config *conf, in ath9k_cmn_beacon_config_sta() 57 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta() 63 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta() 70 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta() 72 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 73 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 74 bs->bs_nexttbtt = conf in ath9k_cmn_beacon_config_sta() 41 ath9k_cmn_beacon_config_sta(struct ath_hw *ah, struct ath_beacon_config *conf, struct ath9k_beacon_state *bs) ath9k_cmn_beacon_config_sta() argument 114 ath9k_cmn_beacon_config_adhoc(struct ath_hw *ah, struct ath_beacon_config *conf) ath9k_cmn_beacon_config_adhoc() argument 144 ath9k_cmn_beacon_config_ap(struct ath_hw *ah, struct ath_beacon_config *conf, unsigned int bc_buf) ath9k_cmn_beacon_config_ap() argument [all...] |
/kernel/linux/linux-5.10/drivers/fpga/ |
H A D | altera-cvp.c | 78 void (*write_data)(struct altera_cvp_conf *conf, 88 void (*switch_clk)(struct altera_cvp_conf *conf); 89 int (*clear_state)(struct altera_cvp_conf *conf); 96 static int altera_read_config_byte(struct altera_cvp_conf *conf, in altera_read_config_byte() argument 99 return pci_read_config_byte(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_byte() 103 static int altera_read_config_dword(struct altera_cvp_conf *conf, in altera_read_config_dword() argument 106 return pci_read_config_dword(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_dword() 110 static int altera_write_config_dword(struct altera_cvp_conf *conf, in altera_write_config_dword() argument 119 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_state() local 133 altera_cvp_write_data_iomem(struct altera_cvp_conf *conf, u32 val) altera_cvp_write_data_iomem() argument 138 altera_cvp_write_data_config(struct altera_cvp_conf *conf, u32 val) altera_cvp_write_data_config() argument 145 altera_cvp_dummy_write(struct altera_cvp_conf *conf) altera_cvp_dummy_write() argument 160 altera_cvp_wait_status(struct altera_cvp_conf *conf, u32 status_mask, u32 status_val, int timeout_us) altera_cvp_wait_status() argument 184 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_chk_error() local 204 altera_cvp_v2_clear_state(struct altera_cvp_conf *conf) altera_cvp_v2_clear_state() argument 233 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_v2_wait_for_credit() local 265 altera_cvp_send_block(struct altera_cvp_conf *conf, const u32 *data, size_t len) altera_cvp_send_block() argument 288 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_teardown() local 322 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write_init() local 434 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write() local 487 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write_complete() local 579 struct altera_cvp_conf *conf; altera_cvp_probe() local 683 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/fpga/ |
H A D | altera-cvp.c | 78 void (*write_data)(struct altera_cvp_conf *conf, 88 void (*switch_clk)(struct altera_cvp_conf *conf); 89 int (*clear_state)(struct altera_cvp_conf *conf); 96 static int altera_read_config_byte(struct altera_cvp_conf *conf, in altera_read_config_byte() argument 99 return pci_read_config_byte(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_byte() 103 static int altera_read_config_dword(struct altera_cvp_conf *conf, in altera_read_config_dword() argument 106 return pci_read_config_dword(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_dword() 110 static int altera_write_config_dword(struct altera_cvp_conf *conf, in altera_write_config_dword() argument 119 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_state() local 133 altera_cvp_write_data_iomem(struct altera_cvp_conf *conf, u32 val) altera_cvp_write_data_iomem() argument 138 altera_cvp_write_data_config(struct altera_cvp_conf *conf, u32 val) altera_cvp_write_data_config() argument 145 altera_cvp_dummy_write(struct altera_cvp_conf *conf) altera_cvp_dummy_write() argument 160 altera_cvp_wait_status(struct altera_cvp_conf *conf, u32 status_mask, u32 status_val, int timeout_us) altera_cvp_wait_status() argument 184 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_chk_error() local 204 altera_cvp_v2_clear_state(struct altera_cvp_conf *conf) altera_cvp_v2_clear_state() argument 233 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_v2_wait_for_credit() local 265 altera_cvp_send_block(struct altera_cvp_conf *conf, const u32 *data, size_t len) altera_cvp_send_block() argument 288 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_teardown() local 322 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write_init() local 434 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write() local 487 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_write_complete() local 579 struct altera_cvp_conf *conf; altera_cvp_probe() local 679 struct altera_cvp_conf *conf = mgr->priv; altera_cvp_remove() local [all...] |
/kernel/linux/linux-5.10/scripts/kconfig/tests/choice/ |
H A D | __init__.py | 14 def test_oldask0(conf): 15 assert conf.oldaskconfig() == 0 16 assert conf.stdout_contains('oldask0_expected_stdout') 19 def test_oldask1(conf): 20 assert conf.oldaskconfig('oldask1_config') == 0 21 assert conf.stdout_contains('oldask1_expected_stdout') 24 def test_allyes(conf): 25 assert conf.allyesconfig() == 0 26 assert conf.config_contains('allyes_expected_config') 29 def test_allmod(conf) [all...] |
/kernel/linux/linux-6.6/scripts/kconfig/tests/choice/ |
H A D | __init__.py | 14 def test_oldask0(conf): 15 assert conf.oldaskconfig() == 0 16 assert conf.stdout_contains('oldask0_expected_stdout') 19 def test_oldask1(conf): 20 assert conf.oldaskconfig('oldask1_config') == 0 21 assert conf.stdout_contains('oldask1_expected_stdout') 24 def test_allyes(conf): 25 assert conf.allyesconfig() == 0 26 assert conf.config_contains('allyes_expected_config') 29 def test_allmod(conf) [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | textsearch.h | 68 * @conf: search configuration 78 struct ts_config *conf, 83 * @conf: search configuration 89 void (*finish)(struct ts_config *conf, 95 * @conf: search configuration 105 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument 108 unsigned int ret = conf->ops->find(conf, state); in textsearch_next() 110 if (conf->finish) in textsearch_next() 111 conf in textsearch_next() 124 textsearch_find(struct ts_config *conf, struct ts_state *state) textsearch_find() argument 135 textsearch_get_pattern(struct ts_config *conf) textsearch_get_pattern() argument 144 textsearch_get_pattern_len(struct ts_config *conf) textsearch_get_pattern_len() argument 165 struct ts_config *conf; alloc_ts_config() local 174 ts_config_priv(struct ts_config *conf) ts_config_priv() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | textsearch.h | 68 * @conf: search configuration 78 struct ts_config *conf, 83 * @conf: search configuration 89 void (*finish)(struct ts_config *conf, 95 * @conf: search configuration 105 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument 108 unsigned int ret = conf->ops->find(conf, state); in textsearch_next() 110 if (conf->finish) in textsearch_next() 111 conf in textsearch_next() 124 textsearch_find(struct ts_config *conf, struct ts_state *state) textsearch_find() argument 135 textsearch_get_pattern(struct ts_config *conf) textsearch_get_pattern() argument 144 textsearch_get_pattern_len(struct ts_config *conf) textsearch_get_pattern_len() argument 165 struct ts_config *conf; alloc_ts_config() local 174 ts_config_priv(struct ts_config *conf) ts_config_priv() argument [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | atmel-smc.c | 15 * atmel_smc_cs_conf_init - initialize a SMC CS conf 16 * @conf: the SMC CS conf to initialize 20 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_init() argument 22 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 79 * atmel_smc_cs_conf_set_timing - set the SMC CS conf Txx parameter to a 81 * @conf: SMC CS conf descriptor 88 * @conf 93 atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_timing() argument 135 atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_setup() argument 174 atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_pulse() argument 213 atmel_smc_cs_conf_set_cycle(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_cycle() argument 245 atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, const struct atmel_smc_cs_conf *conf) atmel_smc_cs_conf_apply() argument 265 atmel_hsmc_cs_conf_apply(struct regmap *regmap, const struct atmel_hsmc_reg_layout *layout, int cs, const struct atmel_smc_cs_conf *conf) atmel_hsmc_cs_conf_apply() argument 286 atmel_smc_cs_conf_get(struct regmap *regmap, int cs, struct atmel_smc_cs_conf *conf) atmel_smc_cs_conf_get() argument 306 atmel_hsmc_cs_conf_get(struct regmap *regmap, const struct atmel_hsmc_reg_layout *layout, int cs, struct atmel_smc_cs_conf *conf) atmel_hsmc_cs_conf_get() argument [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | atmel-smc.c | 15 * atmel_smc_cs_conf_init - initialize a SMC CS conf 16 * @conf: the SMC CS conf to initialize 20 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_init() argument 22 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 79 * atmel_smc_cs_conf_set_timing - set the SMC CS conf Txx parameter to a 81 * @conf: SMC CS conf descriptor 88 * @conf 93 atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_timing() argument 135 atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_setup() argument 174 atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_pulse() argument 213 atmel_smc_cs_conf_set_cycle(struct atmel_smc_cs_conf *conf, unsigned int shift, unsigned int ncycles) atmel_smc_cs_conf_set_cycle() argument 245 atmel_smc_cs_conf_apply(struct regmap *regmap, int cs, const struct atmel_smc_cs_conf *conf) atmel_smc_cs_conf_apply() argument 265 atmel_hsmc_cs_conf_apply(struct regmap *regmap, const struct atmel_hsmc_reg_layout *layout, int cs, const struct atmel_smc_cs_conf *conf) atmel_hsmc_cs_conf_apply() argument 286 atmel_smc_cs_conf_get(struct regmap *regmap, int cs, struct atmel_smc_cs_conf *conf) atmel_smc_cs_conf_get() argument 306 atmel_hsmc_cs_conf_get(struct regmap *regmap, const struct atmel_hsmc_reg_layout *layout, int cs, struct atmel_smc_cs_conf *conf) atmel_hsmc_cs_conf_get() argument [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | em_text.c | 47 struct tcf_em_text *conf = data; in em_text_change() local 51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change() 54 if (conf->from_layer > conf->to_layer) in em_text_change() 57 if (conf->from_layer == conf->to_layer && in em_text_change() 58 conf->from_offset > conf in em_text_change() 109 struct tcf_em_text conf; em_text_dump() local [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | em_text.c | 47 struct tcf_em_text *conf = data; in em_text_change() local 51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change() 54 if (conf->from_layer > conf->to_layer) in em_text_change() 57 if (conf->from_layer == conf->to_layer && in em_text_change() 58 conf->from_offset > conf in em_text_change() 109 struct tcf_em_text conf; em_text_dump() local [all...] |
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-sparx5.c | 59 const struct s5_pll_conf *conf) in s5_calc_freq() 61 unsigned long rate = parent_rate / conf->div; in s5_calc_freq() 63 if (conf->rot_ena) { in s5_calc_freq() 64 int sign = conf->rot_dir ? -1 : 1; in s5_calc_freq() 65 int divt = sel_rates[conf->rot_sel] * (1 + conf->pre_div); in s5_calc_freq() 78 struct s5_pll_conf *conf) in s5_search_fractional() 84 memset(conf, 0, sizeof(*conf)); in s5_search_fractional() 85 conf in s5_search_fractional() 58 s5_calc_freq(unsigned long parent_rate, const struct s5_pll_conf *conf) s5_calc_freq() argument 75 s5_search_fractional(unsigned long rate, unsigned long parent_rate, int div, struct s5_pll_conf *conf) s5_search_fractional() argument 108 s5_calc_params(unsigned long rate, unsigned long parent_rate, struct s5_pll_conf *conf) s5_calc_params() argument 170 struct s5_pll_conf conf; s5_pll_set_rate() local 196 struct s5_pll_conf conf; s5_pll_recalc_rate() local 219 struct s5_pll_conf conf; s5_pll_round_rate() local [all...] |