taglinefilesource code
scsiq1949drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq,
scsiq3680drivers/scsi/advansys.cASC_SCSI_Q    scsiq;
scsiq3703drivers/scsi/advansys.cmemset(&scsiq, 0, sizeof(ASC_SCSI_Q));
scsiq3708drivers/scsi/advansys.cscsiq.q2.srb_ptr = (ulong) scp;
scsiq3713drivers/scsi/advansys.cscsiq.cdbptr = &scp->cmnd[0];
scsiq3714drivers/scsi/advansys.cscsiq.q2.cdb_len = scp->cmd_len;
scsiq3715drivers/scsi/advansys.cscsiq.q1.target_id = ASC_TID_TO_TARGET_ID(scp->target);
scsiq3716drivers/scsi/advansys.cscsiq.q1.target_lun = scp->lun;
scsiq3717drivers/scsi/advansys.cscsiq.q2.target_ix = ASC_TIDLUN_TO_IX(scp->target, scp->lun);
scsiq3718drivers/scsi/advansys.cscsiq.q1.sense_addr = (ulong) &scp->sense_buffer[0];
scsiq3719drivers/scsi/advansys.cscsiq.q1.sense_len = sizeof(scp->sense_buffer);
scsiq3720drivers/scsi/advansys.cscsiq.q2.tag_code = M2_QTAG_MSG_SIMPLE;
scsiq3732drivers/scsi/advansys.cscsiq.q1.data_addr = (ulong) scp->request_buffer;
scsiq3733drivers/scsi/advansys.cscsiq.q1.data_cnt = scp->request_bufflen;
scsiq3735drivers/scsi/advansys.cscsiq.q1.sg_queue_cnt = 0;
scsiq3736drivers/scsi/advansys.cscsiq.sg_head = NULL;
scsiq3760drivers/scsi/advansys.cscsiq.q1.cntl |= QC_SG_HEAD;
scsiq3761drivers/scsi/advansys.cscsiq.sg_head = &sghead;
scsiq3762drivers/scsi/advansys.cscsiq.q1.data_cnt = 0;
scsiq3763drivers/scsi/advansys.cscsiq.q1.data_addr = 0;
scsiq3764drivers/scsi/advansys.csghead.entry_cnt = scsiq.q1.sg_queue_cnt = scp->use_sg;
scsiq3778drivers/scsi/advansys.cASC_DBG_PRT_SCSI_Q(2, &scsiq);
scsiq3781drivers/scsi/advansys.cswitch (ret = AscExeScsiQueue(boardp, &scsiq)) {
scsiq5547drivers/scsi/advansys.cASC_QDONE_INFO dosfar * scsiq,
scsiq5556drivers/scsi/advansys.c(ushort dosfar *) scsiq,
scsiq5560drivers/scsi/advansys.cAscAdjEndianQDoneInfo(scsiq);
scsiq5565drivers/scsi/advansys.cscsiq->q_status = (uchar) _val;
scsiq5566drivers/scsi/advansys.cscsiq->q_no = (uchar) (_val >> 8);
scsiq5570drivers/scsi/advansys.cscsiq->cntl = (uchar) _val;
scsiq5575drivers/scsi/advansys.cscsiq->sense_len = (uchar) _val;
scsiq5576drivers/scsi/advansys.cscsiq->user_def = (uchar) (_val >> 8);
scsiq5578drivers/scsi/advansys.cscsiq->remain_bytes = AscReadLramDWord(iop_base,
scsiq5580drivers/scsi/advansys.cscsiq->remain_bytes &= max_dma_count;
scsiq5605drivers/scsi/advansys.cASC_QDONE_INFO dosfar *scsiq;
scsiq5620drivers/scsi/advansys.cscsiq = (ASC_QDONE_INFO dosfar *) & scsiq_buf;
scsiq5630drivers/scsi/advansys.csg_queue_cnt = _AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count);
scsiq5634drivers/scsi/advansys.c(uchar) (scsiq->q_status & (uchar) ~ (QS_READY | QS_ABORTED)));
scsiq5635drivers/scsi/advansys.ctid_no = ASC_TIX_TO_TID(scsiq->d2.target_ix);
scsiq5636drivers/scsi/advansys.ctarget_id = ASC_TIX_TO_TARGET_ID(scsiq->d2.target_ix);
scsiq5637drivers/scsi/advansys.cif ((scsiq->cntl & QC_SG_HEAD) != 0) {
scsiq5646drivers/scsi/advansys.cscsiq->d3.done_stat = QD_WITH_ERROR;
scsiq5647drivers/scsi/advansys.cscsiq->d3.host_stat = QHSTA_D_QDONE_SG_LIST_CORRUPTED;
scsiq5661drivers/scsi/advansys.c(ushort) ((ushort) ASC_QADR_BEG + (ushort) scsiq->d2.target_ix));
scsiq5678drivers/scsi/advansys.cscsiq->d3.done_stat = QD_WITH_ERROR;
scsiq5682drivers/scsi/advansys.cif ((scsiq->d2.srb_ptr == 0UL) ||
scsiq5683drivers/scsi/advansys.c((scsiq->q_status & QS_ABORTED) != 0)) {
scsiq5686drivers/scsi/advansys.c} else if (scsiq->q_status == QS_DONE) {
scsiq5695drivers/scsi/advansys.cif (scsiq->remain_bytes != 0UL) {
scsiq5696drivers/scsi/advansys.cscsiq->remain_bytes--;
scsiq5697drivers/scsi/advansys.cif (scsiq->remain_bytes == 0UL) {
scsiq5704drivers/scsi/advansys.cif ((scsiq->d3.done_stat == QD_WITH_ERROR) &&
scsiq5705drivers/scsi/advansys.c(scsiq->d3.host_stat == QHSTA_M_DATA_OVER_RUN)) {
scsiq5706drivers/scsi/advansys.cif ((scsiq->cntl & (QC_DATA_IN | QC_DATA_OUT)) == 0) {
scsiq5707drivers/scsi/advansys.cscsiq->d3.done_stat = QD_NO_ERROR;
scsiq5708drivers/scsi/advansys.cscsiq->d3.host_stat = QHSTA_NO_ERROR;
scsiq5710drivers/scsi/advansys.cscsiq->d3.done_stat = QD_NO_ERROR;
scsiq5711drivers/scsi/advansys.cscsiq->d3.host_stat = QHSTA_NO_ERROR;
scsiq5720drivers/scsi/advansys.cif ((scsiq->cntl & QC_NO_CALLBACK) == 0) {
scsiq5721drivers/scsi/advansys.c(*asc_isr_callback) (asc_dvc, scsiq);
scsiq5728drivers/scsi/advansys.cif (scsiq->d3.done_stat != QD_NO_ERROR) {
scsiq5760drivers/scsi/advansys.cif ((scsiq->cntl & QC_NO_CALLBACK) == 0) {
scsiq5761drivers/scsi/advansys.c(*asc_isr_callback) (asc_dvc, scsiq);
scsiq5856drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq5863drivers/scsi/advansys.cscsiq->r1.cntl = 0;
scsiq5864drivers/scsi/advansys.cscsiq->r1.sg_queue_cnt = 0;
scsiq5865drivers/scsi/advansys.cscsiq->r1.q_no = 0;
scsiq5866drivers/scsi/advansys.cscsiq->r1.user_def = 0;
scsiq5867drivers/scsi/advansys.cscsiq->cdbptr = (uchar dosfar *) scsiq->cdb;
scsiq5868drivers/scsi/advansys.cscsiq->r3.scsi_stat = 0;
scsiq5869drivers/scsi/advansys.cscsiq->r3.scsi_msg = 0;
scsiq5870drivers/scsi/advansys.cscsiq->r3.host_stat = 0;
scsiq5871drivers/scsi/advansys.cscsiq->r3.done_stat = 0;
scsiq5872drivers/scsi/advansys.cscsiq->r2.vm_id = 0;
scsiq5873drivers/scsi/advansys.cscsiq->r1.data_cnt = buf_len;
scsiq5875drivers/scsi/advansys.cscsiq->r2.tag_code = (uchar) M2_QTAG_MSG_SIMPLE;
scsiq5876drivers/scsi/advansys.cscsiq->r2.flag = (uchar) ASC_FLAG_SCSIQ_REQ;
scsiq5877drivers/scsi/advansys.cscsiq->r2.srb_ptr = (ulong) scsiq;
scsiq5878drivers/scsi/advansys.cscsiq->r1.status = (uchar) QS_READY;
scsiq5879drivers/scsi/advansys.cscsiq->r1.data_addr = 0L;
scsiq5883drivers/scsi/advansys.c(uchar dosfar *) buf_addr, scsiq->r1.data_cnt)) == 0L) {
scsiq5886drivers/scsi/advansys.cscsiq->r1.data_addr = phy_addr;
scsiq6044drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq
scsiq6074drivers/scsi/advansys.cif (scsiq == (ASC_SCSI_Q dosfar *) 0L) {
scsiq6078drivers/scsi/advansys.cscsiq->q1.q_no = 0;
scsiq6080drivers/scsi/advansys.ctarget_ix = scsiq->q2.target_ix;
scsiq6085drivers/scsi/advansys.cif (scsiq->cdbptr[0] == SCSICMD_RequestSense) {
scsiq6087drivers/scsi/advansys.cif (((asc_dvc->init_sdtr & scsiq->q1.target_id) != 0) &&
scsiq6088drivers/scsi/advansys.c((asc_dvc->sdtr_done & scsiq->q1.target_id) != 0)) {
scsiq6094drivers/scsi/advansys.cscsiq->q1.cntl |= (QC_MSG_OUT | QC_URGENT);
scsiq6105drivers/scsi/advansys.cif ((scsiq->q1.cntl & QC_SG_HEAD) != 0) {
scsiq6107drivers/scsi/advansys.cif ((sg_entry_cnt = scsiq->sg_head->entry_cnt) == 0) {
scsiq6113drivers/scsi/advansys.cscsiq->q1.data_addr = scsiq->sg_head->sg_list[0].addr;
scsiq6114drivers/scsi/advansys.cscsiq->q1.data_cnt = scsiq->sg_head->sg_list[0].bytes;
scsiq6115drivers/scsi/advansys.cscsiq->q1.cntl &= ~(QC_SG_HEAD | QC_SG_SWAP_QUEUE);
scsiq6128drivers/scsi/advansys.caddr = scsiq->sg_head->sg_list[i].addr +
scsiq6129drivers/scsi/advansys.cscsiq->sg_head->sg_list[i].bytes;
scsiq6144drivers/scsi/advansys.caddr = scsiq->sg_head->sg_list[sg_entry_cnt_minus_one].addr +
scsiq6145drivers/scsi/advansys.cscsiq->sg_head->sg_list[sg_entry_cnt_minus_one].bytes;
scsiq6147drivers/scsi/advansys.cif ((scsiq->cdbptr[0] == SCSICMD_Read6) ||
scsiq6148drivers/scsi/advansys.c(scsiq->cdbptr[0] == SCSICMD_Read10)) {
scsiq6149drivers/scsi/advansys.cif ((scsiq->q2.tag_code & ASC_TAG_FLAG_ADD_ONE_BYTE) == 0) {
scsiq6151drivers/scsi/advansys.cscsiq->sg_head->sg_list[sg_entry_cnt_minus_one].bytes++;
scsiq6152drivers/scsi/advansys.cscsiq->q2.tag_code |= ASC_TAG_FLAG_ADD_ONE_BYTE;
scsiq6158drivers/scsi/advansys.cscsiq->sg_head->entry_to_copy = scsiq->sg_head->entry_cnt;
scsiq6170drivers/scsi/advansys.c((scsiq->q1.cntl & QC_URGENT) != 0)) {
scsiq6171drivers/scsi/advansys.cif ((sta = AscSendScsiQueue(asc_dvc, scsiq,
scsiq6176drivers/scsi/advansys.c(*asc_exe_callback) (asc_dvc, scsiq);
scsiq6189drivers/scsi/advansys.caddr = scsiq->q1.data_addr + scsiq->q1.data_cnt;
scsiq6190drivers/scsi/advansys.cif ((scsiq->cdbptr[0] == SCSICMD_Read6) ||
scsiq6191drivers/scsi/advansys.c(scsiq->cdbptr[0] == SCSICMD_Read10)) {
scsiq6193drivers/scsi/advansys.cif (((ushort) scsiq->q1.data_cnt & 0x01FF) == 0) {
scsiq6195drivers/scsi/advansys.cif ((scsiq->q2.tag_code & ASC_TAG_FLAG_ADD_ONE_BYTE) == 0) {
scsiq6197drivers/scsi/advansys.cscsiq->q2.tag_code |= ASC_TAG_FLAG_ADD_ONE_BYTE;
scsiq6198drivers/scsi/advansys.cscsiq->q1.data_cnt++;
scsiq6214drivers/scsi/advansys.c((scsiq->q1.cntl & QC_URGENT) != 0)) {
scsiq6215drivers/scsi/advansys.cif ((sta = AscSendScsiQueue(asc_dvc, scsiq,
scsiq6220drivers/scsi/advansys.c(*asc_exe_callback) (asc_dvc, scsiq);
scsiq6232drivers/scsi/advansys.cscsiq->ext.q_required = n_q_required;
scsiq6234drivers/scsi/advansys.casc_dvc->scsiq_busy_head[tid_no] = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6235drivers/scsi/advansys.casc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6236drivers/scsi/advansys.cscsiq->ext.next = (ASC_SCSI_Q dosfar *) 0L;
scsiq6237drivers/scsi/advansys.cscsiq->ext.join = (ASC_SCSI_Q dosfar *) 0L;
scsiq6238drivers/scsi/advansys.cscsiq->q1.status = QS_BUSY;
scsiq6243drivers/scsi/advansys.cif ((scsiq->q1.cntl & QC_URGENT) != 0) {
scsiq6245drivers/scsi/advansys.casc_dvc->scsiq_busy_head[tid_no] = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6246drivers/scsi/advansys.cscsiq->ext.next = scsiq_next;
scsiq6247drivers/scsi/advansys.cscsiq->ext.join = (ASC_SCSI_Q dosfar *) 0L;
scsiq6249drivers/scsi/advansys.cif (scsiq->ext.cntl & QCX_SORT) {
scsiq6253drivers/scsi/advansys.cif (scsiq->ext.lba < scsiq_prev->ext.lba)
scsiq6257drivers/scsi/advansys.cscsiq_prev->ext.next = scsiq;
scsiq6258drivers/scsi/advansys.cscsiq->ext.next = scsiq_next;
scsiq6260drivers/scsi/advansys.casc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6262drivers/scsi/advansys.cscsiq->ext.join = (ASC_SCSI_Q dosfar *) 0L;
scsiq6265drivers/scsi/advansys.cscsiq_tail->ext.next = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6266drivers/scsi/advansys.casc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq;
scsiq6267drivers/scsi/advansys.cscsiq->ext.next = (ASC_SCSI_Q dosfar *) 0L;
scsiq6268drivers/scsi/advansys.cscsiq->ext.join = (ASC_SCSI_Q dosfar *) 0L;
scsiq6271drivers/scsi/advansys.cscsiq->q1.status = QS_BUSY;
scsiq6289drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq,
scsiq6301drivers/scsi/advansys.ctarget_ix = scsiq->q2.target_ix;
scsiq6310drivers/scsi/advansys.cscsiq->sg_head->queue_cnt = n_q_required - 1;
scsiq6311drivers/scsi/advansys.cscsiq->q1.q_no = free_q_head;
scsiq6313drivers/scsi/advansys.cif ((sta = AscPutReadySgListQueue(asc_dvc, scsiq,
scsiq6331drivers/scsi/advansys.cscsiq->q1.q_no = free_q_head;
scsiq6332drivers/scsi/advansys.cif ((sta = AscPutReadyQueue(asc_dvc, scsiq,
scsiq6407drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq,
scsiq6420drivers/scsi/advansys.cif (((asc_dvc->init_sdtr & scsiq->q1.target_id) != 0) &&
scsiq6421drivers/scsi/advansys.c((asc_dvc->sdtr_done & scsiq->q1.target_id) == 0)) {
scsiq6423drivers/scsi/advansys.ctid_no = ASC_TIX_TO_TID(scsiq->q2.target_ix);
scsiq6433drivers/scsi/advansys.cscsiq->q1.cntl |= QC_MSG_OUT;
scsiq6437drivers/scsi/advansys.cif ((scsiq->q1.target_id & asc_dvc->use_tagged_qng) == 0) {
scsiq6438drivers/scsi/advansys.cscsiq->q2.tag_code &= ~M2_QTAG_MSG_SIMPLE;
scsiq6440drivers/scsi/advansys.cscsiq->q1.status = QS_FREE;
scsiq6444drivers/scsi/advansys.c(ushort dosfar *) scsiq->cdbptr,
scsiq6445drivers/scsi/advansys.c(ushort) ((ushort) scsiq->q2.cdb_len >> 1));
scsiq6448drivers/scsi/advansys.cAscAdjEndianScsiQ(scsiq);
scsiq6453drivers/scsi/advansys.c(ushort dosfar *) & scsiq->q1.cntl,
scsiq6468drivers/scsi/advansys.c(ushort dosfar *) scsiq->cdbptr,
scsiq6469drivers/scsi/advansys.c(ushort) (scsiq->q2.cdb_len >> 1)) != 0) {
scsiq6475drivers/scsi/advansys.c(ushort dosfar *) & scsiq->q1.cntl,
scsiq6495drivers/scsi/advansys.c(ushort) (((ushort) scsiq->q1.q_no << 8) | (ushort) QS_READY));
scsiq6502drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq,
scsiq6520drivers/scsi/advansys.csg_head = scsiq->sg_head;
scsiq6522drivers/scsi/advansys.csaved_data_addr = scsiq->q1.data_addr;
scsiq6523drivers/scsi/advansys.csaved_data_cnt = scsiq->q1.data_cnt;
scsiq6524drivers/scsi/advansys.cscsiq->q1.data_addr = sg_head->sg_list[0].addr;
scsiq6525drivers/scsi/advansys.cscsiq->q1.data_cnt = sg_head->sg_list[0].bytes;
scsiq6528drivers/scsi/advansys.cscsiq->q1.cntl |= QC_SG_HEAD;
scsiq6531drivers/scsi/advansys.cscsiq->q1.sg_queue_cnt = sg_head->queue_cnt;
scsiq6578drivers/scsi/advansys.cscsiq->q1.cntl &= ~QC_SG_HEAD;
scsiq6580drivers/scsi/advansys.csta = AscPutReadyQueue(asc_dvc, scsiq, q_no);
scsiq6582drivers/scsi/advansys.cscsiq->q1.data_addr = saved_data_addr;
scsiq6583drivers/scsi/advansys.cscsiq->q1.data_cnt = saved_data_cnt;
scsiq6629drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar *scsiq;
scsiq6649drivers/scsi/advansys.cscsiq = (ASC_SCSI_REQ_Q dosfar *) & scsiq_buf;
scsiq6655drivers/scsi/advansys.cscsiq->r1.status = (uchar) QS_READY;
scsiq6656drivers/scsi/advansys.cscsiq->r2.cdb_len = 6;
scsiq6657drivers/scsi/advansys.cscsiq->r2.tag_code = M2_QTAG_MSG_SIMPLE;
scsiq6658drivers/scsi/advansys.cscsiq->r1.target_id = target_id;
scsiq6660drivers/scsi/advansys.cscsiq->r2.target_ix = ASC_TIDLUN_TO_IX(tid_no, 0);
scsiq6661drivers/scsi/advansys.cscsiq->cdbptr = (uchar dosfar *) scsiq->cdb;
scsiq6663drivers/scsi/advansys.cscsiq->r1.cntl = QC_NO_CALLBACK | QC_MSG_OUT | QC_URGENT;
scsiq6671drivers/scsi/advansys.cif (AscExeScsiQueue(asc_dvc, (ASC_SCSI_Q dosfar *) scsiq)
scsiq6675drivers/scsi/advansys.c_AscWaitQDone(iop_base, (ASC_SCSI_Q dosfar *) scsiq);
scsiq6917drivers/scsi/advansys.cASC_SCSI_Q dosfar * scsiq
scsiq6924drivers/scsi/advansys.cwhile (scsiq->q1.q_no == 0) ;
scsiq6925drivers/scsi/advansys.cq_addr = ASC_QNO_TO_QADDR(scsiq->q1.q_no);
scsiq7098drivers/scsi/advansys.cASC_QDONE_INFO dosfar *scsiq;
scsiq7105drivers/scsi/advansys.cscsiq = (ASC_QDONE_INFO dosfar *) & scsiq_buf;
scsiq7108drivers/scsi/advansys.c_AscAbortSrbBusyQueue(asc_dvc, scsiq, srb_ptr);
scsiq7114drivers/scsi/advansys.cscsiq->d2.srb_ptr = AscReadLramDWord(iop_base,
scsiq7116drivers/scsi/advansys.cif (scsiq->d2.srb_ptr == srb_ptr) {
scsiq7117drivers/scsi/advansys.c_AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count);
scsiq7118drivers/scsi/advansys.cif (((scsiq->q_status & QS_READY) != 0) &&
scsiq7119drivers/scsi/advansys.c((scsiq->q_status & QS_ABORTED) == 0) &&
scsiq7120drivers/scsi/advansys.c((scsiq->cntl & QCSG_SG_XFER_LIST) == 0)) {
scsiq7122drivers/scsi/advansys.cscsiq->q_status |= QS_ABORTED;
scsiq7123drivers/scsi/advansys.cscsiq->d3.done_stat = QD_ABORTED_BY_HOST;
scsiq7129drivers/scsi/advansys.cscsiq->q_status);
scsiq7130drivers/scsi/advansys.c(*asc_isr_callback) (asc_dvc, scsiq);
scsiq7149drivers/scsi/advansys.cASC_QDONE_INFO dosfar *scsiq;
scsiq7161drivers/scsi/advansys.cscsiq = (ASC_QDONE_INFO dosfar *) & scsiq_buf;
scsiq7166drivers/scsi/advansys.c_AscAbortTidBusyQueue(asc_dvc, scsiq, tid_no);
scsiq7173drivers/scsi/advansys.c_AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count);
scsiq7174drivers/scsi/advansys.cif (((scsiq->q_status & QS_READY) != 0) &&
scsiq7175drivers/scsi/advansys.c((scsiq->q_status & QS_ABORTED) == 0) &&
scsiq7176drivers/scsi/advansys.c((scsiq->cntl & QCSG_SG_XFER_LIST) == 0)) {
scsiq7177drivers/scsi/advansys.cif (scsiq->d2.target_ix == target_ix) {
scsiq7178drivers/scsi/advansys.cscsiq->q_status |= QS_ABORTED;
scsiq7179drivers/scsi/advansys.cscsiq->d3.done_stat = QD_ABORTED_BY_HOST;
scsiq7187drivers/scsi/advansys.cscsiq->q_status);
scsiq7188drivers/scsi/advansys.c(*asc_isr_callback) (asc_dvc, scsiq);
scsiq8423drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq8438drivers/scsi/advansys.ctid_bits = scsiq->r1.target_id;
scsiq8439drivers/scsi/advansys.clun = scsiq->r1.target_lun;
scsiq8440drivers/scsi/advansys.ctid_no = ASC_TIX_TO_TID(scsiq->r2.target_ix);
scsiq8442drivers/scsi/advansys.c(uchar dosfar *) scsiq->sense_ptr,
scsiq8443drivers/scsi/advansys.c(ulong) scsiq->r1.sense_len)) == 0L) {
scsiq8446drivers/scsi/advansys.cscsiq->r1.sense_addr = phy_addr;
scsiq8454drivers/scsi/advansys.cif (PollScsiInquiry(asc_dvc, scsiq, (uchar dosfar *) inq,
scsiq8535drivers/scsi/advansys.cif (InitTestUnitReady(asc_dvc, scsiq) != 1) {
scsiq8540drivers/scsi/advansys.cif (PollScsiReadCapacity(asc_dvc, scsiq,
scsiq8561drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq8572drivers/scsi/advansys.c(ASC_SCSI_Q dosfar *) scsiq)) == 1) {
scsiq8574drivers/scsi/advansys.cif ((status = AscPollQDone(asc_dvc, scsiq,
scsiq8581drivers/scsi/advansys.cscsiq->r3.done_stat = 0;
scsiq8582drivers/scsi/advansys.cscsiq->r3.host_stat = 0;
scsiq8583drivers/scsi/advansys.cscsiq->r3.scsi_stat = 0;
scsiq8584drivers/scsi/advansys.cscsiq->r3.scsi_msg = 0;
scsiq8588drivers/scsi/advansys.cscsiq->r3.done_stat = 0;
scsiq8589drivers/scsi/advansys.cscsiq->r3.host_stat = 0;
scsiq8590drivers/scsi/advansys.cscsiq->r3.scsi_stat = 0;
scsiq8591drivers/scsi/advansys.cscsiq->r3.scsi_msg = 0;
scsiq8593drivers/scsi/advansys.c(unsigned) scsiq);
scsiq8595drivers/scsi/advansys.cAscAbortSRB(asc_dvc, (ulong) scsiq);
scsiq8597drivers/scsi/advansys.cASC_DBG1(3, "PollQueueDone: done_stat %x\n", scsiq->r3.done_stat);
scsiq8598drivers/scsi/advansys.creturn (scsiq->r3.done_stat);
scsiq8602drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8608drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq8613drivers/scsi/advansys.cif (AscScsiInquiry(asc_dvc, scsiq, buf, buf_len) == ERR) {
scsiq8614drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8616drivers/scsi/advansys.creturn (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 4));
scsiq8622drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq8629drivers/scsi/advansys.cif (AscScsiReadCapacity(asc_dvc, scsiq,
scsiq8631drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8633drivers/scsi/advansys.cstatus = PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 8);
scsiq8642drivers/scsi/advansys.creturn (scsiq->r3.done_stat);
scsiq8644drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8668drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq
scsiq8671drivers/scsi/advansys.cif (AscScsiTestUnitReady(asc_dvc, scsiq) == ERR) {
scsiq8672drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8674drivers/scsi/advansys.creturn (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 12));
scsiq8680drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq
scsiq8683drivers/scsi/advansys.cif (AscScsiStartStopUnit(asc_dvc, scsiq, 1) == ERR) {
scsiq8684drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq8686drivers/scsi/advansys.creturn (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 40));
scsiq8692drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq
scsiq8700drivers/scsi/advansys.ctid_bits = scsiq->r1.target_id;
scsiq8703drivers/scsi/advansys.cPollScsiTestUnitReady(asc_dvc, scsiq);
scsiq8704drivers/scsi/advansys.cASC_DBG1(3, "InitTestUnitReady: done_stat %x\n", scsiq->r3.done_stat);
scsiq8705drivers/scsi/advansys.cif (scsiq->r3.done_stat == 0x01) {
scsiq8707drivers/scsi/advansys.c} else if (scsiq->r3.done_stat == QD_WITH_ERROR) {
scsiq8710drivers/scsi/advansys.csen = (ASC_REQ_SENSE dosfar *) scsiq->sense_ptr;
scsiq8712drivers/scsi/advansys.cif ((scsiq->r3.scsi_stat == SS_CHK_CONDITION) &&
scsiq8718drivers/scsi/advansys.cif (PollScsiStartUnit(asc_dvc, scsiq) == 1) {
scsiq8736drivers/scsi/advansys.c} else if (scsiq->r3.done_stat == QD_ABORTED_BY_HOST) {
scsiq8752drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq8768drivers/scsi/advansys.cloop, asc_dvc->err_code, scsiq->r3.done_stat, scsiq->r3.scsi_stat);
scsiq8770drivers/scsi/advansys.cscsiq->r3.done_stat = QD_WITH_ERROR;
scsiq8774drivers/scsi/advansys.cif (scsiq->r3.done_stat != QD_IN_PROGRESS) {
scsiq8775drivers/scsi/advansys.cif ((scsiq->r3.done_stat == QD_WITH_ERROR) &&
scsiq8776drivers/scsi/advansys.c(scsiq->r3.scsi_stat == SS_TARGET_BUSY)) {
scsiq9027drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq9031drivers/scsi/advansys.cif (AscScsiSetupCmdQ(asc_dvc, scsiq, buf,
scsiq9033drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq9035drivers/scsi/advansys.cscsiq->cdb[0] = (uchar) SCSICMD_Inquiry;
scsiq9036drivers/scsi/advansys.cscsiq->cdb[1] = scsiq->r1.target_lun << 5;
scsiq9037drivers/scsi/advansys.cscsiq->cdb[2] = 0;
scsiq9038drivers/scsi/advansys.cscsiq->cdb[3] = 0;
scsiq9039drivers/scsi/advansys.cscsiq->cdb[4] = buf_len;
scsiq9040drivers/scsi/advansys.cscsiq->cdb[5] = 0;
scsiq9041drivers/scsi/advansys.cscsiq->r2.cdb_len = 6;
scsiq9048drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq9052drivers/scsi/advansys.cif (AscScsiSetupCmdQ(asc_dvc, scsiq, info, 8L) == ERR) {
scsiq9053drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq9055drivers/scsi/advansys.cscsiq->cdb[0] = (uchar) SCSICMD_ReadCapacity;
scsiq9056drivers/scsi/advansys.cscsiq->cdb[1] = scsiq->r1.target_lun << 5;
scsiq9057drivers/scsi/advansys.cscsiq->cdb[2] = 0;
scsiq9058drivers/scsi/advansys.cscsiq->cdb[3] = 0;
scsiq9059drivers/scsi/advansys.cscsiq->cdb[4] = 0;
scsiq9060drivers/scsi/advansys.cscsiq->cdb[5] = 0;
scsiq9061drivers/scsi/advansys.cscsiq->cdb[6] = 0;
scsiq9062drivers/scsi/advansys.cscsiq->cdb[7] = 0;
scsiq9063drivers/scsi/advansys.cscsiq->cdb[8] = 0;
scsiq9064drivers/scsi/advansys.cscsiq->cdb[9] = 0;
scsiq9065drivers/scsi/advansys.cscsiq->r2.cdb_len = 10;
scsiq9072drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq
scsiq9075drivers/scsi/advansys.cif (AscScsiSetupCmdQ(asc_dvc, scsiq, FNULLPTR,
scsiq9077drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq9079drivers/scsi/advansys.cscsiq->r1.cntl = (uchar) ASC_SCSIDIR_NODATA;
scsiq9080drivers/scsi/advansys.cscsiq->cdb[0] = (uchar) SCSICMD_TestUnitReady;
scsiq9081drivers/scsi/advansys.cscsiq->cdb[1] = scsiq->r1.target_lun << 5;
scsiq9082drivers/scsi/advansys.cscsiq->cdb[2] = 0;
scsiq9083drivers/scsi/advansys.cscsiq->cdb[3] = 0;
scsiq9084drivers/scsi/advansys.cscsiq->cdb[4] = 0;
scsiq9085drivers/scsi/advansys.cscsiq->cdb[5] = 0;
scsiq9086drivers/scsi/advansys.cscsiq->r2.cdb_len = 6;
scsiq9093drivers/scsi/advansys.cASC_SCSI_REQ_Q dosfar * scsiq,
scsiq9097drivers/scsi/advansys.cif (AscScsiSetupCmdQ(asc_dvc, scsiq, FNULLPTR, (ulong) 0L) == ERR) {
scsiq9098drivers/scsi/advansys.creturn (scsiq->r3.done_stat = QD_WITH_ERROR);
scsiq9100drivers/scsi/advansys.cscsiq->r1.cntl = (uchar) ASC_SCSIDIR_NODATA;
scsiq9101drivers/scsi/advansys.cscsiq->cdb[0] = (uchar) SCSICMD_StartStopUnit;
scsiq9102drivers/scsi/advansys.cscsiq->cdb[1] = scsiq->r1.target_lun << 5;
scsiq9103drivers/scsi/advansys.cscsiq->cdb[2] = 0;
scsiq9104drivers/scsi/advansys.cscsiq->cdb[3] = 0;
scsiq9105drivers/scsi/advansys.cscsiq->cdb[4] = op_mode;
scsiq9107drivers/scsi/advansys.cscsiq->cdb[5] = 0;
scsiq9108drivers/scsi/advansys.cscsiq->r2.cdb_len = 6;