Lines Matching refs:vtarget

328 mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget,  in mptspi_initTarget()  argument
338 if (vtarget == NULL) in mptspi_initTarget()
341 vtarget->type = sdev->type; in mptspi_initTarget()
346 vtarget->tflags |= MPT_TARGET_FLAGS_SAF_TE_ISSUED; in mptspi_initTarget()
347 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget()
349 !(vtarget->tflags & MPT_TARGET_FLAGS_SAF_TE_ISSUED )) { in mptspi_initTarget()
357 vtarget->tflags |= MPT_TARGET_FLAGS_SAF_TE_ISSUED; in mptspi_initTarget()
358 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget()
362 mptspi_setTargetNegoParms(hd, vtarget, sdev); in mptspi_initTarget()
401 VirtTarget *vtarget; in mptspi_target_alloc() local
408 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL); in mptspi_target_alloc()
409 if (!vtarget) in mptspi_target_alloc()
412 vtarget->ioc_id = ioc->id; in mptspi_target_alloc()
413 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; in mptspi_target_alloc()
414 vtarget->id = (u8)starget->id; in mptspi_target_alloc()
415 vtarget->channel = (u8)starget->channel; in mptspi_target_alloc()
416 vtarget->starget = starget; in mptspi_target_alloc()
417 starget->hostdata = vtarget; in mptspi_target_alloc()
422 vtarget->tflags |= MPT_TARGET_FLAGS_RAID_COMPONENT; in mptspi_target_alloc()
424 vtarget->channel = 0; in mptspi_target_alloc()
426 vtarget->id = mptscsih_raid_id_to_num(ioc, 0, in mptspi_target_alloc()
432 vtarget->raidVolume = 1; in mptspi_target_alloc()
686 VirtTarget *vtarget = scsi_target(sdev)->hostdata; in mptspi_dv_device() local
696 mptscsih_quiesce_raid(hd, 1, vtarget->channel, vtarget->id) < 0) { in mptspi_dv_device()
707 mptscsih_quiesce_raid(hd, 0, vtarget->channel, vtarget->id) < 0) in mptspi_dv_device()
719 VirtTarget *vtarget; in mptspi_slave_alloc() local
739 vtarget = starget->hostdata; in mptspi_slave_alloc()
740 vdevice->vtarget = vtarget; in mptspi_slave_alloc()
741 vtarget->num_luns++; in mptspi_slave_alloc()
752 VirtTarget *vtarget = scsi_target(sdev)->hostdata; in mptspi_slave_configure() local
755 mptspi_initTarget(hd, vtarget, sdev); in mptspi_slave_configure()
783 if (!vdevice || !vdevice->vtarget) { in mptspi_qcmd()
805 VirtTarget *vtarget = starget->hostdata; in mptspi_slave_destroy() local
809 if (vtarget->num_luns == 1 && vdevice->configured_lun) { in mptspi_slave_destroy()
1064 VirtTarget *vtarget = starget->hostdata; in MPTSPI_SIMPLE_TRANSPORT_PARM() local
1067 if ((vtarget->negoFlags & MPT_TARGET_NO_NEGO_QAS) || in MPTSPI_SIMPLE_TRANSPORT_PARM()
1130 VirtTarget *vtarget = starget->hostdata; in mpt_work_wrapper() local
1138 if(vtarget->id != disk) in mpt_work_wrapper()
1141 starget_printk(KERN_INFO, vtarget->starget, MYIOC_s_FMT in mpt_work_wrapper()