Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 675) sorted by relevance

12345678910>>...27

/linux/drivers/md/
H A Draid5-log.h5 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_t sect);
[all …]
H A Draid10.c70 static void allow_barrier(struct r10conf *conf);
71 static void lower_barrier(struct r10conf *conf);
72 static int _enough(struct r10conf *conf, int previous, int ignore);
73 static int enough(struct r10conf *conf, int ignore);
78 static void end_reshape(struct r10conf *conf);
83 #define cmd_before(conf, cmd) \ argument
85 write_sequnlock_irq(&(conf)->resync_lock); \
88 #define cmd_after(conf) write_seqlock_irq(&(conf)->resync_lock) argument
90 #define wait_event_barrier_cmd(conf, con argument
94 wait_event_barrier(conf,cond) global() argument
143 struct r10conf *conf = data; r10buf_pool_alloc() local
241 struct r10conf *conf = data; r10buf_pool_free() local
269 put_all_bios(struct r10conf * conf,struct r10bio * r10_bio) put_all_bios() argument
287 struct r10conf *conf = r10_bio->mddev->private; free_r10bio() local
295 struct r10conf *conf = r10_bio->mddev->private; put_buf() local
302 wake_up_barrier(struct r10conf * conf) wake_up_barrier() argument
312 struct r10conf *conf = mddev->private; reschedule_retry() local
333 struct r10conf *conf = r10_bio->mddev->private; raid_end_bio_io() local
359 struct r10conf *conf = r10_bio->mddev->private; update_head_pos() local
368 find_bio_disk(struct r10conf * conf,struct r10bio * r10_bio,struct bio * bio,int * slotp,int * replp) find_bio_disk() argument
398 struct r10conf *conf = r10_bio->mddev->private; raid10_end_read_request() local
473 struct r10conf *conf = r10_bio->mddev->private; raid10_end_write_request() local
658 raid10_find_phys(struct r10conf * conf,struct r10bio * r10bio) raid10_find_phys() argument
673 raid10_find_virt(struct r10conf * conf,sector_t sector,int dev) raid10_find_virt() argument
737 read_balance(struct r10conf * conf,struct r10bio * r10_bio,int * max_sectors) read_balance() argument
875 flush_pending_writes(struct r10conf * conf) flush_pending_writes() argument
938 raise_barrier(struct r10conf * conf,int force) raise_barrier() argument
958 lower_barrier(struct r10conf * conf) lower_barrier() argument
968 stop_waiting_barrier(struct r10conf * conf) stop_waiting_barrier() argument
1002 wait_barrier_nolock(struct r10conf * conf) wait_barrier_nolock() argument
1019 wait_barrier(struct r10conf * conf) wait_barrier() argument
1037 allow_barrier(struct r10conf * conf) allow_barrier() argument
1044 freeze_array(struct r10conf * conf,int extra) freeze_array() argument
1068 unfreeze_array(struct r10conf * conf) unfreeze_array() argument
1092 struct r10conf *conf = mddev->private; raid10_unplug() local
1126 regular_request_wait(struct mddev * mddev,struct r10conf * conf,struct bio * bio,sector_t sectors) regular_request_wait() argument
1147 struct r10conf *conf = mddev->private; raid10_read_request() local
1251 struct r10conf *conf = mddev->private; raid10_write_one_disk() local
1289 struct r10conf *conf = mddev->private; wait_blocked_dev() local
1346 struct r10conf *conf = mddev->private; raid10_write_request() local
1506 struct r10conf *conf = mddev->private; __make_request() local
1532 struct r10conf *conf = r10bio->mddev->private; raid_end_discard_bio() local
1557 struct r10conf *conf = r10_bio->mddev->private; raid10_end_discard_request() local
1584 struct r10conf *conf = mddev->private; raid10_handle_discard() local
1849 struct r10conf *conf = mddev->private; raid10_make_request() local
1896 struct r10conf *conf = mddev->private; raid10_status() local
1928 _enough(struct r10conf * conf,int previous,int ignore) _enough() argument
1962 enough(struct r10conf * conf,int ignore) enough() argument
1990 struct r10conf *conf = mddev->private; raid10_error() local
2018 print_conf(struct r10conf * conf) print_conf() argument
2042 close_sync(struct r10conf * conf) close_sync() argument
2053 struct r10conf *conf = mddev->private; raid10_spare_active() local
2100 struct r10conf *conf = mddev->private; raid10_add_disk() local
2163 struct r10conf *conf = mddev->private; raid10_remove_disk() local
2214 struct r10conf *conf = r10_bio->mddev->private; __end_sync_read() local
2241 struct r10conf *conf = r10_bio->mddev->private; end_sync_read() local
2286 struct r10conf *conf = mddev->private; end_sync_write() local
2336 struct r10conf *conf = mddev->private; sync_request_write() local
2469 struct r10conf *conf = mddev->private; fix_recovery_read_error() local
2542 struct r10conf *conf = mddev->private; recovery_request_write() local
2606 fix_read_error(struct r10conf * conf,struct mddev * mddev,struct r10bio * r10_bio) fix_read_error() argument
2765 struct r10conf *conf = mddev->private; narrow_write_error() local
2828 struct r10conf *conf = mddev->private; handle_read_error() local
2862 handle_write_completed(struct r10conf * conf,struct r10bio * r10_bio) handle_write_completed() argument
2958 struct r10conf *conf = mddev->private; raid10d() local
3025 init_resync(struct r10conf * conf) init_resync() argument
3043 raid10_alloc_init_r10buf(struct r10conf * conf) raid10_alloc_init_r10buf() argument
3076 raid10_set_cluster_sync_high(struct r10conf * conf) raid10_set_cluster_sync_high() argument
3144 struct r10conf *conf = mddev->private; raid10_sync_request() local
3709 struct r10conf *conf = mddev->private; raid10_size() local
3725 calc_sectors(struct r10conf * conf,sector_t size) calc_sectors() argument
3814 raid10_free_conf(struct r10conf * conf) raid10_free_conf() argument
3830 struct r10conf *conf = NULL; setup_conf() local
3913 raid10_nr_stripes(struct r10conf * conf) raid10_nr_stripes() argument
3924 struct r10conf *conf = mddev->private; raid10_set_queue_limits() local
3945 struct r10conf *conf; raid10_run() local
4124 struct r10conf *conf = mddev->private; raid10_quiesce() local
4146 struct r10conf *conf = mddev->private; raid10_resize() local
4183 struct r10conf *conf; raid10_takeover_raid0() local
4253 struct r10conf *conf = mddev->private; raid10_check_reshape() local
4303 calc_degraded(struct r10conf * conf) calc_degraded() argument
4361 struct r10conf *conf = mddev->private; raid10_start_reshape() local
4614 struct r10conf *conf = mddev->private; reshape_request() local
4864 struct r10conf *conf = mddev->private; reshape_request_write() local
4901 end_reshape(struct r10conf * conf) end_reshape() argument
4930 struct r10conf *conf = mddev->private; raid10_update_reshape_pos() local
4946 struct r10conf *conf = mddev->private; handle_reshape_read_error() local
5016 struct r10conf *conf = mddev->private; end_reshape_write() local
5046 struct r10conf *conf = mddev->private; raid10_finish_reshape() local
5084 struct r10conf *conf = mddev->private; raid10_bitmap_sync_size() local
[all...]
H A Draid1.c47 static void allow_barrier(struct r1conf *conf, sector_t sector_nr);
48 static void lower_barrier(struct r1conf *conf, sector_t sector_nr);
153 static void *r1bio_pool_alloc(gfp_t gfp_flags, struct r1conf *conf) in r1bio_pool_alloc() argument
155 int size = offsetof(struct r1bio, bios[conf->raid_disks * 2]); in r1bio_pool_alloc()
170 struct r1conf *conf = data; in r1buf_pool_alloc() local
177 r1_bio = r1bio_pool_alloc(gfp_flags, conf); in r1buf_pool_alloc()
181 rps = kmalloc_objs(struct resync_pages, conf->raid_disks * 2, gfp_flags); in r1buf_pool_alloc()
188 for (j = conf->raid_disks * 2; j-- ; ) { in r1buf_pool_alloc()
201 if (test_bit(MD_RECOVERY_REQUESTED, &conf->mddev->recovery)) in r1buf_pool_alloc()
202 need_pages = conf in r1buf_pool_alloc()
244 struct r1conf *conf = data; r1buf_pool_free() local
262 put_all_bios(struct r1conf * conf,struct r1bio * r1_bio) put_all_bios() argument
276 struct r1conf *conf = r1_bio->mddev->private; free_r1bio() local
284 struct r1conf *conf = r1_bio->mddev->private; put_buf() local
303 struct r1conf *conf = mddev->private; reschedule_retry() local
334 struct r1conf *conf = r1_bio->mddev->private; raid_end_bio_io() local
360 struct r1conf *conf = r1_bio->mddev->private; update_head_pos() local
372 struct r1conf *conf = r1_bio->mddev->private; find_bio_disk() local
389 struct r1conf *conf = r1_bio->mddev->private; raid1_end_read_request() local
473 struct r1conf *conf = r1_bio->mddev->private; raid1_end_write_request() local
601 update_read_sectors(struct r1conf * conf,int disk,sector_t this_sector,int len) update_read_sectors() argument
612 choose_first_rdev(struct r1conf * conf,struct r1bio * r1_bio,int * max_sectors) choose_first_rdev() argument
648 choose_bb_rdev(struct r1conf * conf,struct r1bio * r1_bio,int * max_sectors) choose_bb_rdev() argument
687 choose_slow_rdev(struct r1conf * conf,struct r1bio * r1_bio,int * max_sectors) choose_slow_rdev() argument
736 is_sequential(struct r1conf * conf,int disk,struct r1bio * r1_bio) is_sequential() argument
746 should_choose_next(struct r1conf * conf,int disk) should_choose_next() argument
791 choose_best_rdev(struct r1conf * conf,struct r1bio * r1_bio) choose_best_rdev() argument
888 read_balance(struct r1conf * conf,struct r1bio * r1_bio,int * max_sectors) read_balance() argument
919 wake_up_barrier(struct r1conf * conf) wake_up_barrier() argument
925 flush_bio_list(struct r1conf * conf,struct bio * bio) flush_bio_list() argument
940 flush_pending_writes(struct r1conf * conf) flush_pending_writes() argument
995 raise_barrier(struct r1conf * conf,sector_t sector_nr) raise_barrier() argument
1045 lower_barrier(struct r1conf * conf,sector_t sector_nr) lower_barrier() argument
1056 _wait_barrier(struct r1conf * conf,int idx) _wait_barrier() argument
1116 wait_read_barrier(struct r1conf * conf,sector_t sector_nr) wait_read_barrier() argument
1150 wait_barrier(struct r1conf * conf,sector_t sector_nr) wait_barrier() argument
1157 _allow_barrier(struct r1conf * conf,int idx) _allow_barrier() argument
1163 allow_barrier(struct r1conf * conf,sector_t sector_nr) allow_barrier() argument
1171 get_unqueued_pending(struct r1conf * conf) get_unqueued_pending() argument
1183 freeze_array(struct r1conf * conf,int extra) freeze_array() argument
1218 unfreeze_array(struct r1conf * conf) unfreeze_array() argument
1280 struct r1conf *conf = mddev->private; raid1_unplug() local
1311 struct r1conf *conf = mddev->private; alloc_r1bio() local
1323 struct r1conf *conf = mddev->private; raid1_read_request() local
1428 struct r1conf *conf = mddev->private; wait_blocked_rdev() local
1482 struct r1conf *conf = mddev->private; raid1_write_request() local
1704 struct r1conf *conf = mddev->private; raid1_status() local
1738 struct r1conf *conf = mddev->private; raid1_error() local
1769 print_conf(struct r1conf * conf) print_conf() argument
1792 close_sync(struct r1conf * conf) close_sync() argument
1807 struct r1conf *conf = mddev->private; raid1_spare_active() local
1856 raid1_add_conf(struct r1conf * conf,struct md_rdev * rdev,int disk,bool replacement) raid1_add_conf() argument
1880 raid1_remove_conf(struct r1conf * conf,int disk) raid1_remove_conf() argument
1903 struct r1conf *conf = mddev->private; raid1_add_disk() local
1958 struct r1conf *conf = mddev->private; raid1_remove_disk() local
2065 struct r1conf *conf = mddev->private; end_sync_write() local
2116 struct r1conf *conf = mddev->private; fix_sync_read_error() local
2238 struct r1conf *conf = mddev->private; process_checks() local
2316 struct r1conf *conf = mddev->private; sync_request_write() local
2376 fix_read_error(struct r1conf * conf,struct r1bio * r1_bio) fix_read_error() argument
2464 struct r1conf *conf = mddev->private; narrow_write_error() local
2532 handle_sync_write_finished(struct r1conf * conf,struct r1bio * r1_bio) handle_sync_write_finished() argument
2552 handle_write_finished(struct r1conf * conf,struct r1bio * r1_bio) handle_write_finished() argument
2593 handle_read_error(struct r1conf * conf,struct r1bio * r1_bio) handle_read_error() argument
2642 struct r1conf *conf = mddev->private; raid1d() local
2707 init_resync(struct r1conf * conf) init_resync() argument
2718 raid1_alloc_init_r1buf(struct r1conf * conf) raid1_alloc_init_r1buf() argument
2748 struct r1conf *conf = mddev->private; raid1_sync_request() local
3047 struct r1conf *conf; setup_conf() local
3187 struct r1conf *conf; raid1_run() local
3269 struct r1conf *conf = priv; raid1_free() local
3331 struct r1conf *conf = mddev->private; raid1_reshape() local
3413 struct r1conf *conf = mddev->private; raid1_quiesce() local
3427 struct r1conf *conf; raid1_takeover() local
[all...]
H A Draid5.c22 * 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
78 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument
80 int hash = (sect >> RAID5_STRIPE_SHIFT(conf)) & HASH_MASK; in stripe_hash()
81 return &conf->stripe_hashtbl[hash]; in stripe_hash()
84 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash() argument
86 return (sect >> RAID5_STRIPE_SHIFT(conf)) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash()
89 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock() argument
90 __acquires(&conf->device_lock) in lock_device_hash_lock()
92 spin_lock_irq(conf in lock_device_hash_lock()
96 unlock_device_hash_lock(struct r5conf * conf,int hash) unlock_device_hash_lock() argument
103 lock_all_device_hash_locks_irq(struct r5conf * conf) lock_all_device_hash_locks_irq() argument
113 unlock_all_device_hash_locks_irq(struct r5conf * conf) unlock_all_device_hash_locks_irq() argument
181 struct r5conf *conf = sh->raid_conf; raid5_wakeup_stripe_thread() local
225 do_release_stripe(struct r5conf * conf,struct stripe_head * sh,struct list_head * temp_inactive_list) do_release_stripe() argument
311 __release_stripe(struct r5conf * conf,struct stripe_head * sh,struct list_head * temp_inactive_list) __release_stripe() argument
326 release_inactive_stripe_list(struct r5conf * conf,struct list_head * temp_inactive_list,int hash) release_inactive_stripe_list() argument
368 release_stripe_list(struct r5conf * conf,struct list_head * temp_inactive_list) release_stripe_list() argument
399 struct r5conf *conf = sh->raid_conf; raid5_release_stripe() local
436 insert_hash(struct r5conf * conf,struct stripe_head * sh) insert_hash() argument
447 get_free_stripe(struct r5conf * conf,int hash) get_free_stripe() argument
505 init_stripe_shared_pages(struct stripe_head * sh,struct r5conf * conf,int disks) init_stripe_shared_pages() argument
582 struct r5conf *conf = sh->raid_conf; init_stripe() local
622 __find_stripe(struct r5conf * conf,sector_t sector,short generation) __find_stripe() argument
635 find_get_stripe(struct r5conf * conf,sector_t sector,short generation,int hash) find_get_stripe() argument
695 raid5_calc_degraded(struct r5conf * conf) raid5_calc_degraded() argument
749 has_failed(struct r5conf * conf) has_failed() argument
795 is_inactive_blocked(struct r5conf * conf,int hash) is_inactive_blocked() argument
807 raid5_get_active_stripe(struct r5conf * conf,struct stripe_request_ctx * ctx,sector_t sector,unsigned int flags) raid5_get_active_stripe() argument
908 struct r5conf *conf = sh->raid_conf; stripe_can_batch() local
917 stripe_add_to_batch_list(struct r5conf * conf,struct stripe_head * sh,struct stripe_head * last_sh) stripe_add_to_batch_list() argument
1015 use_new_offset(struct r5conf * conf,struct stripe_head * sh) use_new_offset() argument
1055 dispatch_defer_bios(struct r5conf * conf,int target,struct bio_list * list) dispatch_defer_bios() argument
1100 flush_deferred_bios(struct r5conf * conf) flush_deferred_bios() argument
1115 defer_issue_bios(struct r5conf * conf,sector_t sector,struct bio_list * bios) defer_issue_bios() argument
1139 struct r5conf *conf = mddev->private; raid5_discard_limits() local
1159 struct r5conf *conf = sh->raid_conf; ops_run_io() local
1387 struct r5conf *conf = sh->raid_conf; async_copy_data() local
1445 struct r5conf *conf = sh->raid_conf; ops_complete_biofill() local
1484 struct r5conf *conf = sh->raid_conf; ops_run_biofill() local
1929 struct r5conf *conf = sh->raid_conf; ops_run_biodrain() local
2286 struct r5conf *conf = sh->raid_conf; raid_run_ops() local
2365 alloc_stripe(struct kmem_cache * sc,gfp_t gfp,int disks,struct r5conf * conf) alloc_stripe() argument
2397 grow_one_stripe(struct r5conf * conf,gfp_t gfp) grow_one_stripe() argument
2420 grow_stripes(struct r5conf * conf,int num) grow_stripes() argument
2485 resize_chunks(struct r5conf * conf,int new_disks,int new_sectors) resize_chunks() argument
2521 resize_stripes(struct r5conf * conf,int newsize) resize_stripes() argument
2695 drop_one_stripe(struct r5conf * conf) drop_one_stripe() argument
2713 shrink_stripes(struct r5conf * conf) shrink_stripes() argument
2726 struct r5conf *conf = sh->raid_conf; raid5_end_read_request() local
2852 struct r5conf *conf = sh->raid_conf; raid5_end_write_request() local
2924 struct r5conf *conf = mddev->private; raid5_error() local
2959 raid5_compute_sector(struct r5conf * conf,sector_t r_sector,int previous,int * dd_idx,struct stripe_head * sh) raid5_compute_sector() argument
3163 struct r5conf *conf = sh->raid_conf; raid5_compute_blocknr() local
3319 delay_towrite(struct r5conf * conf,struct r5dev * dev,struct stripe_head_state * s) delay_towrite() argument
3342 struct r5conf *conf = sh->raid_conf; schedule_reconstruction() local
3449 struct r5conf *conf = sh->raid_conf; stripe_bio_overlaps() local
3509 struct r5conf *conf = sh->raid_conf; __add_stripe_bio() local
3582 stripe_set_idx(sector_t stripe,struct r5conf * conf,int previous,struct stripe_head * sh) stripe_set_idx() argument
3599 handle_failed_stripe(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_failed_stripe() argument
3698 handle_failed_sync(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s) handle_failed_sync() argument
3769 handle_failed_reshape(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s) handle_failed_reshape() argument
4074 handle_stripe_clean_event(struct r5conf * conf,struct stripe_head * sh,int disks) handle_stripe_clean_event() argument
4186 handle_stripe_dirtying(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_stripe_dirtying() argument
4357 handle_parity_checks5(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_parity_checks5() argument
4449 handle_parity_checks6(struct r5conf * conf,struct stripe_head * sh,struct stripe_head_state * s,int disks) handle_parity_checks6() argument
4625 handle_stripe_expansion(struct r5conf * conf,struct stripe_head * sh) handle_stripe_expansion() argument
4686 struct r5conf *conf = sh->raid_conf; analyse_stripe() local
5000 struct r5conf *conf = sh->raid_conf; handle_stripe() local
5396 raid5_activate_delayed(struct r5conf * conf) raid5_activate_delayed() argument
5414 activate_bit_delay(struct r5conf * conf,struct list_head * temp_inactive_list) activate_bit_delay() argument
5433 struct r5conf *conf = mddev->private; in_chunk_boundary() local
5447 add_bio_to_retry(struct bio * bi,struct r5conf * conf) add_bio_to_retry() argument
5460 remove_bio_from_retry(struct r5conf * conf,unsigned int * offset) remove_bio_from_retry() argument
5492 struct r5conf *conf = mddev->private; raid5_align_endio() local
5513 struct r5conf *conf = mddev->private; raid5_read_one_chunk() local
5594 struct r5conf *conf = mddev->private; chunk_aligned_read() local
5618 __get_priority_stripe(struct r5conf * conf,int group) __get_priority_stripe() argument
5723 struct r5conf *conf = mddev->private; raid5_unplug() local
5786 struct r5conf *conf = mddev->private; make_discard_request() local
5903 stripe_ahead_of_reshape(struct mddev * mddev,struct r5conf * conf,struct stripe_head * sh) stripe_ahead_of_reshape() argument
5930 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
5990 get_reshape_loc(struct mddev * mddev,struct r5conf * conf,sector_t logical_sector) get_reshape_loc() argument
6022 struct r5conf *conf = mddev->private; raid5_bitmap_sector_map() local
6049 struct r5conf *conf = mddev->private; raid5_bitmap_sector() local
6081 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
6190 raid5_bio_lowest_chunk_sector(struct r5conf * conf,struct bio * bi) raid5_bio_lowest_chunk_sector() argument
6221 struct r5conf *conf = mddev->private; raid5_make_request() local
6390 struct r5conf *conf = mddev->private; reshape_request() local
6673 struct r5conf *conf = mddev->private; raid5_sync_request() local
6763 retry_aligned_read(struct r5conf * conf,struct bio * raid_bio,unsigned int offset) retry_aligned_read() argument
6832 handle_active_stripes(struct r5conf * conf,int group,struct r5worker * worker,struct list_head * temp_inactive_list) handle_active_stripes() argument
6886 struct r5conf *conf = group->conf; raid5_do_work() local
6936 struct r5conf *conf = mddev->private; raid5d() local
7023 struct r5conf *conf; raid5_show_stripe_cache_size() local
7037 struct r5conf *conf = mddev->private; raid5_set_cache_size() local
7067 struct r5conf *conf; raid5_store_stripe_cache_size() local
7096 struct r5conf *conf = mddev->private; raid5_show_rmw_level() local
7106 struct r5conf *conf = mddev->private; raid5_store_rmw_level() local
7138 struct r5conf *conf; raid5_show_stripe_size() local
7153 struct r5conf *conf; raid5_store_stripe_size() local
7232 struct r5conf *conf; raid5_show_preread_threshold() local
7245 struct r5conf *conf; raid5_store_preread_threshold() local
7277 struct r5conf *conf; raid5_show_skip_copy() local
7290 struct r5conf *conf; raid5_store_skip_copy() local
7329 struct r5conf *conf = mddev->private; stripe_cache_active_show() local
7342 struct r5conf *conf; raid5_show_group_thread_cnt() local
7358 struct r5conf *conf; raid5_store_group_thread_cnt() local
7429 alloc_thread_groups(struct r5conf * conf,int cnt,int * group_cnt,struct r5worker_group ** worker_groups) alloc_thread_groups() argument
7474 free_thread_groups(struct r5conf * conf) free_thread_groups() argument
7485 struct r5conf *conf = mddev->private; raid5_size() local
7498 free_scratch_buffer(struct r5conf * conf,struct raid5_percpu * percpu) free_scratch_buffer() argument
7506 alloc_scratch_buffer(struct r5conf * conf,struct raid5_percpu * percpu) alloc_scratch_buffer() argument
7530 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_dead() local
7536 raid5_free_percpu(struct r5conf * conf) raid5_free_percpu() argument
7545 free_conf(struct r5conf * conf) free_conf() argument
7570 struct r5conf *conf = hlist_entry_safe(node, struct r5conf, node); raid456_cpu_up_prepare() local
7581 raid5_alloc_percpu(struct r5conf * conf) raid5_alloc_percpu() argument
7602 struct r5conf *conf = shrink->private_data; raid5_cache_scan() local
7623 struct r5conf *conf = shrink->private_data; raid5_cache_count() local
7635 struct r5conf *conf; setup_conf() local
7915 raid5_create_ctx_pool(struct r5conf * conf) raid5_create_ctx_pool() argument
7936 struct r5conf *conf = mddev->private; raid5_set_limits() local
7991 struct r5conf *conf; raid5_run() local
8274 struct r5conf *conf = priv; raid5_free() local
8282 struct r5conf *conf = mddev->private; raid5_status() local
8298 print_raid5_conf(struct r5conf * conf) print_raid5_conf() argument
8324 struct r5conf *conf = mddev->private; raid5_spare_active() local
8367 struct r5conf *conf = mddev->private; raid5_remove_disk() local
8446 struct r5conf *conf = mddev->private; raid5_add_disk() local
8534 struct r5conf *conf = mddev->private; raid5_resize() local
8572 struct r5conf *conf = mddev->private; check_stripe_cache() local
8588 struct r5conf *conf = mddev->private; check_reshape() local
8637 struct r5conf *conf = mddev->private; raid5_start_reshape() local
8772 end_reshape(struct r5conf * conf) end_reshape() argument
8811 struct r5conf *conf = mddev->private; raid5_finish_reshape() local
8850 struct r5conf *conf = mddev->private; raid5_quiesce() local
8981 struct r5conf *conf = mddev->private; raid5_check_reshape() local
9124 struct r5conf *conf; raid5_change_consistency_policy() local
9185 struct r5conf *conf = mddev->private; raid5_start() local
9197 struct r5conf *conf = mddev->private; raid5_prepare_suspend() local
9209 struct r5conf *conf = mddev->private; raid5_bitmap_array_sectors() local
[all...]
H A Draid0.c43 struct r0conf *conf = mddev->private; in dump_zones() local
44 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones()
47 conf->nr_strip_zones, str_plural(conf->nr_strip_zones)); in dump_zones()
48 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones()
52 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones()
54 conf->devlist[j * raid_disks + k]->bdev); in dump_zones()
57 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
60 (unsigned long long)conf->strip_zone[j].dev_start>>1, in dump_zones()
62 zone_start = conf in dump_zones()
73 struct r0conf *conf = kzalloc_obj(*conf); create_strip_zones() local
305 find_zone(struct r0conf * conf,sector_t * sectorp) find_zone() argument
330 struct r0conf *conf = mddev->private; map_sector() local
375 struct r0conf *conf = priv; raid0_free() local
406 struct r0conf *conf; raid0_run() local
459 struct r0conf *conf = mddev->private; raid0_handle_discard() local
560 struct r0conf *conf = mddev->private; raid0_map_submit_bio() local
[all...]
H A Dmd-linear.c33 struct linear_conf *conf; in which_dev() local
37 conf = mddev->private; in which_dev()
46 if (sector < conf->disks[mid].end_sector) in which_dev()
52 return conf->disks + lo; in which_dev()
57 struct linear_conf *conf; in linear_size() local
60 conf = mddev->private; in linear_size()
63 array_sectors = conf->array_sectors; in linear_size()
90 struct linear_conf *conf; in linear_conf() local
96 conf = kzalloc_flex(*conf, disks, raid_disks); in linear_conf()
97 if (!conf) in linear_conf()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dcommon-beacon.c43 struct ath_beacon_config *conf, in ath9k_cmn_beacon_config_sta() argument
58 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta()
64 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta()
71 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta()
73 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta()
74 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta()
75 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
76 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta()
77 if (conf->dtim_period > 1) in ath9k_cmn_beacon_config_sta()
86 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta()
[all …]
/linux/drivers/clk/
H A Dclk-sparx5.c59 const struct s5_pll_conf *conf) in s5_calc_freq() argument
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() argument
84 memset(conf, 0, sizeof(*conf)); in s5_search_fractional()
85 conf->div = div; in s5_search_fractional()
86 conf->rot_ena = 1; /* Fractional rate */ in s5_search_fractional()
89 conf->rot_dir = !!d; in s5_search_fractional()
[all …]
/linux/include/linux/
H A Dtextsearch.h79 struct ts_config *conf,
90 void (*finish)(struct ts_config *conf,
106 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument
109 unsigned int ret = conf->ops->find(conf, state); in textsearch_next()
111 if (conf->finish) in textsearch_next()
112 conf->finish(conf, state); in textsearch_next()
125 static inline unsigned int textsearch_find(struct ts_config *conf, in textsearch_find() argument
129 return textsearch_next(conf, state); in textsearch_find()
136 static inline void *textsearch_get_pattern(struct ts_config *conf) in textsearch_get_pattern() argument
138 return conf->ops->get_pattern(conf); in textsearch_get_pattern()
[all …]
/linux/drivers/mfd/
H A Datmel-smc.c26 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_init() argument
28 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init()
99 int atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_timing() argument
119 conf->timings &= ~GENMASK(shift + 3, shift); in atmel_smc_cs_conf_set_timing()
120 conf->timings |= val << shift; in atmel_smc_cs_conf_set_timing()
141 int atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_setup() argument
158 conf->setup &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_setup()
159 conf->setup |= val << shift; in atmel_smc_cs_conf_set_setup()
180 int atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_pulse() argument
197 conf->pulse &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_pulse()
[all …]
/linux/sound/soc/tegra/
H A Dtegra_cif.h50 struct tegra_cif_conf *conf) in tegra_set_cif() argument
54 value = (conf->threshold << TEGRA_ACIF_CTRL_FIFO_TH_SHIFT) | in tegra_set_cif()
55 ((conf->audio_ch - 1) << TEGRA_ACIF_CTRL_AUDIO_CH_SHIFT) | in tegra_set_cif()
56 ((conf->client_ch - 1) << TEGRA_ACIF_CTRL_CLIENT_CH_SHIFT) | in tegra_set_cif()
57 (conf->audio_bits << TEGRA_ACIF_CTRL_AUDIO_BITS_SHIFT) | in tegra_set_cif()
58 (conf->client_bits << TEGRA_ACIF_CTRL_CLIENT_BITS_SHIFT) | in tegra_set_cif()
59 (conf->expand << TEGRA_ACIF_CTRL_EXPAND_SHIFT) | in tegra_set_cif()
60 (conf->stereo_conv << TEGRA_ACIF_CTRL_STEREO_CONV_SHIFT) | in tegra_set_cif()
61 (conf->replicate << TEGRA_ACIF_CTRL_REPLICATE_SHIFT) | in tegra_set_cif()
62 (conf->truncate << TEGRA_ACIF_CTRL_TRUNCATE_SHIFT) | in tegra_set_cif()
[all …]
/linux/net/sched/
H A Dem_text.c54 struct tcf_em_text *conf = data; in em_text_change() local
58 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change()
61 if (!memchr(conf->algo, '\0', sizeof(conf->algo))) in em_text_change()
64 if (conf->from_layer > conf->to_layer) in em_text_change()
67 if (conf->from_layer == conf->to_layer && in em_text_change()
68 conf->from_offset > conf->to_offset) in em_text_change()
72 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf), in em_text_change()
73 conf->pattern_len, GFP_KERNEL, flags); in em_text_change()
96 tm->from_offset = conf->from_offset; in em_text_change()
97 tm->to_offset = conf->to_offset; in em_text_change()
[all …]
/linux/scripts/kconfig/tests/choice/
H A D__init__.py7 def test_oldask0(conf): argument
8 assert conf.oldaskconfig() == 0
9 assert conf.stdout_contains('oldask0_expected_stdout')
12 def test_allyes(conf): argument
13 assert conf.allyesconfig() == 0
14 assert conf.config_contains('allyes_expected_config')
17 def test_allmod(conf): argument
18 assert conf.allmodconfig() == 0
19 assert conf.config_contains('allmod_expected_config')
22 def test_allno(conf): argument
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_port.c98 if (port->conf.portmode == PHY_INTERFACE_MODE_1000BASEX) in sparx5_get_dev2g5_status()
100 else if (port->conf.portmode == PHY_INTERFACE_MODE_2500BASEX) in sparx5_get_dev2g5_status()
111 if (port->conf.portmode == PHY_INTERFACE_MODE_SGMII) { in sparx5_get_dev2g5_status()
126 bool high_speed_dev = sparx5_is_baser(port->conf.portmode); in sparx5_get_sfi_status()
149 if (port->conf.portmode == PHY_INTERFACE_MODE_5GBASER) in sparx5_get_sfi_status()
151 else if (port->conf.portmode == PHY_INTERFACE_MODE_10GBASER) in sparx5_get_sfi_status()
166 status->speed = port->conf.speed; in sparx5_get_port_status()
167 if (port->conf.power_down) { in sparx5_get_port_status()
171 switch (port->conf.portmode) { in sparx5_get_port_status()
191 struct sparx5_port_config *conf, in sparx5_port_error() argument
[all …]
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00config.c24 struct rt2x00intf_conf conf; in rt2x00lib_config_intf() local
27 conf.type = type; in rt2x00lib_config_intf()
31 conf.sync = TSF_SYNC_ADHOC; in rt2x00lib_config_intf()
35 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf()
38 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf()
41 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf()
51 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf()
53 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf()
55 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf()
57 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf()
[all …]
/linux/scripts/kconfig/
H A Dstreamline_config.pl103 foreach my $conf (@searchconfigs) {
104 my $file = $conf->{"file"};
108 if (defined($conf->{"test"})) {
109 `$conf->{"test"} $conf->{"file"} 2>/dev/null`;
113 my $exec = $conf->{"exec"};
237 my $conf = $1;
238 if (defined($selects{$conf})) {
239 $selects{$conf} .= " " . $config;
241 $selects{$conf}
[all...]
/linux/drivers/platform/x86/intel/telemetry/
H A Ddebugfs.c334 struct telemetry_debugfs_conf *conf = debugfs_conf; in telem_pss_states_show() local
362 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show()
363 pss_idle[conf->pss_idle_evts - 1] = in telem_pss_states_show()
365 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show()
369 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id, in telem_pss_states_show()
370 conf->pss_idle_evts - 1, in telem_pss_states_show()
372 conf->pss_idle_data, TELEM_MASK_BIT); in telem_pss_states_show()
374 TELEM_CHECK_AND_PARSE_EVTS(conf->pcs_idle_blkd_id, in telem_pss_states_show()
375 conf->pcs_idle_blkd_evts, in telem_pss_states_show()
378 conf->pcs_idle_blkd_data, in telem_pss_states_show()
[all …]
/linux/drivers/iio/imu/inv_icm42607/
H A Dinv_icm42607_core.c98 .conf = &inv_icm42607_default_conf,
105 .conf = &inv_icm42607_default_conf,
194 disable_wait = clamp(ktime_us_delta(st->conf.gyro_stop, ktime_get()), in inv_icm42607_set_pwr_mgmt0()
222 odr_us = max(odr_us, inv_icm42607_odr_to_period_us(st->conf.accel.odr)); in inv_icm42607_set_pwr_mgmt0()
227 odr_us = max(odr_us, inv_icm42607_odr_to_period_us(st->conf.gyro.odr)); in inv_icm42607_set_pwr_mgmt0()
229 st->conf.gyro_stop = ktime_add_us(ktime_get(), in inv_icm42607_set_pwr_mgmt0()
250 static void inv_icm42607_update_config(struct inv_icm42607_sensor_conf *conf, in inv_icm42607_update_config() argument
254 if (conf->mode < 0) in inv_icm42607_update_config()
255 conf->mode = oldconf->mode; in inv_icm42607_update_config()
256 if (conf->fs < 0) in inv_icm42607_update_config()
[all …]
/linux/drivers/gpu/drm/i915/display/
H A Ddvo_ns2501.c207 u8 conf; /* configuration register 8 */ member
234 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD,
254 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD,
273 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD,
382 const struct ns2501_configuration *conf; member
553 const struct ns2501_configuration *conf; in ns2501_mode_set() local
610 conf = ns2501_modes + mode_idx; in ns2501_mode_set()
611 ns->conf = conf; in ns2501_mode_set()
613 ns2501_writeb(dvo, NS2501_REG8, conf->conf); in ns2501_mode_set()
614 ns2501_writeb(dvo, NS2501_REG1B, conf->pll_a); in ns2501_mode_set()
[all …]
/linux/net/netfilter/
H A Dxt_string.c26 const struct xt_string_info *conf = par->matchinfo; in string_mt() local
29 invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; in string_mt()
31 return (skb_find_text((struct sk_buff *)skb, conf->from_offset, in string_mt()
32 conf->to_offset, conf->config) in string_mt()
40 struct xt_string_info *conf = par->matchinfo; in string_mt_check() local
45 if (conf->from_offset > conf->to_offset) in string_mt_check()
47 if (conf->algo[XT_STRING_MAX_ALGO_NAME_SIZE - 1] != '\0') in string_mt_check()
49 if (conf in string_mt_check()
[all...]
/linux/scripts/kconfig/tests/warn_changed_input/
H A D__init__.py10 def test(conf): argument
15 assert conf.olddefconfig('config') == 0
16 assert 'user-provided values changed by Kconfig' not in conf.stderr
18 assert conf.olddefconfig('config', extra_env=warn_changed_input) == 0
19 assert conf.stderr_contains('expected_stderr')
20 assert conf.config_matches('expected_config')
22 assert conf.olddefconfig('config', extra_env=warn_changed_input,
24 assert conf.stderr_contains('expected_stderr')
26 assert conf.savedefconfig('config', extra_env=warn_changed_input) == 0
27 assert conf
[all...]
/linux/lib/
H A Dtextsearch.c205 struct ts_config *conf, in get_linear_data() argument
231 unsigned int textsearch_find_continuous(struct ts_config *conf, in textsearch_find_continuous() argument
237 conf->get_next_block = get_linear_data; in textsearch_find_continuous()
241 return textsearch_find(conf, state); in textsearch_find_continuous()
267 struct ts_config *conf; in textsearch_prepare() local
289 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare()
290 if (IS_ERR(conf)) { in textsearch_prepare()
291 err = PTR_ERR(conf); in textsearch_prepare()
295 conf->ops = ops; in textsearch_prepare()
296 return conf; in textsearch_prepare()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dnan.c22 struct cfg80211_nan_conf *conf) in mt7925_nan_set_5g_channel() argument
27 chan = conf->band_cfgs[NL80211_BAND_5GHZ].chan; in mt7925_nan_set_5g_channel()
46 struct cfg80211_nan_conf *conf)
49 cpu_to_le16(conf->scan_period < 255 ? conf->scan_period : 255); in mt7925_nan_set_2g_support()
51 conf->scan_dwell_time < 255 ? conf->scan_dwell_time : 255; in mt7925_nan_set_2g_support()
66 const struct cfg80211_nan_conf *conf)
68 mvif->nan.conf.master_pref = conf in mt7925_nan_set_dw_interval() argument
48 mt7925_nan_set_2g_support(struct mt7925_nan_enable_req_tlv * req,struct cfg80211_nan_conf * conf) mt7925_nan_set_2g_support() argument
84 mt7925_nan_set_disc_beacon(struct mt7925_nan_enable_req_tlv * req,struct cfg80211_nan_conf * conf) mt7925_nan_set_disc_beacon() argument
93 mt7925_nan_set_rssi_thresholds(struct mt7925_nan_enable_req_tlv * req,struct cfg80211_nan_conf * conf) mt7925_nan_set_rssi_thresholds() argument
115 mt7925_nan_set_scan_params(struct mt7925_nan_enable_req_tlv * req,struct cfg80211_nan_conf * conf) mt7925_nan_set_scan_params() argument
135 mt7925_nan_update_conf(struct mt792x_vif * mvif,const struct cfg80211_nan_conf * conf) mt7925_nan_update_conf() argument
181 mt7925_nan_enable(struct ieee80211_vif * vif,struct mt792x_dev * dev,struct cfg80211_nan_conf * conf) mt7925_nan_enable() argument
267 mt7925_nan_dw_tlv(struct sk_buff * skb,struct cfg80211_nan_conf * conf) mt7925_nan_dw_tlv() argument
327 mt7925_nan_sync_rssi_tlv(struct sk_buff * skb,struct cfg80211_nan_conf * conf) mt7925_nan_sync_rssi_tlv() argument
362 mt7925_nan_change_configure(struct ieee80211_vif * vif,struct mt792x_dev * dev,struct cfg80211_nan_conf * conf) mt7925_nan_change_configure() argument
[all...]
/linux/drivers/ata/
H A Dpata_piccolo.c37 u16 conf; in tosh_set_piomode() local
38 pci_read_config_word(pdev, 0x50, &conf); in tosh_set_piomode()
39 conf &= 0xE088; in tosh_set_piomode()
40 conf |= pio[adev->pio_mode - XFER_PIO_0]; in tosh_set_piomode()
41 pci_write_config_word(pdev, 0x50, conf); in tosh_set_piomode()
47 u32 conf; in tosh_set_dmamode() local
48 pci_read_config_dword(pdev, 0x5C, &conf); in tosh_set_dmamode()
49 conf &= 0x78FFE088; /* Keep the other bits */ in tosh_set_dmamode()
52 conf |= 0x80000000; in tosh_set_dmamode()
53 conf |= (udma + 2) << 28; in tosh_set_dmamode()
[all …]
/linux/net/mac80211/
H A Dchan.c49 if (nan_channel->chanctx_conf != &ctx->conf) in ieee80211_chanctx_user_iter_next_nan_channel()
82 rcu_access_pointer(link->conf->chanctx_conf) == &ctx->conf) { in ieee80211_chanctx_user_iter_next_link()
86 iter->chanreq = &link->conf->chanreq; in ieee80211_chanctx_user_iter_next_link()
249 if (radio_idx >= 0 && ctx->conf.radio_idx != radio_idx) in ieee80211_num_chanctx()
270 struct ieee80211_chanctx_conf *conf; in ieee80211_link_get_chanctx() local
272 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_link_get_chanctx()
274 if (!conf) in ieee80211_link_get_chanctx()
277 return container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_link_get_chanctx()
489 width = ieee80211_sta_current_bw(link_sta, &link->conf->chanreq.oper, in ieee80211_get_sta_bw()
539 return link->conf->chanreq.oper.width; in ieee80211_get_width_of_link()
[all …]

12345678910>>...27