Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c
Show First 20 Lines • Show All 1,814 Lines • ▼ Show 20 Lines | tiNumOfLunIOCTLreq( | ||||
do | do | ||||
{ | { | ||||
if((tiIORequest == agNULL) || (tiRequestBody == agNULL)) | if((tiIORequest == agNULL) || (tiRequestBody == agNULL)) | ||||
{ | { | ||||
status = IOCTL_CALL_FAIL; | status = IOCTL_CALL_FAIL; | ||||
break; | break; | ||||
} | } | ||||
tdIORequestBody = (tdIORequestBody_t *)tiRequestBody; | tdIORequestBody = (tdIORequestBody_t *)tiRequestBody; | ||||
if(tdIORequestBody == agNULL) | |||||
{ | |||||
status = IOCTL_CALL_FAIL; | |||||
break; | |||||
} | |||||
tdIORequestBody->tiIORequest = tiIORequest; | tdIORequestBody->tiIORequest = tiIORequest; | ||||
/* save context if we need to abort later */ | /* save context if we need to abort later */ | ||||
tiIORequest->tdData = tdIORequestBody; | tiIORequest->tdData = tdIORequestBody; | ||||
agIORequest = &(tdIORequestBody->agIORequest); | agIORequest = &(tdIORequestBody->agIORequest); | ||||
agIORequest->osData = (void *) tdIORequestBody; | agIORequest->osData = (void *) tdIORequestBody; | ||||
agSASRequestBody = &(tdIORequestBody->transport.SAS.agSASRequestBody); | agSASRequestBody = &(tdIORequestBody->transport.SAS.agSASRequestBody); | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |