Lines Matching defs:channelIndex
408 static void device_change(IAL_ADAPTER_T *pAdapter , MV_U8 channelIndex, int plugged)
412 MV_SATA_CHANNEL *pMvSataChannel = pMvSataAdapter->sataChannel[channelIndex];
418 pVDev = &(pAdapter->VDevices[channelIndex]);
419 init_vdev_params(pAdapter, channelIndex);
453 pVDev = &(pAdapter->VDevices[channelIndex]);
747 MV_U8 channelIndex;
751 for (channelIndex = 0; channelIndex < MV_SATA_CHANNELS_NUM; channelIndex++)
753 switch(pAdapter->sataEvents[channelIndex])
760 pMvSataAdapter->adapterId, channelIndex));
761 hptmv_init_channel(pAdapter, channelIndex);
762 if (mvSataConfigureChannel( pMvSataAdapter, channelIndex) == MV_FALSE)
765 pMvSataAdapter->adapterId, channelIndex);
766 hptmv_free_channel(pAdapter, channelIndex);
771 if (start_channel( pAdapter, channelIndex))
774 pMvSataAdapter->adapterId, channelIndex);
775 hptmv_free_channel(pAdapter, channelIndex);
779 device_change(pAdapter, channelIndex, TRUE);
782 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
790 pMvSataAdapter->adapterId, channelIndex));
792 if(pMvSataAdapter->sataChannel[channelIndex])
795 mvSataFlushDmaQueue (pMvSataAdapter, channelIndex,
798 mvSataRemoveChannel(pMvSataAdapter,channelIndex);
799 hptmv_free_channel(pAdapter, channelIndex);
800 pMvSataAdapter->sataChannel[channelIndex] = NULL;
802 pMvSataAdapter->adapterId, channelIndex));
809 pMvSataAdapter->adapterId, channelIndex));
811 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
1062 MV_U8 channelIndex = pSataChannel->channelNumber;
1076 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1078 mvSataFlushDmaQueue (pSataAdapter, channelIndex, MV_FLUSH_TYPE_NONE);
1080 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1084 KdPrint(("channel %d: Set Features failed\n", channelIndex));
1087 if (mvSataEnableChannelDma(pSataAdapter, channelIndex) == MV_FALSE)
1088 KdPrint(("Failed to enable DMA, channel=%d", channelIndex));
1095 MV_U8 channelIndex = pSataChannel->channelNumber;
1097 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1102 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1103 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1111 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_QUEUED, depth);
1119 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_NOT_QUEUED, 0);
1125 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1138 MV_U8 channelIndex = pSataChannel->channelNumber;
1140 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1145 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1146 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1151 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1159 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1169 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1177 MV_U8 channelIndex = pSataChannel->channelNumber;
1179 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1184 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1185 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1190 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1198 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1208 mvSataEnableChannelDma(pSataAdapter,channelIndex);