Lines Matching refs:pSatDevData
404 satIOContext->pSatDevData = oneDeviceData; in smSuperIOStart()
514 satIOContext->pSatDevData = oneDeviceData; in smIOStart()
830 oneDeviceData = satIOContext->pSatDevData; in smsatStartCheckPowerMode()
906 oneDeviceData = satIOContext->pSatDevData; in smsatStartResetDevice()
1137 satIOContext->pSatDevData = oneDeviceData; in smsatTaskManagement()
1983 satNewIOContext->pSatDevData = satDevData; in smsatPrepareNewIO()
3184 satIOContext->pSatDevData = oneDeviceData; in smIDStart()
3230 satDevData = satIOContext->pSatDevData; in smsatIDSubStart()
3253 satNewIOContext->pSatDevData = satDevData; in smsatIDSubStart()
3314 smDeviceData_t *pSatDevData; in smsatIDStart() local
3321 pSatDevData = satIOContext->pSatDevData; in smsatIDStart()
3330 if (pSatDevData->satDeviceType == SATA_ATAPI_DEVICE) in smsatIDStart()
3391 smDeviceData_t *pSatDevData = satIOContext->pSatDevData; in smsatIOStart() local
3409 scsiCmnd->cdb[0], pSatDevData->id)); in smsatIOStart()
3428 …SM_DBG2(("smsatIOStart: satPendingIO %d satNCQMaxIO %d\n",pSatDevData->satPendingIO, pSatDevData->… in smsatIOStart()
3431 if (pSatDevData->IDDeviceValid == agFALSE && (scsiCmnd->cdb[0] != SCSIOPC_INQUIRY)) in smsatIOStart()
3433 SM_DBG1(("smsatIOStart: invalid identify device data did %d !!!\n", pSatDevData->id)); in smsatIOStart()
3434 …_DBG1(("smsatIOStart: satPendingIO %d satNCQMaxIO %d\n", pSatDevData->satPendingIO, pSatDevData->s… in smsatIOStart()
3435 …atIOStart: satPendingNCQIO %d satPendingNONNCQIO %d\n", pSatDevData->satPendingNCQIO, pSatDevData-… in smsatIOStart()
3445 if (pSatDevData->satDriveState == SAT_DEV_STATE_IN_RECOVERY) in smsatIOStart()
3448 scsiCmnd->cdb[0], pSatDevData->id)); in smsatIOStart()
3449 …tart: device %p satPendingIO %d satNCQMaxIO %d\n", pSatDevData, pSatDevData->satPendingIO, pSatDev… in smsatIOStart()
3450 …e %p satPendingNCQIO %d satPendingNONNCQIO %d\n",pSatDevData, pSatDevData->satPendingNCQIO, pSatDe… in smsatIOStart()
3458 if (pSatDevData->satDeviceType == SATA_ATAPI_DEVICE) in smsatIOStart()
3806 scsiCmnd->cdb[0], pSatDevData->id)); in smsatIOStart()
3831 SM_DBG1(("smsatIOStart: BUSY did %d!!!\n", pSatDevData->id)); in smsatIOStart()
3833 …Start: device %p satPendingIO %d satNCQMaxIO %d\n",pSatDevData, pSatDevData->satPendingIO, pSatDev… in smsatIOStart()
3834 …e %p satPendingNCQIO %d satPendingNONNCQIO %d\n",pSatDevData, pSatDevData->satPendingNCQIO, pSatDe… in smsatIOStart()
3841 pSatDevData, in smsatIOStart()
4026 smDeviceData_t *pSatDevData; in smsatPacket() local
4030 pSatDevData = satIOContext->pSatDevData; in smsatPacket()
4042 if (pSatDevData->satDMADIRSupport) /* DMADIR enabled*/ in smsatPacket()
4051 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatPacket()
4222 smDeviceData_t *pSatDevData; in smsatRequestSenseForATAPI() local
4226 pSatDevData = satIOContext->pSatDevData; in smsatRequestSenseForATAPI()
4244 if (pSatDevData->satDMADIRSupport) /* DMADIR enabled*/ in smsatRequestSenseForATAPI()
4253 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRequestSenseForATAPI()
4476 smDeviceData_t *pSatDevData; in smsatRead6() local
4484 pSatDevData = satIOContext->pSatDevData; in smsatRead6()
4531 if (pSatDevData->satNCQ != agTRUE && in smsatRead6()
4532 pSatDevData->sat48BitSupport != agTRUE in smsatRead6()
4560 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead6()
4633 if (pSatDevData->sat48BitSupport == agTRUE) in smsatRead6()
4635 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead6()
4707 if (pSatDevData->satNCQ == agTRUE) in smsatRead6()
4710 if (pSatDevData->sat48BitSupport != agTRUE) in smsatRead6()
4791 smDeviceData_t *pSatDevData = satIOContext->pSatDevData; in smsatRead10() local
4806 SM_DBG2(("smsatRead10: pSatDevData did=%d\n", pSatDevData->id)); in smsatRead10()
4899 if (pSatDevData->satNCQ != agTRUE && in smsatRead10()
4900 pSatDevData->sat48BitSupport != agTRUE in smsatRead10()
4903 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatRead10()
4927 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatRead10()
4950 if (pSatDevData->satNCQ == agTRUE) in smsatRead10()
4953 if (pSatDevData->sat48BitSupport != agTRUE) in smsatRead10()
5004 else if (pSatDevData->sat48BitSupport == agTRUE) /* case 3 and 4 */ in smsatRead10()
5006 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead10()
5088 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead10()
5260 smDeviceData_t *pSatDevData; in smsatRead12() local
5272 pSatDevData = satIOContext->pSatDevData; in smsatRead12()
5360 if (pSatDevData->satNCQ != agTRUE && in smsatRead12()
5361 pSatDevData->sat48BitSupport != agTRUE in smsatRead12()
5365 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatRead12()
5389 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatRead12()
5413 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead12()
5478 if (pSatDevData->sat48BitSupport == agTRUE) in smsatRead12()
5480 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead12()
5562 if (pSatDevData->satNCQ == agTRUE) in smsatRead12()
5565 if (pSatDevData->sat48BitSupport != agTRUE) in smsatRead12()
5699 smDeviceData_t *pSatDevData; in smsatRead16() local
5712 pSatDevData = satIOContext->pSatDevData; in smsatRead16()
5805 if (pSatDevData->satNCQ != agTRUE && in smsatRead16()
5806 pSatDevData->sat48BitSupport != agTRUE in smsatRead16()
5809 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatRead16()
5839 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatRead16()
5865 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead16()
5930 if (pSatDevData->sat48BitSupport == agTRUE) in smsatRead16()
5932 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatRead16()
6014 if (pSatDevData->satNCQ == agTRUE) in smsatRead16()
6017 if (pSatDevData->sat48BitSupport != agTRUE) in smsatRead16()
6152 smDeviceData_t *pSatDevData; in smsatWrite6() local
6160 pSatDevData = satIOContext->pSatDevData; in smsatWrite6()
6206 if (pSatDevData->satNCQ != agTRUE && in smsatWrite6()
6207 pSatDevData->sat48BitSupport != agTRUE in smsatWrite6()
6235 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite6()
6308 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWrite6()
6310 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite6()
6382 if (pSatDevData->satNCQ == agTRUE) in smsatWrite6()
6385 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWrite6()
6465 smDeviceData_t *pSatDevData = satIOContext->pSatDevData; in smsatWrite10() local
6568 if (pSatDevData->satNCQ != agTRUE && in smsatWrite10()
6569 pSatDevData->sat48BitSupport != agTRUE in smsatWrite10()
6572 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWrite10()
6599 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWrite10()
6624 if (pSatDevData->satNCQ == agTRUE) in smsatWrite10()
6627 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWrite10()
6678 else if (pSatDevData->sat48BitSupport == agTRUE) in smsatWrite10()
6680 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite10()
6740 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite10()
6911 smDeviceData_t *pSatDevData; in smsatWrite12() local
6923 pSatDevData = satIOContext->pSatDevData; in smsatWrite12()
7014 if (pSatDevData->satNCQ != agTRUE && in smsatWrite12()
7015 pSatDevData->sat48BitSupport != agTRUE in smsatWrite12()
7018 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWrite12()
7047 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWrite12()
7065 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite12()
7128 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWrite12()
7130 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite12()
7190 if (pSatDevData->satNCQ == agTRUE) in smsatWrite12()
7193 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWrite12()
7333 smDeviceData_t *pSatDevData; in smsatWrite16() local
7345 pSatDevData = satIOContext->pSatDevData; in smsatWrite16()
7438 if (pSatDevData->satNCQ != agTRUE && in smsatWrite16()
7439 pSatDevData->sat48BitSupport != agTRUE in smsatWrite16()
7442 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWrite16()
7466 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWrite16()
7490 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite16()
7553 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWrite16()
7555 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWrite16()
7615 if (pSatDevData->satNCQ == agTRUE) in smsatWrite16()
7618 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWrite16()
7763 smDeviceData_t *pSatDevData; in smsatVerify10() local
7776 pSatDevData = satIOContext->pSatDevData; in smsatVerify10()
7855 if (pSatDevData->satNCQ != agTRUE && in smsatVerify10()
7856 pSatDevData->sat48BitSupport != agTRUE in smsatVerify10()
7859 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatVerify10()
7886 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatVerify10()
7909 if (pSatDevData->sat48BitSupport == agTRUE) in smsatVerify10()
8046 smDeviceData_t *pSatDevData; in smsatVerify12() local
8059 pSatDevData = satIOContext->pSatDevData; in smsatVerify12()
8137 if (pSatDevData->satNCQ != agTRUE && in smsatVerify12()
8138 pSatDevData->sat48BitSupport != agTRUE in smsatVerify12()
8141 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatVerify12()
8168 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatVerify12()
8191 if (pSatDevData->sat48BitSupport == agTRUE) in smsatVerify12()
8328 smDeviceData_t *pSatDevData; in smsatVerify16() local
8341 pSatDevData = satIOContext->pSatDevData; in smsatVerify16()
8409 if (pSatDevData->satNCQ != agTRUE && in smsatVerify16()
8410 pSatDevData->sat48BitSupport != agTRUE in smsatVerify16()
8413 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatVerify16()
8434 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatVerify16()
8454 if (pSatDevData->sat48BitSupport == agTRUE) in smsatVerify16()
8586 smDeviceData_t *pSatDevData; in smsatTestUnitReady() local
8592 pSatDevData = satIOContext->pSatDevData; in smsatTestUnitReady()
8622 if (pSatDevData->satStopState == agTRUE) in smsatTestUnitReady()
8645 if (pSatDevData->satDriveState == SAT_DEV_STATE_FORMAT_IN_PROGRESS) in smsatTestUnitReady()
8670 if (pSatDevData->satPendingIO != 0) in smsatTestUnitReady()
8672 if (pSatDevData->satDeviceFaultState == agTRUE) in smsatTestUnitReady()
8696 if(pSatDevData->satRemovableMedia && pSatDevData->satRemovableMediaEnabled) in smsatTestUnitReady()
8826 smDeviceData_t *pSatDevData; in smsatInquiry() local
8831 pSatDevData = satIOContext->pSatDevData; in smsatInquiry()
8833 SM_DBG5(("smsatInquiry: pSatDevData did %d\n", pSatDevData->id)); in smsatInquiry()
8879 if ( pSatDevData->IDDeviceValid == agFALSE) in smsatInquiry()
8924 satDevData = satIOContext->pSatDevData; in smsatStartIDDev()
8950 satNewIOContext->pSatDevData = satDevData; in smsatStartIDDev()
9010 smDeviceData_t *pSatDevData; in smsatSendIDDev() local
9017 pSatDevData = satIOContext->pSatDevData; in smsatSendIDDev()
9020 SM_DBG6(("smsatSendIDDev: did %d\n", pSatDevData->id)); in smsatSendIDDev()
9027 if (pSatDevData->satDeviceType == SATA_ATAPI_DEVICE) in smsatSendIDDev()
9090 smDeviceData_t *pSatDevData; in smsatRequestSense() local
9100 pSatDevData = satIOContext->pSatDevData; in smsatRequestSense()
9159 if (pSatDevData->satSMARTEnabled == agTRUE) in smsatRequestSense()
9209 pSatDevData, in smsatRequestSense()
9259 satIOContext2->pSatDevData = pSatDevData; in smsatRequestSense()
9288 pSatDevData, in smsatRequestSense()
9403 smDeviceData_t *pSatDevData; in smsatModeSense6() local
9416 pSatDevData = satIOContext->pSatDevData; in smsatModeSense6()
9491 page, pSatDevData->id)); in smsatModeSense6()
9573 if (pSatDevData->satWriteCacheEnabled == agTRUE) in smsatModeSense6()
9591 if (pSatDevData->satLookAheadEnabled == agTRUE) in smsatModeSense6()
9610 if (pSatDevData->satNCQ == agTRUE) in smsatModeSense6()
9629 if (pSatDevData->satSMARTEnabled == agTRUE) in smsatModeSense6()
9678 if (pSatDevData->satNCQ == agTRUE) in smsatModeSense6()
9790 if (pSatDevData->satWriteCacheEnabled == agTRUE) in smsatModeSense6()
9808 if (pSatDevData->satLookAheadEnabled == agTRUE) in smsatModeSense6()
9855 if (pSatDevData->satSMARTEnabled == agTRUE) in smsatModeSense6()
9943 smDeviceData_t *pSatDevData; in smsatModeSense10() local
9957 pSatDevData = satIOContext->pSatDevData; in smsatModeSense10()
10012 SM_DBG5(("smsatModeSense10: page=0x%x, did %d\n", page, pSatDevData->id)); in smsatModeSense10()
10036 …BG1(("smsatModeSense10 *** ERROR *** not supported page 0x%x did %d!!!\n", page, pSatDevData->id)); in smsatModeSense10()
10208 if (pSatDevData->satWriteCacheEnabled == agTRUE) in smsatModeSense10()
10226 if (pSatDevData->satLookAheadEnabled == agTRUE) in smsatModeSense10()
10249 if (pSatDevData->satNCQ == agTRUE) in smsatModeSense10()
10272 if (pSatDevData->satSMARTEnabled == agTRUE) in smsatModeSense10()
10376 if (pSatDevData->satNCQ == agTRUE) in smsatModeSense10()
10575 if (pSatDevData->satWriteCacheEnabled == agTRUE) in smsatModeSense10()
10593 if (pSatDevData->satLookAheadEnabled == agTRUE) in smsatModeSense10()
10694 if (pSatDevData->satSMARTEnabled == agTRUE) in smsatModeSense10()
10779 smDeviceData_t *pSatDevData; in smsatReadCapacity10() local
10789 pSatDevData = satIOContext->pSatDevData; in smsatReadCapacity10()
10790 pSATAIdData = &pSatDevData->satIdentifyData; in smsatReadCapacity10()
10825 pSatDevData->id)); in smsatReadCapacity10()
10851 pSatDevData->id)); in smsatReadCapacity10()
10880 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReadCapacity10()
10971 pSatDevData->satMaxLBA[0] = 0; /* MSB */ in smsatReadCapacity10()
10972 pSatDevData->satMaxLBA[1] = 0; in smsatReadCapacity10()
10973 pSatDevData->satMaxLBA[2] = 0; in smsatReadCapacity10()
10974 pSatDevData->satMaxLBA[3] = 0; in smsatReadCapacity10()
10975 pSatDevData->satMaxLBA[4] = dataBuffer[0]; in smsatReadCapacity10()
10976 pSatDevData->satMaxLBA[5] = dataBuffer[1]; in smsatReadCapacity10()
10977 pSatDevData->satMaxLBA[6] = dataBuffer[2]; in smsatReadCapacity10()
10978 pSatDevData->satMaxLBA[7] = dataBuffer[3]; /* LSB */ in smsatReadCapacity10()
10984 pSatDevData->id)); in smsatReadCapacity10()
11015 smDeviceData_t *pSatDevData; in smsatReadCapacity16() local
11025 pSatDevData = satIOContext->pSatDevData; in smsatReadCapacity16()
11026 pSATAIdData = &pSatDevData->satIdentifyData; in smsatReadCapacity16()
11091 pSatDevData->id)); in smsatReadCapacity16()
11117 pSatDevData->id)); in smsatReadCapacity16()
11145 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReadCapacity16()
11194 pSatDevData->satMaxLBA[0] = dataBuffer[0]; /* MSB */ in smsatReadCapacity16()
11195 pSatDevData->satMaxLBA[1] = dataBuffer[1]; in smsatReadCapacity16()
11196 pSatDevData->satMaxLBA[2] = dataBuffer[2]; in smsatReadCapacity16()
11197 pSatDevData->satMaxLBA[3] = dataBuffer[3]; in smsatReadCapacity16()
11198 pSatDevData->satMaxLBA[4] = dataBuffer[4]; in smsatReadCapacity16()
11199 pSatDevData->satMaxLBA[5] = dataBuffer[5]; in smsatReadCapacity16()
11200 pSatDevData->satMaxLBA[6] = dataBuffer[6]; in smsatReadCapacity16()
11201 pSatDevData->satMaxLBA[7] = dataBuffer[7]; /* LSB */ in smsatReadCapacity16()
11207 pSatDevData->id)); in smsatReadCapacity16()
11267 smDeviceData_t *pSatDevData; in smsatReportLun() local
11274 pSatDevData = satIOContext->pSatDevData; in smsatReportLun()
11288 reportLunLen, pSatDevData->id)); in smsatReportLun()
11579 smDeviceData_t *pSatDevData; in smsatSendDiagnostic() local
11586 pSatDevData = satIOContext->pSatDevData; in smsatSendDiagnostic()
11593 pSatDevData->satVerifyState = 0; in smsatSendDiagnostic()
11595 pSatDevData->satBGPendingDiag = agFALSE; in smsatSendDiagnostic()
11659 (pSatDevData->satSMARTSelfTest == agFALSE) in smsatSendDiagnostic()
11683 (pSatDevData->satSMARTSelfTest == agTRUE) && in smsatSendDiagnostic()
11684 (pSatDevData->satSMARTEnabled == agFALSE) in smsatSendDiagnostic()
11719 (pSatDevData->satSMARTSelfTest == agFALSE)) in smsatSendDiagnostic()
11722 (pSatDevData->satSMARTSelfTest == agTRUE) && in smsatSendDiagnostic()
11723 (pSatDevData->satSMARTEnabled == agFALSE)) in smsatSendDiagnostic()
11731 if (pSatDevData->sat48BitSupport == agTRUE) in smsatSendDiagnostic()
11799 (pSatDevData->satSMARTSelfTest == agTRUE) && in smsatSendDiagnostic()
11800 (pSatDevData->satSMARTEnabled == agTRUE) in smsatSendDiagnostic()
11850 (pSatDevData->satSMARTSelfTest == agTRUE) && in smsatSendDiagnostic()
11851 (pSatDevData->satSMARTEnabled == agTRUE) in smsatSendDiagnostic()
11859 pSatDevData->satBGPendingDiag = agTRUE; in smsatSendDiagnostic()
11908 pSatDevData->satBGPendingDiag = agTRUE; in smsatSendDiagnostic()
11980 if (pSatDevData->satBGPendingDiag == agTRUE) in smsatSendDiagnostic()
12175 smDeviceData_t *pSatDevData; in smsatStartStopUnit() local
12181 pSatDevData = satIOContext->pSatDevData; in smsatStartStopUnit()
12229 if (pSatDevData->sat48BitSupport == agTRUE) in smsatStartStopUnit()
12319 if (pSatDevData->sat48BitSupport == agTRUE) in smsatStartStopUnit()
12389 if(pSatDevData->satRemovableMedia && pSatDevData->satRemovableMediaEnabled) in smsatStartStopUnit()
12508 smDeviceData_t *pSatDevData; in smsatWriteSame10() local
12516 pSatDevData = satIOContext->pSatDevData; in smsatWriteSame10()
12558 if ( pSatDevData->sat48BitSupport != agTRUE ) in smsatWriteSame10()
12599 if (pSatDevData->satNCQ != agTRUE && in smsatWriteSame10()
12600 pSatDevData->sat48BitSupport != agTRUE in smsatWriteSame10()
12628 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteSame10()
12676 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWriteSame10()
12678 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteSame10()
12705 if (pSatDevData->satMaxUserAddrSectors > 0x0FFFFFFF) in smsatWriteSame10()
12760 if (pSatDevData->satMaxUserAddrSectors > 0x0FFFFFFF) in smsatWriteSame10()
12792 if (pSatDevData->satNCQ == agTRUE) in smsatWriteSame10()
12795 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWriteSame10()
12829 if (pSatDevData->satMaxUserAddrSectors > 0x0FFFFFFF) in smsatWriteSame10()
12991 smDeviceData_t *pSatDevData; in smsatLogSense() local
13002 pSatDevData = satIOContext->pSatDevData; in smsatLogSense()
13049 if (pSatDevData->satSMARTFeatureSet == agTRUE) in smsatLogSense()
13053 if (pSatDevData->satSMARTSelfTest == agTRUE) in smsatLogSense()
13147 if (pSatDevData->satSMARTFeatureSet == agTRUE) in smsatLogSense()
13151 if (pSatDevData->satSMARTSelfTest == agTRUE) in smsatLogSense()
13224 if (pSatDevData->satSMARTSelfTest == agFALSE) in smsatLogSense()
13245 if (pSatDevData->satSMARTEnabled == agFALSE) in smsatLogSense()
13263 if ( pSatDevData->sat48BitSupport == agTRUE ) in smsatLogSense()
13297 if (pSatDevData->satSMARTFeatureSet == agFALSE) in smsatLogSense()
13317 if (pSatDevData->satSMARTEnabled == agFALSE) in smsatLogSense()
13414 smDeviceData_t *pSatDevData; in smsatLogSenseAllocate() local
13422 pSatDevData = satIOContext->pSatDevData; in smsatLogSenseAllocate()
13427 pSatDevData, in smsatLogSenseAllocate()
13450 satIOContext2->pSatDevData = pSatDevData; in smsatLogSenseAllocate()
13494 pSatDevData, in smsatLogSenseAllocate()
13685 smDeviceData_t *pSatDevData; in smsatModeSelect6() local
13696 pSatDevData = satIOContext->pSatDevData; in smsatModeSelect6()
13813 (pSatDevData->satNCQ == agTRUE && pLogPage[StartingIndex+3] != 0x12) || in smsatModeSelect6()
13814 (pSatDevData->satNCQ == agFALSE && pLogPage[StartingIndex+3] != 0x02) || in smsatModeSelect6()
14182 smDeviceData_t *pSatDevData; in smsatModeSelect10() local
14194 pSatDevData = satIOContext->pSatDevData; in smsatModeSelect10()
14347 (pSatDevData->satNCQ == agTRUE && pLogPage[StartingIndex+3] != 0x12) || in smsatModeSelect10()
14348 (pSatDevData->satNCQ == agFALSE && pLogPage[StartingIndex+3] != 0x02) || in smsatModeSelect10()
14715 smDeviceData_t *pSatDevData; in smsatSynchronizeCache10() local
14721 pSatDevData = satIOContext->pSatDevData; in smsatSynchronizeCache10()
14765 if (pSatDevData->sat48BitSupport == agTRUE) in smsatSynchronizeCache10()
14846 smDeviceData_t *pSatDevData; in smsatSynchronizeCache16() local
14852 pSatDevData = satIOContext->pSatDevData; in smsatSynchronizeCache16()
14897 if (pSatDevData->sat48BitSupport == agTRUE) in smsatSynchronizeCache16()
14982 smDeviceData_t *pSatDevData; in smsatWriteAndVerify10() local
14994 pSatDevData = satIOContext->pSatDevData; in smsatWriteAndVerify10()
15085 if (pSatDevData->satNCQ != agTRUE && in smsatWriteAndVerify10()
15086 pSatDevData->sat48BitSupport != agTRUE in smsatWriteAndVerify10()
15089 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWriteAndVerify10()
15113 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWriteAndVerify10()
15138 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify10()
15202 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWriteAndVerify10()
15204 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify10()
15263 if (pSatDevData->satNCQ == agTRUE) in smsatWriteAndVerify10()
15266 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWriteAndVerify10()
15411 smDeviceData_t *pSatDevData; in smsatWriteAndVerify12() local
15423 pSatDevData = satIOContext->pSatDevData; in smsatWriteAndVerify12()
15511 if (pSatDevData->satNCQ != agTRUE && in smsatWriteAndVerify12()
15512 pSatDevData->sat48BitSupport != agTRUE in smsatWriteAndVerify12()
15515 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWriteAndVerify12()
15544 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWriteAndVerify12()
15562 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify12()
15625 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWriteAndVerify12()
15627 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify12()
15687 if (pSatDevData->satNCQ == agTRUE) in smsatWriteAndVerify12()
15690 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWriteAndVerify12()
15836 smDeviceData_t *pSatDevData; in smsatWriteAndVerify16() local
15848 pSatDevData = satIOContext->pSatDevData; in smsatWriteAndVerify16()
15939 if (pSatDevData->satNCQ != agTRUE && in smsatWriteAndVerify16()
15940 pSatDevData->sat48BitSupport != agTRUE in smsatWriteAndVerify16()
15943 AllChk = smsatCheckLimit(LBA, TL, agFALSE, pSatDevData); in smsatWriteAndVerify16()
15967 AllChk = smsatCheckLimit(LBA, TL, agTRUE, pSatDevData); in smsatWriteAndVerify16()
15992 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify16()
16055 if (pSatDevData->sat48BitSupport == agTRUE) in smsatWriteAndVerify16()
16057 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatWriteAndVerify16()
16117 if (pSatDevData->satNCQ == agTRUE) in smsatWriteAndVerify16()
16120 if (pSatDevData->sat48BitSupport != agTRUE) in smsatWriteAndVerify16()
16260 smDeviceData_t *pSatDevData; in smsatReadMediaSerialNumber() local
16270 pSatDevData = satIOContext->pSatDevData; in smsatReadMediaSerialNumber()
16273 pSATAIdData = &(pSatDevData->satIdentifyData); in smsatReadMediaSerialNumber()
16339 if ( pSatDevData->IDDeviceValid == agTRUE) in smsatReadMediaSerialNumber()
16375 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReadMediaSerialNumber()
16920 smDeviceData_t *pSatDevData; in smsatReassignBlocks() local
16932 pSatDevData = satIOContext->pSatDevData; in smsatReassignBlocks()
17007 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReassignBlocks()
17645 smDeviceData_t *pSatDevData; in smsatPassthrough() local
17654 pSatDevData = satIOContext->pSatDevData; in smsatPassthrough()
17839 smDeviceData_t *pSatDevData; in smsatNonChainedWriteNVerify_Verify() local
17843 pSatDevData = satIOContext->pSatDevData; in smsatNonChainedWriteNVerify_Verify()
17847 if (pSatDevData->sat48BitSupport == agTRUE) in smsatNonChainedWriteNVerify_Verify()
17913 smDeviceData_t *pSatDevData; in smsatChainedWriteNVerify_Start_Verify() local
17922 pSatDevData = satIOContext->pSatDevData; in smsatChainedWriteNVerify_Start_Verify()
17940 if (pSatDevData->sat48BitSupport == agTRUE) in smsatChainedWriteNVerify_Start_Verify()
18876 smDeviceData_t *pSatDevData; in smsatSendDiagnostic_1() local
18880 pSatDevData = satIOContext->pSatDevData; in smsatSendDiagnostic_1()
18885 if (pSatDevData->sat48BitSupport == agTRUE) in smsatSendDiagnostic_1()
18892 fis->d.lbaLow = pSatDevData->satMaxLBA[7]; /* FIS LBA (7 :0 ) */ in smsatSendDiagnostic_1()
18893 fis->d.lbaMid = pSatDevData->satMaxLBA[6]; /* FIS LBA (15:8 ) */ in smsatSendDiagnostic_1()
18894 fis->d.lbaHigh = pSatDevData->satMaxLBA[5]; /* FIS LBA (23:16) */ in smsatSendDiagnostic_1()
18895 fis->d.lbaLowExp = pSatDevData->satMaxLBA[4]; /* FIS LBA (31:24) */ in smsatSendDiagnostic_1()
18896 fis->d.lbaMidExp = pSatDevData->satMaxLBA[3]; /* FIS LBA (39:32) */ in smsatSendDiagnostic_1()
18897 fis->d.lbaHighExp = pSatDevData->satMaxLBA[2]; /* FIS LBA (47:40) */ in smsatSendDiagnostic_1()
18914 fis->d.lbaLow = pSatDevData->satMaxLBA[7]; /* FIS LBA (7 :0 ) */ in smsatSendDiagnostic_1()
18915 fis->d.lbaMid = pSatDevData->satMaxLBA[6]; /* FIS LBA (15:8 ) */ in smsatSendDiagnostic_1()
18916 fis->d.lbaHigh = pSatDevData->satMaxLBA[5]; /* FIS LBA (23:16) */ in smsatSendDiagnostic_1()
18924 fis->d.device = (bit8)((0x4 << 4) | (pSatDevData->satMaxLBA[4] & 0xF)); in smsatSendDiagnostic_1()
18967 smDeviceData_t *pSatDevData; in smsatSendDiagnostic_2() local
18972 pSatDevData = satIOContext->pSatDevData; in smsatSendDiagnostic_2()
18977 if (pSatDevData->sat48BitSupport == agTRUE) in smsatSendDiagnostic_2()
19171 smDeviceData_t *pSatDevData; in smsatLogSense_1() local
19174 pSatDevData = satIOContext->pSatDevData; in smsatLogSense_1()
19180 if ( pSatDevData->sat48BitSupport == agTRUE ) in smsatLogSense_1()
19282 smDeviceData_t *pSatDevData; in smsatReassignBlocks_2() local
19287 pSatDevData = satIOContext->pSatDevData; in smsatReassignBlocks_2()
19291 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatReassignBlocks_2()
19354 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReassignBlocks_2()
19356 if (pSatDevData->satDMASupport == agTRUE && pSatDevData->satDMAEnabled == agTRUE) in smsatReassignBlocks_2()
19415 if (pSatDevData->satNCQ == agTRUE) in smsatReassignBlocks_2()
19418 if (pSatDevData->sat48BitSupport != agTRUE) in smsatReassignBlocks_2()
19497 smDeviceData_t *pSatDevData; in smsatReassignBlocks_1() local
19505 pSatDevData = satIOContext->pSatDevData; in smsatReassignBlocks_1()
19534 if (pSatDevData->sat48BitSupport == agTRUE) in smsatReassignBlocks_1()
19937 smDeviceData_t *pSatDevData; in smsatSetFeaturesDMA() local
19940 pSatDevData = satIOContext->pSatDevData; in smsatSetFeaturesDMA()
19959 fis->d.sectorCount = 0x40 |(bit8)pSatDevData->satUltraDMAMode; /* enable Ultra DMA mode */ in smsatSetFeaturesDMA()
20147 smDeviceData_t *pSatDevData, in smsatTagAlloc() argument
20158 if (tdsmBitScanForward(smRoot, &i, ~(pSatDevData->freeSATAFDMATagBitmap))) in smsatTagAlloc()
20160 smsatBitSet(smRoot, (bit8*)&pSatDevData->freeSATAFDMATagBitmap, i); in smsatTagAlloc()
20167 for ( i = 0; i < pSatDevData->satNCQMaxIO; i ++ ) in smsatTagAlloc()
20169 if ( 0 == smsatBitTest(smRoot, (bit8 *)&pSatDevData->freeSATAFDMATagBitmap, i) ) in smsatTagAlloc()
20171 smsatBitSet(smRoot, (bit8*)&pSatDevData->freeSATAFDMATagBitmap, i); in smsatTagAlloc()
20188 smDeviceData_t *pSatDevData, in smsatTagRelease() argument
20194 if ( tag < pSatDevData->satNCQMaxIO ) in smsatTagRelease()
20197 smsatBitClear(smRoot, (bit8 *)&pSatDevData->freeSATAFDMATagBitmap, (bit32)tag); in smsatTagRelease()
20204 SM_DBG1(("smsatTagRelease: tag %d >= satNCQMaxIO %d!!!!\n", tag, pSatDevData->satNCQMaxIO)); in smsatTagRelease()
20358 smsatCheckLimit(bit8 *lba, bit8 *tl, int flag, smDeviceData_t *pSatDevData) in smsatCheckLimit() argument
20538 sm_memcpy(&temp_satMaxLBA, &pSatDevData->satMaxLBA, sizeof(temp_satMaxLBA)); in smsatCheckLimit()
20560 if ( pSatDevData->ReadCapacity == 10) in smsatCheckLimit()
20590 else if ( pSatDevData->ReadCapacity == 16) in smsatCheckLimit()
20622 … SM_DBG5(("smsatCheckLimit: unknown pSatDevData->ReadCapacity %d\n", pSatDevData->ReadCapacity)); in smsatCheckLimit()