/kernel/linux/linux-5.10/drivers/md/ |
H A D | md.c | 1443 struct md_rdev *rdev2; in super_90_sync() local 1513 rdev_for_each(rdev2, mddev) { in super_90_sync() 1516 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync() 1518 if (rdev2->raid_disk >= 0 && in super_90_sync() 1525 if (rdev2->raid_disk < 0 || in super_90_sync() 1526 test_bit(Faulty, &rdev2->flags)) in super_90_sync() 1529 desc_nr = rdev2->raid_disk; in super_90_sync() 1532 rdev2->desc_nr = desc_nr; in super_90_sync() 1533 d = &sb->disks[rdev2->desc_nr]; in super_90_sync() 1535 d->number = rdev2 in super_90_sync() 2034 struct md_rdev *rdev2; super_1_sync() local 2335 struct md_rdev *rdev, *rdev2; match_mddev_units() local 3470 struct md_rdev *rdev2; rdev_size_store() local 5981 struct md_rdev *rdev2; md_run() local 6864 struct md_rdev *rdev2; md_add_new_disk() local 9640 struct md_rdev *rdev2, *tmp; check_sb_changes() local [all...] |
H A D | raid0.c | 69 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() local 94 rdev_for_each(rdev2, mddev) { in create_strip_zones() 100 bdevname(rdev2->bdev,b2), in create_strip_zones() 101 (unsigned long long)rdev2->sectors); in create_strip_zones() 102 if (rdev2 == rdev1) { in create_strip_zones() 107 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
|
H A D | raid10.c | 2204 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error() local 2206 ok = rdev_set_badblocks(rdev2, addr, s, 0); in fix_recovery_read_error() 4602 struct md_rdev *rdev2; in reshape_request() local 4604 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request() 4607 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request() 4610 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request() 4613 bio_set_dev(b, rdev2->bdev); in reshape_request() 4615 rdev2->new_data_offset; in reshape_request()
|
H A D | raid5.c | 4701 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4703 if (rdev2 == rdev) in analyse_stripe() 4705 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4707 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4714 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4716 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4718 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4723 struct md_rdev *rdev2 in analyse_stripe() local [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md.c | 1402 struct md_rdev *rdev2; in super_90_sync() local 1472 rdev_for_each(rdev2, mddev) { in super_90_sync() 1475 int is_active = test_bit(In_sync, &rdev2->flags); in super_90_sync() 1477 if (rdev2->raid_disk >= 0 && in super_90_sync() 1484 if (rdev2->raid_disk < 0 || in super_90_sync() 1485 test_bit(Faulty, &rdev2->flags)) in super_90_sync() 1488 desc_nr = rdev2->raid_disk; in super_90_sync() 1491 rdev2->desc_nr = desc_nr; in super_90_sync() 1492 d = &sb->disks[rdev2->desc_nr]; in super_90_sync() 1494 d->number = rdev2 in super_90_sync() 1990 struct md_rdev *rdev2; super_1_sync() local 2290 struct md_rdev *rdev, *rdev2; match_mddev_units() local 3336 struct md_rdev *rdev2; md_rdev_overlaps() local 5976 struct md_rdev *rdev2; md_run() local 6880 struct md_rdev *rdev2; md_add_new_disk() local 9779 struct md_rdev *rdev2, *tmp; check_sb_changes() local [all...] |
H A D | raid0.c | 67 struct md_rdev *smallest, *rdev1, *rdev2, *rdev, **dev; in create_strip_zones() local 90 rdev_for_each(rdev2, mddev) { in create_strip_zones() 96 rdev2->bdev, in create_strip_zones() 97 (unsigned long long)rdev2->sectors); in create_strip_zones() 98 if (rdev2 == rdev1) { in create_strip_zones() 103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
|
H A D | raid10.c | 2594 struct md_rdev *rdev2 = conf->mirrors[dw].rdev; in fix_recovery_read_error() local 2596 ok = rdev_set_badblocks(rdev2, addr, s, 0); in fix_recovery_read_error() 4984 struct md_rdev *rdev2; in reshape_request() local 4986 rdev2 = rcu_dereference(conf->mirrors[d].replacement); in reshape_request() 4989 rdev2 = rcu_dereference(conf->mirrors[d].rdev); in reshape_request() 4992 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) in reshape_request() 4995 bio_set_dev(b, rdev2->bdev); in reshape_request() 4997 rdev2->new_data_offset; in reshape_request()
|
H A D | raid5.c | 4814 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4816 if (rdev2 == rdev) in analyse_stripe() 4818 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4820 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4827 struct md_rdev *rdev2 = rcu_dereference( in analyse_stripe() local 4829 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { in analyse_stripe() 4831 atomic_inc(&rdev2->nr_pending); in analyse_stripe() 4836 struct md_rdev *rdev2 in analyse_stripe() local [all...] |
/kernel/linux/linux-5.10/net/wireless/ |
H A D | core.c | 95 struct cfg80211_registered_device *rdev2; in cfg80211_dev_check_name() local 119 list_for_each_entry(rdev2, &cfg80211_rdev_list, list) in cfg80211_dev_check_name() 120 if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0) in cfg80211_dev_check_name()
|
/kernel/linux/linux-5.10/drivers/regulator/ |
H A D | core.c | 222 * @rdev2: second regulator 228 struct regulator_dev *rdev2, in regulator_lock_two() 239 ret = regulator_lock_nested(rdev2, ww_ctx); in regulator_lock_two() 247 * Start of loop: rdev1 was locked and rdev2 was contended. in regulator_lock_two() 248 * Need to unlock rdev1, slowly lock rdev2, then try rdev1 in regulator_lock_two() 253 ww_mutex_lock_slow(&rdev2->mutex, ww_ctx); in regulator_lock_two() 254 rdev2->ref_cnt++; in regulator_lock_two() 255 rdev2->mutex_owner = current; in regulator_lock_two() 261 rdev1 = rdev2; in regulator_lock_two() 262 rdev2 in regulator_lock_two() 227 regulator_lock_two(struct regulator_dev *rdev1, struct regulator_dev *rdev2, struct ww_acquire_ctx *ww_ctx) regulator_lock_two() argument 282 regulator_unlock_two(struct regulator_dev *rdev1, struct regulator_dev *rdev2, struct ww_acquire_ctx *ww_ctx) regulator_unlock_two() argument [all...] |
/kernel/linux/linux-6.6/net/wireless/ |
H A D | core.c | 95 struct cfg80211_registered_device *rdev2; in cfg80211_dev_check_name() local 119 list_for_each_entry(rdev2, &cfg80211_rdev_list, list) in cfg80211_dev_check_name() 120 if (strcmp(newname, wiphy_name(&rdev2->wiphy)) == 0) in cfg80211_dev_check_name()
|
/kernel/linux/linux-6.6/drivers/regulator/ |
H A D | core.c | 213 * @rdev2: second regulator 219 struct regulator_dev *rdev2, in regulator_lock_two() 230 ret = regulator_lock_nested(rdev2, ww_ctx); in regulator_lock_two() 237 contended = rdev2; in regulator_lock_two() 260 * @rdev2: second regulator 267 struct regulator_dev *rdev2, in regulator_unlock_two() 270 regulator_unlock(rdev2); in regulator_unlock_two() 218 regulator_lock_two(struct regulator_dev *rdev1, struct regulator_dev *rdev2, struct ww_acquire_ctx *ww_ctx) regulator_lock_two() argument 266 regulator_unlock_two(struct regulator_dev *rdev1, struct regulator_dev *rdev2, struct ww_acquire_ctx *ww_ctx) regulator_unlock_two() argument
|