Lines Matching defs:agDev
82 "allocated in agtiapi_GetDevHandle as local mem for **agDev" );
5300 // tiDeviceHandle_t *agDev[pCard->devDiscover];
5301 tiDeviceHandle_t **agDev;
5319 agDev = (tiDeviceHandle_t **) malloc( sizeof(tiDeviceHandle_t *) * pCard->devDiscover,
5321 if (agDev == NULL)
5323 AGTIAPI_PRINTK( "agtiapi_GetDevHandle: failed to alloc agDev[]\n" );
5331 free((caddr_t)agDev, M_PMC_MDEV);
5339 memset( (void *)agDev, 0, sizeof(void *) * pCard->devDiscover );
5345 (tiDeviceHandle_t **)agDev,
5382 if ( agDev[devIdx] != NULL )
5384 // AGTIAPI_PRINTK( "agtiapi_GetDevHandle: agDev %d not NULL %p\n",
5385 // devIdx, agDev[devIdx] );
5393 pDevice->pDevHandle = agDev[devIdx];
5397 // devIdx, pCard->devDiscover, agDev[devIdx] );
5399 tiINIGetDeviceInfo( &pCard->tiRoot, agDev[devIdx],
5441 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev handle
5471 agDev[devIdx]->osData = (void *)&pCard->pDevList[lDevIndex];
5478 free((caddr_t)agDev, M_PMC_MDEV);
5485 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev used
5494 lDevFlags[devIdx] |= DPMC_LEANFLAG_AGDEVUSED; // agDev used
5503 // we have an agDev entry, but no pWWNList target for it
5507 // later, get an empty pDevice and map this agDev.
5514 lDevFlags[devIdx] |= DPMC_LEANFLAG_NOAGDEVYT; // known empty agDev handle
5542 free( (caddr_t)agDev, M_PMC_MDEV );
5557 tiINIGetDeviceInfo( &pCard->tiRoot, agDev[devIdx], &pDevice->devInfo );
5583 pDevice->pDevHandle = agDev[devIdx];
5584 agDev[devIdx]->osData = (void*)pDevice;
5627 free((caddr_t)agDev, M_PMC_MDEV);