Lines Matching refs:tag
227 __le16 tag; member
239 __le16 tag; member
507 stex_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag) in stex_send_cmd() argument
509 req->tag = cpu_to_le16(tag); in stex_send_cmd()
511 hba->ccb[tag].req = req; in stex_send_cmd()
520 stex_ss_send_cmd(struct st_hba *hba, struct req_msg *req, u16 tag) in stex_ss_send_cmd() argument
526 req->tag = cpu_to_le16(tag); in stex_ss_send_cmd()
528 hba->ccb[tag].req = req; in stex_ss_send_cmd()
531 cmd = hba->ccb[tag].cmd; in stex_ss_send_cmd()
538 addr += (hba->ccb[tag].sg_count+4)/11; in stex_ss_send_cmd()
554 u16 tag; in return_abnormal_state() local
557 for (tag = 0; tag < hba->host->can_queue; tag++) { in return_abnormal_state()
558 ccb = &hba->ccb[tag]; in return_abnormal_state()
588 u16 tag; in stex_queuecommand_lck() local
679 tag = cmd->request->tag; in stex_queuecommand_lck()
681 if (unlikely(tag >= host->can_queue)) in stex_queuecommand_lck()
699 hba->ccb[tag].cmd = cmd; in stex_queuecommand_lck()
700 hba->ccb[tag].sense_bufflen = SCSI_SENSE_BUFFERSIZE; in stex_queuecommand_lck()
701 hba->ccb[tag].sense_buffer = cmd->sense_buffer; in stex_queuecommand_lck()
703 if (!hba->map_sg(hba, req, &hba->ccb[tag])) { in stex_queuecommand_lck()
704 hba->ccb[tag].sg_count = 0; in stex_queuecommand_lck()
708 hba->send(hba, req, tag); in stex_queuecommand_lck()
786 u16 tag; in stex_mu_intr() local
816 tag = le16_to_cpu(resp->tag); in stex_mu_intr()
817 if (unlikely(tag >= hba->host->can_queue)) { in stex_mu_intr()
824 ccb = &hba->ccb[tag]; in stex_mu_intr()
903 u16 tag; in stex_ss_mu_intr() local
921 tag = (u16)value; in stex_ss_mu_intr()
922 if (unlikely(tag >= hba->host->can_queue)) { in stex_ss_mu_intr()
929 ccb = &hba->ccb[tag]; in stex_ss_mu_intr()
1170 u16 tag = cmd->request->tag; in stex_abort() local
1180 if (tag < host->can_queue && in stex_abort()
1181 hba->ccb[tag].req && hba->ccb[tag].cmd == cmd) in stex_abort()
1182 hba->wait_ccb = &hba->ccb[tag]; in stex_abort()
1735 u16 tag = 0; in stex_hba_stop() local
1772 hba->ccb[tag].cmd = NULL; in stex_hba_stop()
1773 hba->ccb[tag].sg_count = 0; in stex_hba_stop()
1774 hba->ccb[tag].sense_bufflen = 0; in stex_hba_stop()
1775 hba->ccb[tag].sense_buffer = NULL; in stex_hba_stop()
1776 hba->ccb[tag].req_type = PASSTHRU_REQ_TYPE; in stex_hba_stop()
1778 hba->send(hba, req, tag); in stex_hba_stop()
1782 while (hba->ccb[tag].req_type & PASSTHRU_REQ_TYPE) { in stex_hba_stop()
1784 hba->ccb[tag].req_type = 0; in stex_hba_stop()