Lines Matching defs:agDev
81 "allocated in agtiapi_GetDevHandle as local mem for **agDev" );
5271 // tiDeviceHandle_t *agDev[pCard->devDiscover];
5272 tiDeviceHandle_t **agDev;
5290 agDev = (tiDeviceHandle_t **) malloc( sizeof(tiDeviceHandle_t *) * pCard->devDiscover,
5292 if (agDev == NULL)
5294 AGTIAPI_PRINTK( "agtiapi_GetDevHandle: failed to alloc agDev[]\n" );
5302 free((caddr_t)agDev, M_PMC_MDEV);
5310 memset( (void *)agDev, 0, sizeof(void *) * pCard->devDiscover );
5316 (tiDeviceHandle_t **)agDev,
5353 if ( agDev[devIdx] != NULL )
5355 // AGTIAPI_PRINTK( "agtiapi_GetDevHandle: agDev %d not NULL %p\n",
5356 // devIdx, agDev[devIdx] );
5364 pDevice->pDevHandle = agDev[devIdx];
5368 // devIdx, pCard->devDiscover, agDev[devIdx] );
5370 tiINIGetDeviceInfo( &pCard->tiRoot, agDev[devIdx],
5412 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev handle
5442 agDev[devIdx]->osData = (void *)&pCard->pDevList[lDevIndex];
5449 free((caddr_t)agDev, M_PMC_MDEV);
5456 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev used
5465 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev used
5474 // we have an agDev entry, but no pWWNList target for it
5478 // later, get an empty pDevice and map this agDev.
5485 lDevFlags[devIdx] |= DPMC_LEANFLAG_NOAGDEVYT; // known empty agDev handle
5513 free( (caddr_t)agDev, M_PMC_MDEV );
5528 tiINIGetDeviceInfo( &pCard->tiRoot, agDev[devIdx], &pDevice->devInfo );
5554 pDevice->pDevHandle = agDev[devIdx];
5555 agDev[devIdx]->osData = (void*)pDevice;
5598 free((caddr_t)agDev, M_PMC_MDEV);