Lines Matching refs:ExchangeID

289 	s32 ExchangeID;  in cpqfcTS_WorkTask()  local
320 ExchangeID = (s32) fcLQ->Qitem[QconsumerNdx].ulBuff[0]; // x_ID copied from DPC timeout function in cpqfcTS_WorkTask()
326 if (Exchanges->fcExchange[ExchangeID].status & EXCHANGE_QUEUED) { in cpqfcTS_WorkTask()
330 ulStatus = cpqfcTSStartExchange(dev, ExchangeID); in cpqfcTS_WorkTask()
391 &ExchangeID); // fcController->fcExchanges index, -1 if failed in cpqfcTS_WorkTask()
395 ulStatus = cpqfcTSStartExchange(dev, ExchangeID); in cpqfcTS_WorkTask()
613 ExchangeID = fchs.ox_rx_id & 0x7FFF; // RX_ID for exchange in cpqfcTS_WorkTask()
617 if (Exchanges->fcExchange[ExchangeID].status == TARGET_ABORT) { in cpqfcTS_WorkTask()
620 fcChip->SEST->u[ExchangeID].IWE.Hdr_Len &= 0x7FFFFFFF; 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()
638 &ExchangeID); // fcController->fcExchanges index, -1 if failed in cpqfcTS_WorkTask()
642 ulStatus = cpqfcTSStartExchange(dev, ExchangeID); in cpqfcTS_WorkTask()
664 &ExchangeID); // fcController->fcExchanges index, -1 if failed in cpqfcTS_WorkTask()
668 ulStatus = cpqfcTSStartExchange(dev, ExchangeID); in cpqfcTS_WorkTask()
672 printk("Failed to send BLS_RJT for ABTS, X_ID %Xh\n", ExchangeID); in cpqfcTS_WorkTask()
674 printk("Sent BLS_RJT for ABTS, X_ID %Xh\n", ExchangeID); in cpqfcTS_WorkTask()
1683 s32 ExchangeID; in AnalyzeIncomingFrame() local
1753 for (ExchangeID = 0, AbortAccept = 0; ExchangeID < TACH_SEST_LEN; ExchangeID++) { in AnalyzeIncomingFrame()
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 …x_ID %8.8Xh, SEST pair %8.8Xh\n", fchs->ox_rx_id, Exchanges->fcExchange[ExchangeID].fchs.ox_rx_id); in AnalyzeIncomingFrame()
1787 …if (Exchanges->fcExchange[ExchangeID].type && !(fcChip->SEST->u[ExchangeID].IWE.Hdr_Len & 0x800000… in AnalyzeIncomingFrame()
1788 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in AnalyzeIncomingFrame()
1790 …rintk("Unexpected ABTS ReJecT! SEST[%X] Dword 0: %Xh\n", ExchangeID, fcChip->SEST->u[ExchangeID].I… in AnalyzeIncomingFrame()
1802 ExchangeID = (fchs->ox_rx_id >> 16) & 0x7FFF; // x_id from ACC in AnalyzeIncomingFrame()
1806 if (ExchangeID < TACH_SEST_LEN) // x_ID makes sense 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()
1818 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in AnalyzeIncomingFrame()
1830 ExchangeID = (fchs->ox_rx_id >> 16) & 0x7FFF; // x_id from ACC in AnalyzeIncomingFrame()
1834 if (ExchangeID < TACH_SEST_LEN) // x_ID makes sense 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()
1854 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in AnalyzeIncomingFrame()
1880 s32 ExchangeID; in SendLogins() local
2025 &ExchangeID); // fcController->fcExchanges index, -1 if failed in SendLogins()
2029 ulStatus = cpqfcTSStartExchange(dev, ExchangeID); in SendLogins()
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()
2079 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in SendLogins()
2104 …printk("SendLogins: failed at xchng %Xh, alpa %Xh, status %Xh\n", ExchangeID, fchs.s_id, ulStatus); in SendLogins()
3251 static void buildFCPstatus(PTACHYON fcChip, u32 ExchangeID);
4088 static void buildFCPstatus(PTACHYON fcChip, u32 ExchangeID) in buildFCPstatus() argument
4091 FC_EXCHANGE *pExchange = &Exchanges->fcExchange[ExchangeID]; // shorthand in buildFCPstatus()
4094 memset(&fcChip->SEST->RspHDR[ExchangeID].pl, 0, sizeof(FCP_STATUS_RESPONSE)); in buildFCPstatus()
4098 & fcChip->SEST->RspHDR[ExchangeID].pl; in buildFCPstatus()
4513 u32 cpqfcTSStartExchange(CPQFCHBA * dev, s32 ExchangeID) in cpqfcTSStartExchange() argument
4517 FC_EXCHANGE *pExchange = &Exchanges->fcExchange[ExchangeID]; // shorthand in cpqfcTSStartExchange()
4533 …Xh, type %Xh, port_id %Xh\n", fcChip->Registers.FMstatus.value & 0xFF, ExchangeID, pExchange->type… in cpqfcTSStartExchange()
4535 if (ExchangeID >= TACH_SEST_LEN) // Link Service Outbound frame? in cpqfcTSStartExchange()
4550 printk("fcStartExchange: Que x_ID %Xh, type %Xh\n", ExchangeID, pExchange->type); in cpqfcTSStartExchange()
4579 pExchange->IRB.Req_A_Trans_ID = ExchangeID & 0x7FFF; // 15-bit field in cpqfcTSStartExchange()
4594 pExchange->fchs.ox_rx_id = (ExchangeID | InboundData); in cpqfcTSStartExchange()
4601 fcChip->SEST->DataHDR[ExchangeID].ox_rx_id = pExchange->fchs.ox_rx_id; in cpqfcTSStartExchange()
4618 pExchange->fchs.ox_rx_id = ExchangeID; in cpqfcTSStartExchange()
4637 pExchange->fchs.ox_rx_id |= (ExchangeID & 0xFFFF); in cpqfcTSStartExchange()
4652 pExchange->fchs.ox_rx_id |= (ExchangeID | 0x8000); in cpqfcTSStartExchange()
4662 fcChip->SEST->DataHDR[ExchangeID].ox_rx_id |= ExchangeID; in cpqfcTSStartExchange()
4663 fcChip->SEST->RspHDR[ExchangeID].ox_rx_id = fcChip->SEST->DataHDR[ExchangeID].ox_rx_id; in cpqfcTSStartExchange()
4667 pExchange->fchs.ox_rx_id = fcChip->SEST->DataHDR[ExchangeID].ox_rx_id; in cpqfcTSStartExchange()
4702 PCI_TRACEO(ExchangeID, 0xA0) in cpqfcTSStartExchange()
4707 if (ExchangeID >= TACH_SEST_LEN) // Link Service Outbound frame? in cpqfcTSStartExchange()
4713 PCI_TRACEO(ExchangeID, 0xA4) in cpqfcTSStartExchange()
4727 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in cpqfcTSStartExchange()
4737 cpqfcTSCompleteExchange(dev->PciDev, fcChip, ExchangeID); in cpqfcTSStartExchange()