Lines Matching refs:tgt
241 struct snic_tgt *tgt, in snic_issue_scsi_req() argument
273 rqi->tgt_id = tgt->id; in snic_issue_scsi_req()
335 struct snic_tgt *tgt = NULL; in snic_queuecommand() local
339 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_queuecommand()
340 ret = snic_tgt_chkready(tgt); in snic_queuecommand()
342 SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); in snic_queuecommand()
361 ret = snic_issue_scsi_req(snic, tgt, sc); in snic_queuecommand()
1510 struct snic_tgt *tgt = NULL; in snic_send_abort_and_wait() local
1516 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_send_abort_and_wait()
1517 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
1730 struct snic_tgt *tgt = NULL; in snic_dr_clean_single_req() local
1795 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_dr_clean_single_req()
1796 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_dr_clean_single_req()
2103 struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev)); in snic_dev_reset_supported() local
2105 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_dev_reset_supported()
2612 snic_tgt_scsi_abort_io(struct snic_tgt *tgt) in snic_tgt_scsi_abort_io() argument
2621 if (!tgt) in snic_tgt_scsi_abort_io()
2624 snic = shost_priv(snic_tgt_to_shost(tgt)); in snic_tgt_scsi_abort_io()
2627 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_tgt_scsi_abort_io()
2644 if (sc_tgt != tgt) { in snic_tgt_scsi_abort_io()