Lines Matching refs:vtarget
437 VirtTarget *vtarget; in mptfc_register_dev() local
480 vtarget = ri->starget->hostdata; in mptfc_register_dev()
481 if (vtarget) { in mptfc_register_dev()
482 vtarget->id = pg0->CurrentTargetID; in mptfc_register_dev()
483 vtarget->channel = pg0->CurrentBus; in mptfc_register_dev()
484 vtarget->deleted = 0; in mptfc_register_dev()
541 VirtTarget *vtarget; in mptfc_target_alloc() local
546 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL); in mptfc_target_alloc()
547 if (!vtarget) in mptfc_target_alloc()
549 starget->hostdata = vtarget; in mptfc_target_alloc()
556 vtarget->id = ri->pg0.CurrentTargetID; in mptfc_target_alloc()
557 vtarget->channel = ri->pg0.CurrentBus; in mptfc_target_alloc()
563 kfree(vtarget); in mptfc_target_alloc()
578 VirtTarget *vtarget) in mptfc_dump_lun_info() argument
591 vtarget->num_luns, in mptfc_dump_lun_info()
609 VirtTarget *vtarget; in mptfc_slave_alloc() local
633 vtarget = starget->hostdata; in mptfc_slave_alloc()
635 if (vtarget->num_luns == 0) { in mptfc_slave_alloc()
636 vtarget->ioc_id = ioc->id; in mptfc_slave_alloc()
637 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; in mptfc_slave_alloc()
640 vdevice->vtarget = vtarget; in mptfc_slave_alloc()
643 vtarget->num_luns++; in mptfc_slave_alloc()
646 mptfc_dump_lun_info(ioc, rport, sdev, vtarget); in mptfc_slave_alloc()
659 if (!vdevice || !vdevice->vtarget) { in mptfc_qcmd_lck()
1098 VirtTarget *vtarget; in mptfc_setup_reset() local
1108 vtarget = starget->hostdata; in mptfc_setup_reset()
1109 if (vtarget) in mptfc_setup_reset()
1110 vtarget->deleted = 1; in mptfc_setup_reset()
1133 VirtTarget *vtarget; in mptfc_rescan_devices() local
1163 vtarget = starget->hostdata; in mptfc_rescan_devices()
1164 if (vtarget) in mptfc_rescan_devices()
1165 vtarget->deleted = 1; in mptfc_rescan_devices()