disk_idx          368 drivers/md/md-multipath.c 	int disk_idx;
disk_idx          401 drivers/md/md-multipath.c 		disk_idx = rdev->raid_disk;
disk_idx          402 drivers/md/md-multipath.c 		if (disk_idx < 0 ||
disk_idx          403 drivers/md/md-multipath.c 		    disk_idx >= mddev->raid_disks)
disk_idx          406 drivers/md/md-multipath.c 		disk = conf->multipaths + disk_idx;
disk_idx         2998 drivers/md/raid1.c 		int disk_idx = rdev->raid_disk;
disk_idx         2999 drivers/md/raid1.c 		if (disk_idx >= mddev->raid_disks
disk_idx         3000 drivers/md/raid1.c 		    || disk_idx < 0)
disk_idx         3003 drivers/md/raid1.c 			disk = conf->mirrors + mddev->raid_disks + disk_idx;
disk_idx         3005 drivers/md/raid1.c 			disk = conf->mirrors + disk_idx;
disk_idx         3726 drivers/md/raid10.c 	int i, disk_idx, chunk_size;
disk_idx         3779 drivers/md/raid10.c 		disk_idx = rdev->raid_disk;
disk_idx         3780 drivers/md/raid10.c 		if (disk_idx < 0)
disk_idx         3782 drivers/md/raid10.c 		if (disk_idx >= conf->geo.raid_disks &&
disk_idx         3783 drivers/md/raid10.c 		    disk_idx >= conf->prev.raid_disks)
disk_idx         3785 drivers/md/raid10.c 		disk = conf->mirrors + disk_idx;
disk_idx         3510 drivers/md/raid5.c static int want_replace(struct stripe_head *sh, int disk_idx)
disk_idx         3516 drivers/md/raid5.c 	rdev = rcu_dereference(sh->raid_conf->disks[disk_idx].replacement);
disk_idx         3528 drivers/md/raid5.c 			   int disk_idx, int disks)
disk_idx         3530 drivers/md/raid5.c 	struct r5dev *dev = &sh->dev[disk_idx];
disk_idx         3549 drivers/md/raid5.c 	    (s->replacing && want_replace(sh, disk_idx)))
disk_idx         3624 drivers/md/raid5.c 		       int disk_idx, int disks)
disk_idx         3626 drivers/md/raid5.c 	struct r5dev *dev = &sh->dev[disk_idx];
disk_idx         3629 drivers/md/raid5.c 	if (need_this_block(sh, s, disk_idx, disks)) {
disk_idx         3647 drivers/md/raid5.c 		    ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) ||
disk_idx         3648 drivers/md/raid5.c 		    (s->failed && (disk_idx == s->failed_num[0] ||
disk_idx         3649 drivers/md/raid5.c 				   disk_idx == s->failed_num[1])))) {
disk_idx         3654 drivers/md/raid5.c 			       (unsigned long long)sh->sector, disk_idx);
disk_idx         3658 drivers/md/raid5.c 			sh->ops.target = disk_idx;
disk_idx         3675 drivers/md/raid5.c 				if (other == disk_idx)
disk_idx         3684 drivers/md/raid5.c 			       disk_idx, other);
disk_idx         3687 drivers/md/raid5.c 			set_bit(R5_Wantcompute, &sh->dev[disk_idx].flags);
disk_idx         3689 drivers/md/raid5.c 			sh->ops.target = disk_idx;
disk_idx         3699 drivers/md/raid5.c 				disk_idx, s->syncing);