Lines Matching refs:fcExchange

326 		if (Exchanges->fcExchange[ExchangeID].status & EXCHANGE_QUEUED) {  in cpqfcTS_WorkTask()
432 if (Exchanges->fcExchange[x_ID].Cmnd == NULL) // should be RARE in cpqfcTS_WorkTask()
440 if (Exchanges->fcExchange[x_ID].status & FC2_TIMEOUT) { in cpqfcTS_WorkTask()
443 if (Exchanges->fcExchange[x_ID].status & INITIATOR_ABORT) { in cpqfcTS_WorkTask()
446 if (Exchanges->fcExchange[x_ID].status & PORTID_CHANGED) { in cpqfcTS_WorkTask()
449 if (Exchanges->fcExchange[x_ID].status & DEVICE_REMOVED) { in cpqfcTS_WorkTask()
452 if (Exchanges->fcExchange[x_ID].status & LINKFAIL_TX) { in cpqfcTS_WorkTask()
455 if (Exchanges->fcExchange[x_ID].status & FRAME_TO) { in cpqfcTS_WorkTask()
458 if (Exchanges->fcExchange[x_ID].status & ABORTSEQ_NOTIFY) { in cpqfcTS_WorkTask()
461 if (Exchanges->fcExchange[x_ID].status & SFQ_FRAME) { in cpqfcTS_WorkTask()
465 if (Exchanges->fcExchange[x_ID].type == 0x2000) in cpqfcTS_WorkTask()
467 else if (Exchanges->fcExchange[x_ID].type == 0x3000) in cpqfcTS_WorkTask()
469 else if (Exchanges->fcExchange[x_ID].type == 0x10) in cpqfcTS_WorkTask()
472 printk(" %Xh", Exchanges->fcExchange[x_ID].type); in cpqfcTS_WorkTask()
474 if (!(Exchanges->fcExchange[x_ID].status & INITIATOR_ABORT)) { in cpqfcTS_WorkTask()
475 printk(" Cmd %p, ", Exchanges->fcExchange[x_ID].Cmnd); in cpqfcTS_WorkTask()
478 …changes->fcExchange[x_ID].Cmnd->channel, Exchanges->fcExchange[x_ID].Cmnd->target, Exchanges->fcEx… in cpqfcTS_WorkTask()
535 if (!(Exchanges->fcExchange[x_ID].status & PORTID_CHANGED) in cpqfcTS_WorkTask()
536 && !(Exchanges->fcExchange[x_ID].status & DEVICE_REMOVED)) { in cpqfcTS_WorkTask()
537 Exchanges->fcExchange[x_ID].type = BLS_ABTS; in cpqfcTS_WorkTask()
538 fchs.s_id = Exchanges->fcExchange[x_ID].fchs.d_id; in cpqfcTS_WorkTask()
554 Exchanges->fcExchange[x_ID].status |= EXCHANGE_QUEUED; in cpqfcTS_WorkTask()
559 PFC_LOGGEDIN_PORT pLoggedInPort = Exchanges->fcExchange[x_ID].pLoggedInPort; in cpqfcTS_WorkTask()
569 if (Exchanges->fcExchange[x_ID].status & EXCHANGE_QUEUED) { in cpqfcTS_WorkTask()
617 if (Exchanges->fcExchange[ExchangeID].status == TARGET_ABORT) { in cpqfcTS_WorkTask()
634 Exchanges->fcExchange[ExchangeID].type = BLS_ABTS_ACC; in cpqfcTS_WorkTask()
636 fchs.s_id = Exchanges->fcExchange[ExchangeID].fchs.d_id; in cpqfcTS_WorkTask()
995 if (Exchanges->fcExchange[x_ID].type) // in use? in cpqfcTSTerminateExchange()
999 Exchanges->fcExchange[x_ID].status = TerminateStatus; in cpqfcTSTerminateExchange()
1005 if (Exchanges->fcExchange[x_ID].Cmnd) // Cmnd in progress? in cpqfcTSTerminateExchange()
1007 if ((Exchanges->fcExchange[x_ID].Cmnd->target == ScsiNexus->target) in cpqfcTSTerminateExchange()
1008 && (Exchanges->fcExchange[x_ID].Cmnd->channel == ScsiNexus->channel)) { in cpqfcTSTerminateExchange()
1009 Exchanges->fcExchange[x_ID].status = TerminateStatus; in cpqfcTSTerminateExchange()
1361 if (Exchanges->fcExchange[(fchs->ox_rx_id >> 16)].type == 0) { in ProcessELS_Reply()
1370 switch (Exchanges->fcExchange[ox_id].type) { in ProcessELS_Reply()
1382 switch (Exchanges->fcExchange[ox_id].type) { in ProcessELS_Reply()
1475 if (((fchs->s_id & 0xFFFFFF) == (Exchanges->fcExchange[i].fchs.d_id & 0xFFFFFF)) in ProcessELS_Reply()
1476 && (Exchanges->fcExchange[i].status & EXCHANGE_QUEUED)) { in ProcessELS_Reply()
1620 if (Exchanges->fcExchange[(fchs->ox_rx_id >> 16)].type == 0) { in ProcessFCS_Reply()
1763 …if ((Exchanges->fcExchange[ExchangeID].type == SCSI_TWE || Exchanges->fcExchange[ExchangeID].type … in AnalyzeIncomingFrame()
1764 && ((Exchanges->fcExchange[ExchangeID].fchs.d_id & 0xFFFFFF) == (fchs->s_id & 0xFFFFFF))) { in AnalyzeIncomingFrame()
1767 if ((Exchanges->fcExchange[ExchangeID].fchs.ox_rx_id & 0xFFFF0000) in AnalyzeIncomingFrame()
1771 Exchanges->fcExchange[ExchangeID].status = TARGET_ABORT; in AnalyzeIncomingFrame()
1774 fchs->ox_rx_id = Exchanges->fcExchange[ExchangeID].fchs.ox_rx_id; in AnalyzeIncomingFrame()
1779 … ABTS for x_ID %8.8Xh, SEST pair %8.8Xh\n", fchs->ox_rx_id, Exchanges->fcExchange[ExchangeID].fchs… in AnalyzeIncomingFrame()
1787 …if (Exchanges->fcExchange[ExchangeID].type && !(fcChip->SEST->u[ExchangeID].IWE.Hdr_Len & 0x800000… in AnalyzeIncomingFrame()
1814 if ((Exchanges->fcExchange[ExchangeID].type == BLS_ABTS) && in AnalyzeIncomingFrame()
1817 ((Exchanges->fcExchange[ExchangeID].fchs.d_id & 0xFFFFFF) == (fchs->s_id & 0xFFFFFF))) { in AnalyzeIncomingFrame()
1842 if ((Exchanges->fcExchange[ExchangeID].type == BLS_ABTS) in AnalyzeIncomingFrame()
1847 ((Exchanges->fcExchange[ExchangeID].fchs.d_id & 0xFFFFFF) == (fchs->s_id & 0xFFFFFF))) { in AnalyzeIncomingFrame()
2075 if (Exchanges->fcExchange[ExchangeID].status) { in SendLogins()
2077 …printk("completing x_ID %X on status %Xh\n", ExchangeID, Exchanges->fcExchange[ExchangeID].status); in SendLogins()
2129 if (Exchanges->fcExchange[i].type // exchange defined? in ScsiReportLunsDone()
2130 && (Exchanges->fcExchange[i].Cmnd == Cmnd)) // matches? in ScsiReportLunsDone()
2145 … Exchanges->fcExchange[x_ID].fchs.d_id & 0xFFFFFF, NULL, // DON'T search linked list for FC WWN in ScsiReportLunsDone()
2161 TachFCHDR_GCMND *fchs = &Exchanges->fcExchange[x_ID].fchs; in ScsiReportLunsDone()
2487 if (Exchanges->fcExchange[i].type) // exchange defined? in cpqfcTSheartbeat()
2490 if (!Exchanges->fcExchange[i].timeOut) // time expired in cpqfcTSheartbeat()
2493 Exchanges->fcExchange[i].status |= FC2_TIMEOUT; in cpqfcTSheartbeat()
2503 Exchanges->fcExchange[i].timeOut = 30000; // seconds default in cpqfcTSheartbeat()
2505 if (Exchanges->fcExchange[i].type & (BLS_ABTS | BLS_ABTS_ACC)) { in cpqfcTSheartbeat()
2522 pLoggedInPort = fcFindLoggedInPort(fcChip, Exchanges->fcExchange[i].Cmnd, // find Scsi Nexus in cpqfcTSheartbeat()
2548 --Exchanges->fcExchange[i].timeOut; in cpqfcTSheartbeat()
2766 if ((Exchanges->fcExchange[x_ID].type == SCSI_IRE) in RevalidateSEST()
2767 || (Exchanges->fcExchange[x_ID].type == SCSI_IWE)) { in RevalidateSEST()
2768 …if ((Exchanges->fcExchange[x_ID].fchs.d_id & 0xFFFFFF) == pLoggedInPort->port_id) // (24-bit port… in RevalidateSEST()
3397 CMDfchs = &Exchanges->fcExchange[*fcExchangeIndex].fchs; in cpqfcTSBuildExchange()
3401 Exchanges->fcExchange[*fcExchangeIndex].Cmnd = Cmnd; // Linux Scsi in cpqfcTSBuildExchange()
3402 …Exchanges->fcExchange[*fcExchangeIndex].pLoggedInPort = fcFindLoggedInPort(fcChip, Exchanges->fcEx… in cpqfcTSBuildExchange()
3441 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 1; // seconds in cpqfcTSBuildExchange()
3459 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 5; // seconds in cpqfcTSBuildExchange()
3493 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 5; // seconds in cpqfcTSBuildExchange()
3524 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 2; // seconds in cpqfcTSBuildExchange()
3529 Exchanges->fcExchange[*fcExchangeIndex].reTries = 2; in cpqfcTSBuildExchange()
3530 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 2; // seconds in cpqfcTSBuildExchange()
3571 Exchanges->fcExchange[*fcExchangeIndex].reTries = 2; in cpqfcTSBuildExchange()
3572 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 2; // seconds in cpqfcTSBuildExchange()
3607 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 1; // assume done in cpqfcTSBuildExchange()
3651 PFC_LOGGEDIN_PORT pLoggedInPort = Exchanges->fcExchange[*fcExchangeIndex].pLoggedInPort; in cpqfcTSBuildExchange()
3653 Exchanges->fcExchange[*fcExchangeIndex].reTries = 1; in cpqfcTSBuildExchange()
3654 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 7; // FC2 timeout in cpqfcTSBuildExchange()
3770 Exchanges->fcExchange[*fcExchangeIndex].timeOut = Cmnd->timeout; in cpqfcTSBuildExchange()
3777 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 0xFFFFFFFF; in cpqfcTSBuildExchange()
3779 Exchanges->fcExchange[*fcExchangeIndex].reTries = 1; in cpqfcTSBuildExchange()
3780 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 7; // per SCSI req. in cpqfcTSBuildExchange()
3860 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 10; // per SCSI req. in cpqfcTSBuildExchange()
3935 Exchanges->fcExchange[*fcExchangeIndex].timeOut = 10; // per SCSI req. in cpqfcTSBuildExchange()
4034 …Exchanges->fcExchange[*fcExchangeIndex].type = FCP_RESPONSE; // change Exchange type to "response"… in cpqfcTSBuildExchange()
4058 pIRB = &Exchanges->fcExchange[*fcExchangeIndex].IRB; in cpqfcTSBuildExchange()
4091 FC_EXCHANGE *pExchange = &Exchanges->fcExchange[ExchangeID]; // shorthand in buildFCPstatus()
4517 FC_EXCHANGE *pExchange = &Exchanges->fcExchange[ExchangeID]; // shorthand in cpqfcTSStartExchange()
4791 if (Exchanges->fcExchange[i].type == 0) // check for "free" element in FindFreeExchange()
4807 if (Exchanges->fcExchange[i].type == 0) // "free"? in FindFreeExchange()
4829 if (Exchanges->fcExchange[i].type == 0) // check for "free" element in FindFreeExchange()
4845 if (Exchanges->fcExchange[i].type == 0) // "free"? in FindFreeExchange()
4862 Exchanges->fcExchange[i].type = type; // allocate it. in FindFreeExchange()
4914 if (Exchanges->fcExchange[x_ID].Cmnd == NULL) // what#@! in cpqfcTSCompleteExchange()
4917 printk(" x_ID %Xh, type %Xh, NULL ptr!\n", x_ID, Exchanges->fcExchange[x_ID].type); in cpqfcTSCompleteExchange()
4924 if (Exchanges->fcExchange[x_ID].status) // perhaps a Tach indicated problem, in cpqfcTSCompleteExchange()
4929 if (Exchanges->fcExchange[x_ID].status & FC2_TIMEOUT) in cpqfcTSCompleteExchange()
4931 if (Exchanges->fcExchange[x_ID].status & INITIATOR_ABORT) in cpqfcTSCompleteExchange()
4933 if (Exchanges->fcExchange[x_ID].status & COUNT_ERROR) in cpqfcTSCompleteExchange()
4935 if (Exchanges->fcExchange[x_ID].status & LINKFAIL_TX) in cpqfcTSCompleteExchange()
4937 if (Exchanges->fcExchange[x_ID].status & LINKFAIL_RX) in cpqfcTSCompleteExchange()
4939 if (Exchanges->fcExchange[x_ID].status & OVERFLOW) in cpqfcTSCompleteExchange()
4944 if (Exchanges->fcExchange[x_ID].status == INITIATOR_ABORT) { in cpqfcTSCompleteExchange()
4945 printk(" DID_ABORT, x_ID %Xh, Cmnd %p ", x_ID, Exchanges->fcExchange[x_ID].Cmnd); in cpqfcTSCompleteExchange()
4950 else if (Exchanges->fcExchange[x_ID].status & FC2_TIMEOUT) { in cpqfcTSCompleteExchange()
4953 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_SOFT_ERROR << 16); in cpqfcTSCompleteExchange()
4957 else if (Exchanges->fcExchange[x_ID].status & SFQ_FRAME) { in cpqfcTSCompleteExchange()
4960 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_SOFT_ERROR << 16); in cpqfcTSCompleteExchange()
4964 else if ((Exchanges->fcExchange[x_ID].status & LINKFAIL_TX) || in cpqfcTSCompleteExchange()
4965fcExchange[x_ID].status & PORTID_CHANGED) || (Exchanges->fcExchange[x_ID].status & FRAME_TO) || (E… in cpqfcTSCompleteExchange()
4970 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_SOFT_ERROR << 16); in cpqfcTSCompleteExchange()
4975 else if (Exchanges->fcExchange[x_ID].status & DEVICE_REMOVED) { in cpqfcTSCompleteExchange()
4979 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_BAD_TARGET << 16); in cpqfcTSCompleteExchange()
4984 else if (Exchanges->fcExchange[x_ID].status == COUNT_ERROR) { in cpqfcTSCompleteExchange()
4994fcExchange[x_ID].Cmnd->cmnd[0] == 0x8) || (Exchanges->fcExchange[x_ID].Cmnd->cmnd[0] == 0x28) || (… in cpqfcTSCompleteExchange()
5000 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_SOFT_ERROR << 16); in cpqfcTSCompleteExchange()
5012 unsigned int stat = Exchanges->fcExchange[x_ID].status; in cpqfcTSCompleteExchange()
5013 …EFAULT result %Xh, x_ID %Xh, Cmnd %p", Exchanges->fcExchange[x_ID].status, x_ID, Exchanges->fcExch… in cpqfcTSCompleteExchange()
5067 Exchanges->fcExchange[x_ID].Cmnd->result = (DID_ERROR << 16); in cpqfcTSCompleteExchange()
5076 cpqfc_pci_unmap(pcidev, Exchanges->fcExchange[x_ID].Cmnd, fcChip, x_ID); // undo DMA mappings. in cpqfcTSCompleteExchange()
5083 PCI_TRACEO((u32) Exchanges->fcExchange[x_ID].Cmnd, 0xAC); in cpqfcTSCompleteExchange()
5085 if (Exchanges->fcExchange[x_ID].Cmnd->scsi_done != NULL) { in cpqfcTSCompleteExchange()
5089 if (Exchanges->fcExchange[x_ID].Cmnd->result != (DID_ABORT << 16)) { in cpqfcTSCompleteExchange()
5091 call_scsi_done(Exchanges->fcExchange[x_ID].Cmnd); in cpqfcTSCompleteExchange()
5093 Exchanges->fcExchange[x_ID].Cmnd->SCp.sent_command = 0; in cpqfcTSCompleteExchange()
5098 Exchanges->fcExchange[x_ID].Cmnd->SCp.sent_command = 0; in cpqfcTSCompleteExchange()
5099 …k(" x_ID %Xh, type %Xh, Cdb0 %Xh\n", x_ID, Exchanges->fcExchange[x_ID].type, Exchanges->fcExchange in cpqfcTSCompleteExchange()
5108 cpqfc_pci_unmap(pcidev, Exchanges->fcExchange[x_ID].Cmnd, fcChip, x_ID); // undo DMA mappings. in cpqfcTSCompleteExchange()
5123 Exchanges->fcExchange[x_ID].Cmnd = NULL; in cpqfcTSCompleteExchange()
5130 Exchanges->fcExchange[x_ID].type = 0; // there -- FREE! in cpqfcTSCompleteExchange()
5131 Exchanges->fcExchange[x_ID].status = 0; in cpqfcTSCompleteExchange()
5147 Scsi_Cmnd *Cmnd = Exchanges->fcExchange[x_ID].Cmnd; in cpqfcTSCheckandSnoopFCP()
5191 … Exchanges->fcExchange[x_ID].fchs.d_id & 0xFFFFFF, NULL, // DON'T search linked list for FC WWN in cpqfcTSCheckandSnoopFCP()
5197 …printk("cpqfcTS: can't find LoggedIn FC port %06X for INQUIRY\n", Exchanges->fcExchange[x_ID].fchs… in cpqfcTSCheckandSnoopFCP()