taglinefilesource code
CCB269drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = (BusLogic_CCB_T *)
CCB271drivers/scsi/BusLogic.cif (CCB == NULL)
CCB277drivers/scsi/BusLogic.cmemset(CCB, 0, sizeof(BusLogic_CCB_T));
CCB278drivers/scsi/BusLogic.cCCB->HostAdapter = HostAdapter;
CCB279drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB280drivers/scsi/BusLogic.cCCB->Next = HostAdapter->Free_CCBs;
CCB281drivers/scsi/BusLogic.cCCB->NextAll = HostAdapter->All_CCBs;
CCB282drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB;
CCB283drivers/scsi/BusLogic.cHostAdapter->All_CCBs = CCB;
CCB295drivers/scsi/BusLogic.cBusLogic_CCB_T *NextCCB = HostAdapter->All_CCBs, *CCB;
CCB298drivers/scsi/BusLogic.cwhile ((CCB = NextCCB) != NULL)
CCB300drivers/scsi/BusLogic.cNextCCB = CCB->NextAll;
CCB301drivers/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;
CCB323drivers/scsi/BusLogic.creturn CCB;
CCB326drivers/scsi/BusLogic.cCCB = (BusLogic_CCB_T *) scsi_init_malloc(sizeof(BusLogic_CCB_T),
CCB328drivers/scsi/BusLogic.cif (CCB == NULL)
CCB335drivers/scsi/BusLogic.cmemset(CCB, 0, sizeof(BusLogic_CCB_T));
CCB336drivers/scsi/BusLogic.cCCB->HostAdapter = HostAdapter;
CCB337drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB339drivers/scsi/BusLogic.cCCB->SerialNumber = ++SerialNumber;
CCB340drivers/scsi/BusLogic.cCCB->NextAll = HostAdapter->All_CCBs;
CCB341drivers/scsi/BusLogic.cHostAdapter->All_CCBs = CCB;
CCB343drivers/scsi/BusLogic.creturn CCB;
CCB352drivers/scsi/BusLogic.cstatic void BusLogic_DeallocateCCB(BusLogic_CCB_T *CCB)
CCB354drivers/scsi/BusLogic.cBusLogic_HostAdapter_T *HostAdapter = CCB->HostAdapter;
CCB356drivers/scsi/BusLogic.cCCB->Command = NULL;
CCB357drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Free;
CCB358drivers/scsi/BusLogic.cCCB->Next = HostAdapter->Free_CCBs;
CCB359drivers/scsi/BusLogic.cHostAdapter->Free_CCBs = CCB;
CCB1834drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = NextIncomingMailbox->CCB;
CCB1836drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active)
CCB1842drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Completed;
CCB1843drivers/scsi/BusLogic.cCCB->MailboxCompletionCode = MailboxCompletionCode;
CCB1844drivers/scsi/BusLogic.cCCB->Next = NULL;
CCB1847drivers/scsi/BusLogic.cFirstCompletedCCB = CCB;
CCB1848drivers/scsi/BusLogic.cLastCompletedCCB = CCB;
CCB1852drivers/scsi/BusLogic.cLastCompletedCCB->Next = CCB;
CCB1853drivers/scsi/BusLogic.cLastCompletedCCB = CCB;
CCB1855drivers/scsi/BusLogic.cHostAdapter->QueuedOperationCount[CCB->TargetID]--;
CCB1866drivers/scsi/BusLogic.cCCB->SerialNumber, CCB->Status);
CCB1870drivers/scsi/BusLogic.cCCB->SerialNumber, CCB->TargetID);
CCB1909drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = FirstCompletedCCB;
CCB1910drivers/scsi/BusLogic.cSCSI_Command_T *Command = CCB->Command;
CCB1912drivers/scsi/BusLogic.cHostAdapter = CCB->HostAdapter;
CCB1919drivers/scsi/BusLogic.cif (CCB->Opcode == BusLogic_SCSIBusDeviceReset)
CCB1922drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB1930drivers/scsi/BusLogic.cswitch (CCB->MailboxCompletionCode)
CCB1935drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB1938drivers/scsi/BusLogic.cHostAdapter->CommandSuccessfulFlag[CCB->TargetID] = true;
CCB1943drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB1948drivers/scsi/BusLogic.cBusLogic_ComputeResultCode(CCB->HostAdapterStatus,
CCB1949drivers/scsi/BusLogic.cCCB->TargetDeviceStatus);
CCB1951drivers/scsi/BusLogic.cif (CCB->HostAdapterStatus != BusLogic_SCSISelectionTimeout)
CCB1956drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber,
CCB1957drivers/scsi/BusLogic.cCCB->TargetID, Command->result,
CCB1958drivers/scsi/BusLogic.cCCB->HostAdapterStatus, CCB->TargetDeviceStatus);
CCB1960drivers/scsi/BusLogic.cfor (i = 0; i < CCB->CDB_Length; i++)
CCB1961drivers/scsi/BusLogic.cprintk(" %02X", CCB->CDB[i]);
CCB1964drivers/scsi/BusLogic.cfor (i = 0; i < CCB->SenseDataLength; i++)
CCB1965drivers/scsi/BusLogic.cprintk(" %02X", (*CCB->SenseDataPointer)[i]);
CCB1973drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB1990drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB)
CCB1998drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Active;
CCB2004drivers/scsi/BusLogic.cNextOutgoingMailbox->CCB = CCB;
CCB2011drivers/scsi/BusLogic.cHostAdapter->QueuedOperationCount[CCB->TargetID]++;
CCB2036drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2054drivers/scsi/BusLogic.cCCB = BusLogic_AllocateCCB(HostAdapter);
CCB2055drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2066drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_InitiatorCCB;
CCB2067drivers/scsi/BusLogic.cCCB->DataLength = BufferLength;
CCB2068drivers/scsi/BusLogic.cCCB->DataPointer = BufferPointer;
CCB2074drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_InitiatorCCB_ScatterGather;
CCB2075drivers/scsi/BusLogic.cCCB->DataLength = SegmentCount * sizeof(BusLogic_ScatterGatherSegment_T);
CCB2076drivers/scsi/BusLogic.cCCB->DataPointer = CCB->ScatterGatherList;
CCB2079drivers/scsi/BusLogic.cCCB->ScatterGatherList[Segment].SegmentByteCount =
CCB2081drivers/scsi/BusLogic.cCCB->ScatterGatherList[Segment].SegmentDataPointer =
CCB2089drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_DataInLengthChecked;
CCB2094drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_DataOutLengthChecked;
CCB2098drivers/scsi/BusLogic.cCCB->DataDirection = BusLogic_UncheckedDataTransfer;
CCB2101drivers/scsi/BusLogic.cCCB->CDB_Length = CDB_Length;
CCB2102drivers/scsi/BusLogic.cCCB->SenseDataLength = sizeof(Command->sense_buffer);
CCB2103drivers/scsi/BusLogic.cCCB->HostAdapterStatus = 0;
CCB2104drivers/scsi/BusLogic.cCCB->TargetDeviceStatus = 0;
CCB2105drivers/scsi/BusLogic.cCCB->TargetID = TargetID;
CCB2106drivers/scsi/BusLogic.cCCB->LogicalUnit = LogicalUnit;
CCB2114drivers/scsi/BusLogic.cCCB->TagEnable = LogicalUnit >> 5;
CCB2115drivers/scsi/BusLogic.cCCB->WideModeTagEnable = false;
CCB2117drivers/scsi/BusLogic.celse CCB->TagEnable = false;
CCB2157drivers/scsi/BusLogic.cCCB->WideModeTagEnable = true;
CCB2158drivers/scsi/BusLogic.cCCB->WideModeQueueTag = QueueTag;
CCB2162drivers/scsi/BusLogic.cCCB->TagEnable = true;
CCB2163drivers/scsi/BusLogic.cCCB->QueueTag = QueueTag;
CCB2166drivers/scsi/BusLogic.cmemcpy(CCB->CDB, CDB, CDB_Length);
CCB2167drivers/scsi/BusLogic.cCCB->SenseDataPointer = (SCSI_SenseData_T *) &Command->sense_buffer;
CCB2168drivers/scsi/BusLogic.cCCB->Command = Command;
CCB2176drivers/scsi/BusLogic.cBusLogic_MailboxStartCommand, CCB)))
CCB2180drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2198drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2222drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2223drivers/scsi/BusLogic.cif (CCB->Command == Command) break;
CCB2225drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2236drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB2244drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active &&
CCB2245drivers/scsi/BusLogic.cCCB->Command == Command && Command->pid == CommandPID)
CCB2251drivers/scsi/BusLogic.cBusLogic_MailboxAbortCommand, CCB))
CCB2254drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB2261drivers/scsi/BusLogic.cCCB->SerialNumber, CCB->TargetID);
CCB2266drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID);
CCB2281drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB;
CCB2310drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2311drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Active)
CCB2313drivers/scsi/BusLogic.cCCB->Status = BusLogic_CCB_Reset;
CCB2314drivers/scsi/BusLogic.cif (CCB->Command == Command)
CCB2316drivers/scsi/BusLogic.cCCB->Command = NULL;
CCB2320drivers/scsi/BusLogic.cif (((HostAdapter->HostWideSCSI && CCB->WideModeTagEnable) ||
CCB2321drivers/scsi/BusLogic.c(!HostAdapter->HostWideSCSI && CCB->TagEnable)) &&
CCB2322drivers/scsi/BusLogic.c(HostAdapter->TaggedQueuingPermitted & (1 << CCB->TargetID)))
CCB2324drivers/scsi/BusLogic.cHostAdapter->TaggedQueuingPermitted &= ~(1 << CCB->TargetID);
CCB2326drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->TargetID);
CCB2342drivers/scsi/BusLogic.cfor (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll)
CCB2343drivers/scsi/BusLogic.cif (CCB->Status == BusLogic_CCB_Reset)
CCB2345drivers/scsi/BusLogic.cCommand = CCB->Command;
CCB2346drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB2365drivers/scsi/BusLogic.cBusLogic_CCB_T *CCB = BusLogic_AllocateCCB(HostAdapter), *XCCB;
CCB2371drivers/scsi/BusLogic.cif (CCB == NULL)
CCB2374drivers/scsi/BusLogic.cHostAdapter->HostNumber, CCB->SerialNumber, TargetID);
CCB2375drivers/scsi/BusLogic.cCCB->Opcode = BusLogic_SCSIBusDeviceReset;
CCB2376drivers/scsi/BusLogic.cCCB->TargetID = TargetID;
CCB2377drivers/scsi/BusLogic.cCCB->Command = Command;
CCB2390drivers/scsi/BusLogic.cCCB->Command = NULL;
CCB2411drivers/scsi/BusLogic.cBusLogic_MailboxStartCommand, CCB)))
CCB2415drivers/scsi/BusLogic.cBusLogic_DeallocateCCB(CCB);
CCB713drivers/scsi/BusLogic.hBusLogic_CCB_T *CCB;
CCB726drivers/scsi/BusLogic.hBusLogic_CCB_T *CCB;