Lines Matching defs:idx
688 U32 idx;
691 for( idx = 0; idx < pCardInfo->cacheIndex; idx++ ) {
692 if( pCardInfo->tiCachedMem[idx] ) {
693 free( pCardInfo->tiCachedMem[idx], M_PMC_MMAL );
695 idx, pCardInfo->tiCachedMem[idx] );
712 // pCardInfo->tiDmaMem[idx].dmaVirtAddr
713 // pCardInfo->tiDmaMem[idx].memSize
714 // pCardInfo->tiDmaMem[idx].type == TI_CACHED_DMA_MEM
715 // pCardInfo->tiDmaMem[idx].type == TI_DMA_MEM
720 for( idx = 0; idx < AGTIAPI_DYNAMIC_MAX; idx++ ) {
721 if( pCardInfo->dynamicMem[idx].dmaVirtAddr != NULL ) {
724 idx, pCardInfo->dynamicMem[idx].dmaVirtAddr,
725 (long unsigned int)pCardInfo->dynamicMem[idx].dmaPhysAddr,
726 pCardInfo->dynamicMem[idx].memSize );
727 if( pCardInfo->dynamicMem[idx].dmaPhysAddr )
729 pCardInfo->dynamicMem[idx].dmaVirtAddr,
730 pCardInfo->dynamicMem[idx].memSize, ... );
743 ag_card_type[idx].vendorId we already determined is PCI_VENDOR_ID_PMC_SIERRA.
759 int idx;
766 for( idx = 0; idx < COUNT(ag_card_type); idx++ )
768 if ( ag_card_type[idx].deviceId == agtiapi_dev &&
769 ag_card_type[idx].vendorId == agtiapi_vendor)
773 thisCardInst->cardIdIndex = idx;
775 thisCardInst->cardNameIndex = ag_card_type[idx].cardNameIndex;
777 pci_read_config( dev, ag_card_type[idx].membar, 4 ); // memAddr
780 device_set_desc( dev, ag_card_names[ag_card_type[idx].cardNameIndex] );