diff options
author | Eric Moore <eric.moore@lsi.com> | 2007-09-14 20:48:19 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:48:42 -0400 |
commit | a69de507aae293e32d22e873f34f25f49b2db3b2 (patch) | |
tree | c500e4b79da7a6462868b2d073f86dc07f4de953 /drivers/message/fusion/mptfc.c | |
parent | 8d6d83e90b874b0d6027d2bbf1d8c76dbf26e931 (diff) |
[SCSI] mpt fusion: rename vdev to vdevice
common naming of vdevice through out driver
Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/message/fusion/mptfc.c')
-rw-r--r-- | drivers/message/fusion/mptfc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index 6c6299485f4e..061702d32888 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c | |||
@@ -213,7 +213,7 @@ mptfc_block_error_handler(struct scsi_cmnd *SCpnt, | |||
213 | if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata) { | 213 | if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata) { |
214 | dfcprintk (hd->ioc, printk(MYIOC_s_DEBUG_FMT | 214 | dfcprintk (hd->ioc, printk(MYIOC_s_DEBUG_FMT |
215 | "%s.%d: %d:%d, failing recovery, " | 215 | "%s.%d: %d:%d, failing recovery, " |
216 | "port state %d, vdev %p.\n", caller, | 216 | "port state %d, vdevice %p.\n", caller, |
217 | ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name, | 217 | ((MPT_SCSI_HOST *) shost->hostdata)->ioc->name, |
218 | ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no, | 218 | ((MPT_SCSI_HOST *) shost->hostdata)->ioc->sh->host_no, |
219 | SCpnt->device->id, SCpnt->device->lun, ready, | 219 | SCpnt->device->id, SCpnt->device->lun, ready, |
@@ -470,7 +470,7 @@ mptfc_register_dev(MPT_ADAPTER *ioc, int channel, FCDevicePage0_t *pg0) | |||
470 | /* | 470 | /* |
471 | * if already mapped, remap here. If not mapped, | 471 | * if already mapped, remap here. If not mapped, |
472 | * target_alloc will allocate vtarget and map, | 472 | * target_alloc will allocate vtarget and map, |
473 | * slave_alloc will fill in vdev from vtarget. | 473 | * slave_alloc will fill in vdevice from vtarget. |
474 | */ | 474 | */ |
475 | if (ri->starget) { | 475 | if (ri->starget) { |
476 | vtarget = ri->starget->hostdata; | 476 | vtarget = ri->starget->hostdata; |
@@ -602,7 +602,7 @@ mptfc_slave_alloc(struct scsi_device *sdev) | |||
602 | { | 602 | { |
603 | MPT_SCSI_HOST *hd; | 603 | MPT_SCSI_HOST *hd; |
604 | VirtTarget *vtarget; | 604 | VirtTarget *vtarget; |
605 | VirtDevice *vdev; | 605 | VirtDevice *vdevice; |
606 | struct scsi_target *starget; | 606 | struct scsi_target *starget; |
607 | struct fc_rport *rport; | 607 | struct fc_rport *rport; |
608 | 608 | ||
@@ -615,15 +615,15 @@ mptfc_slave_alloc(struct scsi_device *sdev) | |||
615 | 615 | ||
616 | hd = (MPT_SCSI_HOST *)sdev->host->hostdata; | 616 | hd = (MPT_SCSI_HOST *)sdev->host->hostdata; |
617 | 617 | ||
618 | vdev = kzalloc(sizeof(VirtDevice), GFP_KERNEL); | 618 | vdevice = kzalloc(sizeof(VirtDevice), GFP_KERNEL); |
619 | if (!vdev) { | 619 | if (!vdevice) { |
620 | printk(MYIOC_s_ERR_FMT "slave_alloc kmalloc(%zd) FAILED!\n", | 620 | printk(MYIOC_s_ERR_FMT "slave_alloc kmalloc(%zd) FAILED!\n", |
621 | hd->ioc->name, sizeof(VirtDevice)); | 621 | hd->ioc->name, sizeof(VirtDevice)); |
622 | return -ENOMEM; | 622 | return -ENOMEM; |
623 | } | 623 | } |
624 | 624 | ||
625 | 625 | ||
626 | sdev->hostdata = vdev; | 626 | sdev->hostdata = vdevice; |
627 | vtarget = starget->hostdata; | 627 | vtarget = starget->hostdata; |
628 | 628 | ||
629 | if (vtarget->num_luns == 0) { | 629 | if (vtarget->num_luns == 0) { |
@@ -631,8 +631,8 @@ mptfc_slave_alloc(struct scsi_device *sdev) | |||
631 | vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; | 631 | vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; |
632 | } | 632 | } |
633 | 633 | ||
634 | vdev->vtarget = vtarget; | 634 | vdevice->vtarget = vtarget; |
635 | vdev->lun = sdev->lun; | 635 | vdevice->lun = sdev->lun; |
636 | 636 | ||
637 | vtarget->num_luns++; | 637 | vtarget->num_luns++; |
638 | 638 | ||
@@ -648,9 +648,9 @@ mptfc_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) | |||
648 | struct mptfc_rport_info *ri; | 648 | struct mptfc_rport_info *ri; |
649 | struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); | 649 | struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); |
650 | int err; | 650 | int err; |
651 | VirtDevice *vdev = SCpnt->device->hostdata; | 651 | VirtDevice *vdevice = SCpnt->device->hostdata; |
652 | 652 | ||
653 | if (!vdev || !vdev->vtarget) { | 653 | if (!vdevice || !vdevice->vtarget) { |
654 | SCpnt->result = DID_NO_CONNECT << 16; | 654 | SCpnt->result = DID_NO_CONNECT << 16; |
655 | done(SCpnt); | 655 | done(SCpnt); |
656 | return 0; | 656 | return 0; |