tag | line | file | source code |
CCB | 269 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = (BusLogic_CCB_T *) |
CCB | 271 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 277 | drivers/scsi/BusLogic.c | memset(CCB, 0, sizeof(BusLogic_CCB_T)); |
CCB | 278 | drivers/scsi/BusLogic.c | CCB->HostAdapter = HostAdapter; |
CCB | 279 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 280 | drivers/scsi/BusLogic.c | CCB->Next = HostAdapter->Free_CCBs; |
CCB | 281 | drivers/scsi/BusLogic.c | CCB->NextAll = HostAdapter->All_CCBs; |
CCB | 282 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB; |
CCB | 283 | drivers/scsi/BusLogic.c | HostAdapter->All_CCBs = CCB; |
CCB | 295 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *NextCCB = HostAdapter->All_CCBs, *CCB; |
CCB | 298 | drivers/scsi/BusLogic.c | while ((CCB = NextCCB) != NULL) |
CCB | 300 | drivers/scsi/BusLogic.c | NextCCB = CCB->NextAll; |
CCB | 301 | drivers/scsi/BusLogic.c | scsi_init_free((char *) CCB, sizeof(BusLogic_CCB_T)); |
CCB | 314 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 316 | drivers/scsi/BusLogic.c | CCB = HostAdapter->Free_CCBs; |
CCB | 317 | drivers/scsi/BusLogic.c | if (CCB != NULL) |
CCB | 319 | drivers/scsi/BusLogic.c | CCB->SerialNumber = ++SerialNumber; |
CCB | 320 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB->Next; |
CCB | 321 | drivers/scsi/BusLogic.c | CCB->Next = NULL; |
CCB | 323 | drivers/scsi/BusLogic.c | return CCB; |
CCB | 326 | drivers/scsi/BusLogic.c | CCB = (BusLogic_CCB_T *) scsi_init_malloc(sizeof(BusLogic_CCB_T), |
CCB | 328 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 335 | drivers/scsi/BusLogic.c | memset(CCB, 0, sizeof(BusLogic_CCB_T)); |
CCB | 336 | drivers/scsi/BusLogic.c | CCB->HostAdapter = HostAdapter; |
CCB | 337 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 339 | drivers/scsi/BusLogic.c | CCB->SerialNumber = ++SerialNumber; |
CCB | 340 | drivers/scsi/BusLogic.c | CCB->NextAll = HostAdapter->All_CCBs; |
CCB | 341 | drivers/scsi/BusLogic.c | HostAdapter->All_CCBs = CCB; |
CCB | 343 | drivers/scsi/BusLogic.c | return CCB; |
CCB | 352 | drivers/scsi/BusLogic.c | static void BusLogic_DeallocateCCB(BusLogic_CCB_T *CCB) |
CCB | 354 | drivers/scsi/BusLogic.c | BusLogic_HostAdapter_T *HostAdapter = CCB->HostAdapter; |
CCB | 356 | drivers/scsi/BusLogic.c | CCB->Command = NULL; |
CCB | 357 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 358 | drivers/scsi/BusLogic.c | CCB->Next = HostAdapter->Free_CCBs; |
CCB | 359 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB; |
CCB | 1834 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = NextIncomingMailbox->CCB; |
CCB | 1836 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active) |
CCB | 1842 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Completed; |
CCB | 1843 | drivers/scsi/BusLogic.c | CCB->MailboxCompletionCode = MailboxCompletionCode; |
CCB | 1844 | drivers/scsi/BusLogic.c | CCB->Next = NULL; |
CCB | 1847 | drivers/scsi/BusLogic.c | FirstCompletedCCB = CCB; |
CCB | 1848 | drivers/scsi/BusLogic.c | LastCompletedCCB = CCB; |
CCB | 1852 | drivers/scsi/BusLogic.c | LastCompletedCCB->Next = CCB; |
CCB | 1853 | drivers/scsi/BusLogic.c | LastCompletedCCB = CCB; |
CCB | 1855 | drivers/scsi/BusLogic.c | HostAdapter->QueuedOperationCount[CCB->TargetID]--; |
CCB | 1866 | drivers/scsi/BusLogic.c | CCB->SerialNumber, CCB->Status); |
CCB | 1870 | drivers/scsi/BusLogic.c | CCB->SerialNumber, CCB->TargetID); |
CCB | 1909 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = FirstCompletedCCB; |
CCB | 1910 | drivers/scsi/BusLogic.c | SCSI_Command_T *Command = CCB->Command; |
CCB | 1912 | drivers/scsi/BusLogic.c | HostAdapter = CCB->HostAdapter; |
CCB | 1919 | drivers/scsi/BusLogic.c | if (CCB->Opcode == BusLogic_SCSIBusDeviceReset) |
CCB | 1922 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 1930 | drivers/scsi/BusLogic.c | switch (CCB->MailboxCompletionCode) |
CCB | 1935 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 1938 | drivers/scsi/BusLogic.c | HostAdapter->CommandSuccessfulFlag[CCB->TargetID] = true; |
CCB | 1943 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 1948 | drivers/scsi/BusLogic.c | BusLogic_ComputeResultCode(CCB->HostAdapterStatus, |
CCB | 1949 | drivers/scsi/BusLogic.c | CCB->TargetDeviceStatus); |
CCB | 1951 | drivers/scsi/BusLogic.c | if (CCB->HostAdapterStatus != BusLogic_SCSISelectionTimeout) |
CCB | 1956 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, |
CCB | 1957 | drivers/scsi/BusLogic.c | CCB->TargetID, Command->result, |
CCB | 1958 | drivers/scsi/BusLogic.c | CCB->HostAdapterStatus, CCB->TargetDeviceStatus); |
CCB | 1960 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->CDB_Length; i++) |
CCB | 1961 | drivers/scsi/BusLogic.c | printk(" %02X", CCB->CDB[i]); |
CCB | 1964 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->SenseDataLength; i++) |
CCB | 1965 | drivers/scsi/BusLogic.c | printk(" %02X", (*CCB->SenseDataPointer)[i]); |
CCB | 1973 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 1990 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB) |
CCB | 1998 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Active; |
CCB | 2004 | drivers/scsi/BusLogic.c | NextOutgoingMailbox->CCB = CCB; |
CCB | 2011 | drivers/scsi/BusLogic.c | HostAdapter->QueuedOperationCount[CCB->TargetID]++; |
CCB | 2036 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2054 | drivers/scsi/BusLogic.c | CCB = BusLogic_AllocateCCB(HostAdapter); |
CCB | 2055 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2066 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_InitiatorCCB; |
CCB | 2067 | drivers/scsi/BusLogic.c | CCB->DataLength = BufferLength; |
CCB | 2068 | drivers/scsi/BusLogic.c | CCB->DataPointer = BufferPointer; |
CCB | 2074 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_InitiatorCCB_ScatterGather; |
CCB | 2075 | drivers/scsi/BusLogic.c | CCB->DataLength = SegmentCount * sizeof(BusLogic_ScatterGatherSegment_T); |
CCB | 2076 | drivers/scsi/BusLogic.c | CCB->DataPointer = CCB->ScatterGatherList; |
CCB | 2079 | drivers/scsi/BusLogic.c | CCB->ScatterGatherList[Segment].SegmentByteCount = |
CCB | 2081 | drivers/scsi/BusLogic.c | CCB->ScatterGatherList[Segment].SegmentDataPointer = |
CCB | 2089 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_DataInLengthChecked; |
CCB | 2094 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_DataOutLengthChecked; |
CCB | 2098 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_UncheckedDataTransfer; |
CCB | 2101 | drivers/scsi/BusLogic.c | CCB->CDB_Length = CDB_Length; |
CCB | 2102 | drivers/scsi/BusLogic.c | CCB->SenseDataLength = sizeof(Command->sense_buffer); |
CCB | 2103 | drivers/scsi/BusLogic.c | CCB->HostAdapterStatus = 0; |
CCB | 2104 | drivers/scsi/BusLogic.c | CCB->TargetDeviceStatus = 0; |
CCB | 2105 | drivers/scsi/BusLogic.c | CCB->TargetID = TargetID; |
CCB | 2106 | drivers/scsi/BusLogic.c | CCB->LogicalUnit = LogicalUnit; |
CCB | 2114 | drivers/scsi/BusLogic.c | CCB->TagEnable = LogicalUnit >> 5; |
CCB | 2115 | drivers/scsi/BusLogic.c | CCB->WideModeTagEnable = false; |
CCB | 2117 | drivers/scsi/BusLogic.c | else CCB->TagEnable = false; |
CCB | 2157 | drivers/scsi/BusLogic.c | CCB->WideModeTagEnable = true; |
CCB | 2158 | drivers/scsi/BusLogic.c | CCB->WideModeQueueTag = QueueTag; |
CCB | 2162 | drivers/scsi/BusLogic.c | CCB->TagEnable = true; |
CCB | 2163 | drivers/scsi/BusLogic.c | CCB->QueueTag = QueueTag; |
CCB | 2166 | drivers/scsi/BusLogic.c | memcpy(CCB->CDB, CDB, CDB_Length); |
CCB | 2167 | drivers/scsi/BusLogic.c | CCB->SenseDataPointer = (SCSI_SenseData_T *) &Command->sense_buffer; |
CCB | 2168 | drivers/scsi/BusLogic.c | CCB->Command = Command; |
CCB | 2176 | drivers/scsi/BusLogic.c | BusLogic_MailboxStartCommand, CCB))) |
CCB | 2180 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2198 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2222 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2223 | drivers/scsi/BusLogic.c | if (CCB->Command == Command) break; |
CCB | 2225 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2236 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 2244 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active && |
CCB | 2245 | drivers/scsi/BusLogic.c | CCB->Command == Command && Command->pid == CommandPID) |
CCB | 2251 | drivers/scsi/BusLogic.c | BusLogic_MailboxAbortCommand, CCB)) |
CCB | 2254 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 2261 | drivers/scsi/BusLogic.c | CCB->SerialNumber, CCB->TargetID); |
CCB | 2266 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 2281 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2310 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2311 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active) |
CCB | 2313 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Reset; |
CCB | 2314 | drivers/scsi/BusLogic.c | if (CCB->Command == Command) |
CCB | 2316 | drivers/scsi/BusLogic.c | CCB->Command = NULL; |
CCB | 2320 | drivers/scsi/BusLogic.c | if (((HostAdapter->HostWideSCSI && CCB->WideModeTagEnable) || |
CCB | 2321 | drivers/scsi/BusLogic.c | (!HostAdapter->HostWideSCSI && CCB->TagEnable)) && |
CCB | 2322 | drivers/scsi/BusLogic.c | (HostAdapter->TaggedQueuingPermitted & (1 << CCB->TargetID))) |
CCB | 2324 | drivers/scsi/BusLogic.c | HostAdapter->TaggedQueuingPermitted &= ~(1 << CCB->TargetID); |
CCB | 2326 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->TargetID); |
CCB | 2342 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2343 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Reset) |
CCB | 2345 | drivers/scsi/BusLogic.c | Command = CCB->Command; |
CCB | 2346 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2365 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = BusLogic_AllocateCCB(HostAdapter), *XCCB; |
CCB | 2371 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2374 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, TargetID); |
CCB | 2375 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_SCSIBusDeviceReset; |
CCB | 2376 | drivers/scsi/BusLogic.c | CCB->TargetID = TargetID; |
CCB | 2377 | drivers/scsi/BusLogic.c | CCB->Command = Command; |
CCB | 2390 | drivers/scsi/BusLogic.c | CCB->Command = NULL; |
CCB | 2411 | drivers/scsi/BusLogic.c | BusLogic_MailboxStartCommand, CCB))) |
CCB | 2415 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 713 | drivers/scsi/BusLogic.h | BusLogic_CCB_T *CCB; |
CCB | 726 | drivers/scsi/BusLogic.h | BusLogic_CCB_T *CCB; |