Lines Matching refs:starget
98 static int mptfc_target_alloc(struct scsi_target *starget);
101 static void mptfc_target_destroy(struct scsi_target *starget);
471 if (ri->starget) { in mptfc_register_dev()
472 vtarget = ri->starget->hostdata; in mptfc_register_dev()
509 mptfc_target_destroy(struct scsi_target *starget) in mptfc_target_destroy() argument
514 rport = starget_to_rport(starget); in mptfc_target_destroy()
518 ri->starget = NULL; in mptfc_target_destroy()
520 kfree(starget->hostdata); in mptfc_target_destroy()
521 starget->hostdata = NULL; in mptfc_target_destroy()
530 mptfc_target_alloc(struct scsi_target *starget) in mptfc_target_alloc() argument
540 starget->hostdata = vtarget; in mptfc_target_alloc()
543 rport = starget_to_rport(starget); in mptfc_target_alloc()
549 ri->starget = starget; in mptfc_target_alloc()
555 starget->hostdata = NULL; in mptfc_target_alloc()
602 struct scsi_target *starget; in mptfc_slave_alloc() local
606 starget = scsi_target(sdev); in mptfc_slave_alloc()
607 rport = starget_to_rport(starget); in mptfc_slave_alloc()
624 vtarget = starget->hostdata; in mptfc_slave_alloc()
1084 struct scsi_target *starget; in mptfc_setup_reset() local
1093 starget = ri->starget; in mptfc_setup_reset()
1094 if (starget) { in mptfc_setup_reset()
1095 vtarget = starget->hostdata; in mptfc_setup_reset()
1119 struct scsi_target *starget; in mptfc_rescan_devices() local
1148 starget = ri->starget; in mptfc_rescan_devices()
1149 if (starget) { in mptfc_rescan_devices()
1150 vtarget = starget->hostdata; in mptfc_rescan_devices()