tag | line | file | source code |
asc_dvc | 1916 | drivers/scsi/advansys.c | ushort AscInitMicroCodeVar(ASC_DVC_VAR asc_ptr_type * asc_dvc); |
asc_dvc | 1948 | drivers/scsi/advansys.c | int AscSendScsiQueue(ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 2109 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 5351 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 5372 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 5383 | drivers/scsi/advansys.c | if (asc_dvc->pci_fix_asyn_xfer & target_id) { |
asc_dvc | 5409 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~target_id; |
asc_dvc | 5410 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~target_id; |
asc_dvc | 5415 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~target_id; |
asc_dvc | 5416 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~target_id; |
asc_dvc | 5422 | drivers/scsi/advansys.c | asc_dvc->sdtr_done |= target_id; |
asc_dvc | 5423 | drivers/scsi/advansys.c | asc_dvc->init_sdtr |= target_id; |
asc_dvc | 5424 | drivers/scsi/advansys.c | asc_dvc->pci_fix_asyn_xfer &= ~target_id; |
asc_dvc | 5433 | drivers/scsi/advansys.c | asc_dvc->pci_fix_asyn_xfer &= ~target_id; |
asc_dvc | 5435 | drivers/scsi/advansys.c | asc_dvc->sdtr_done |= target_id; |
asc_dvc | 5436 | drivers/scsi/advansys.c | asc_dvc->init_sdtr |= target_id; |
asc_dvc | 5450 | drivers/scsi/advansys.c | if (((asc_dvc->init_sdtr & target_id) != 0) && |
asc_dvc | 5451 | drivers/scsi/advansys.c | ((asc_dvc->sdtr_done & target_id) != 0)) { |
asc_dvc | 5496 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~target_id; |
asc_dvc | 5497 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~target_id; |
asc_dvc | 5517 | drivers/scsi/advansys.c | (asc_dvc->cur_dvc_qng[tid_no] > 0)) { |
asc_dvc | 5524 | drivers/scsi/advansys.c | asc_dvc->queue_full_or_busy |= target_id; |
asc_dvc | 5529 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[tid_no] = cur_dvc_qng; |
asc_dvc | 5587 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 5616 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 5617 | drivers/scsi/advansys.c | asc_isr_callback = (ASC_ISR_CALLBACK) asc_dvc->isr_callback; |
asc_dvc | 5630 | drivers/scsi/advansys.c | sg_queue_cnt = _AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count); |
asc_dvc | 5645 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_SG_Q_LINKS); |
asc_dvc | 5658 | drivers/scsi/advansys.c | if (asc_dvc->queue_full_or_busy & target_id) { |
asc_dvc | 5662 | drivers/scsi/advansys.c | if (cur_target_qng < asc_dvc->max_dvc_qng[tid_no]) { |
asc_dvc | 5668 | drivers/scsi/advansys.c | asc_dvc->queue_full_or_busy &= ~target_id; |
asc_dvc | 5671 | drivers/scsi/advansys.c | if (asc_dvc->cur_total_qng >= n_q_used) { |
asc_dvc | 5672 | drivers/scsi/advansys.c | asc_dvc->cur_total_qng -= n_q_used; |
asc_dvc | 5673 | drivers/scsi/advansys.c | if (asc_dvc->cur_dvc_qng[tid_no] != 0) { |
asc_dvc | 5674 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[tid_no]--; |
asc_dvc | 5677 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_CUR_QNG); |
asc_dvc | 5690 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl) { |
asc_dvc | 5691 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl & ASC_BUG_FIX_ADD_ONE_BYTE) { |
asc_dvc | 5717 | drivers/scsi/advansys.c | asc_dvc->int_count); |
asc_dvc | 5721 | drivers/scsi/advansys.c | (*asc_isr_callback) (asc_dvc, scsiq); |
asc_dvc | 5727 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready &= ~target_id; |
asc_dvc | 5729 | drivers/scsi/advansys.c | asc_dvc->start_motor &= ~target_id; |
asc_dvc | 5735 | drivers/scsi/advansys.c | n_busy_q_done = AscIsrExeBusyQueue(asc_dvc, tid_no); |
asc_dvc | 5744 | drivers/scsi/advansys.c | n_busy_q_done = AscIsrExeBusyQueue(asc_dvc, i); |
asc_dvc | 5757 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_Q_STATUS); |
asc_dvc | 5761 | drivers/scsi/advansys.c | (*asc_isr_callback) (asc_dvc, scsiq); |
asc_dvc | 5771 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 5783 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 5786 | drivers/scsi/advansys.c | asc_dvc->int_count++; |
asc_dvc | 5788 | drivers/scsi/advansys.c | if (((asc_dvc->init_state & ASC_INIT_STATE_END_LOAD_MC) == 0) || |
asc_dvc | 5789 | drivers/scsi/advansys.c | (asc_dvc->isr_callback == 0)) { |
asc_dvc | 5793 | drivers/scsi/advansys.c | if (asc_dvc->in_critical_cnt != 0) { |
asc_dvc | 5794 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_ISR_ON_CRITICAL); |
asc_dvc | 5797 | drivers/scsi/advansys.c | if (asc_dvc->is_in_int) { |
asc_dvc | 5798 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_ISR_RE_ENTRY); |
asc_dvc | 5799 | drivers/scsi/advansys.c | asc_dvc->busy_count++; |
asc_dvc | 5802 | drivers/scsi/advansys.c | asc_dvc->is_in_int = TRUE; |
asc_dvc | 5818 | drivers/scsi/advansys.c | if (AscIsrChipHalted(asc_dvc) == ERR) { |
asc_dvc | 5827 | drivers/scsi/advansys.c | if ((asc_dvc->dvc_cntl & ASC_CNTL_INT_MULTI_Q) != 0) { |
asc_dvc | 5828 | drivers/scsi/advansys.c | while (((status = AscIsrQDone(asc_dvc)) & 0x01) != 0) { |
asc_dvc | 5833 | drivers/scsi/advansys.c | if ((status = AscIsrQDone(asc_dvc)) == 1) { |
asc_dvc | 5844 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_SET_LRAM_ADDR); |
asc_dvc | 5849 | drivers/scsi/advansys.c | asc_dvc->is_in_int = FALSE; |
asc_dvc | 5855 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 5882 | drivers/scsi/advansys.c | if ((phy_addr = AscGetOnePhyAddr(asc_dvc, |
asc_dvc | 6043 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6070 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6071 | drivers/scsi/advansys.c | asc_exe_callback = (ASC_EXE_CALLBACK) asc_dvc->exe_callback; |
asc_dvc | 6072 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) |
asc_dvc | 6075 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_SCSIQ_NULL_PTR); |
asc_dvc | 6087 | drivers/scsi/advansys.c | if (((asc_dvc->init_sdtr & scsiq->q1.target_id) != 0) && |
asc_dvc | 6088 | drivers/scsi/advansys.c | ((asc_dvc->sdtr_done & scsiq->q1.target_id) != 0)) { |
asc_dvc | 6098 | drivers/scsi/advansys.c | if (asc_dvc->in_critical_cnt != 0) { |
asc_dvc | 6100 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_CRITICAL_RE_ENTRY); |
asc_dvc | 6103 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt++; |
asc_dvc | 6108 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt--; |
asc_dvc | 6125 | drivers/scsi/advansys.c | if (asc_dvc->bus_type & (ASC_IS_ISA | ASC_IS_VL | ASC_IS_EISA)) { |
asc_dvc | 6132 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt--; |
asc_dvc | 6134 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_SG_LIST_ODD_ADDRESS); |
asc_dvc | 6141 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl) { |
asc_dvc | 6142 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl & ASC_BUG_FIX_ADD_ONE_BYTE) { |
asc_dvc | 6162 | drivers/scsi/advansys.c | scsiq_next = (ASC_SCSI_Q dosfar *) asc_dvc->scsiq_busy_head[tid_no]; |
asc_dvc | 6168 | drivers/scsi/advansys.c | if ((AscGetNumOfFreeQueue(asc_dvc, target_ix, n_q_required) |
asc_dvc | 6171 | drivers/scsi/advansys.c | if ((sta = AscSendScsiQueue(asc_dvc, scsiq, |
asc_dvc | 6174 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt--; |
asc_dvc | 6176 | drivers/scsi/advansys.c | (*asc_exe_callback) (asc_dvc, scsiq); |
asc_dvc | 6186 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl) { |
asc_dvc | 6187 | drivers/scsi/advansys.c | if (asc_dvc->bug_fix_cntl & ASC_BUG_FIX_ADD_ONE_BYTE) { |
asc_dvc | 6208 | drivers/scsi/advansys.c | scsiq_next = (ASC_SCSI_Q dosfar *) asc_dvc->scsiq_busy_head[tid_no]; |
asc_dvc | 6213 | drivers/scsi/advansys.c | if ((AscGetNumOfFreeQueue(asc_dvc, target_ix, 1) >= 1) || |
asc_dvc | 6215 | drivers/scsi/advansys.c | if ((sta = AscSendScsiQueue(asc_dvc, scsiq, |
asc_dvc | 6218 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt--; |
asc_dvc | 6220 | drivers/scsi/advansys.c | (*asc_exe_callback) (asc_dvc, scsiq); |
asc_dvc | 6234 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[tid_no] = (ASC_SCSI_Q dosfar *) scsiq; |
asc_dvc | 6235 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq; |
asc_dvc | 6241 | drivers/scsi/advansys.c | scsiq_tail = (ASC_SCSI_Q dosfar *) asc_dvc->scsiq_busy_tail[tid_no]; |
asc_dvc | 6245 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[tid_no] = (ASC_SCSI_Q dosfar *) scsiq; |
asc_dvc | 6260 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq; |
asc_dvc | 6266 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[tid_no] = (ASC_SCSI_Q dosfar *) scsiq; |
asc_dvc | 6275 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_SCSIQ_BAD_NEXT_PTR); |
asc_dvc | 6281 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt--; |
asc_dvc | 6288 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6300 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6309 | drivers/scsi/advansys.c | asc_dvc->last_q_shortage = 0; |
asc_dvc | 6313 | drivers/scsi/advansys.c | if ((sta = AscPutReadySgListQueue(asc_dvc, scsiq, |
asc_dvc | 6317 | drivers/scsi/advansys.c | asc_dvc->req_count++; |
asc_dvc | 6321 | drivers/scsi/advansys.c | asc_dvc->cur_total_qng += (uchar) (n_q_required); |
asc_dvc | 6322 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[tid_no]++; |
asc_dvc | 6332 | drivers/scsi/advansys.c | if ((sta = AscPutReadyQueue(asc_dvc, scsiq, |
asc_dvc | 6336 | drivers/scsi/advansys.c | asc_dvc->req_count++; |
asc_dvc | 6340 | drivers/scsi/advansys.c | asc_dvc->cur_total_qng++; |
asc_dvc | 6341 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[tid_no]++; |
asc_dvc | 6364 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6375 | drivers/scsi/advansys.c | if ((asc_dvc->unit_not_ready & target_id) || |
asc_dvc | 6376 | drivers/scsi/advansys.c | (asc_dvc->queue_full_or_busy & target_id)) { |
asc_dvc | 6380 | drivers/scsi/advansys.c | cur_used_qs = (uint) asc_dvc->cur_total_qng + |
asc_dvc | 6381 | drivers/scsi/advansys.c | (uint) asc_dvc->last_q_shortage + |
asc_dvc | 6384 | drivers/scsi/advansys.c | cur_used_qs = (uint) asc_dvc->cur_total_qng + |
asc_dvc | 6388 | drivers/scsi/advansys.c | if ((uint) (cur_used_qs + n_qs) <= (uint) asc_dvc->max_total_qng) { |
asc_dvc | 6389 | drivers/scsi/advansys.c | cur_free_qs = (uint) asc_dvc->max_total_qng - cur_used_qs; |
asc_dvc | 6390 | drivers/scsi/advansys.c | if (asc_dvc->cur_dvc_qng[tid_no] >= |
asc_dvc | 6391 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[tid_no]) { |
asc_dvc | 6397 | drivers/scsi/advansys.c | if (n_qs > asc_dvc->last_q_shortage) { |
asc_dvc | 6398 | drivers/scsi/advansys.c | asc_dvc->last_q_shortage = n_qs; |
asc_dvc | 6406 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6418 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6420 | drivers/scsi/advansys.c | if (((asc_dvc->init_sdtr & scsiq->q1.target_id) != 0) && |
asc_dvc | 6421 | drivers/scsi/advansys.c | ((asc_dvc->sdtr_done & scsiq->q1.target_id) == 0)) { |
asc_dvc | 6437 | drivers/scsi/advansys.c | if ((scsiq->q1.target_id & asc_dvc->use_tagged_qng) == 0) { |
asc_dvc | 6459 | drivers/scsi/advansys.c | (ushort) asc_dvc->req_count); |
asc_dvc | 6464 | drivers/scsi/advansys.c | if ((asc_dvc->dvc_cntl & ASC_CNTL_NO_VERIFY_COPY) == 0) { |
asc_dvc | 6470 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_LOCAL_MEM); |
asc_dvc | 6478 | drivers/scsi/advansys.c | AscSetLibErrorCode(asc_dvc, ASCQ_ERR_LOCAL_MEM); |
asc_dvc | 6501 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6518 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6580 | drivers/scsi/advansys.c | sta = AscPutReadyQueue(asc_dvc, scsiq, q_no); |
asc_dvc | 6589 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6597 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6599 | drivers/scsi/advansys.c | saved_unit_not_ready = asc_dvc->unit_not_ready; |
asc_dvc | 6600 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = 0xFF; |
asc_dvc | 6601 | drivers/scsi/advansys.c | AscWaitISRDone(asc_dvc); |
asc_dvc | 6603 | drivers/scsi/advansys.c | if (AscRiscHaltedAbortSRB(asc_dvc, srb_ptr) == 1) { |
asc_dvc | 6613 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = saved_unit_not_ready; |
asc_dvc | 6619 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6633 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6636 | drivers/scsi/advansys.c | saved_unit_not_ready = asc_dvc->unit_not_ready; |
asc_dvc | 6637 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = target_id; |
asc_dvc | 6639 | drivers/scsi/advansys.c | AscWaitTixISRDone(asc_dvc, target_ix); |
asc_dvc | 6641 | drivers/scsi/advansys.c | if (AscRiscHaltedAbortTIX(asc_dvc, target_ix) == 1) { |
asc_dvc | 6646 | drivers/scsi/advansys.c | AscWaitTixISRDone(asc_dvc, target_ix); |
asc_dvc | 6664 | drivers/scsi/advansys.c | AscWriteLramByte(asc_dvc->iop_base, ASCV_MSGOUT_BEG, |
asc_dvc | 6667 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready &= ~target_id; |
asc_dvc | 6669 | drivers/scsi/advansys.c | asc_dvc->sdtr_done |= target_id; |
asc_dvc | 6671 | drivers/scsi/advansys.c | if (AscExeScsiQueue(asc_dvc, (ASC_SCSI_Q dosfar *) scsiq) |
asc_dvc | 6673 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = target_id; |
asc_dvc | 6680 | drivers/scsi/advansys.c | if (asc_dvc->pci_fix_asyn_xfer & target_id) { |
asc_dvc | 6685 | drivers/scsi/advansys.c | AscWaitTixISRDone(asc_dvc, target_ix); |
asc_dvc | 6692 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~target_id; |
asc_dvc | 6698 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = saved_unit_not_ready; |
asc_dvc | 6704 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 6711 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6712 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = 0xFF; |
asc_dvc | 6714 | drivers/scsi/advansys.c | AscWaitISRDone(asc_dvc); |
asc_dvc | 6717 | drivers/scsi/advansys.c | asc_dvc->sdtr_done = 0; |
asc_dvc | 6720 | drivers/scsi/advansys.c | DvcSleepMilliSecond((ulong) ((ushort) asc_dvc->scsi_reset_wait * 1000)); |
asc_dvc | 6723 | drivers/scsi/advansys.c | if (!(asc_dvc->dvc_cntl & ASC_CNTL_NO_SCAM)) { |
asc_dvc | 6724 | drivers/scsi/advansys.c | AscSCAM(asc_dvc); |
asc_dvc | 6727 | drivers/scsi/advansys.c | AscReInitLram(asc_dvc); |
asc_dvc | 6730 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[i] = 0; |
asc_dvc | 6731 | drivers/scsi/advansys.c | if (asc_dvc->pci_fix_asyn_xfer & (0x01 << i)) { |
asc_dvc | 6737 | drivers/scsi/advansys.c | asc_dvc->err_code = 0; |
asc_dvc | 6747 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = 0; |
asc_dvc | 6748 | drivers/scsi/advansys.c | asc_dvc->queue_full_or_busy = 0; |
asc_dvc | 6792 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 6795 | drivers/scsi/advansys.c | AscInitLram(asc_dvc); |
asc_dvc | 6796 | drivers/scsi/advansys.c | AscInitQLinkVar(asc_dvc); |
asc_dvc | 6802 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc) |
asc_dvc | 6809 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6813 | drivers/scsi/advansys.c | (ushort) (((int) (asc_dvc->max_total_qng + 2 + 1) * 64) >> 1) |
asc_dvc | 6822 | drivers/scsi/advansys.c | (uchar) (asc_dvc->max_total_qng)); |
asc_dvc | 6827 | drivers/scsi/advansys.c | for (; i < asc_dvc->max_total_qng; i++, s_addr += ASC_QBLK_SIZE) { |
asc_dvc | 6839 | drivers/scsi/advansys.c | (uchar) (asc_dvc->max_total_qng - 1)); |
asc_dvc | 6841 | drivers/scsi/advansys.c | (uchar) asc_dvc->max_total_qng); |
asc_dvc | 6845 | drivers/scsi/advansys.c | for (; i <= (uchar) (asc_dvc->max_total_qng + 3); |
asc_dvc | 6861 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 6868 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 6870 | drivers/scsi/advansys.c | AscPutRiscVarDoneQTail(iop_base, asc_dvc->max_total_qng); |
asc_dvc | 6873 | drivers/scsi/advansys.c | AscPutVarDoneQTail(iop_base, asc_dvc->max_total_qng); |
asc_dvc | 6876 | drivers/scsi/advansys.c | (uchar) ((int) asc_dvc->max_total_qng + 1)); |
asc_dvc | 6878 | drivers/scsi/advansys.c | (uchar) ((int) asc_dvc->max_total_qng + 2)); |
asc_dvc | 6881 | drivers/scsi/advansys.c | asc_dvc->max_total_qng); |
asc_dvc | 6901 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 6905 | drivers/scsi/advansys.c | if (asc_dvc->err_code == 0) { |
asc_dvc | 6907 | drivers/scsi/advansys.c | asc_dvc->err_code = err_code; |
asc_dvc | 6908 | drivers/scsi/advansys.c | AscWriteLramWord(asc_dvc->iop_base, ASCV_ASCDVC_ERR_CODE_W, |
asc_dvc | 7090 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 7102 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7103 | drivers/scsi/advansys.c | asc_isr_callback = (ASC_ISR_CALLBACK) asc_dvc->isr_callback; |
asc_dvc | 7108 | drivers/scsi/advansys.c | _AscAbortSrbBusyQueue(asc_dvc, scsiq, srb_ptr); |
asc_dvc | 7111 | drivers/scsi/advansys.c | for (q_no = ASC_MIN_ACTIVE_QNO; q_no <= asc_dvc->max_total_qng; |
asc_dvc | 7117 | drivers/scsi/advansys.c | _AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count); |
asc_dvc | 7130 | drivers/scsi/advansys.c | (*asc_isr_callback) (asc_dvc, scsiq); |
asc_dvc | 7141 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 7158 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7159 | drivers/scsi/advansys.c | asc_isr_callback = (ASC_ISR_CALLBACK) asc_dvc->isr_callback; |
asc_dvc | 7166 | drivers/scsi/advansys.c | _AscAbortTidBusyQueue(asc_dvc, scsiq, tid_no); |
asc_dvc | 7170 | drivers/scsi/advansys.c | for (q_no = ASC_MIN_ACTIVE_QNO; q_no <= asc_dvc->max_total_qng; |
asc_dvc | 7173 | drivers/scsi/advansys.c | _AscCopyLramScsiDoneQ(iop_base, q_addr, scsiq, asc_dvc->max_dma_count); |
asc_dvc | 7188 | drivers/scsi/advansys.c | (*asc_isr_callback) (asc_dvc, scsiq); |
asc_dvc | 7307 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 7316 | drivers/scsi/advansys.c | if ((cur_req = asc_dvc->cur_dvc_qng[tid_no]) == 0) { |
asc_dvc | 7320 | drivers/scsi/advansys.c | if (asc_dvc->cur_dvc_qng[tid_no] == cur_req) { |
asc_dvc | 7329 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7335 | drivers/scsi/advansys.c | AscWaitTixISRDone(asc_dvc, ASC_TID_TO_TIX(tid)); |
asc_dvc | 7342 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 7350 | drivers/scsi/advansys.c | if (DvcGetSGList(asc_dvc, (uchar dosfar *) buf_addr, |
asc_dvc | 7649 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7655 | drivers/scsi/advansys.c | asc_dvc->init_state = ASC_INIT_STATE_BEG_GET_CFG; |
asc_dvc | 7656 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) |
asc_dvc | 7658 | drivers/scsi/advansys.c | if (AscFindSignature(asc_dvc->iop_base)) { |
asc_dvc | 7659 | drivers/scsi/advansys.c | warn_code |= AscInitAscDvcVar(asc_dvc); |
asc_dvc | 7660 | drivers/scsi/advansys.c | warn_code |= AscInitFromEEP(asc_dvc); |
asc_dvc | 7661 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_END_GET_CFG; |
asc_dvc | 7663 | drivers/scsi/advansys.c | if (asc_dvc->scsi_reset_wait > 10) |
asc_dvc | 7664 | drivers/scsi/advansys.c | asc_dvc->scsi_reset_wait = 10; |
asc_dvc | 7667 | drivers/scsi/advansys.c | asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; |
asc_dvc | 7674 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7680 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_BEG_SET_CFG; |
asc_dvc | 7681 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) |
asc_dvc | 7683 | drivers/scsi/advansys.c | if (AscFindSignature(asc_dvc->iop_base)) { |
asc_dvc | 7684 | drivers/scsi/advansys.c | warn_code |= AscInitFromAscDvcVar(asc_dvc); |
asc_dvc | 7685 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_END_SET_CFG; |
asc_dvc | 7687 | drivers/scsi/advansys.c | asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; |
asc_dvc | 7694 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7705 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7708 | drivers/scsi/advansys.c | if ((asc_dvc->dvc_cntl & ASC_CNTL_RESET_SCSI) && |
asc_dvc | 7709 | drivers/scsi/advansys.c | !(asc_dvc->init_state & ASC_INIT_RESET_SCSI_DONE)) { |
asc_dvc | 7713 | drivers/scsi/advansys.c | DvcSleepMilliSecond((ulong) ((ushort) asc_dvc->scsi_reset_wait * 1000)); |
asc_dvc | 7715 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_BEG_LOAD_MC; |
asc_dvc | 7716 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) |
asc_dvc | 7719 | drivers/scsi/advansys.c | if (!AscFindSignature(asc_dvc->iop_base)) { |
asc_dvc | 7720 | drivers/scsi/advansys.c | asc_dvc->err_code = ASC_IERR_BAD_SIGNATURE; |
asc_dvc | 7727 | drivers/scsi/advansys.c | warn_code |= AscInitLram(asc_dvc); |
asc_dvc | 7728 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) |
asc_dvc | 7733 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_MCODE_CHKSUM; |
asc_dvc | 7737 | drivers/scsi/advansys.c | warn_code |= AscInitMicroCodeVar(asc_dvc); |
asc_dvc | 7738 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_END_LOAD_MC; |
asc_dvc | 7746 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7753 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7755 | drivers/scsi/advansys.c | asc_dvc->err_code = 0; |
asc_dvc | 7757 | drivers/scsi/advansys.c | if ((asc_dvc->bus_type & |
asc_dvc | 7759 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_NO_BUS_TYPE; |
asc_dvc | 7763 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[i] = (ASC_SCSI_Q dosfar *) 0L; |
asc_dvc | 7764 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[i] = (ASC_SCSI_Q dosfar *) 0L; |
asc_dvc | 7768 | drivers/scsi/advansys.c | asc_dvc->dvc_cntl = ASC_DEF_DVC_CNTL; |
asc_dvc | 7769 | drivers/scsi/advansys.c | asc_dvc->bug_fix_cntl = 0; |
asc_dvc | 7770 | drivers/scsi/advansys.c | asc_dvc->pci_fix_asyn_xfer = 0; |
asc_dvc | 7771 | drivers/scsi/advansys.c | asc_dvc->init_sdtr = 0; |
asc_dvc | 7772 | drivers/scsi/advansys.c | asc_dvc->sdtr_done = 0; |
asc_dvc | 7773 | drivers/scsi/advansys.c | asc_dvc->max_total_qng = ASC_DEF_MAX_TOTAL_QNG; |
asc_dvc | 7774 | drivers/scsi/advansys.c | asc_dvc->cur_total_qng = 0; |
asc_dvc | 7775 | drivers/scsi/advansys.c | asc_dvc->is_in_int = 0; |
asc_dvc | 7776 | drivers/scsi/advansys.c | asc_dvc->scsi_reset_wait = 3; |
asc_dvc | 7777 | drivers/scsi/advansys.c | asc_dvc->in_critical_cnt = 0; |
asc_dvc | 7779 | drivers/scsi/advansys.c | asc_dvc->last_q_shortage = 0; |
asc_dvc | 7780 | drivers/scsi/advansys.c | asc_dvc->use_tagged_qng = 0; |
asc_dvc | 7781 | drivers/scsi/advansys.c | asc_dvc->cfg->can_tagged_qng = 0; |
asc_dvc | 7782 | drivers/scsi/advansys.c | asc_dvc->no_scam = 0; |
asc_dvc | 7783 | drivers/scsi/advansys.c | asc_dvc->irq_no = 10; |
asc_dvc | 7784 | drivers/scsi/advansys.c | asc_dvc->start_motor = ASC_SCSI_WIDTH_BIT_SET; |
asc_dvc | 7785 | drivers/scsi/advansys.c | asc_dvc->cfg->disc_enable = ASC_SCSI_WIDTH_BIT_SET; |
asc_dvc | 7786 | drivers/scsi/advansys.c | asc_dvc->cfg->cmd_qng_enabled = ASC_SCSI_WIDTH_BIT_SET; |
asc_dvc | 7787 | drivers/scsi/advansys.c | asc_dvc->cfg->chip_scsi_id = ASC_DEF_CHIP_SCSI_ID; |
asc_dvc | 7788 | drivers/scsi/advansys.c | asc_dvc->cfg->chip_version = AscGetChipVersion(iop_base, |
asc_dvc | 7789 | drivers/scsi/advansys.c | asc_dvc->bus_type); |
asc_dvc | 7793 | drivers/scsi/advansys.c | asc_dvc->bus_type = ASC_IS_ISAPNP; |
asc_dvc | 7795 | drivers/scsi/advansys.c | asc_dvc->unit_not_ready = 0; |
asc_dvc | 7796 | drivers/scsi/advansys.c | asc_dvc->queue_full_or_busy = 0; |
asc_dvc | 7798 | drivers/scsi/advansys.c | if ((asc_dvc->bus_type & ASC_IS_ISA) != 0) { |
asc_dvc | 7799 | drivers/scsi/advansys.c | asc_dvc->cfg->isa_dma_channel = (uchar) AscGetIsaDmaChannel(iop_base); |
asc_dvc | 7800 | drivers/scsi/advansys.c | asc_dvc->cfg->isa_dma_speed = ASC_DEF_ISA_DMA_SPEED; |
asc_dvc | 7802 | drivers/scsi/advansys.c | asc_dvc->cfg->lib_serial_no = ASC_LIB_SERIAL_NUMBER; |
asc_dvc | 7803 | drivers/scsi/advansys.c | asc_dvc->cfg->lib_version = (ASC_LIB_VERSION_MAJOR << 8) | |
asc_dvc | 7805 | drivers/scsi/advansys.c | asc_dvc->int_count = 0L; |
asc_dvc | 7806 | drivers/scsi/advansys.c | asc_dvc->req_count = 0L; |
asc_dvc | 7807 | drivers/scsi/advansys.c | asc_dvc->busy_count = 0L; |
asc_dvc | 7808 | drivers/scsi/advansys.c | asc_dvc->max_dma_count = AscGetMaxDmaCount(asc_dvc->bus_type); |
asc_dvc | 7811 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i] = |
asc_dvc | 7813 | drivers/scsi/advansys.c | asc_dvc->cur_dvc_qng[i] = 0; |
asc_dvc | 7814 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[i] = ASC_MAX_SCSI1_QNG; |
asc_dvc | 7815 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_head[i] = (ASC_SCSI_Q dosfar *) 0L; |
asc_dvc | 7816 | drivers/scsi/advansys.c | asc_dvc->scsiq_busy_tail[i] = (ASC_SCSI_Q dosfar *) 0L; |
asc_dvc | 7823 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7830 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7844 | drivers/scsi/advansys.c | if ((asc_dvc->cfg->cmd_qng_enabled & asc_dvc->cfg->disc_enable) != |
asc_dvc | 7845 | drivers/scsi/advansys.c | asc_dvc->cfg->cmd_qng_enabled) { |
asc_dvc | 7846 | drivers/scsi/advansys.c | asc_dvc->cfg->disc_enable = asc_dvc->cfg->cmd_qng_enabled; |
asc_dvc | 7849 | drivers/scsi/advansys.c | if ((asc_dvc->bus_type & (ASC_IS_ISA | ASC_IS_VL)) != 0) { |
asc_dvc | 7851 | drivers/scsi/advansys.c | if (AscSetChipIRQ(iop_base, asc_dvc->irq_no, asc_dvc->bus_type) |
asc_dvc | 7852 | drivers/scsi/advansys.c | != asc_dvc->irq_no) { |
asc_dvc | 7853 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_SET_IRQ_NO; |
asc_dvc | 7856 | drivers/scsi/advansys.c | if (AscSetChipScsiID(iop_base, asc_dvc->cfg->chip_scsi_id) != |
asc_dvc | 7857 | drivers/scsi/advansys.c | asc_dvc->cfg->chip_scsi_id) { |
asc_dvc | 7858 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_SET_SCSI_ID; |
asc_dvc | 7860 | drivers/scsi/advansys.c | if ((asc_dvc->bus_type & ASC_IS_ISA) != 0) { |
asc_dvc | 7861 | drivers/scsi/advansys.c | AscSetIsaDmaChannel(iop_base, asc_dvc->cfg->isa_dma_channel); |
asc_dvc | 7862 | drivers/scsi/advansys.c | AscSetIsaDmaSpeed(iop_base, asc_dvc->cfg->isa_dma_speed); |
asc_dvc | 7869 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 7880 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 7888 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_RESET_SCSI_DONE; |
asc_dvc | 7890 | drivers/scsi/advansys.c | DvcSleepMilliSecond((ulong) ((ushort) asc_dvc->scsi_reset_wait * 1000)); |
asc_dvc | 7893 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_START_STOP_CHIP; |
asc_dvc | 7898 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_SET_PC_ADDR; |
asc_dvc | 7906 | drivers/scsi/advansys.c | if (asc_dvc->bus_type & ASC_IS_PCI) { |
asc_dvc | 7911 | drivers/scsi/advansys.c | if (asc_dvc->cfg->pci_device_id == ASC_PCI_DEVICE_ID_REV_A) { |
asc_dvc | 7912 | drivers/scsi/advansys.c | asc_dvc->bug_fix_cntl |= ASC_BUG_FIX_ADD_ONE_BYTE; |
asc_dvc | 7920 | drivers/scsi/advansys.c | chksum = AscGetEEPConfig(iop_base, eep_config, asc_dvc->bus_type); |
asc_dvc | 7927 | drivers/scsi/advansys.c | if (asc_dvc->cfg->chip_version == 3) { |
asc_dvc | 7943 | drivers/scsi/advansys.c | asc_dvc->init_sdtr = eep_config->init_sdtr; |
asc_dvc | 7944 | drivers/scsi/advansys.c | asc_dvc->cfg->disc_enable = eep_config->disc_enable; |
asc_dvc | 7946 | drivers/scsi/advansys.c | asc_dvc->cfg->cmd_qng_enabled = eep_config->use_cmd_qng; |
asc_dvc | 7947 | drivers/scsi/advansys.c | asc_dvc->cfg->isa_dma_speed = eep_config->isa_dma_speed; |
asc_dvc | 7948 | drivers/scsi/advansys.c | asc_dvc->start_motor = eep_config->start_motor; |
asc_dvc | 7949 | drivers/scsi/advansys.c | asc_dvc->dvc_cntl = eep_config->cntl; |
asc_dvc | 7950 | drivers/scsi/advansys.c | asc_dvc->no_scam = eep_config->no_scam; |
asc_dvc | 7952 | drivers/scsi/advansys.c | if ((asc_dvc->bus_type & ASC_IS_PCI) && |
asc_dvc | 7953 | drivers/scsi/advansys.c | !(asc_dvc->dvc_cntl & ASC_CNTL_NO_PCI_FIX_ASYN_XFER)) { |
asc_dvc | 7954 | drivers/scsi/advansys.c | if ((asc_dvc->cfg->pci_device_id == ASC_PCI_DEVICE_ID_REV_A) || |
asc_dvc | 7955 | drivers/scsi/advansys.c | (asc_dvc->cfg->pci_device_id == ASC_PCI_DEVICE_ID_REV_B)) { |
asc_dvc | 7956 | drivers/scsi/advansys.c | asc_dvc->pci_fix_asyn_xfer = ASC_ALL_DEVICE_BIT_SET; |
asc_dvc | 7958 | drivers/scsi/advansys.c | } else if ((asc_dvc->bus_type & ASC_IS_ISAPNP) == ASC_IS_ISAPNP) { |
asc_dvc | 7960 | drivers/scsi/advansys.c | if (AscGetChipVersion(iop_base, asc_dvc->bus_type) |
asc_dvc | 7962 | drivers/scsi/advansys.c | asc_dvc->pci_fix_asyn_xfer = ASC_ALL_DEVICE_BIT_SET; |
asc_dvc | 7965 | drivers/scsi/advansys.c | if (!AscTestExternalLram(asc_dvc)) { |
asc_dvc | 7966 | drivers/scsi/advansys.c | if (asc_dvc->bus_type & ASC_IS_PCI) { |
asc_dvc | 7975 | drivers/scsi/advansys.c | asc_dvc->err_code |= AscTestLramEndian(iop_base); |
asc_dvc | 7990 | drivers/scsi/advansys.c | asc_dvc->max_total_qng = eep_config->max_total_qng; |
asc_dvc | 7997 | drivers/scsi/advansys.c | asc_dvc->irq_no = AscGetChipIRQ(iop_base, asc_dvc->bus_type); |
asc_dvc | 7999 | drivers/scsi/advansys.c | asc_dvc->cfg->chip_scsi_id = eep_config->chip_scsi_id; |
asc_dvc | 8002 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i] = eep_config->sdtr_data[i]; |
asc_dvc | 8003 | drivers/scsi/advansys.c | asc_dvc->cfg->max_tag_qng[i] = eep_config->max_tag_qng; |
asc_dvc | 8007 | drivers/scsi/advansys.c | if (AscSetEEPConfig(iop_base, eep_config, asc_dvc->bus_type) != 0) { |
asc_dvc | 8008 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_WRITE_EEPROM; |
asc_dvc | 8015 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 8023 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 8027 | drivers/scsi/advansys.c | asc_dvc->cfg->sdtr_data[i]); |
asc_dvc | 8030 | drivers/scsi/advansys.c | AscInitQLinkVar(asc_dvc); |
asc_dvc | 8033 | drivers/scsi/advansys.c | asc_dvc->cfg->disc_enable); |
asc_dvc | 8035 | drivers/scsi/advansys.c | ASC_TID_TO_TARGET_ID(asc_dvc->cfg->chip_scsi_id)); |
asc_dvc | 8036 | drivers/scsi/advansys.c | if ((phy_addr = AscGetOnePhyAddr(asc_dvc, |
asc_dvc | 8037 | drivers/scsi/advansys.c | (uchar dosfar *) asc_dvc->cfg->overrun_buf, |
asc_dvc | 8039 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_GET_PHY_ADDR; |
asc_dvc | 8048 | drivers/scsi/advansys.c | asc_dvc->cfg->mcode_date = AscReadLramWord(iop_base, |
asc_dvc | 8050 | drivers/scsi/advansys.c | asc_dvc->cfg->mcode_version = AscReadLramWord(iop_base, |
asc_dvc | 8054 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_SET_PC_ADDR; |
asc_dvc | 8058 | drivers/scsi/advansys.c | asc_dvc->err_code |= ASC_IERR_START_STOP_CHIP; |
asc_dvc | 8066 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8095 | drivers/scsi/advansys.c | (unsigned) asc_dvc->isr_callback); |
asc_dvc | 8096 | drivers/scsi/advansys.c | if (asc_dvc->isr_callback != 0) { |
asc_dvc | 8097 | drivers/scsi/advansys.c | asc_isr_callback = (ASC_ISR_CALLBACK) asc_dvc->isr_callback; |
asc_dvc | 8098 | drivers/scsi/advansys.c | (*asc_isr_callback) (asc_dvc, scsi_done_q); |
asc_dvc | 8106 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 8114 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 8362 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 8367 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 8375 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_BEG_INQUIRY; |
asc_dvc | 8378 | drivers/scsi/advansys.c | asc_dvc->use_tagged_qng = 0; |
asc_dvc | 8379 | drivers/scsi/advansys.c | asc_dvc->cfg->can_tagged_qng = 0; |
asc_dvc | 8380 | drivers/scsi/advansys.c | asc_dvc->saved_ptr2func = (ulong) asc_dvc->isr_callback; |
asc_dvc | 8381 | drivers/scsi/advansys.c | asc_dvc->isr_callback = ASC_GET_PTR2FUNC(AscInitPollIsrCallBack); |
asc_dvc | 8387 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc |
asc_dvc | 8393 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 8394 | drivers/scsi/advansys.c | asc_dvc->isr_callback = (Ptr2Func) asc_dvc->saved_ptr2func; |
asc_dvc | 8396 | drivers/scsi/advansys.c | asc_dvc->cfg->disc_enable); |
asc_dvc | 8398 | drivers/scsi/advansys.c | asc_dvc->use_tagged_qng); |
asc_dvc | 8400 | drivers/scsi/advansys.c | asc_dvc->cfg->can_tagged_qng); |
asc_dvc | 8405 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[i]); |
asc_dvc | 8413 | drivers/scsi/advansys.c | asc_dvc->init_state |= ASC_INIT_STATE_END_INQUIRY; |
asc_dvc | 8422 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8441 | drivers/scsi/advansys.c | if ((phy_addr = AscGetOnePhyAddr(asc_dvc, |
asc_dvc | 8447 | drivers/scsi/advansys.c | if (((asc_dvc->init_sdtr & tid_bits) != 0) && |
asc_dvc | 8448 | drivers/scsi/advansys.c | ((asc_dvc->sdtr_done & tid_bits) == 0)) { |
asc_dvc | 8450 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~tid_bits; |
asc_dvc | 8454 | drivers/scsi/advansys.c | if (PollScsiInquiry(asc_dvc, scsiq, (uchar dosfar *) inq, |
asc_dvc | 8464 | drivers/scsi/advansys.c | asc_dvc->start_motor &= ~tid_bits; |
asc_dvc | 8502 | drivers/scsi/advansys.c | asc_dvc->cfg->can_tagged_qng |= tid_bits; |
asc_dvc | 8503 | drivers/scsi/advansys.c | if (asc_dvc->cfg->cmd_qng_enabled & tid_bits) { |
asc_dvc | 8504 | drivers/scsi/advansys.c | asc_dvc->use_tagged_qng |= tid_bits; |
asc_dvc | 8505 | drivers/scsi/advansys.c | asc_dvc->max_dvc_qng[tid_no] = |
asc_dvc | 8506 | drivers/scsi/advansys.c | asc_dvc->cfg->max_tag_qng[tid_no]; |
asc_dvc | 8514 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~tid_bits; |
asc_dvc | 8515 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~tid_bits; |
asc_dvc | 8518 | drivers/scsi/advansys.c | asc_dvc->init_sdtr |= tid_bits; |
asc_dvc | 8522 | drivers/scsi/advansys.c | asc_dvc->init_sdtr &= ~tid_bits; |
asc_dvc | 8523 | drivers/scsi/advansys.c | asc_dvc->sdtr_done &= ~tid_bits; |
asc_dvc | 8524 | drivers/scsi/advansys.c | asc_dvc->use_tagged_qng &= ~tid_bits; |
asc_dvc | 8527 | drivers/scsi/advansys.c | if (asc_dvc->pci_fix_asyn_xfer & tid_bits) { |
asc_dvc | 8528 | drivers/scsi/advansys.c | if (!(asc_dvc->init_sdtr & tid_bits)) { |
asc_dvc | 8530 | drivers/scsi/advansys.c | AscSetRunChipSynRegAtID(asc_dvc->iop_base, tid_no, |
asc_dvc | 8535 | drivers/scsi/advansys.c | if (InitTestUnitReady(asc_dvc, scsiq) != 1) { |
asc_dvc | 8540 | drivers/scsi/advansys.c | if (PollScsiReadCapacity(asc_dvc, scsiq, |
asc_dvc | 8550 | drivers/scsi/advansys.c | asc_dvc->start_motor &= ~tid_bits; |
asc_dvc | 8560 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8571 | drivers/scsi/advansys.c | if ((status = AscExeScsiQueue(asc_dvc, |
asc_dvc | 8574 | drivers/scsi/advansys.c | if ((status = AscPollQDone(asc_dvc, scsiq, |
asc_dvc | 8595 | drivers/scsi/advansys.c | AscAbortSRB(asc_dvc, (ulong) scsiq); |
asc_dvc | 8607 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8613 | drivers/scsi/advansys.c | if (AscScsiInquiry(asc_dvc, scsiq, buf, buf_len) == ERR) { |
asc_dvc | 8616 | drivers/scsi/advansys.c | return (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 4)); |
asc_dvc | 8621 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8629 | drivers/scsi/advansys.c | if (AscScsiReadCapacity(asc_dvc, scsiq, |
asc_dvc | 8633 | drivers/scsi/advansys.c | status = PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 8); |
asc_dvc | 8667 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8671 | drivers/scsi/advansys.c | if (AscScsiTestUnitReady(asc_dvc, scsiq) == ERR) { |
asc_dvc | 8674 | drivers/scsi/advansys.c | return (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 12)); |
asc_dvc | 8679 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8683 | drivers/scsi/advansys.c | if (AscScsiStartStopUnit(asc_dvc, scsiq, 1) == ERR) { |
asc_dvc | 8686 | drivers/scsi/advansys.c | return (PollQueueDone(asc_dvc, (ASC_SCSI_REQ_Q dosfar *) scsiq, 40)); |
asc_dvc | 8691 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8703 | drivers/scsi/advansys.c | PollScsiTestUnitReady(asc_dvc, scsiq); |
asc_dvc | 8717 | drivers/scsi/advansys.c | if (asc_dvc->start_motor & tid_bits) { |
asc_dvc | 8718 | drivers/scsi/advansys.c | if (PollScsiStartUnit(asc_dvc, scsiq) == 1) { |
asc_dvc | 8722 | drivers/scsi/advansys.c | asc_dvc->start_motor &= ~tid_bits; |
asc_dvc | 8751 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 8760 | drivers/scsi/advansys.c | iop_base = asc_dvc->iop_base; |
asc_dvc | 8768 | drivers/scsi/advansys.c | loop, asc_dvc->err_code, scsiq->r3.done_stat, scsiq->r3.scsi_stat); |
asc_dvc | 8769 | drivers/scsi/advansys.c | if (asc_dvc->err_code != 0) { |
asc_dvc | 8788 | drivers/scsi/advansys.c | AscISR(asc_dvc); |
asc_dvc | 8794 | drivers/scsi/advansys.c | AscISR(asc_dvc); |
asc_dvc | 9026 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 9031 | drivers/scsi/advansys.c | if (AscScsiSetupCmdQ(asc_dvc, scsiq, buf, |
asc_dvc | 9047 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 9052 | drivers/scsi/advansys.c | if (AscScsiSetupCmdQ(asc_dvc, scsiq, info, 8L) == ERR) { |
asc_dvc | 9071 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 9075 | drivers/scsi/advansys.c | if (AscScsiSetupCmdQ(asc_dvc, scsiq, FNULLPTR, |
asc_dvc | 9092 | drivers/scsi/advansys.c | ASC_DVC_VAR asc_ptr_type * asc_dvc, |
asc_dvc | 9097 | drivers/scsi/advansys.c | if (AscScsiSetupCmdQ(asc_dvc, scsiq, FNULLPTR, (ulong) 0L) == ERR) { |