tag | line | file | source code |
CCB | 265 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = (BusLogic_CCB_T *) |
CCB | 270 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 276 | drivers/scsi/BusLogic.c | memset(CCB, 0, sizeof(BusLogic_CCB_T)); |
CCB | 277 | drivers/scsi/BusLogic.c | CCB->HostAdapter = HostAdapter; |
CCB | 278 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 279 | drivers/scsi/BusLogic.c | CCB->Next = HostAdapter->Free_CCBs; |
CCB | 280 | drivers/scsi/BusLogic.c | CCB->NextAll = HostAdapter->All_CCBs; |
CCB | 281 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB; |
CCB | 282 | drivers/scsi/BusLogic.c | HostAdapter->All_CCBs = CCB; |
CCB | 294 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *NextCCB = HostAdapter->All_CCBs, *CCB; |
CCB | 297 | drivers/scsi/BusLogic.c | while ((CCB = NextCCB) != NULL) |
CCB | 299 | drivers/scsi/BusLogic.c | NextCCB = CCB->NextAll; |
CCB | 300 | 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 | 322 | drivers/scsi/BusLogic.c | return CCB; |
CCB | 326 | drivers/scsi/BusLogic.c | CCB = (BusLogic_CCB_T *) |
CCB | 331 | drivers/scsi/BusLogic.c | if (CCB == NULL) break; |
CCB | 332 | drivers/scsi/BusLogic.c | memset(CCB, 0, sizeof(BusLogic_CCB_T)); |
CCB | 333 | drivers/scsi/BusLogic.c | CCB->HostAdapter = HostAdapter; |
CCB | 334 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 335 | drivers/scsi/BusLogic.c | CCB->Next = HostAdapter->Free_CCBs; |
CCB | 336 | drivers/scsi/BusLogic.c | CCB->NextAll = HostAdapter->All_CCBs; |
CCB | 337 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB; |
CCB | 338 | drivers/scsi/BusLogic.c | HostAdapter->All_CCBs = CCB; |
CCB | 340 | drivers/scsi/BusLogic.c | CCB = HostAdapter->Free_CCBs; |
CCB | 341 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 349 | drivers/scsi/BusLogic.c | CCB->SerialNumber = ++SerialNumber; |
CCB | 350 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB->Next; |
CCB | 351 | drivers/scsi/BusLogic.c | CCB->Next = NULL; |
CCB | 352 | drivers/scsi/BusLogic.c | return CCB; |
CCB | 362 | drivers/scsi/BusLogic.c | static void BusLogic_DeallocateCCB(BusLogic_CCB_T *CCB) |
CCB | 364 | drivers/scsi/BusLogic.c | BusLogic_HostAdapter_T *HostAdapter = CCB->HostAdapter; |
CCB | 365 | drivers/scsi/BusLogic.c | CCB->Command = NULL; |
CCB | 366 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Free; |
CCB | 367 | drivers/scsi/BusLogic.c | CCB->Next = HostAdapter->Free_CCBs; |
CCB | 368 | drivers/scsi/BusLogic.c | HostAdapter->Free_CCBs = CCB; |
CCB | 2163 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = NextIncomingMailbox->CCB; |
CCB | 2165 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active || |
CCB | 2166 | drivers/scsi/BusLogic.c | CCB->Status == BusLogic_CCB_Reset) |
CCB | 2172 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Completed; |
CCB | 2173 | drivers/scsi/BusLogic.c | CCB->MailboxCompletionCode = MailboxCompletionCode; |
CCB | 2174 | drivers/scsi/BusLogic.c | CCB->Next = NULL; |
CCB | 2177 | drivers/scsi/BusLogic.c | FirstCompletedCCB = CCB; |
CCB | 2178 | drivers/scsi/BusLogic.c | LastCompletedCCB = CCB; |
CCB | 2182 | drivers/scsi/BusLogic.c | LastCompletedCCB->Next = CCB; |
CCB | 2183 | drivers/scsi/BusLogic.c | LastCompletedCCB = CCB; |
CCB | 2185 | drivers/scsi/BusLogic.c | HostAdapter->ActiveCommandCount[CCB->TargetID]--; |
CCB | 2196 | drivers/scsi/BusLogic.c | CCB->SerialNumber, CCB->Status); |
CCB | 2200 | drivers/scsi/BusLogic.c | CCB->SerialNumber, CCB->TargetID); |
CCB | 2222 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB = FirstCompletedCCB; |
CCB | 2223 | drivers/scsi/BusLogic.c | SCSI_Command_T *Command = CCB->Command; |
CCB | 2225 | drivers/scsi/BusLogic.c | HostAdapter = CCB->HostAdapter; |
CCB | 2233 | drivers/scsi/BusLogic.c | if (CCB->Opcode == BusLogic_BusDeviceReset) |
CCB | 2235 | drivers/scsi/BusLogic.c | unsigned char TargetID = CCB->TargetID; |
CCB | 2237 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, TargetID); |
CCB | 2243 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2263 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2264 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Reset && CCB->TargetID == TargetID) |
CCB | 2266 | drivers/scsi/BusLogic.c | Command = CCB->Command; |
CCB | 2267 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2280 | drivers/scsi/BusLogic.c | switch (CCB->MailboxCompletionCode) |
CCB | 2285 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 2288 | drivers/scsi/BusLogic.c | HostAdapter->CommandSuccessfulFlag[CCB->TargetID] = true; |
CCB | 2293 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, CCB->TargetID); |
CCB | 2298 | drivers/scsi/BusLogic.c | BusLogic_ComputeResultCode(CCB->HostAdapterStatus, |
CCB | 2299 | drivers/scsi/BusLogic.c | CCB->TargetDeviceStatus); |
CCB | 2301 | drivers/scsi/BusLogic.c | if (CCB->HostAdapterStatus != BusLogic_SCSISelectionTimeout) |
CCB | 2306 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, |
CCB | 2307 | drivers/scsi/BusLogic.c | CCB->TargetID, Command->result, |
CCB | 2308 | drivers/scsi/BusLogic.c | CCB->HostAdapterStatus, CCB->TargetDeviceStatus); |
CCB | 2310 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->CDB_Length; i++) |
CCB | 2311 | drivers/scsi/BusLogic.c | printk(" %02X", CCB->CDB[i]); |
CCB | 2314 | drivers/scsi/BusLogic.c | for (i = 0; i < CCB->SenseDataLength; i++) |
CCB | 2315 | drivers/scsi/BusLogic.c | printk(" %02X", (*CCB->SenseDataPointer)[i]); |
CCB | 2323 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2359 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB) |
CCB | 2365 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Active; |
CCB | 2371 | drivers/scsi/BusLogic.c | NextOutgoingMailbox->CCB = CCB; |
CCB | 2378 | drivers/scsi/BusLogic.c | HostAdapter->ActiveCommandCount[CCB->TargetID]++; |
CCB | 2403 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2425 | drivers/scsi/BusLogic.c | CCB = BusLogic_AllocateCCB(HostAdapter); |
CCB | 2426 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2429 | drivers/scsi/BusLogic.c | CCB = BusLogic_AllocateCCB(HostAdapter); |
CCB | 2430 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2442 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_InitiatorCCB; |
CCB | 2443 | drivers/scsi/BusLogic.c | CCB->DataLength = BufferLength; |
CCB | 2444 | drivers/scsi/BusLogic.c | CCB->DataPointer = BufferPointer; |
CCB | 2450 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_InitiatorCCB_ScatterGather; |
CCB | 2451 | drivers/scsi/BusLogic.c | CCB->DataLength = SegmentCount * sizeof(BusLogic_ScatterGatherSegment_T); |
CCB | 2452 | drivers/scsi/BusLogic.c | CCB->DataPointer = CCB->ScatterGatherList; |
CCB | 2455 | drivers/scsi/BusLogic.c | CCB->ScatterGatherList[Segment].SegmentByteCount = |
CCB | 2457 | drivers/scsi/BusLogic.c | CCB->ScatterGatherList[Segment].SegmentDataPointer = |
CCB | 2465 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_DataInLengthChecked; |
CCB | 2469 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_DataOutLengthChecked; |
CCB | 2472 | drivers/scsi/BusLogic.c | CCB->DataDirection = BusLogic_UncheckedDataTransfer; |
CCB | 2475 | drivers/scsi/BusLogic.c | CCB->CDB_Length = CDB_Length; |
CCB | 2476 | drivers/scsi/BusLogic.c | CCB->SenseDataLength = sizeof(Command->sense_buffer); |
CCB | 2477 | drivers/scsi/BusLogic.c | CCB->HostAdapterStatus = 0; |
CCB | 2478 | drivers/scsi/BusLogic.c | CCB->TargetDeviceStatus = 0; |
CCB | 2479 | drivers/scsi/BusLogic.c | CCB->TargetID = TargetID; |
CCB | 2480 | drivers/scsi/BusLogic.c | CCB->LogicalUnit = LogicalUnit; |
CCB | 2488 | drivers/scsi/BusLogic.c | CCB->TagEnable = LogicalUnit >> 5; |
CCB | 2489 | drivers/scsi/BusLogic.c | CCB->WideModeTagEnable = false; |
CCB | 2491 | drivers/scsi/BusLogic.c | else CCB->TagEnable = false; |
CCB | 2537 | drivers/scsi/BusLogic.c | CCB->WideModeTagEnable = true; |
CCB | 2538 | drivers/scsi/BusLogic.c | CCB->WideModeQueueTag = QueueTag; |
CCB | 2542 | drivers/scsi/BusLogic.c | CCB->TagEnable = true; |
CCB | 2543 | drivers/scsi/BusLogic.c | CCB->QueueTag = QueueTag; |
CCB | 2546 | drivers/scsi/BusLogic.c | memcpy(CCB->CDB, CDB, CDB_Length); |
CCB | 2547 | drivers/scsi/BusLogic.c | CCB->SenseDataPointer = (SCSI_SenseData_T *) &Command->sense_buffer; |
CCB | 2548 | drivers/scsi/BusLogic.c | CCB->Command = Command; |
CCB | 2559 | drivers/scsi/BusLogic.c | BusLogic_MailboxStartCommand, CCB)) |
CCB | 2565 | drivers/scsi/BusLogic.c | BusLogic_MailboxStartCommand, CCB)) |
CCB | 2569 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2593 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2613 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2614 | drivers/scsi/BusLogic.c | if (CCB->Command == Command) break; |
CCB | 2615 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2622 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Completed) |
CCB | 2629 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Reset) |
CCB | 2651 | drivers/scsi/BusLogic.c | CCB->SerialNumber, TargetID); |
CCB | 2655 | drivers/scsi/BusLogic.c | BusLogic_MailboxAbortCommand, CCB)) |
CCB | 2658 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, TargetID); |
CCB | 2665 | drivers/scsi/BusLogic.c | CCB->SerialNumber, TargetID); |
CCB | 2687 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2708 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2709 | drivers/scsi/BusLogic.c | if (CCB->Command == Command) break; |
CCB | 2710 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2717 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Completed) |
CCB | 2724 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Reset && |
CCB | 2752 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2753 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active) |
CCB | 2754 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Reset; |
CCB | 2775 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2776 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Reset) |
CCB | 2778 | drivers/scsi/BusLogic.c | Command = CCB->Command; |
CCB | 2779 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2812 | drivers/scsi/BusLogic.c | BusLogic_CCB_T *CCB; |
CCB | 2831 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2832 | drivers/scsi/BusLogic.c | if (CCB->Command == Command) break; |
CCB | 2833 | drivers/scsi/BusLogic.c | if (CCB == NULL) |
CCB | 2840 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Completed) |
CCB | 2847 | drivers/scsi/BusLogic.c | else if (CCB->Status == BusLogic_CCB_Reset) |
CCB | 2862 | drivers/scsi/BusLogic.c | if ((CCB = HostAdapter->BusDeviceResetPendingCCB[TargetID]) != NULL) |
CCB | 2864 | drivers/scsi/BusLogic.c | Command->reset_chain = CCB->Command; |
CCB | 2865 | drivers/scsi/BusLogic.c | CCB->Command = Command; |
CCB | 2886 | drivers/scsi/BusLogic.c | CCB = BusLogic_AllocateCCB(HostAdapter); |
CCB | 2887 | drivers/scsi/BusLogic.c | if (CCB == NULL) goto Done; |
CCB | 2889 | drivers/scsi/BusLogic.c | HostAdapter->HostNumber, CCB->SerialNumber, TargetID); |
CCB | 2890 | drivers/scsi/BusLogic.c | CCB->Opcode = BusLogic_BusDeviceReset; |
CCB | 2891 | drivers/scsi/BusLogic.c | CCB->TargetID = TargetID; |
CCB | 2899 | drivers/scsi/BusLogic.c | CCB->Command = Command; |
CCB | 2907 | drivers/scsi/BusLogic.c | BusLogic_MailboxStartCommand, CCB))) |
CCB | 2911 | drivers/scsi/BusLogic.c | BusLogic_DeallocateCCB(CCB); |
CCB | 2930 | drivers/scsi/BusLogic.c | HostAdapter->BusDeviceResetPendingCCB[TargetID] = CCB; |
CCB | 2932 | drivers/scsi/BusLogic.c | for (CCB = HostAdapter->All_CCBs; CCB != NULL; CCB = CCB->NextAll) |
CCB | 2933 | drivers/scsi/BusLogic.c | if (CCB->Status == BusLogic_CCB_Active && CCB->TargetID == TargetID) |
CCB | 2934 | drivers/scsi/BusLogic.c | CCB->Status = BusLogic_CCB_Reset; |
CCB | 788 | drivers/scsi/BusLogic.h | BusLogic_CCB_T *CCB; /* Bytes 0-3 */ |
CCB | 801 | drivers/scsi/BusLogic.h | BusLogic_CCB_T *CCB; /* Bytes 0-3 */ |