Lines Matching defs:channelIndex

453 static void device_change(IAL_ADAPTER_T *pAdapter , MV_U8 channelIndex, int plugged)
457 MV_SATA_CHANNEL *pMvSataChannel = pMvSataAdapter->sataChannel[channelIndex];
463 pVDev = &(pAdapter->VDevices[channelIndex]);
464 init_vdev_params(pAdapter, channelIndex);
498 pVDev = &(pAdapter->VDevices[channelIndex]);
792 MV_U8 channelIndex;
795 for (channelIndex = 0; channelIndex < MV_SATA_CHANNELS_NUM; channelIndex++)
797 switch(pAdapter->sataEvents[channelIndex])
804 pMvSataAdapter->adapterId, channelIndex));
805 hptmv_init_channel(pAdapter, channelIndex);
806 if (mvSataConfigureChannel( pMvSataAdapter, channelIndex) == MV_FALSE)
809 pMvSataAdapter->adapterId, channelIndex);
810 hptmv_free_channel(pAdapter, channelIndex);
815 if (start_channel( pAdapter, channelIndex))
818 pMvSataAdapter->adapterId, channelIndex);
819 hptmv_free_channel(pAdapter, channelIndex);
823 device_change(pAdapter, channelIndex, TRUE);
826 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
834 pMvSataAdapter->adapterId, channelIndex));
836 if(pMvSataAdapter->sataChannel[channelIndex])
839 mvSataFlushDmaQueue (pMvSataAdapter, channelIndex,
842 mvSataRemoveChannel(pMvSataAdapter,channelIndex);
843 hptmv_free_channel(pAdapter, channelIndex);
844 pMvSataAdapter->sataChannel[channelIndex] = NULL;
846 pMvSataAdapter->adapterId, channelIndex));
853 pMvSataAdapter->adapterId, channelIndex));
855 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
1106 MV_U8 channelIndex = pSataChannel->channelNumber;
1120 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1122 mvSataFlushDmaQueue (pSataAdapter, channelIndex, MV_FLUSH_TYPE_NONE);
1124 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1128 KdPrint(("channel %d: Set Features failed\n", channelIndex));
1131 if (mvSataEnableChannelDma(pSataAdapter, channelIndex) == MV_FALSE)
1132 KdPrint(("Failed to enable DMA, channel=%d", channelIndex));
1139 MV_U8 channelIndex = pSataChannel->channelNumber;
1141 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1146 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1147 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1155 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_QUEUED, depth);
1163 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_NOT_QUEUED, 0);
1169 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1182 MV_U8 channelIndex = pSataChannel->channelNumber;
1184 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1189 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1190 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1195 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1203 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1213 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1221 MV_U8 channelIndex = pSataChannel->channelNumber;
1223 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1228 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1229 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1234 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1242 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1252 mvSataEnableChannelDma(pSataAdapter,channelIndex);