Lines Matching refs:satOrgIOContext
238 smSatIOContext_t *satOrgIOContext;
274 satOrgIOContext = satIOContext;
282 satOrgIOContext = satIOContext->satOrgIOContext;
283 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
285 pSense = satOrgIOContext->pSense;
286 scsiCmnd = satOrgIOContext->pScsiCmnd;
326 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
331 satOrgIOContext->pSmSenseData,
341 satOrgIOContext
363 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
368 satOrgIOContext->pSmSenseData,
431 smSatIOContext_t *satOrgIOContext;
458 satOrgIOContext = satIOContext;
465 satOrgIOContext = satIOContext->satOrgIOContext;
466 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
468 scsiCmnd = satOrgIOContext->pScsiCmnd;
479 sm_memcpy(satOrgIOContext->pSmSenseData->senseData, satIntIo->satIntDmaMem.virtPtr, SENSE_DATA_LENGTH);
481 satOrgIOContext->pSmSenseData->senseLen = SENSE_DATA_LENGTH;
490 satOrgIOContext->pSmSenseData,
500 sm_memcpy(satOrgIOContext->pSmSenseData->senseData, satIntIo->satIntDmaMem.virtPtr, dataLength);
502 satOrgIOContext->pSmSenseData->senseLen = dataLength;
511 satOrgIOContext->pSmSenseData,
566 smSatIOContext_t *satOrgIOContext;
594 satOrgIOContext = satIOContext;
601 satOrgIOContext = satIOContext->satOrgIOContext;
602 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
604 scsiCmnd = satOrgIOContext->pScsiCmnd;
653 satOrgIOContext
712 smSatIOContext_t *satOrgIOContext;
738 satOrgIOContext = satIOContext;
743 satOrgIOContext = satIOContext->satOrgIOContext;
744 if (satOrgIOContext == agNULL)
746 SM_DBG6(("smsatDeviceResetCB: satOrgIOContext is NULL, wrong\n"));
751 SM_DBG6(("smsatDeviceResetCB: satOrgIOContext is NOT NULL\n"));
820 if (satOrgIOContext->TMF == AG_ABORT_TASK)
827 smsatAbort(smRoot, agRoot, satOrgIOContext->satToBeAbortedIOContext);
883 smSatIOContext_t *satOrgIOContext;
900 satOrgIOContext = satIOContext;
905 satOrgIOContext = satIOContext->satOrgIOContext;
906 if (satOrgIOContext == agNULL)
908 SM_DBG5(("smsatExecuteDeviceDiagnosticCB: satOrgIOContext is NULL\n"));
912 SM_DBG5(("smsatExecuteDeviceDiagnosticCB: satOrgIOContext is NOT NULL\n"));
1141 smSatIOContext_t *satOrgIOContext;
1173 satOrgIOContext = satIOContext;
1181 satOrgIOContext = satIOContext->satOrgIOContext;
1182 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
1184 pSense = satOrgIOContext->pSense;
1185 scsiCmnd = satOrgIOContext->pScsiCmnd;
1197 satOrgIOContext);
1203 satOrgIOContext->pSmSenseData,
1204 satOrgIOContext->interruptContext );
1287 (satOrgIOContext->LoopNum)--;
1288 if (satOrgIOContext->LoopNum == 0)
1296 satOrgIOContext->interruptContext );
1315 satOrgIOContext->interruptContext );
1330 satOrgIOContext
1378 satOrgIOContext->interruptContext );
1393 satOrgIOContext->interruptContext );
1430 smSatIOContext_t *satOrgIOContext;
1455 satOrgIOContext = satIOContext;
1462 satOrgIOContext = satIOContext->satOrgIOContext;
1463 if (satOrgIOContext == agNULL)
1465 SM_DBG4(("smsatNonChainedVerifyCB: satOrgIOContext is NULL, wrong\n"));
1470 SM_DBG4(("smsatNonChainedVerifyCB: satOrgIOContext is NOT NULL\n"));
1472 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
1474 pSense = satOrgIOContext->pSense;
1486 satOrgIOContext);
1491 satOrgIOContext->pSmSenseData,
1492 satOrgIOContext->interruptContext );
1534 satOrgIOContext
1563 satOrgIOContext);
1569 satOrgIOContext->pSmSenseData,
1570 satOrgIOContext->interruptContext );
1599 satOrgIOContext->interruptContext);
1614 satOrgIOContext);
1620 satOrgIOContext->pSmSenseData,
1621 satOrgIOContext->interruptContext );
1647 smSatIOContext_t *satOrgIOContext;
1677 satOrgIOContext = satIOContext;
1685 satOrgIOContext = satIOContext->satOrgIOContext;
1686 if (satOrgIOContext == agNULL)
1688 SM_DBG4(("smsatChainedVerifyCB: satOrgIOContext is NULL, wrong\n"));
1693 SM_DBG4(("smsatChainedVerifyCB: satOrgIOContext is NOT NULL\n"));
1695 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
1697 pSense = satOrgIOContext->pSense;
1698 scsiCmnd = satOrgIOContext->pScsiCmnd;
1711 satOrgIOContext);
1717 satOrgIOContext->pSmSenseData,
1718 satOrgIOContext->interruptContext );
1762 satOrgIOContext
1791 satOrgIOContext);
1797 satOrgIOContext->pSmSenseData,
1798 satOrgIOContext->interruptContext );
1828 (satOrgIOContext->LoopNum)--;
1829 if (satOrgIOContext->LoopNum == 0)
1839 satOrgIOContext->interruptContext );
1843 if (satOrgIOContext->superIOFlag)
1845 dataLength = ((tiSuperScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
1849 dataLength = ((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
1864 satOrgIOContext->interruptContext );
1879 satOrgIOContext
1897 satOrgIOContext->interruptContext );
1916 satOrgIOContext);
1922 satOrgIOContext->pSmSenseData,
1923 satOrgIOContext->interruptContext );
1957 smSatIOContext_t *satOrgIOContext;
1993 satOrgIOContext = satIOContext;
2003 satOrgIOContext = &(smOrgIORequestBody->transport.SATA.satIOContext);
2005 pSense = satOrgIOContext->pSense;
2006 scsiCmnd = satOrgIOContext->pScsiCmnd;
2037 satOrgIOContext);
2043 satOrgIOContext->pSmSenseData,
2044 satOrgIOContext->interruptContext );
2079 satOrgIOContext
2102 satOrgIOContext);
2110 satOrgIOContext);
2117 satOrgIOContext->pSmSenseData,
2118 satOrgIOContext->interruptContext );
2132 satOrgIOContext);
2138 satOrgIOContext->pSmSenseData,
2139 satOrgIOContext->interruptContext );
2154 satOrgIOContext);
2160 satOrgIOContext->pSmSenseData,
2161 satOrgIOContext->interruptContext );
2198 satOrgIOContext);
2204 satOrgIOContext->pSmSenseData,
2205 satOrgIOContext->interruptContext );
2220 satOrgIOContext
2240 satOrgIOContext);
2246 satOrgIOContext->pSmSenseData,
2247 satOrgIOContext->interruptContext );
2270 satOrgIOContext->interruptContext );
2279 satOrgIOContext);
2285 satOrgIOContext->pSmSenseData,
2286 satOrgIOContext->interruptContext );
2327 smSatIOContext_t *satOrgIOContext;
2362 satOrgIOContext = satIOContext;
2364 if (satOrgIOContext->superIOFlag)
2366 pDataBuffer = (bit8 *)(((tiSuperScsiInitiatorRequest_t *)satOrgIOContext->smScsiXchg)->sglVirtualAddr);//satOrgIOContext->pSense;
2370 pDataBuffer = (bit8 *)(((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->sglVirtualAddr);//satOrgIOContext->pSense;
2373 scsiCmnd = satOrgIOContext->pScsiCmnd;
2374 pSense = satOrgIOContext->pSense;
2379 satOrgIOContext = satIOContext->satOrgIOContext;
2380 if (satOrgIOContext == agNULL)
2382 SM_DBG4(("smsatRequestSenseCB: satOrgIOContext is NULL, wrong\n"));
2387 SM_DBG4(("smsatRequestSenseCB: satOrgIOContext is NOT NULL\n"));
2389 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
2392 if (satOrgIOContext->superIOFlag)
2394 pDataBuffer = (bit8 *)(((tiSuperScsiInitiatorRequest_t *)satOrgIOContext->smScsiXchg)->sglVirtualAddr);//satOrgIOContext->pSense;
2398 pDataBuffer = (bit8 *)(((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->sglVirtualAddr);//satOrgIOContext->pSense;
2401 scsiCmnd = satOrgIOContext->pScsiCmnd;
2402 pSense = satOrgIOContext->pSense;
2423 satOrgIOContext->interruptContext
2477 satOrgIOContext
2494 satOrgIOContext);
2504 satOrgIOContext->interruptContext );
2513 satOrgIOContext->interruptContext );
2524 satOrgIOContext);
2535 satOrgIOContext->interruptContext );
2544 satOrgIOContext->interruptContext );
2575 satOrgIOContext);
2586 satOrgIOContext->interruptContext );
2595 satOrgIOContext->interruptContext );
2618 if (satOrgIOContext->superIOFlag)
2620 dataLength = ((tiSuperScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
2624 dataLength = ((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
2639 satOrgIOContext);
2650 satOrgIOContext->interruptContext );
2659 satOrgIOContext->interruptContext );
2676 satOrgIOContext
2698 satOrgIOContext);
2709 satOrgIOContext->interruptContext );
2718 satOrgIOContext->interruptContext );
2742 satOrgIOContext);
2753 satOrgIOContext->interruptContext );
2762 satOrgIOContext->interruptContext );
2790 satOrgIOContext);
2801 satOrgIOContext->interruptContext );
2810 satOrgIOContext->interruptContext );
2822 satOrgIOContext);
2835 satOrgIOContext->interruptContext );
2845 satOrgIOContext->interruptContext );
2851 /* pSense here is a part of satOrgIOContext */
2852 pSense = satOrgIOContext->pSmSenseData->senseData;
2853 satOrgIOContext->pSmSenseData->senseLen = SENSE_DATA_LENGTH;
2859 satOrgIOContext);
2866 satOrgIOContext->pSmSenseData,
2867 satOrgIOContext->interruptContext );
2907 smSatIOContext_t *satOrgIOContext;
2938 satOrgIOContext = satIOContext;
2940 pSense = satOrgIOContext->pSense;
2941 scsiCmnd = satOrgIOContext->pScsiCmnd;
2946 satOrgIOContext = satIOContext->satOrgIOContext;
2947 if (satOrgIOContext == agNULL)
2949 SM_DBG4(("smsatSendDiagnosticCB: satOrgIOContext is NULL, wrong\n"));
2954 SM_DBG4(("smsatSendDiagnosticCB: satOrgIOContext is NOT NULL\n"));
2956 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
2958 pSense = satOrgIOContext->pSense;
2959 scsiCmnd = satOrgIOContext->pScsiCmnd;
2980 satOrgIOContext->interruptContext
3060 satOrgIOContext
3080 satOrgIOContext);
3086 satOrgIOContext->pSmSenseData,
3087 satOrgIOContext->interruptContext );
3104 satOrgIOContext);
3113 satOrgIOContext->pSmSenseData,
3114 satOrgIOContext->interruptContext );
3156 satOrgIOContext->interruptContext );
3177 satOrgIOContext);
3183 satOrgIOContext->pSmSenseData,
3184 satOrgIOContext->interruptContext );
3199 satOrgIOContext
3233 satOrgIOContext);
3239 satOrgIOContext->pSmSenseData,
3240 satOrgIOContext->interruptContext );
3276 satOrgIOContext->interruptContext );
3295 satOrgIOContext);
3301 satOrgIOContext->pSmSenseData,
3302 satOrgIOContext->interruptContext );
3343 smSatIOContext_t *satOrgIOContext;
3372 satOrgIOContext = satIOContext;
3380 satOrgIOContext = satIOContext->satOrgIOContext;
3381 if (satOrgIOContext == agNULL)
3383 SM_DBG4(("smsatStartStopUnitCB: satOrgIOContext is NULL, wrong\n"));
3388 SM_DBG4(("smsatStartStopUnitCB: satOrgIOContext is NOT NULL\n"));
3390 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
3393 pSense = satOrgIOContext->pSense;
3394 scsiCmnd = satOrgIOContext->pScsiCmnd;
3412 satOrgIOContext);
3418 satOrgIOContext->pSmSenseData,
3419 satOrgIOContext->interruptContext );
3435 satOrgIOContext);
3441 satOrgIOContext->pSmSenseData,
3442 satOrgIOContext->interruptContext );
3493 satOrgIOContext
3518 satOrgIOContext);
3524 satOrgIOContext->pSmSenseData,
3525 satOrgIOContext->interruptContext );
3541 satOrgIOContext);
3547 satOrgIOContext->pSmSenseData,
3548 satOrgIOContext->interruptContext );
3568 satOrgIOContext);
3574 satOrgIOContext->pSmSenseData,
3575 satOrgIOContext->interruptContext );
3591 satOrgIOContext);
3597 satOrgIOContext->pSmSenseData,
3598 satOrgIOContext->interruptContext );
3618 satOrgIOContext);
3624 satOrgIOContext->pSmSenseData,
3625 satOrgIOContext->interruptContext );
3641 satOrgIOContext);
3647 satOrgIOContext->pSmSenseData,
3648 satOrgIOContext->interruptContext );
3667 satOrgIOContext);
3673 satOrgIOContext->pSmSenseData,
3674 satOrgIOContext->interruptContext );
3690 satOrgIOContext);
3696 satOrgIOContext->pSmSenseData,
3697 satOrgIOContext->interruptContext );
3713 satOrgIOContext);
3719 satOrgIOContext->pSmSenseData,
3720 satOrgIOContext->interruptContext );
3767 satOrgIOContext);
3775 satOrgIOContext);
3781 satOrgIOContext->pSmSenseData,
3782 satOrgIOContext->interruptContext );
3797 satOrgIOContext
3821 satOrgIOContext);
3829 satOrgIOContext);
3835 satOrgIOContext->pSmSenseData,
3836 satOrgIOContext->interruptContext );
3862 satOrgIOContext->interruptContext );
3886 satOrgIOContext->interruptContext );
3915 satOrgIOContext->interruptContext );
3926 satOrgIOContext);
3932 satOrgIOContext->pSmSenseData,
3933 satOrgIOContext->interruptContext );
3964 smSatIOContext_t *satOrgIOContext;
3996 satOrgIOContext = satIOContext;
4004 satOrgIOContext = satIOContext->satOrgIOContext;
4005 if (satOrgIOContext == agNULL)
4007 SM_DBG4(("smsatWriteSame10CB: satOrgIOContext is NULL, wrong\n"));
4012 SM_DBG4(("smsatWriteSame10CB: satOrgIOContext is NOT NULL\n"));
4014 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
4017 pSense = satOrgIOContext->pSense;
4018 scsiCmnd = satOrgIOContext->pScsiCmnd;
4032 satOrgIOContext);
4038 satOrgIOContext->pSmSenseData,
4039 satOrgIOContext->interruptContext );
4105 satOrgIOContext
4138 satOrgIOContext);
4144 satOrgIOContext->pSmSenseData,
4145 satOrgIOContext->interruptContext );
4181 satOrgIOContext);
4187 satOrgIOContext->pSmSenseData,
4188 satOrgIOContext->interruptContext );
4240 satOrgIOContext);
4246 satOrgIOContext->pSmSenseData,
4247 satOrgIOContext->interruptContext );
4265 satOrgIOContext->interruptContext );
4294 satOrgIOContext);
4300 satOrgIOContext->pSmSenseData,
4301 satOrgIOContext->interruptContext );
4323 satNewIOContext->smScsiXchg = satOrgIOContext->smScsiXchg;
4371 satOrgIOContext);
4377 satOrgIOContext->pSmSenseData,
4378 satOrgIOContext->interruptContext );
4406 smSatIOContext_t *satOrgIOContext;
4451 satOrgIOContext = satIOContext;
4453 pSense = satOrgIOContext->pSense;
4454 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
4458 smScsiRequest = satOrgIOContext->smScsiXchg;
4459 scsiCmnd = satOrgIOContext->pScsiCmnd;
4464 satOrgIOContext = satIOContext->satOrgIOContext;
4465 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
4468 pSense = satOrgIOContext->pSense;
4469 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
4474 scsiCmnd = satOrgIOContext->pScsiCmnd;
4489 satOrgIOContext->interruptContext
4542 satOrgIOContext
4582 satOrgIOContext);
4588 satOrgIOContext->pSmSenseData,
4589 satOrgIOContext->interruptContext );
4719 satOrgIOContext);
4725 satOrgIOContext->pSmSenseData,
4726 satOrgIOContext->interruptContext );
4757 satOrgIOContext->interruptContext );
4767 satOrgIOContext->interruptContext);
4890 satOrgIOContext);
4896 satOrgIOContext->pSmSenseData,
4897 satOrgIOContext->interruptContext );
4928 satOrgIOContext->interruptContext );
4938 satOrgIOContext->interruptContext);
4994 satOrgIOContext->interruptContext );
5004 satOrgIOContext->interruptContext);
5023 satOrgIOContext);
5029 satOrgIOContext->pSmSenseData,
5030 satOrgIOContext->interruptContext );
5047 satOrgIOContext);
5053 satOrgIOContext->pSmSenseData,
5054 satOrgIOContext->interruptContext );
5089 smSatIOContext_t *satOrgIOContext;
5114 satOrgIOContext = satIOContext;
5116 scsiCmnd = satOrgIOContext->pScsiCmnd;
5121 satOrgIOContext = satIOContext->satOrgIOContext;
5122 if (satOrgIOContext == agNULL)
5124 SM_DBG4(("smsatSMARTEnableCB: satOrgIOContext is NULL, wrong\n"));
5129 SM_DBG4(("smsatSMARTEnableCB: satOrgIOContext is NOT NULL\n"));
5131 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
5133 scsiCmnd = satOrgIOContext->pScsiCmnd;
5147 satOrgIOContext->interruptContext
5167 satOrgIOContext->interruptContext
5193 satOrgIOContext->interruptContext
5202 satOrgIOContext
5221 satOrgIOContext->interruptContext
5245 smSatIOContext_t *satOrgIOContext;
5278 satOrgIOContext = satIOContext;
5280 smScsiRequest = satOrgIOContext->smScsiXchg;
5281 pSense = satOrgIOContext->pSense;
5282 scsiCmnd = satOrgIOContext->pScsiCmnd;
5287 satOrgIOContext = satIOContext->satOrgIOContext;
5288 if (satOrgIOContext == agNULL)
5290 SM_DBG4(("smsatModeSelect6n10CB: satOrgIOContext is NULL, wrong\n"));
5295 SM_DBG4(("smsatModeSelect6n10CB: satOrgIOContext is NOT NULL\n"));
5297 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
5300 smScsiRequest = satOrgIOContext->smScsiXchg;
5301 pSense = satOrgIOContext->pSense;
5302 scsiCmnd = satOrgIOContext->pScsiCmnd;
5317 satOrgIOContext->interruptContext
5361 satOrgIOContext
5409 satOrgIOContext);
5415 satOrgIOContext->pSmSenseData,
5416 satOrgIOContext->interruptContext );
5465 satOrgIOContext);
5471 satOrgIOContext->pSmSenseData,
5472 satOrgIOContext->interruptContext );
5482 satOrgIOContext
5502 satOrgIOContext);
5508 satOrgIOContext->pSmSenseData,
5509 satOrgIOContext->interruptContext );
5531 satOrgIOContext->interruptContext );
5547 satOrgIOContext);
5553 satOrgIOContext->pSmSenseData,
5554 satOrgIOContext->interruptContext );
5575 satOrgIOContext->interruptContext );
5591 satOrgIOContext);
5597 satOrgIOContext->pSmSenseData,
5598 satOrgIOContext->interruptContext );
5617 satOrgIOContext);
5623 satOrgIOContext->pSmSenseData,
5624 satOrgIOContext->interruptContext );
5656 smSatIOContext_t *satOrgIOContext;
5685 satOrgIOContext = satIOContext;
5693 satOrgIOContext = satIOContext->satOrgIOContext;
5694 if (satOrgIOContext == agNULL)
5696 SM_DBG4(("smsatSynchronizeCache10n16CB: satOrgIOContext is NULL, wrong\n"));
5701 SM_DBG4(("smsatSynchronizeCache10n16CB: satOrgIOContext is NOT NULL\n"));
5703 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
5706 pSense = satOrgIOContext->pSense;
5707 scsiCmnd = satOrgIOContext->pScsiCmnd;
5723 satOrgIOContext->interruptContext
5768 satOrgIOContext
5790 satOrgIOContext);
5798 satOrgIOContext);
5806 satOrgIOContext->pSmSenseData,
5807 satOrgIOContext->interruptContext );
5825 satOrgIOContext);
5833 satOrgIOContext);
5841 satOrgIOContext->pSmSenseData,
5842 satOrgIOContext->interruptContext );
5857 satOrgIOContext);
5864 satOrgIOContext->pSmSenseData,
5865 satOrgIOContext->interruptContext );
5901 satOrgIOContext->interruptContext );
5918 satOrgIOContext->interruptContext );
5929 satOrgIOContext);
5936 satOrgIOContext->pSmSenseData,
5937 satOrgIOContext->interruptContext );
5976 smSatIOContext_t *satOrgIOContext;
6014 satOrgIOContext = satIOContext;
6016 pSense = satOrgIOContext->pSense;
6017 scsiCmnd = satOrgIOContext->pScsiCmnd;
6022 satOrgIOContext = satIOContext->satOrgIOContext;
6023 if (satOrgIOContext == agNULL)
6025 SM_DBG4(("smsatNonChainedWriteNVerifyCB: satOrgIOContext is NULL, wrong\n"));
6030 SM_DBG4(("smsatNonChainedWriteNVerifyCB: satOrgIOContext is NOT NULL\n"));
6032 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
6035 pSense = satOrgIOContext->pSense;
6036 scsiCmnd = satOrgIOContext->pScsiCmnd;
6051 satOrgIOContext->interruptContext
6123 satOrgIOContext
6164 satOrgIOContext);
6170 satOrgIOContext->pSmSenseData,
6171 satOrgIOContext->interruptContext );
6214 satOrgIOContext->interruptContext );
6232 satOrgIOContext->interruptContext );
6242 satOrgIOContext);
6248 satOrgIOContext->pSmSenseData,
6249 satOrgIOContext->interruptContext );
6278 satOrgIOContext);
6284 satOrgIOContext->pSmSenseData,
6285 satOrgIOContext->interruptContext );
6294 satOrgIOContext
6316 satOrgIOContext);
6322 satOrgIOContext->pSmSenseData,
6323 satOrgIOContext->interruptContext );
6358 smSatIOContext_t *satOrgIOContext;
6389 satOrgIOContext = satIOContext;
6397 satOrgIOContext = satIOContext->satOrgIOContext;
6398 if (satOrgIOContext == agNULL)
6400 SM_DBG5(("smsatChainedWriteNVerifyCB: satOrgIOContext is NULL, wrong\n"));
6405 SM_DBG5(("smsatChainedWriteNVerifyCB: satOrgIOContext is NOT NULL\n"));
6407 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
6410 pSense = satOrgIOContext->pSense;
6411 scsiCmnd = satOrgIOContext->pScsiCmnd;
6424 satOrgIOContext);
6430 satOrgIOContext->pSmSenseData,
6431 satOrgIOContext->interruptContext );
6510 (satOrgIOContext->LoopNum)--;
6512 if (satOrgIOContext->superIOFlag)
6514 dataLength = ((tiSuperScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
6518 dataLength = ((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
6533 satOrgIOContext->interruptContext );
6548 satOrgIOContext
6551 if (satOrgIOContext->LoopNum == 0)
6557 satOrgIOContext->LoopNum = satOrgIOContext->LoopNum2;
6583 satOrgIOContext->interruptContext );
6604 (satOrgIOContext->LoopNum)--;
6605 if (satOrgIOContext->LoopNum == 0)
6615 satOrgIOContext->interruptContext );
6619 if (satOrgIOContext->superIOFlag)
6621 dataLength = ((tiSuperScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
6625 dataLength = ((tiScsiInitiatorRequest_t *) satOrgIOContext->smScsiXchg)->scsiCmnd.expDataLength;
6640 satOrgIOContext->interruptContext );
6655 satOrgIOContext
6673 satOrgIOContext->interruptContext );
6687 satOrgIOContext->interruptContext );
6723 smSatIOContext_t *satOrgIOContext;
6754 satOrgIOContext = satIOContext;
6756 pSense = satOrgIOContext->pSense;
6757 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
6761 scsiCmnd = satOrgIOContext->pScsiCmnd;
6766 satOrgIOContext = satIOContext->satOrgIOContext;
6767 if (satOrgIOContext == agNULL)
6769 SM_DBG4(("smsatReadMediaSerialNumberCB: satOrgIOContext is NULL, wrong\n"));
6774 SM_DBG4(("smsatReadMediaSerialNumberCB: satOrgIOContext is NOT NULL\n"));
6776 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
6779 pSense = satOrgIOContext->pSense;
6780 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
6783 scsiCmnd = satOrgIOContext->pScsiCmnd;
6798 satOrgIOContext->interruptContext
6815 satOrgIOContext
6829 satOrgIOContext);
6835 satOrgIOContext->pSmSenseData,
6836 satOrgIOContext->interruptContext );
6876 satOrgIOContext->interruptContext );
6886 satOrgIOContext->interruptContext);
6902 satOrgIOContext);
6908 satOrgIOContext->pSmSenseData,
6909 satOrgIOContext->interruptContext );
6939 smSatIOContext_t *satOrgIOContext;
6961 satOrgIOContext = satIOContext;
6963 pSense = satOrgIOContext->pSense;
6968 satOrgIOContext = satIOContext->satOrgIOContext;
6969 if (satOrgIOContext == agNULL)
6971 SM_DBG4(("smsatReadBufferCB: satOrgIOContext is NULL, wrong\n"));
6976 SM_DBG4(("smsatReadBufferCB: satOrgIOContext is NOT NULL\n"));
6978 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
6980 pSense = satOrgIOContext->pSense;
6993 satOrgIOContext->interruptContext
7010 satOrgIOContext
7024 satOrgIOContext);
7030 satOrgIOContext->pSmSenseData,
7031 satOrgIOContext->interruptContext );
7050 satOrgIOContext->interruptContext);
7065 satOrgIOContext);
7071 satOrgIOContext->pSmSenseData,
7072 satOrgIOContext->interruptContext );
7103 smSatIOContext_t *satOrgIOContext;
7125 satOrgIOContext = satIOContext;
7127 pSense = satOrgIOContext->pSense;
7134 satOrgIOContext = satIOContext->satOrgIOContext;
7135 if (satOrgIOContext == agNULL)
7137 SM_DBG4(("smsatWriteBufferCB: satOrgIOContext is NULL, wrong\n"));
7142 SM_DBG4(("smsatWriteBufferCB: satOrgIOContext is NOT NULL\n"));
7144 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
7146 pSense = satOrgIOContext->pSense;
7159 satOrgIOContext->interruptContext
7175 satOrgIOContext
7188 satOrgIOContext);
7193 satOrgIOContext->pSmSenseData,
7194 satOrgIOContext->interruptContext );
7210 satOrgIOContext->interruptContext);
7225 satOrgIOContext);
7230 satOrgIOContext->pSmSenseData,
7231 satOrgIOContext->interruptContext );
7258 smSatIOContext_t *satOrgIOContext;
7287 satOrgIOContext = satIOContext;
7289 smScsiRequest = satOrgIOContext->smScsiXchg;
7290 pSense = satOrgIOContext->pSense;
7291 scsiCmnd = satOrgIOContext->pScsiCmnd;
7296 satOrgIOContext = satIOContext->satOrgIOContext;
7297 if (satOrgIOContext == agNULL)
7299 SM_DBG4(("smsatReassignBlocksCB: satOrgIOContext is NULL, Wrong\n"));
7304 SM_DBG4(("smsatReassignBlocksCB: satOrgIOContext is NOT NULL, Wrong\n"));
7306 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
7308 smScsiRequest = satOrgIOContext->smScsiXchg;
7309 pSense = satOrgIOContext->pSense;
7310 scsiCmnd = satOrgIOContext->pScsiCmnd;
7325 satOrgIOContext->interruptContext
7367 satOrgIOContext
7400 satOrgIOContext);
7405 satOrgIOContext->pSmSenseData,
7406 satOrgIOContext->interruptContext );
7415 satOrgIOContext
7424 satOrgIOContext->LBA
7437 satOrgIOContext);
7443 satOrgIOContext->pSmSenseData,
7444 satOrgIOContext->interruptContext );
7471 satOrgIOContext);
7477 satOrgIOContext->pSmSenseData,
7478 satOrgIOContext->interruptContext );
7508 if (satOrgIOContext->ParmIndex >= satOrgIOContext->ParmLen)
7517 satOrgIOContext->interruptContext );
7534 satOrgIOContext);
7540 satOrgIOContext->pSmSenseData,
7541 satOrgIOContext->interruptContext );
7551 satOrgIOContext
7561 satOrgIOContext
7574 satOrgIOContext);
7580 satOrgIOContext->pSmSenseData,
7581 satOrgIOContext->interruptContext );
7611 satOrgIOContext);
7617 satOrgIOContext->pSmSenseData,
7618 satOrgIOContext->interruptContext );
7639 smSatIOContext_t *satOrgIOContext = satIOContext->satOrgIOContext;
7730 if (satOrgIOContext == agNULL)
7739 /*smEnqueueIO(smRoot, satOrgIOContext);*/
8722 smSatIOContext_t *satOrgIOContext;
8763 satOrgIOContext = satIOContext;
8764 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
8776 satOrgIOContext = satIOContext->satOrgIOContext;
8777 if (satOrgIOContext == agNULL)
8779 SM_DBG5(("smsatIDStartCB: satOrgIOContext is NULL\n"));
8783 SM_DBG5(("smsatIDStartCB: satOrgIOContext is NOT NULL\n"));
8784 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
8943 SM_DBG5(("smsatIDStartCB: OS satOrgIOContext %p \n", satOrgIOContext));
8945 SM_DBG5(("smsatIDStartCB: OS tiScsiXchg %p \n", satOrgIOContext->smScsiXchg));
8989 satOrgIOContext
9262 satIOContext2->satOrgIOContext = agNULL;
9596 smSatIOContext_t *satOrgIOContext;
9638 satOrgIOContext = satIOContext;
9644 satOrgIOContext = satIOContext->satOrgIOContext;
9645 if (satOrgIOContext == agNULL)
9647 SM_DBG1(("smsatInquiryCB: satOrgIOContext is NULL, wrong!!!\n"));
9652 SM_DBG6(("smsatInquiryCB: satOrgIOContext is NOT NULL\n"));
9654 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
9656 pSense = satOrgIOContext->pSense;
9657 scsiCmnd = satOrgIOContext->pScsiCmnd;
9660 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
9680 satOrgIOContext->interruptContext
9691 satOrgIOContext->interruptContext
9719 satOrgIOContext->interruptContext
9747 satOrgIOContext
9763 satOrgIOContext->interruptContext
9789 SM_DBG5(("smsatInquiryCB: OS satOrgIOContext %p \n", satOrgIOContext));
9791 SM_DBG5(("smsatInquiryCB: OS smScsiXchg %p \n", satOrgIOContext->smScsiXchg));
9837 satOrgIOContext);
9843 satOrgIOContext->pSmSenseData,
9844 satOrgIOContext->interruptContext );
9932 satOrgIOContext->interruptContext );
9941 satOrgIOContext->interruptContext);
10146 smSatIOContext_t *satOrgIOContext;
10173 satOrgIOContext = satIOContext;
10180 satOrgIOContext = satIOContext->satOrgIOContext;
10181 if (satOrgIOContext == agNULL)
10183 SM_DBG4(("smsatVerify10CB: satOrgIOContext is NULL, wrong\n"));
10188 SM_DBG4(("smsatVerify10CB: satOrgIOContext is NOT NULL\n"));
10190 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
10192 pSense = satOrgIOContext->pSense;
10205 satOrgIOContext);
10211 satOrgIOContext->pSmSenseData,
10212 satOrgIOContext->interruptContext );
10256 satOrgIOContext
10282 satOrgIOContext);
10288 satOrgIOContext->pSmSenseData,
10289 satOrgIOContext->interruptContext );
10317 satOrgIOContext->interruptContext);
10332 satOrgIOContext);
10338 satOrgIOContext->pSmSenseData,
10339 satOrgIOContext->interruptContext );
10706 satIOContext2->satOrgIOContext = agNULL;
11143 smSatIOContext_t *satOrgIOContext;
11167 satOrgIOContext = satIOContext;
11172 satOrgIOContext = satIOContext->satOrgIOContext;
11173 if (satOrgIOContext == agNULL)
11175 SM_DBG6(("smsatCheckPowerModeCB: satOrgIOContext is NULL, wrong\n"));
11180 SM_DBG6(("smsatCheckPowerModeCB: satOrgIOContext is NOT NULL\n"));
11254 SM_DBG1(("smsatCheckPowerModeCB: TMF %d!!!\n", satOrgIOContext->TMF));
11256 if (satOrgIOContext->TMF == AG_ABORT_TASK)
11263 smsatAbort(smRoot, agRoot, satOrgIOContext->satToBeAbortedIOContext);
11305 smSatIOContext_t *satOrgIOContext;
11333 satOrgIOContext = satIOContext;
11335 pSense = satOrgIOContext->pSense;
11340 satOrgIOContext = satIOContext->satOrgIOContext;
11341 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
11343 pSense = satOrgIOContext->pSense;
11344 if (satOrgIOContext == agNULL)
11346 SM_DBG6(("smsatCheckPowerModePassCB: satOrgIOContext is NULL, wrong\n"));
11351 SM_DBG6(("smsatCheckPowerModePassCB: satOrgIOContext is NOT NULL\n"));
11366 satOrgIOContext->interruptContext
11392 satOrgIOContext
11408 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
11413 satOrgIOContext->pSmSenseData,
11414 satOrgIOContext->interruptContext );
11433 satOrgIOContext->interruptContext);
11462 smSatIOContext_t *satOrgIOContext;
11490 satOrgIOContext = satIOContext;
11492 pSense = satOrgIOContext->pSense;
11497 satOrgIOContext = satIOContext->satOrgIOContext;
11498 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
11500 pSense = satOrgIOContext->pSense;
11501 if (satOrgIOContext == agNULL)
11503 SM_DBG6(("smsatIDDataPassCB: satOrgIOContext is NULL, wrong\n"));
11508 SM_DBG6(("smsatIDDataPassCB: satOrgIOContext is NOT NULL\n"));
11523 satOrgIOContext->interruptContext
11549 satOrgIOContext
11565 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
11570 satOrgIOContext->pSmSenseData,
11571 satOrgIOContext->interruptContext );
11585 SM_DBG3(("smsatIDDataPassCB: extend 0x%x ck_cond 0x%x sectorCnt07 0x%x\n", satOrgIOContext->extend,
11586 satIOContext->ck_cond, satOrgIOContext->sectorCnt07));
11587 SM_DBG3(("smsatIDDataPassCB: LBAHigh07 0x%x LBAMid07 0x%x LBALow07 0x%x\n", satOrgIOContext->LBAHigh07,
11588 satOrgIOContext->LBAMid07, satOrgIOContext->LBALow07));
11594 satOrgIOContext->sectorCnt07,
11603 satOrgIOContext->interruptContext );
11612 satOrgIOContext->interruptContext);
11647 smSatIOContext_t *satOrgIOContext;
11675 satOrgIOContext = satIOContext;
11681 satOrgIOContext = satIOContext->satOrgIOContext;
11682 if (satOrgIOContext == agNULL)
11684 SM_DBG6(("smsatResetDeviceCB: satOrgIOContext is NULL, wrong\n"));
11689 SM_DBG6(("smsatResetDeviceCB: satOrgIOContext is NOT NULL\n"));
11691 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
11794 satOrgIOContext
11799 satOrgIOContext->psmDeviceHandle,
11857 smSatIOContext_t *satOrgIOContext;
11881 satOrgIOContext = satIOContext;
11886 satOrgIOContext = satIOContext->satOrgIOContext;
11887 if (satOrgIOContext == agNULL)
11889 SM_DBG6(("smsatDeResetDeviceCB: satOrgIOContext is NULL, wrong\n"));
11894 SM_DBG6(("smsatDeResetDeviceCB: satOrgIOContext is NOT NULL\n"));
11967 SM_DBG1(("smsatDeResetDeviceCB: TMF %d!!!\n", satOrgIOContext->TMF));
11969 if (satOrgIOContext->TMF == AG_ABORT_TASK)
11976 smsatAbort(smRoot, agRoot, satOrgIOContext->satToBeAbortedIOContext);
12259 smSatIOContext_t *satOrgIOContext;
12286 satOrgIOContext = satIOContext;
12293 satOrgIOContext = satIOContext->satOrgIOContext;
12294 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
12369 smSatIOContext_t *satOrgIOContext;
12397 satOrgIOContext = satIOContext;
12404 satOrgIOContext = satIOContext->satOrgIOContext;
12405 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
12407 scsiCmnd = satOrgIOContext->pScsiCmnd;
12467 satOrgIOContext
12505 satOrgIOContext
12543 satOrgIOContext
12603 smSatIOContext_t *satOrgIOContext;
12632 satOrgIOContext = satIOContext;
12639 satOrgIOContext = satIOContext->satOrgIOContext;
12640 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
12642 scsiCmnd = satOrgIOContext->pScsiCmnd;
12695 satOrgIOContext
12736 satOrgIOContext
12797 smSatIOContext_t *satOrgIOContext;
12827 satOrgIOContext = satIOContext;
12834 satOrgIOContext = satIOContext->satOrgIOContext;
12835 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
12903 satOrgIOContext
12948 smSatIOContext_t *satOrgIOContext;
12977 satOrgIOContext = satIOContext;
12979 scsiCmnd = satOrgIOContext->pScsiCmnd;
12980 pSense = satOrgIOContext->pSense;
12985 satOrgIOContext = satIOContext->satOrgIOContext;
12986 if (satOrgIOContext == agNULL)
12988 SM_DBG4(("smsatSMARTEnablePassCB: satOrgIOContext is NULL, wrong\n"));
12993 SM_DBG4(("smsatSMARTEnablePassCB: satOrgIOContext is NOT NULL\n"));
12995 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
12997 scsiCmnd = satOrgIOContext->pScsiCmnd;
12998 pSense = satOrgIOContext->pSense;
13012 satOrgIOContext->interruptContext
13030 satOrgIOContext
13046 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
13051 satOrgIOContext->pSmSenseData,
13052 satOrgIOContext->interruptContext );
13076 satOrgIOContext->interruptContext
13104 smSatIOContext_t *satOrgIOContext;
13139 satOrgIOContext = satIOContext;
13141 pSense = satOrgIOContext->pSense;
13142 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13144 smScsiRequest = satOrgIOContext->smScsiXchg;
13145 scsiCmnd = satOrgIOContext->pScsiCmnd;
13155 satOrgIOContext = satIOContext->satOrgIOContext;
13156 if (satOrgIOContext == agNULL)
13158 SM_DBG4(("smsatSMARTRStatusPassCB: satOrgIOContext is NULL\n"));
13165 SM_DBG4(("smsatSMARTRStatusPassCB: satOrgIOContext is NOT NULL\n"));
13167 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
13170 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13173 scsiCmnd = satOrgIOContext->pScsiCmnd;
13174 pSense = satOrgIOContext->pSense;
13189 satOrgIOContext->interruptContext
13232 satOrgIOContext
13249 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
13254 satOrgIOContext->pSmSenseData,
13255 satOrgIOContext->interruptContext );
13276 satOrgIOContext->interruptContext);
13307 smSatIOContext_t *satOrgIOContext;
13348 satOrgIOContext = satIOContext;
13350 pSense = satOrgIOContext->pSense;
13351 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13354 smScsiRequest = satOrgIOContext->smScsiXchg;
13355 scsiCmnd = satOrgIOContext->pScsiCmnd;
13362 satOrgIOContext = satIOContext->satOrgIOContext;
13363 if (satOrgIOContext == agNULL)
13365 SM_DBG4(("smsatSMARTReadLogCB: satOrgIOContext is NULL\n"));
13372 SM_DBG4(("smsatSMARTReadLogCB: satOrgIOContext is NOT NULL\n"));
13374 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
13377 pSense = satOrgIOContext->pSense;
13378 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13382 scsiCmnd = satOrgIOContext->pScsiCmnd;
13397 satOrgIOContext->interruptContext
13456 satOrgIOContext
13491 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
13496 satOrgIOContext->pSmSenseData,
13497 satOrgIOContext->interruptContext );
13518 satOrgIOContext->interruptContext);
13546 smSatIOContext_t *satOrgIOContext;
13577 satOrgIOContext = satIOContext;
13579 pSense = satOrgIOContext->pSense;
13580 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13583 smScsiRequest = satOrgIOContext->smScsiXchg;
13584 scsiCmnd = satOrgIOContext->pScsiCmnd;
13589 satOrgIOContext = satIOContext->satOrgIOContext;
13590 if (satOrgIOContext == agNULL)
13592 SM_DBG4(("smsatPassthroughCB: satOrgIOContext is NULL\n"));
13597 SM_DBG4(("smsatPassthroughCB: satOrgIOContext is NOT NULL\n"));
13599 smOrgIORequestBody = (smIORequestBody_t *)satOrgIOContext->smRequestBody;
13602 pSense = satOrgIOContext->pSense;
13603 smOrgScsiRequest = satOrgIOContext->smScsiXchg;
13607 scsiCmnd = satOrgIOContext->pScsiCmnd;
13622 satOrgIOContext->interruptContext
13641 satOrgIOContext->interruptContext
13695 satOrgIOContext);
13710 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
13715 satOrgIOContext->pSmSenseData,
13716 satOrgIOContext->interruptContext );
13737 smsatSetSensePayload(pSense, bSenseKey, 0, bSenseCodeInfo, satOrgIOContext);
13744 satOrgIOContext->pSmSenseData,
13745 satOrgIOContext->interruptContext );
13759 satOrgIOContext->interruptContext);