Lines Matching refs:tgt
238 struct snic_tgt *tgt, in snic_issue_scsi_req() argument
270 rqi->tgt_id = tgt->id; in snic_issue_scsi_req()
332 struct snic_tgt *tgt = NULL; in snic_queuecommand() local
336 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_queuecommand()
337 ret = snic_tgt_chkready(tgt); in snic_queuecommand()
339 SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); in snic_queuecommand()
360 ret = snic_issue_scsi_req(snic, tgt, sc); in snic_queuecommand()
1487 struct snic_tgt *tgt = NULL; in snic_send_abort_and_wait() local
1493 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_send_abort_and_wait()
1494 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
1706 struct snic_tgt *tgt = NULL; in snic_dr_clean_single_req() local
1771 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_dr_clean_single_req()
1772 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_dr_clean_single_req()
2076 struct snic_tgt *tgt = starget_to_tgt(scsi_target(sdev)); in snic_dev_reset_supported() local
2078 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_dev_reset_supported()
2577 snic_tgt_scsi_abort_io(struct snic_tgt *tgt) in snic_tgt_scsi_abort_io() argument
2586 if (!tgt) in snic_tgt_scsi_abort_io()
2589 snic = shost_priv(snic_tgt_to_shost(tgt)); in snic_tgt_scsi_abort_io()
2592 if (tgt->tdata.typ == SNIC_TGT_DAS) in snic_tgt_scsi_abort_io()
2609 if (sc_tgt != tgt) { in snic_tgt_scsi_abort_io()