Lines Matching refs:vtarget
392 mptscsih_issue_sep_command(MPT_ADAPTER *ioc, VirtTarget *vtarget, in mptscsih_issue_sep_command() argument
403 if (vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_issue_sep_command()
414 SEPMsg->Bus = vtarget->channel; in mptscsih_issue_sep_command()
415 SEPMsg->TargetID = vtarget->id; in mptscsih_issue_sep_command()
596 VirtTarget *vtarget; in mptscsih_io_done() local
635 if (!vdevice || !vdevice->vtarget || in mptscsih_io_done()
636 vdevice->vtarget->deleted) { in mptscsih_io_done()
732 vtarget = vdevice->vtarget; in mptscsih_io_done()
733 if (vtarget->tflags & MPT_TARGET_FLAGS_LED_ON) { in mptscsih_io_done()
734 mptscsih_issue_sep_command(ioc, vtarget, in mptscsih_io_done()
736 vtarget->tflags &= ~MPT_TARGET_FLAGS_LED_ON; in mptscsih_io_done()
757 vtarget && in mptscsih_io_done()
758 vdevice->vtarget-> in mptscsih_io_done()
764 vdevice->vtarget) in mptscsih_io_done()
765 vdevice->vtarget-> in mptscsih_io_done()
1098 if (vdevice->vtarget->tflags & in mptscsih_search_running_cmds()
1104 if ((mf->Bus != vdevice->vtarget->channel) || in mptscsih_search_running_cmds()
1105 (mf->TargetID != vdevice->vtarget->id) || in mptscsih_search_running_cmds()
1121 vdevice->vtarget->channel, vdevice->vtarget->id, in mptscsih_search_running_cmds()
1369 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) && in mptscsih_qcmd()
1378 pScsiReq->TargetID = (u8) vdevice->vtarget->id; in mptscsih_qcmd()
1379 pScsiReq->Bus = vdevice->vtarget->channel; in mptscsih_qcmd()
1381 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_qcmd()
1708 if (!vdevice || !vdevice->vtarget) { in mptscsih_abort()
1720 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_abort()
1731 if (vdevice->vtarget->raidVolume) { in mptscsih_abort()
1771 vdevice->vtarget->channel, in mptscsih_abort()
1772 vdevice->vtarget->id, vdevice->lun, in mptscsih_abort()
1826 if (!vdevice || !vdevice->vtarget) { in mptscsih_dev_reset()
1833 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_dev_reset()
1840 vdevice->vtarget->channel, in mptscsih_dev_reset()
1841 vdevice->vtarget->id, 0, 0, in mptscsih_dev_reset()
1889 if (!vdevice || !vdevice->vtarget) in mptscsih_bus_reset()
1893 vdevice->vtarget->channel, 0, 0, 0, in mptscsih_bus_reset()
2287 VirtTarget *vtarget; in mptscsih_slave_destroy() local
2292 vtarget = starget->hostdata; in mptscsih_slave_destroy()
2298 vtarget->num_luns--; in mptscsih_slave_destroy()
2316 VirtTarget *vtarget; in mptscsih_change_queue_depth() local
2322 vtarget = starget->hostdata; in mptscsih_change_queue_depth()
2325 if (!(vtarget->tflags & MPT_TARGET_FLAGS_Q_YES)) in mptscsih_change_queue_depth()
2328 vtarget->minSyncFactor <= MPT_ULTRA160) in mptscsih_change_queue_depth()
2354 VirtTarget *vtarget; in mptscsih_slave_configure() local
2361 vtarget = starget->hostdata; in mptscsih_slave_configure()
2377 ioc->name, sdev->queue_depth, vtarget->tflags)); in mptscsih_slave_configure()
2382 ioc->name, vtarget->negoFlags, vtarget->maxOffset, in mptscsih_slave_configure()
2383 vtarget->minSyncFactor)); in mptscsih_slave_configure()
2430 if ((sense_data[12] == 0x5D) && (vdevice->vtarget->raidVolume == 0)) { in mptscsih_copy_sense_data()
2447 vdevice->vtarget, MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT); in mptscsih_copy_sense_data()
2448 vdevice->vtarget->tflags |= in mptscsih_copy_sense_data()
3017 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_synchronize_cache()
3020 if (vdevice->vtarget->type != TYPE_DISK || vdevice->vtarget->deleted || in mptscsih_synchronize_cache()
3034 iocmd.channel = vdevice->vtarget->channel; in mptscsih_synchronize_cache()
3035 iocmd.id = vdevice->vtarget->id; in mptscsih_synchronize_cache()