taglinefilesource code
CCB265drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = (BusLogic_CCB_T *)
CCB270drivers/scsi/BusLogic.cif (CCB == NULL)
CCB276drivers/scsi/BusLogic.cmemset(CCB, 0, sizeof(BusLogic_CCB_T));
CCB277drivers/scsi/BusLogic.cCCB->HostAdapter = HostAdapter;
CCB278drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB279drivers/scsi/BusLogic.cCCB->Next = HostAdapter->Free_CCBs;
CCB280drivers/scsi/BusLogic.cCCB->NextAll = HostAdapter->All_CCBs;
CCB281drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB;
CCB282drivers/scsi/BusLogic.cHostAdapter->All_CCBs = CCB;
CCB294drivers/scsi/BusLogic.cBusLogic_CCB_T *NextCCB = HostAdapter->All_CCBs, *CCB;
CCB297drivers/scsi/BusLogic.cwhile ((CCB = NextCCB) != NULL)
CCB299drivers/scsi/BusLogic.cNextCCB = CCB->NextAll;
CCB300drivers/scsi/BusLogic.cscsi_init_free((char *) CCB, sizeof(BusLogic_CCB_T));
CCB314drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB316drivers/scsi/BusLogic.cCCB = HostAdapter->Free_CCBs;
CCB317drivers/scsi/BusLogic.cif (CCB != NULL)
CCB319drivers/scsi/BusLogic.cCCB->SerialNumber = ++SerialNumber;
CCB320drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB->Next;
CCB321drivers/scsi/BusLogic.cCCB->Next = NULL;
CCB322drivers/scsi/BusLogic.creturn CCB;
CCB326drivers/scsi/BusLogic.cCCB = (BusLogic_CCB_T *)
CCB331drivers/scsi/BusLogic.cif (CCB == NULL) break;
CCB332drivers/scsi/BusLogic.cmemset(CCB, 0, sizeof(BusLogic_CCB_T));
CCB333drivers/scsi/BusLogic.cCCB->HostAdapter = HostAdapter;
CCB334drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB335drivers/scsi/BusLogic.cCCB->Next = HostAdapter->Free_CCBs;
CCB336drivers/scsi/BusLogic.cCCB->NextAll = HostAdapter->All_CCBs;
CCB337drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB;
CCB338drivers/scsi/BusLogic.cHostAdapter->All_CCBs = CCB;
CCB340drivers/scsi/BusLogic.cCCB = HostAdapter->Free_CCBs;
CCB341drivers/scsi/BusLogic.cif (CCB == NULL)
CCB349drivers/scsi/BusLogic.cCCB->SerialNumber = ++SerialNumber;
CCB350drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB->Next;
CCB351drivers/scsi/BusLogic.cCCB->Next = NULL;
CCB352drivers/scsi/BusLogic.creturn CCB;
CCB362drivers/scsi/BusLogic.cstatic void BusLogic_DeallocateCCB(BusLogic_CCB_T *CCB)
CCB364drivers/scsi/BusLogic.cBusLogic_HostAdapter_T *HostAdapter = CCB->HostAdapter;
CCB365drivers/scsi/BusLogic.cCCB->Command = NULL;
CCB366drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB367drivers/scsi/BusLogic.cCCB->Next = HostAdapter->Free_CCBs;
CCB368drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB;
CCB2163drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = NextIncomingMailbox->CCB;
CCB2165drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active ||
CCB2166drivers/scsi/BusLogic.cCCB->Status == BusLogic_CCB_Reset)
CCB2172drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Completed;
CCB2173drivers/scsi/BusLogic.cCCB->MailboxCompletionCode = MailboxCompletionCode;
CCB2174drivers/scsi/BusLogic.cCCB->Next = NULL;
CCB2177drivers/scsi/BusLogic.cFirstCompletedCCB = CCB;
CCB2178drivers/scsi/BusLogic.cLastCompletedCCB = CCB;
CCB2182drivers/scsi/BusLogic.cLastCompletedCCB->Next = CCB;
CCB2183drivers/scsi/BusLogic.cLastCompletedCCB = CCB;
CCB2185drivers/scsi/BusLogic.cHostAdapter->ActiveCommandCount[CCB->TargetID]--;
CCB2196drivers/scsi/BusLogic.cCCB->SerialNumber, CCB->Status);
CCB2200drivers/scsi/BusLogic.cCCB->SerialNumber, CCB->TargetID);
CCB2222drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = FirstCompletedCCB;
CCB2223drivers/scsi/BusLogic.cSCSI_Command_T *Command = CCB->Command;
CCB2225drivers/scsi/BusLogic.cHostAdapter = CCB->HostAdapter;
CCB2233drivers/scsi/BusLogic.cif (CCB->Opcode == BusLogic_BusDeviceReset)
CCB2235drivers/scsi/BusLogic.cunsigned char TargetID = CCB->TargetID;
CCB2237drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, TargetID);
CCB2243drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2263drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2264drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Reset && CCB->TargetID == TargetID)
CCB2266drivers/scsi/BusLogic.cCommand = CCB->Command;
CCB2267drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2280drivers/scsi/BusLogic.cswitch (CCB->MailboxCompletionCode)
CCB2285drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB2288drivers/scsi/BusLogic.cHostAdapter->CommandSuccessfulFlag[CCB->TargetID] = true;
CCB2293drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB2298drivers/scsi/BusLogic.cBusLogic_ComputeResultCode(CCB->HostAdapterStatus,
CCB2299drivers/scsi/BusLogic.cCCB->TargetDeviceStatus);
CCB2301drivers/scsi/BusLogic.cif (CCB->HostAdapterStatus != BusLogic_SCSISelectionTimeout)
CCB2306drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber,
CCB2307drivers/scsi/BusLogic.cCCB->TargetID, Command->result,
CCB2308drivers/scsi/BusLogic.cCCB->HostAdapterStatus, CCB->TargetDeviceStatus);
CCB2310drivers/scsi/BusLogic.cfor (i = 0; i < CCB->CDB_Length; i++)
CCB2311drivers/scsi/BusLogic.cprintk(" %02X", CCB->CDB[i]);
CCB2314drivers/scsi/BusLogic.cfor (i = 0; i < CCB->SenseDataLength; i++)
CCB2315drivers/scsi/BusLogic.cprintk(" %02X", (*CCB->SenseDataPointer)[i]);
CCB2323drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2359drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB)
CCB2365drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Active;
CCB2371drivers/scsi/BusLogic.cNextOutgoingMailbox->CCB = CCB;
CCB2378drivers/scsi/BusLogic.cHostAdapter->ActiveCommandCount[CCB->TargetID]++;
CCB2403drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2425drivers/scsi/BusLogic.cCCB = BusLogic_AllocateCCB(HostAdapter);
CCB2426drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2429drivers/scsi/BusLogic.cCCB = BusLogic_AllocateCCB(HostAdapter);
CCB2430drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2442drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_InitiatorCCB;
CCB2443drivers/scsi/BusLogic.cCCB->DataLength = BufferLength;
CCB2444drivers/scsi/BusLogic.cCCB->DataPointer = BufferPointer;
CCB2450drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_InitiatorCCB_ScatterGather;
CCB2451drivers/scsi/BusLogic.cCCB->DataLength = SegmentCount * sizeof(BusLogic_ScatterGatherSegment_T);
CCB2452drivers/scsi/BusLogic.cCCB->DataPointer = CCB->ScatterGatherList;
CCB2455drivers/scsi/BusLogic.cCCB->ScatterGatherList[Segment].SegmentByteCount =
CCB2457drivers/scsi/BusLogic.cCCB->ScatterGatherList[Segment].SegmentDataPointer =
CCB2465drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_DataInLengthChecked;
CCB2469drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_DataOutLengthChecked;
CCB2472drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_UncheckedDataTransfer;
CCB2475drivers/scsi/BusLogic.cCCB->CDB_Length = CDB_Length;
CCB2476drivers/scsi/BusLogic.cCCB->SenseDataLength = sizeof(Command->sense_buffer);
CCB2477drivers/scsi/BusLogic.cCCB->HostAdapterStatus = 0;
CCB2478drivers/scsi/BusLogic.cCCB->TargetDeviceStatus = 0;
CCB2479drivers/scsi/BusLogic.cCCB->TargetID = TargetID;
CCB2480drivers/scsi/BusLogic.cCCB->LogicalUnit = LogicalUnit;
CCB2488drivers/scsi/BusLogic.cCCB->TagEnable = LogicalUnit >> 5;
CCB2489drivers/scsi/BusLogic.cCCB->WideModeTagEnable = false;
CCB2491drivers/scsi/BusLogic.celse CCB->TagEnable = false;
CCB2537drivers/scsi/BusLogic.cCCB->WideModeTagEnable = true;
CCB2538drivers/scsi/BusLogic.cCCB->WideModeQueueTag = QueueTag;
CCB2542drivers/scsi/BusLogic.cCCB->TagEnable = true;
CCB2543drivers/scsi/BusLogic.cCCB->QueueTag = QueueTag;
CCB2546drivers/scsi/BusLogic.cmemcpy(CCB->CDB, CDB, CDB_Length);
CCB2547drivers/scsi/BusLogic.cCCB->SenseDataPointer = (SCSI_SenseData_T *) &Command->sense_buffer;
CCB2548drivers/scsi/BusLogic.cCCB->Command = Command;
CCB2559drivers/scsi/BusLogic.cBusLogic_MailboxStartCommand, CCB))
CCB2565drivers/scsi/BusLogic.cBusLogic_MailboxStartCommand, CCB))
CCB2569drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2593drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2613drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2614drivers/scsi/BusLogic.cif (CCB->Command == Command) break;
CCB2615drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2622drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Completed)
CCB2629drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Reset)
CCB2651drivers/scsi/BusLogic.cCCB->SerialNumber, TargetID);
CCB2655drivers/scsi/BusLogic.cBusLogic_MailboxAbortCommand, CCB))
CCB2658drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, TargetID);
CCB2665drivers/scsi/BusLogic.cCCB->SerialNumber, TargetID);
CCB2687drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2708drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2709drivers/scsi/BusLogic.cif (CCB->Command == Command) break;
CCB2710drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2717drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Completed)
CCB2724drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Reset &&
CCB2752drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2753drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active)
CCB2754drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Reset;
CCB2775drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2776drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Reset)
CCB2778drivers/scsi/BusLogic.cCommand = CCB->Command;
CCB2779drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2812drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2831drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2832drivers/scsi/BusLogic.cif (CCB->Command == Command) break;
CCB2833drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2840drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Completed)
CCB2847drivers/scsi/BusLogic.celse if (CCB->Status == BusLogic_CCB_Reset)
CCB2862drivers/scsi/BusLogic.cif ((CCB = HostAdapter->BusDeviceResetPendingCCB[TargetID]) != NULL)
CCB2864drivers/scsi/BusLogic.cCommand->reset_chain = CCB->Command;
CCB2865drivers/scsi/BusLogic.cCCB->Command = Command;
CCB2886drivers/scsi/BusLogic.cCCB = BusLogic_AllocateCCB(HostAdapter);
CCB2887drivers/scsi/BusLogic.cif (CCB == NULL) goto Done;
CCB2889drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, TargetID);
CCB2890drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_BusDeviceReset;
CCB2891drivers/scsi/BusLogic.cCCB->TargetID = TargetID;
CCB2899drivers/scsi/BusLogic.cCCB->Command = Command;
CCB2907drivers/scsi/BusLogic.cBusLogic_MailboxStartCommand, CCB)))
CCB2911drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2930drivers/scsi/BusLogic.cHostAdapter->BusDeviceResetPendingCCB[TargetID] = CCB;
CCB2932drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2933drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active && CCB->TargetID == TargetID)
CCB2934drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Reset;
CCB788drivers/scsi/BusLogic.hBusLogic_CCB_T *CCB;          /* Bytes 0-3 */
CCB801drivers/scsi/BusLogic.hBusLogic_CCB_T *CCB;          /* Bytes 0-3 */