• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/pms/freebsd/driver/ini/src/

Lines Matching defs:pmsc

487 	struct agtiapi_softc *pmsc;
490 pmsc = (struct agtiapi_softc*)callback_arg;
501 if (pmsc != NULL){
502 TID = INDEX(pmsc, TID);
503 targ = &pmsc->pDevList[TID];
727 struct agtiapi_softc *pmsc;
753 pmsc = device_get_softc( devx );
754 pmsc->my_dev = devx;
758 &pmsc->tiRoot,
788 pmsc->flags |= AGTIAPI_INIT_TIME | AGTIAPI_SCSI_REGISTERED |
790 pmsc->cardNo = thisCard;
791 pmsc->ccbTotal = 0;
792 pmsc->portCount = ag_portal_count;
793 pmsc->pCardInfo = thisCardInst;
794 pmsc->tiRoot.osData = pmsc;
795 pmsc->pCardInfo->pCard = (void *)pmsc;
796 pmsc->VidDid = ( pci_get_vendor(devx) << 16 ) | pci_get_device( devx );
797 pmsc->SimQFrozen = agFALSE;
798 pmsc->devq_flag = agFALSE;
806 &pmsc->tiRoot,
833 if(Is_ADP8H(pmsc))
835 else if(Is_ADP7H(pmsc))
847 pmsc->devDiscover = maxTargets ;
851 if(ag_encryption_enable && pci_get_device(pmsc->pCardInfo->pPCIDev) ==
854 pmsc->encrypt = 1;
866 pmsc->my_cdev = make_dev( &agtiapi_cdevsw, thisCard, UID_ROOT, GID_WHEEL,
868 pmsc->my_cdev->si_drv1 = pmsc;
887 pmsc,
899 pmsc->dev_scan = agFALSE;
910 pmsc->sim = lsim;
911 bus = cam_sim_path(pmsc->sim);
931 pmsc->path = ccb->ccb_h.path;
932 xpt_setup_ccb(&csa.ccb_h, pmsc->path, 5);
936 csa.callback_arg = pmsc;
948 tiCOMGetResource( &pmsc->tiRoot,
956 " 0x%x \n", pmsc->typhn );
966 if (pmsc->portCount == 0)
968 pmsc->pPortalData = NULL;
972 pmsc->pPortalData = (ag_portal_data_t *)
973 malloc( sizeof(ag_portal_data_t) * pmsc->portCount,
975 if (pmsc->pPortalData == NULL)
981 pPortalData = pmsc->pPortalData;
982 for( idx = 0; idx < pmsc->portCount; idx++ ) {
983 pPortalData->pCard = pmsc;
1030 pmsc->rscID[i] = i + 1;
1031 pmsc->irq[i] = bus_alloc_resource_any( devx,
1033 &pmsc->rscID[i],
1035 if( pmsc->irq[i] == NULL ) {
1040 if ( (error = bus_setup_intr( devx, pmsc->irq[i],
1044 pmsc,
1045 &pmsc->intrcookie[i] )
1051 pmsc->flags |= AGTIAPI_IRQ_REQUESTED;
1052 pmsc->pCardInfo->maxInterruptVectors = MAX_MSIX_NUM_VECTOR;
1056 ret = agtiapi_InitCardSW(pmsc);
1064 pmsc->ccbFreeList = NULL;
1065 pmsc->ccbChainList = NULL;
1066 pmsc->ccbAllocList = NULL;
1068 pmsc->flags |= ( AGTIAPI_INSTALLED );
1070 ret = agtiapi_alloc_requests( pmsc );
1077 ret = agtiapi_alloc_ostimem( pmsc );
1085 ret = agtiapi_InitCardHW( pmsc );
1094 if(pmsc->encrypt)
1096 if((agtiapi_SetupEncryption(pmsc)) < 0)
1101 pmsc->flags &= ~AGTIAPI_INIT_TIME;
1111 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
1118 STATIC agBOOLEAN agtiapi_InitCardSW( struct agtiapi_softc *pmsc )
1120 ag_card_info_t *thisCardInst = pmsc->pCardInfo;
1126 mtx_init( &pmsc->sendLock, "local q send lock", NULL, MTX_DEF );
1127 mtx_init( &pmsc->doneLock, "local q done lock", NULL, MTX_DEF );
1128 mtx_init( &pmsc->sendSMPLock, "local q send lock", NULL, MTX_DEF );
1129 mtx_init( &pmsc->doneSMPLock, "local q done lock", NULL, MTX_DEF );
1130 mtx_init( &pmsc->ccbLock, "ccb list lock", NULL, MTX_DEF );
1131 mtx_init( &pmsc->devListLock, "hotP devListLock", NULL, MTX_DEF );
1132 mtx_init( &pmsc->memLock, "dynamic memory lock", NULL, MTX_DEF );
1133 mtx_init( &pmsc->freezeLock, "sim freeze lock", NULL, MTX_DEF | MTX_RECURSE);
1139 if (pci_get_device(pmsc->pCardInfo->pPCIDev) ==
1141 pmsc->encrypt = 1;
1143 if (pmsc->encrypt)
1146 pmsc->flags &= ~(AGTIAPI_PORT_INITIALIZED | AGTIAPI_SYS_INTR_ON);
1151 maxInterruptVectors = pmsc->pCardInfo->maxInterruptVectors;
1153 pmsc->pCardInfo->maxInterruptVectors );
1158 AGTIAPI_PRINTK( "agtiapi_InitCardSW: tiCOMInit root %p, dev %p, pmsc %p\n",
1159 &pmsc->tiRoot, pmsc->my_dev, pmsc );
1160 if( tiCOMInit( &pmsc->tiRoot,
1170 pmsc->STLock = malloc( ( maxLocks * sizeof(struct mtx) ), M_PMC_MSTL,
1176 mtx_init( &pmsc->STLock[initSWIdx], "LL & TD lock", NULL, MTX_DEF );
1179 if( tiCOMPortInit( &pmsc->tiRoot, agFALSE ) != tiSuccess ) {
1184 " root %p, dev %p, pmsc %p\n",
1185 &pmsc->tiRoot, pmsc->my_dev, pmsc );
1187 pmsc->flags |= AGTIAPI_PORT_INITIALIZED;
1188 pmsc->freezeSim = agFALSE;
1193 /*if(pmsc->encrypt && (pmsc->flags & AGTIAPI_INIT_TIME))
1194 if((agtiapi_SetupEncryptionPools(pmsc)) != 0)
1207 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
1214 STATIC agBOOLEAN agtiapi_InitCardHW( struct agtiapi_softc *pmsc )
1225 tiCOMSystemInterruptsActive( &pmsc->tiRoot, agTRUE );
1226 pmsc->flags |= AGTIAPI_SYS_INTR_ON;
1228 numVal = sizeof(ag_device_t) * pmsc->devDiscover;
1229 pmsc->pDevList =
1231 if( !pmsc->pDevList ) {
1238 numVal = sizeof(ag_slr_map_t) * pmsc->devDiscover;
1239 pmsc->pSLRList =
1241 if( !pmsc->pSLRList ) {
1247 numVal = sizeof(ag_tgt_map_t) * pmsc->devDiscover;
1248 pmsc->pWWNList =
1250 if( !pmsc->pWWNList ) {
1260 agtiapi_GetWWNMappings( pmsc, agMappingList );
1262 agtiapi_GetWWNMappings( pmsc, 0 );
1271 pmsc->tgtCount = 0;
1273 pmsc->flags &= ~AGTIAPI_CB_DONE;
1274 pPortalData = pmsc->pPortalData;
1278 for (count = 0; count < pmsc->portCount; count++)
1291 &pmsc->tiRoot,
1295 if( tiCOMPortStart( &pmsc->tiRoot,
1318 tiCOMGetPortInfo( &pmsc->tiRoot,
1330 pmsc->flags |= AGTIAPI_INSTALLED;
1332 if( pmsc->flags & AGTIAPI_INIT_TIME ) {
1333 agtiapi_TITimer( (void *)pmsc );
1334 pmsc->flags |= AGTIAPI_TIMER_ON;
1612 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
2029 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
2434 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
2510 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
3390 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure
3522 struct agtiapi_softc *pmsc (IN) Pointer to the HBA data structure