Lines Matching refs:starget
98 static int mptfc_target_alloc(struct scsi_target *starget);
101 static void mptfc_target_destroy(struct scsi_target *starget);
479 if (ri->starget) { in mptfc_register_dev()
480 vtarget = ri->starget->hostdata; in mptfc_register_dev()
517 mptfc_target_destroy(struct scsi_target *starget) in mptfc_target_destroy() argument
522 rport = starget_to_rport(starget); in mptfc_target_destroy()
526 ri->starget = NULL; in mptfc_target_destroy()
528 kfree(starget->hostdata); in mptfc_target_destroy()
529 starget->hostdata = NULL; in mptfc_target_destroy()
538 mptfc_target_alloc(struct scsi_target *starget) in mptfc_target_alloc() argument
548 starget->hostdata = vtarget; in mptfc_target_alloc()
551 rport = starget_to_rport(starget); in mptfc_target_alloc()
557 ri->starget = starget; in mptfc_target_alloc()
563 starget->hostdata = NULL; in mptfc_target_alloc()
610 struct scsi_target *starget; in mptfc_slave_alloc() local
614 starget = scsi_target(sdev); in mptfc_slave_alloc()
615 rport = starget_to_rport(starget); in mptfc_slave_alloc()
632 vtarget = starget->hostdata; in mptfc_slave_alloc()
1094 struct scsi_target *starget; in mptfc_setup_reset() local
1103 starget = ri->starget; in mptfc_setup_reset()
1104 if (starget) { in mptfc_setup_reset()
1105 vtarget = starget->hostdata; in mptfc_setup_reset()
1129 struct scsi_target *starget; in mptfc_rescan_devices() local
1158 starget = ri->starget; in mptfc_rescan_devices()
1159 if (starget) { in mptfc_rescan_devices()
1160 vtarget = starget->hostdata; in mptfc_rescan_devices()