Lines Matching refs:vtarget
430 VirtTarget *vtarget; in mptfc_register_dev() local
473 vtarget = ri->starget->hostdata; in mptfc_register_dev()
474 if (vtarget) { in mptfc_register_dev()
475 vtarget->id = pg0->CurrentTargetID; in mptfc_register_dev()
476 vtarget->channel = pg0->CurrentBus; in mptfc_register_dev()
477 vtarget->deleted = 0; in mptfc_register_dev()
533 VirtTarget *vtarget; in mptfc_target_alloc() local
538 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL); in mptfc_target_alloc()
539 if (!vtarget) in mptfc_target_alloc()
541 starget->hostdata = vtarget; in mptfc_target_alloc()
548 vtarget->id = ri->pg0.CurrentTargetID; in mptfc_target_alloc()
549 vtarget->channel = ri->pg0.CurrentBus; in mptfc_target_alloc()
555 kfree(vtarget); in mptfc_target_alloc()
570 VirtTarget *vtarget) in mptfc_dump_lun_info() argument
583 vtarget->num_luns, in mptfc_dump_lun_info()
601 VirtTarget *vtarget; in mptfc_slave_alloc() local
625 vtarget = starget->hostdata; in mptfc_slave_alloc()
627 if (vtarget->num_luns == 0) { in mptfc_slave_alloc()
628 vtarget->ioc_id = ioc->id; in mptfc_slave_alloc()
629 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; in mptfc_slave_alloc()
632 vdevice->vtarget = vtarget; in mptfc_slave_alloc()
635 vtarget->num_luns++; in mptfc_slave_alloc()
638 mptfc_dump_lun_info(ioc, rport, sdev, vtarget); in mptfc_slave_alloc()
651 if (!vdevice || !vdevice->vtarget) { in mptfc_qcmd()
1088 VirtTarget *vtarget; in mptfc_setup_reset() local
1098 vtarget = starget->hostdata; in mptfc_setup_reset()
1099 if (vtarget) in mptfc_setup_reset()
1100 vtarget->deleted = 1; in mptfc_setup_reset()
1123 VirtTarget *vtarget; in mptfc_rescan_devices() local
1153 vtarget = starget->hostdata; in mptfc_rescan_devices()
1154 if (vtarget) in mptfc_rescan_devices()
1155 vtarget->deleted = 1; in mptfc_rescan_devices()