Lines Matching refs:starget
98 static int mptfc_target_alloc(struct scsi_target *starget);
101 static void mptfc_target_destroy(struct scsi_target *starget);
472 if (ri->starget) { in mptfc_register_dev()
473 vtarget = ri->starget->hostdata; in mptfc_register_dev()
510 mptfc_target_destroy(struct scsi_target *starget) in mptfc_target_destroy() argument
515 rport = starget_to_rport(starget); in mptfc_target_destroy()
519 ri->starget = NULL; in mptfc_target_destroy()
521 kfree(starget->hostdata); in mptfc_target_destroy()
522 starget->hostdata = NULL; in mptfc_target_destroy()
531 mptfc_target_alloc(struct scsi_target *starget) in mptfc_target_alloc() argument
541 starget->hostdata = vtarget; in mptfc_target_alloc()
544 rport = starget_to_rport(starget); in mptfc_target_alloc()
550 ri->starget = starget; in mptfc_target_alloc()
556 starget->hostdata = NULL; in mptfc_target_alloc()
603 struct scsi_target *starget; in mptfc_slave_alloc() local
607 starget = scsi_target(sdev); in mptfc_slave_alloc()
608 rport = starget_to_rport(starget); in mptfc_slave_alloc()
625 vtarget = starget->hostdata; in mptfc_slave_alloc()
1087 struct scsi_target *starget; in mptfc_setup_reset() local
1096 starget = ri->starget; in mptfc_setup_reset()
1097 if (starget) { in mptfc_setup_reset()
1098 vtarget = starget->hostdata; in mptfc_setup_reset()
1122 struct scsi_target *starget; in mptfc_rescan_devices() local
1151 starget = ri->starget; in mptfc_rescan_devices()
1152 if (starget) { in mptfc_rescan_devices()
1153 vtarget = starget->hostdata; in mptfc_rescan_devices()