FreeBSD kernel pms device code
|
Go to the source code of this file.
osGLOBAL tiDeviceHandle_t * ostiGetDevHandleFromSasAddr | ( | tiRoot_t * | root, |
unsigned char * | sas_addr | ||
) |
Definition at line 364 of file osapi.c.
References NULL, pCard, _ag_portal_data::portalInfo, agtiapi_softc::portCount, agtiapi_softc::pPortalData, tiINIGetExpDeviceHandleBySasAddress(), _ag_portal_info::tiPortalContext, agtiapi_softc::tiRoot, and TIROOT_TO_CARD.
Referenced by tdsaSendSMPIoctl().
osGLOBAL void ostiGetSCSIStatusCount | ( | tiRoot_t * | root, |
bit32 | fIsClear, | ||
void * | ScsiStatusCount, | ||
bit32 | length | ||
) |
Definition at line 792 of file osapi.c.
References AGTIAPI_PRINTK.
osGLOBAL void ostiGetSenseKeyCount | ( | tiRoot_t * | root, |
bit32 | fIsClear, | ||
void * | SenseKeyCount, | ||
bit32 | length | ||
) |
Definition at line 781 of file osapi.c.
References AGTIAPI_PRINTK.
void ostiInitiatorEvent | ( | tiRoot_t * | ptiRoot, |
tiPortalContext_t * | ptiPortalContext, | ||
tiDeviceHandle_t * | ptiDevHandle, | ||
tiIntrEventType_t | eventType, | ||
U32 | eventStatus, | ||
void * | parm | ||
) |
Definition at line 49 of file osapi.c.
References ACTIVE, AG_TARGET_WARM_RESET, AGTIAPI_CB_DONE, agtiapi_CheckIOTimeout(), AGTIAPI_DISC_COMPLETE, AGTIAPI_DISC_DONE, agtiapi_FreeTMCCB(), agtiapi_GetCCB(), agtiapi_GetDevHandle(), AGTIAPI_INIT_TIME, AGTIAPI_PORT_LINK_UP, AGTIAPI_PRINTK, agtiapi_softc::cardNo, DEV_RESET, _CCB::devHandle, _CCB::flags, agtiapi_softc::flags, agtiapi_softc::IO_timer, tiIniScsiCmnd::lun, NULL, tiPortalContext::osData, pCard, _CCB::pccbIO, _CCB::pmcsc, PORTAL_CONTEXT_TO_PORTALDATA, PORTAL_STATUS, _ag_portal_data::portalInfo, agtiapi_softc::pPortalData, tiSuperScsiInitiatorRequest::scsiCmnd, _CCB::startTime, _CCB::targetId, TASK_MANAGEMENT, TASK_SUCCESS, TASK_TIMEOUT, tiAbortFailed, tiAbortOK, tiCnxDown, tiCnxUp, tiDiscFailed, tiDiscOK, tiINIIOAbort(), tiINITaskManagement(), tiIntrEventTypeCnxError, tiIntrEventTypeDeviceChange, tiIntrEventTypeDiscovery, tiIntrEventTypeLocalAbort, tiIntrEventTypeTaskManagement, tiIntrEventTypeTransportRecovery, _CCB::tiIORequest, agtiapi_softc::tiRoot, TIROOT_TO_CARD, tiSuccess, _CCB::tiSuperScsiRequest, tiTMFailed, tiTMOK, and TRUE.
Referenced by itdssTaskCompleted(), ossaDeviceHandleRemovedEvent(), ossaDeviceRegistrationCB(), ossaHwCB(), ossaLocalPhyControlCB(), smaSATAAbortCB(), tdsaPhyControlFailureRespRcvd(), tdsaPhyControlRespRcvd(), and tiINIDiscoverTargets().
void ostiInitiatorIOCompleted | ( | tiRoot_t * | ptiRoot, |
tiIORequest_t * | ptiIORequest, | ||
tiIOStatus_t | IOStatus, | ||
U32 | statusDetail, | ||
tiSenseData_t * | pSenseData, | ||
U32 | context | ||
) |
Definition at line 270 of file osapi.c.
References agNULL, agtiapi_Done(), AGTIAPI_FLAG_UP, agtiapi_hexdump(), AGTIAPI_IO, AGTIAPI_PRINTK, agtiapi_QueueCCB(), _CCB::ccb, agtiapi_softc::ccbDoneHead, agtiapi_softc::ccbDoneTail, _CCB::ccbStatus, _CCB::flags, agtiapi_softc::flags, MIN, tiIORequest::osData, OSTI_OUT_ENTER, OSTI_OUT_LEAVE, pCard, _CCB::pSenseData, REQ_DONE, SCSI_CHECK_CONDITION, _CCB::scsiStatus, tiSenseData::senseData, _CCB::senseLen, tiSenseData::senseLen, _CCB::startTime, tiDetailAborted, tiIODifError, tiIOFailed, tiIOSuccess, and TIROOT_TO_CARD.
Referenced by itdssDifHandler(), itdssDsInRecoveryHandler(), itdssDsNonOperationalHandler(), itdssEncryptionHandler(), itdssIOAbortedHandler(), itdssIOAbortResetHandler(), itdssIOCompleted(), itdssIODefaultHandler(), itdssIOFailedHandler(), itdssIONoDeviceHandler(), itdssIONotValidHandler(), itdssIOResourceUnavailableHandler(), itdssIORQEBusyFullHandler(), itdssIOSuccessHandler(), itdssIOUnderFlowHandler(), itdssLinkFailureHandler(), itdssOpenCnxErrorBadDestinationHandler(), itdssOpenCnxErrorBreakHandler(), itdssOpenCnxErrorConnectionRateNotSupportedHandler(), itdssOpenCnxErrorITNexusLossHandler(), itdssOpenCnxErrorItNexusLossNoDestHandler(), itdssOpenCnxErrorItNexusLossOpenCollideHandler(), itdssOpenCnxErrorItNexusLossOpenPathwayBlockedHandler(), itdssOpenCnxErrorItNexusLossOpenTmoHandler(), itdssOpenCnxErrorOpenPreemptedHandler(), itdssOpenCnxErrorProtocolNotSupprotedHandler(), itdssOpenCnxErrorSTPResourceBusyHandler(), itdssOpenCnxErrorUnknownErrorHandler(), itdssOpenCnxErrorWrongDestinationHandler(), itdssOpenCnxErrorZoneViolationHandler(), itdssPortInResetHandler(), itdssProgErrorHandler(), itdssSSPExtIUZeroLenHandler(), itdssTmTagNotFoundHandler(), itdssXferErrorACKNAKTimeoutHandler(), itdssXferErrorBreakHandler(), itdssXferErrorCMDIssueACKNAKTimeoutHandler(), itdssXferErrorCMDIssueBreakBeforeACKNAKHandler(), itdssXferErrorCMDIssuePhyDownBeforeACKNAKHandler(), itdssXferErrorCreditTimeoutHandler(), itdssXferErrorDisruptedPhyDownHandler(), itdssXferErrorDMAHandler(), itdssXferErrorEOBDataOverrunHandler(), itdssXferErrorInvalidSSPRspFrameHandler(), itdssXferErrorNAKReceivedHandler(), itdssXferErrorOffsetMismatchHandler(), itdssXferErrorPeerAbortedHandler(), itdssXferErrorPhyNotReadyHandler(), itdssXferErrorRxFrameHandler(), itdssXferErrorUnexpectedPhaseHandler(), itdssXferErrorXferZeroDataLenHandler(), itdssXferOpenRetryBackoffThresholdReachedHandler(), and itdssXferOpenRetryTimeoutHandler().
void ostiInitiatorSMPCompleted | ( | tiRoot_t * | ptiRoot, |
tiIORequest_t * | ptiSMPRequest, | ||
tiSMPStatus_t | smpStatus, | ||
bit32 | tiSMPInfoLen, | ||
void * | tiFrameHandle, | ||
bit32 | context | ||
) |
Definition at line 420 of file osapi.c.
References agtiapi_hexdump(), AGTIAPI_PRINTK, agtiapi_QueueCCB(), _CCB::ccb, _CCB::ccbStatus, _CCB::flags, tiIORequest::osData, OSTI_OUT_ENTER, OSTI_OUT_LEAVE, pCard, REQ_DONE, agtiapi_softc::smpDoneHead, agtiapi_softc::smpDoneTail, TIROOT_TO_CARD, and tiSMPSuccess.
Referenced by ossaSMPCAMCompleted().
osGLOBAL FORCEINLINE sbit32 ostiInterlockedDecrement | ( | tiRoot_t * | root, |
sbit32 volatile * | Addend | ||
) |
osGLOBAL FORCEINLINE sbit32 ostiInterlockedIncrement | ( | tiRoot_t * | root, |
sbit32 volatile * | Addend | ||
) |
osGLOBAL tiDeviceHandle_t * ostiMapToDevHandle | ( | tiRoot_t * | root, |
bit8 | pathId, | ||
bit8 | targetId, | ||
bit8 | LUN | ||
) |
Definition at line 542 of file osapi.c.
References NULL, pCard, _ag_device::pDevHandle, agtiapi_softc::pDevList, agtiapi_softc::tgtCount, and TIROOT_TO_CARD.
Referenced by tdsaDeviceInfoGetIoctl().
osGLOBAL bit32 ostiNumOfLUNIOCTLreq | ( | tiRoot_t * | root, |
void * | param1, | ||
void * | param2, | ||
void ** | tiRequestBody, | ||
tiIORequest_t ** | tiIORequest | ||
) |
Definition at line 810 of file osapi.c.
References agtiapi_GetCCB(), AGTIAPI_PRINTK, IOCTL_CALL_FAIL, IOCTL_CALL_SUCCESS, NULL, pCard, status, _CCB::tdIOReqBody, _CCB::tiIORequest, and TIROOT_TO_CARD.
Referenced by tdsaGetNumOfLUNIOCTL().
Definition at line 803 of file osapi.c.
References ostiChipReadBit32Ext().
Referenced by ossaPCI_TRIGGER().
osGLOBAL bit32 ostiSetDeviceQueueDepth | ( | tiRoot_t * | tiRoot, |
tiIORequest_t * | tiIORequest, | ||
bit32 | QueueDepth | ||
) |
Definition at line 761 of file osapi.c.
References AGTIAPI_PRINTK, _CCB::devHandle, tiDeviceHandle::osData, and tiIORequest::osData.
Referenced by itdssIOCompleted().
Definition at line 514 of file osapi.c.
References pCard, and TIROOT_TO_CARD.
Referenced by ossaSingleThreadedEnter(), and tdsaSingleThreadedEnter().
Definition at line 534 of file osapi.c.
References pCard, and TIROOT_TO_CARD.
Referenced by ossaSingleThreadedLeave(), and tdsaSingleThreadedLeave().