agtiapi_softc
#define TIROOT_TO_CARD(ptiRoot) ((struct agtiapi_softc *)(ptiRoot->osData))
agtiapi_SetupEncryptedIO(struct agtiapi_softc *pCard, ccb_t *pccb, unsigned long long block)
agtiapi_CleanupEncryptedIO(struct agtiapi_softc *pCard, ccb_t *pccb)
agtiapi_SetupEncryption(struct agtiapi_softc *pCard)
agtiapi_SetupEncryptionPools(struct agtiapi_softc *pCard)
agtiapi_CleanupEncryption(struct agtiapi_softc *pCard)
agtiapi_CleanupEncryptionPools(struct agtiapi_softc *pCard)
agtiapi_EncryptionIoctl(struct agtiapi_softc *pCard, IoctlEncrypt_t *pIoctlPayload)
struct agtiapi_softc *pCard = (struct agtiapi_softc *) shost->hostdata;
struct agtiapi_softc *pCard;
int agtiapi_SetupEncryption(struct agtiapi_softc *pCard);
int agtiapi_SetupEncryptionPools(struct agtiapi_softc *pCard);
void agtiapi_CleanupEncryption(struct agtiapi_softc *pCard);
void agtiapi_CleanupEncryptionPools(struct agtiapi_softc *pCard);
int agtiapi_SetupEncryptedIO(struct agtiapi_softc *pCard, ccb_t *pccb, unsigned long long block);
void agtiapi_CleanupEncryptedIO(struct agtiapi_softc *pCard, ccb_t *pccb);
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pmsc = thisCardInst->pCard;
struct agtiapi_softc *pmsc = thisCardInst->pCard;
struct agtiapi_softc *pmsc = thisCardInst->pCard;
struct agtiapi_softc *pmsc = thisCardInst->pCard; // get card reference
struct agtiapi_softc *pmsc = pCardInfo->pCard; // get card reference
STATIC agBOOLEAN agtiapi_InitCardSW( struct agtiapi_softc *pmsc )
STATIC agBOOLEAN agtiapi_InitCardHW( struct agtiapi_softc *pmsc )
struct agtiapi_softc *pCard;
pCard = (struct agtiapi_softc *)arg;
int agtiapi_alloc_requests( struct agtiapi_softc *pmcsc )
int agtiapi_alloc_ostimem( struct agtiapi_softc *pmcsc ) {
struct agtiapi_softc *pmcsc;
STATIC pccb_t agtiapi_GetCCB( struct agtiapi_softc *pmcsc )
int agtiapi_QueueCmnd_(struct agtiapi_softc *pmcsc, union ccb * ccb)
int agtiapi_DoSoftReset (struct agtiapi_softc *pmcsc)
struct agtiapi_softc *pmcsc;
pmcsc = (struct agtiapi_softc *)data;
agtiapi_StartTM(struct agtiapi_softc *pCard, ccb_t *pccb)
static int agtiapi_PrepareSGList(struct agtiapi_softc *pmcsc, ccb_t *pccb)
static int agtiapi_PrepareSGList(struct agtiapi_softc *pmcsc, ccb_t *pccb)
struct agtiapi_softc *sc;
struct agtiapi_softc *pmcsc;
struct agtiapi_softc *sc;
struct agtiapi_softc *sc;
struct agtiapi_softc *sc;
int agtiapi_getdevlist( struct agtiapi_softc *pCard,
STATIC void agtiapi_StartIO( struct agtiapi_softc *pmcsc )
STATIC void agtiapi_StartSMP(struct agtiapi_softc *pmcsc)
static int agtiapi_PrepareSMPSGList( struct agtiapi_softc *pmcsc, ccb_t *pccb )
static int agtiapi_PrepareSMPSGList( struct agtiapi_softc *pmcsc, ccb_t *pccb )
struct agtiapi_softc *pmcsc;
STATIC void agtiapi_Done(struct agtiapi_softc *pmcsc, ccb_t *pccb)
STATIC void agtiapi_SMPDone(struct agtiapi_softc *pmcsc, ccb_t *pccb)
STATIC U32 agtiapi_CheckError(struct agtiapi_softc *pmcsc, ccb_t *pccb)
STATIC U32 agtiapi_CheckSMPError( struct agtiapi_softc *pmcsc, ccb_t *pccb )
STATIC void agtiapi_Retry(struct agtiapi_softc *pmcsc, ccb_t *pccb)
int agtiapi_eh_HostReset( struct agtiapi_softc *pmcsc, union ccb *cmnd )
STATIC void agtiapi_QueueCCB( struct agtiapi_softc *pmcsc,
static int agtiapi_QueueSMP(struct agtiapi_softc *pmcsc, union ccb * ccb)
int agtiapi_getCardInfo ( struct agtiapi_softc *pCard,
STATIC void agtiapi_FreeCCB(struct agtiapi_softc *pmcsc, pccb_t pccb)
STATIC void agtiapi_FlushCCBs( struct agtiapi_softc *pCard, U32 flag )
STATIC void agtiapi_FreeSMPCCB(struct agtiapi_softc *pmcsc, pccb_t pccb)
STATIC void agtiapi_FreeTMCCB(struct agtiapi_softc *pmcsc, pccb_t pccb)
void agtiapi_CheckAllVectors( struct agtiapi_softc *pCard, bit32 context )
agBOOLEAN agtiapi_CheckCB( struct agtiapi_softc *pCard,
struct agtiapi_softc *pmsc;
pmsc = (struct agtiapi_softc*)callback_arg;
STATIC void agtiapi_DiscoverTgt(struct agtiapi_softc *pCard)
STATIC void agtiapi_PrepCCBs( struct agtiapi_softc *pCard,
STATIC U32 agtiapi_InitCCBs(struct agtiapi_softc *pCard, int tgtCount, int tid)
STATIC void agtiapi_GetWWNMappings( struct agtiapi_softc *pCard,
STATIC U32 agtiapi_GetDevHandle( struct agtiapi_softc *pCard,
struct agtiapi_softc *pCard;
static void agtiapi_scan(struct agtiapi_softc *pmcsc)
agtiapi_DeQueueCCB(struct agtiapi_softc *pCard, pccb_t *phead, pccb_t *ptail,
STATIC void agtiapi_ReleaseCCBs( struct agtiapi_softc *pCard )
struct agtiapi_softc *pCard;
pCard = (struct agtiapi_softc *)data;
STATIC void agtiapi_clrRmScan( struct agtiapi_softc *pCard )
struct agtiapi_softc *pCard;
pCard = ( struct agtiapi_softc * )data;
U32 agtiapi_ResetCard( struct agtiapi_softc *pCard, unsigned long *flags )
struct agtiapi_softc *pCard;
sizeof( struct agtiapi_softc )
struct agtiapi_softc *pmsc;
struct agtiapi_softc *pmcsc;
int agtiapi_getdevlist( struct agtiapi_softc *pCard,
int agtiapi_getCardInfo ( struct agtiapi_softc *pCard,
STATIC void agtiapi_ReleaseCCBs( struct agtiapi_softc *pCard );
STATIC void agtiapi_clrRmScan( struct agtiapi_softc *pCard );
STATIC agBOOLEAN agtiapi_InitCardSW( struct agtiapi_softc *pmsc );
STATIC agBOOLEAN agtiapi_InitCardHW( struct agtiapi_softc *pmsc );
U32 agtiapi_ResetCard( struct agtiapi_softc *pCard, unsigned long *flags );
int agtiapi_DoSoftReset( struct agtiapi_softc *pmcsc );
STATIC void agtiapi_FlushCCBs( struct agtiapi_softc *pCard, U32 flag );
int agtiapi_QueueCmnd_(struct agtiapi_softc *, union ccb * );
int agtiapi_alloc_ostimem(struct agtiapi_softc *);
int agtiapi_alloc_requests(struct agtiapi_softc *);
static int agtiapi_PrepareSGList(struct agtiapi_softc *, ccb_t *);
static int agtiapi_PrepareSMPSGList(struct agtiapi_softc *pmcsc, ccb_t *);
int agtiapi_eh_HostReset( struct agtiapi_softc *pmcsc, union ccb *cmnd );
STATIC void agtiapi_FreeCCB(struct agtiapi_softc *pmcsc, pccb_t pccb);
STATIC void agtiapi_FreeSMPCCB(struct agtiapi_softc *pmcsc, pccb_t pccb);
STATIC void agtiapi_FreeTMCCB(struct agtiapi_softc *pmcsc, pccb_t pccb);
STATIC pccb_t agtiapi_GetCCB(struct agtiapi_softc *pmcsc);
STATIC void agtiapi_QueueCCB( struct agtiapi_softc *pmcsc,
static int agtiapi_QueueSMP(struct agtiapi_softc *, union ccb * );
STATIC void agtiapi_StartIO(struct agtiapi_softc *pmcsc);
STATIC void agtiapi_StartSMP(struct agtiapi_softc *pmcsc);
STATIC void agtiapi_Done(struct agtiapi_softc *pmcsc, ccb_t *pccb);
STATIC void agtiapi_SMPDone(struct agtiapi_softc *pmcsc, ccb_t *pccb);
STATIC U32 agtiapi_CheckError(struct agtiapi_softc *pmcsc, ccb_t *pccb);
STATIC U32 agtiapi_CheckSMPError(struct agtiapi_softc *pmcsc, ccb_t *pccb);
STATIC void agtiapi_Retry(struct agtiapi_softc *pmcsc, ccb_t *pccb);
static void agtiapi_scan(struct agtiapi_softc *pmcsc);
STATIC U32 agtiapi_GetDevHandle(struct agtiapi_softc *pmcsc,
int agtiapi_StartTM(struct agtiapi_softc *pCard, ccb_t *pccb);
STATIC void agtiapi_DiscoverTgt(struct agtiapi_softc *pCard);
agBOOLEAN agtiapi_CheckCB( struct agtiapi_softc *pCard,
STATIC agBOOLEAN agtiapi_DeQueueCCB( struct agtiapi_softc *,
void agtiapi_CheckAllVectors( struct agtiapi_softc *pCard, bit32 context );
STATIC U32 agtiapi_InitCCBs( struct agtiapi_softc *pCard,
STATIC void agtiapi_PrepCCBs( struct agtiapi_softc *pCard,
void agtiapi_GetWWNMappings( struct agtiapi_softc *, ag_mapping_t * );
STATIC void agtiapi_MapWWNList( struct agtiapi_softc *pCard );
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard = TIROOT_TO_CARD(root);
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard = TIROOT_TO_CARD(ptiRoot);
struct agtiapi_softc *pCard = TIROOT_TO_CARD(ptiRoot);
struct agtiapi_softc *pCard;
struct agtiapi_softc *pCard = TIROOT_TO_CARD( ptiRoot );
struct agtiapi_softc *pCard = TIROOT_TO_CARD(root);