Lines Matching refs:cpqfcHBAdata

55 static void cpqfc_free_dma_consistent(CPQFCHBA * cpqfcHBAdata)  in cpqfc_free_dma_consistent()  argument
58 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in cpqfc_free_dma_consistent()
61 …pci_free_consistent(cpqfcHBAdata->PciDev, sizeof(FC_EXCHANGES), fcChip->Exchanges, fcChip->exch_dm… in cpqfc_free_dma_consistent()
63 if (cpqfcHBAdata->fcLQ != NULL) in cpqfc_free_dma_consistent()
64 …pci_free_consistent(cpqfcHBAdata->PciDev, sizeof(FC_LINK_QUE), cpqfcHBAdata->fcLQ, cpqfcHBAdata->f… in cpqfc_free_dma_consistent()
65 cpqfcHBAdata->fcLQ = NULL; in cpqfc_free_dma_consistent()
75 CPQFCHBA *cpqfcHBAdata = (CPQFCHBA *) pHBA; in CpqTsCreateTachLiteQues() local
76 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in CpqTsCreateTachLiteQues()
92 cpqfcHBAdata->fcLQ = NULL; in CpqTsCreateTachLiteQues()
95 …fcChip->Exchanges = pci_alloc_consistent(cpqfcHBAdata->PciDev, sizeof(FC_EXCHANGES), &fcChip->exch… in CpqTsCreateTachLiteQues()
108cpqfcHBAdata->fcLQ = pci_alloc_consistent(cpqfcHBAdata->PciDev, sizeof(FC_LINK_QUE), &cpqfcHBAdata in CpqTsCreateTachLiteQues()
109 printk("@ %p (%u elements)\n", cpqfcHBAdata->fcLQ, FC_LINKQ_DEPTH); in CpqTsCreateTachLiteQues()
110 memset(cpqfcHBAdata->fcLQ, 0, sizeof(FC_LINK_QUE)); in CpqTsCreateTachLiteQues()
112 if (cpqfcHBAdata->fcLQ == NULL) // fatal error!! in CpqTsCreateTachLiteQues()
114 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
119 memset(cpqfcHBAdata->fcLQ, 0, sizeof(FC_LINK_QUE)); in CpqTsCreateTachLiteQues()
123 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
130 memset(cpqfcHBAdata->dynamic_mem, 0, sizeof(cpqfcHBAdata->dynamic_mem)); in CpqTsCreateTachLiteQues()
135 …fcChip->ERQ = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], sizeof(TachLiteERQ… in CpqTsCreateTachLiteQues()
137 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
145 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
155 …fcChip->IMQ = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], sizeof(TachyonIMQ)… in CpqTsCreateTachLiteQues()
157 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
166 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
175 …fcChip->SFQ = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], sizeof(TachLiteSFQ… in CpqTsCreateTachLiteQues()
177 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
187 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
200 …fcChip->SEST = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], sizeof(TachSEST),… in CpqTsCreateTachLiteQues()
203 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
217 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
270 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsCreateTachLiteQues()
313 CPQFCHBA *cpqfcHBAdata = (CPQFCHBA *) pHBA; in CpqTsResetTachLite() local
314 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in CpqTsResetTachLite()
381 CpqTsDestroyTachLiteQues(cpqfcHBAdata, 0); // remove Host-based Que structs in CpqTsResetTachLite()
580 static void SetTachTOV(CPQFCHBA * cpqfcHBAdata) in SetTachTOV() argument
582 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in SetTachTOV()
641 CPQFCHBA *cpqfcHBAdata = (CPQFCHBA *) HostAdapter->hostdata; in CpqTsProcessIMQEntry() local
642 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in CpqTsProcessIMQEntry()
746 cpqfcTSPutLinkQue(cpqfcHBAdata, BLS_ABTS, &x_ID); in CpqTsProcessIMQEntry()
750 cpqfcTSPutLinkQue(cpqfcHBAdata, BLS_ABTS, &x_ID); in CpqTsProcessIMQEntry()
773 up(cpqfcHBAdata->TYOBcomplete); // frame is OUT of Tach in CpqTsProcessIMQEntry()
903 cpqfcTSPutLinkQue(cpqfcHBAdata, BLS_ABTS, &x_ID); in CpqTsProcessIMQEntry()
913 cpqfcTSPutLinkQue(cpqfcHBAdata, SFQ_UNKNOWN, ulFibreFrame); in CpqTsProcessIMQEntry()
967 up(cpqfcHBAdata->TachFrozen); in CpqTsProcessIMQEntry()
1082 SetTachTOV(cpqfcHBAdata); // must set according to SANMark in CpqTsProcessIMQEntry()
1126 cpqfcHBAdata->PortDiscDone = 0; // must re-validate FC ports! in CpqTsProcessIMQEntry()
1151 cpqfcTSCompleteExchange(cpqfcHBAdata->PciDev, fcChip, i); // abort on LDn in CpqTsProcessIMQEntry()
1206 cpqfcTSTerminateExchange(cpqfcHBAdata, NULL, PORTID_CHANGED); in CpqTsProcessIMQEntry()
1281 cpqfcTSPutLinkQue(cpqfcHBAdata, LINKACTIVE, ulFibreFrame); in CpqTsProcessIMQEntry()
1322 cpqfcTSImplicitLogout(cpqfcHBAdata, pLoggedInPort); in CpqTsProcessIMQEntry()
1404 cpqfcTSCompleteExchange(cpqfcHBAdata->PciDev, fcChip, x_ID); in CpqTsProcessIMQEntry()
1501 CPQFCHBA *cpqfcHBAdata = (CPQFCHBA *) pHBA; in CpqTsInitializeTachLite() local
1502 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in CpqTsInitializeTachLite()
1520 iStatus = fcChip->ResetTachyon(cpqfcHBAdata, opcode2); // laser off, reset hardware in CpqTsInitializeTachLite()
1551 pci_read_config_byte(cpqfcHBAdata->PciDev, 0x43, // PCIMCTR offset in CpqTsInitializeTachLite()
1571 sprintf(cpqfcHBAdata->fcChip.Name, STACHLITE66_TS12); in CpqTsInitializeTachLite()
1574 sprintf(cpqfcHBAdata->fcChip.Name, STACHLITE66_TS13); in CpqTsInitializeTachLite()
1576 sprintf(cpqfcHBAdata->fcChip.Name, SAGILENT_XL2_21); in CpqTsInitializeTachLite()
1578 sprintf(cpqfcHBAdata->fcChip.Name, STACHLITE_UNKNOWN); in CpqTsInitializeTachLite()
1584 iStatus = CpqTsCreateTachLiteQues(cpqfcHBAdata, opcode2); in CpqTsInitializeTachLite()
1623 CPQFCHBA *cpqfcHBAdata = (CPQFCHBA *) pHBA; in CpqTsDestroyTachLiteQues() local
1624 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in CpqTsDestroyTachLiteQues()
1642 …cpqfc_pci_unmap(cpqfcHBAdata->PciDev, Exchanges->fcExchange[i].Cmnd, fcChip, i); // undo DMA mappi… in CpqTsDestroyTachLiteQues()
1651 …vPtr = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], 0, 0, (u32) ulPtr, NULL);… in CpqTsDestroyTachLiteQues()
1662 …vPtr = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], 0, 0, (u32) ulPtr, NULL);… in CpqTsDestroyTachLiteQues()
1677 …vPtr = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], 0, 0, (u32) ulPtr, NULL);… in CpqTsDestroyTachLiteQues()
1688 …vPtr = fcMemManager(cpqfcHBAdata->PciDev, &cpqfcHBAdata->dynamic_mem[0], 0, 0, (u32) ulPtr, NULL);… in CpqTsDestroyTachLiteQues()
1696 cpqfc_free_dma_consistent(cpqfcHBAdata); in CpqTsDestroyTachLiteQues()