Lines Matching defs:channelIndex

411 static void device_change(IAL_ADAPTER_T *pAdapter , MV_U8 channelIndex, int plugged)
415 MV_SATA_CHANNEL *pMvSataChannel = pMvSataAdapter->sataChannel[channelIndex];
421 pVDev = &(pAdapter->VDevices[channelIndex]);
422 init_vdev_params(pAdapter, channelIndex);
456 pVDev = &(pAdapter->VDevices[channelIndex]);
750 MV_U8 channelIndex;
754 for (channelIndex = 0; channelIndex < MV_SATA_CHANNELS_NUM; channelIndex++)
756 switch(pAdapter->sataEvents[channelIndex])
763 pMvSataAdapter->adapterId, channelIndex));
764 hptmv_init_channel(pAdapter, channelIndex);
765 if (mvSataConfigureChannel( pMvSataAdapter, channelIndex) == MV_FALSE)
768 pMvSataAdapter->adapterId, channelIndex);
769 hptmv_free_channel(pAdapter, channelIndex);
774 if (start_channel( pAdapter, channelIndex))
777 pMvSataAdapter->adapterId, channelIndex);
778 hptmv_free_channel(pAdapter, channelIndex);
782 device_change(pAdapter, channelIndex, TRUE);
785 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
793 pMvSataAdapter->adapterId, channelIndex));
795 if(pMvSataAdapter->sataChannel[channelIndex])
798 mvSataFlushDmaQueue (pMvSataAdapter, channelIndex,
801 mvSataRemoveChannel(pMvSataAdapter,channelIndex);
802 hptmv_free_channel(pAdapter, channelIndex);
803 pMvSataAdapter->sataChannel[channelIndex] = NULL;
805 pMvSataAdapter->adapterId, channelIndex));
812 pMvSataAdapter->adapterId, channelIndex));
814 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
1065 MV_U8 channelIndex = pSataChannel->channelNumber;
1079 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1081 mvSataFlushDmaQueue (pSataAdapter, channelIndex, MV_FLUSH_TYPE_NONE);
1083 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1087 KdPrint(("channel %d: Set Features failed\n", channelIndex));
1090 if (mvSataEnableChannelDma(pSataAdapter, channelIndex) == MV_FALSE)
1091 KdPrint(("Failed to enable DMA, channel=%d", channelIndex));
1098 MV_U8 channelIndex = pSataChannel->channelNumber;
1100 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1105 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1106 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1114 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_QUEUED, depth);
1122 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_NOT_QUEUED, 0);
1128 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1141 MV_U8 channelIndex = pSataChannel->channelNumber;
1143 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1148 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1149 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1154 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1162 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1172 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1180 MV_U8 channelIndex = pSataChannel->channelNumber;
1182 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1187 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1188 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1193 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1201 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1211 mvSataEnableChannelDma(pSataAdapter,channelIndex);