• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/hptmv/

Lines Matching defs:channelIndex

413 static void device_change(IAL_ADAPTER_T *pAdapter , MV_U8 channelIndex, int plugged)
417 MV_SATA_CHANNEL *pMvSataChannel = pMvSataAdapter->sataChannel[channelIndex];
423 pVDev = &(pAdapter->VDevices[channelIndex]);
424 init_vdev_params(pAdapter, channelIndex);
458 pVDev = &(pAdapter->VDevices[channelIndex]);
752 MV_U8 channelIndex;
756 for (channelIndex = 0; channelIndex < MV_SATA_CHANNELS_NUM; channelIndex++)
758 switch(pAdapter->sataEvents[channelIndex])
765 pMvSataAdapter->adapterId, channelIndex));
766 hptmv_init_channel(pAdapter, channelIndex);
767 if (mvSataConfigureChannel( pMvSataAdapter, channelIndex) == MV_FALSE)
770 pMvSataAdapter->adapterId, channelIndex);
771 hptmv_free_channel(pAdapter, channelIndex);
776 if (start_channel( pAdapter, channelIndex))
779 pMvSataAdapter->adapterId, channelIndex);
780 hptmv_free_channel(pAdapter, channelIndex);
784 device_change(pAdapter, channelIndex, TRUE);
787 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
795 pMvSataAdapter->adapterId, channelIndex));
797 if(pMvSataAdapter->sataChannel[channelIndex])
800 mvSataFlushDmaQueue (pMvSataAdapter, channelIndex,
803 mvSataRemoveChannel(pMvSataAdapter,channelIndex);
804 hptmv_free_channel(pAdapter, channelIndex);
805 pMvSataAdapter->sataChannel[channelIndex] = NULL;
807 pMvSataAdapter->adapterId, channelIndex));
814 pMvSataAdapter->adapterId, channelIndex));
816 pAdapter->sataEvents[channelIndex] = SATA_EVENT_NO_CHANGE;
1067 MV_U8 channelIndex = pSataChannel->channelNumber;
1081 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1083 mvSataFlushDmaQueue (pSataAdapter, channelIndex, MV_FLUSH_TYPE_NONE);
1085 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1089 KdPrint(("channel %d: Set Features failed\n", channelIndex));
1092 if (mvSataEnableChannelDma(pSataAdapter, channelIndex) == MV_FALSE)
1093 KdPrint(("Failed to enable DMA, channel=%d", channelIndex));
1100 MV_U8 channelIndex = pSataChannel->channelNumber;
1102 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1107 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1108 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1116 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_QUEUED, depth);
1124 mvSataConfigEdmaMode(pSataAdapter, channelIndex, MV_EDMA_MODE_NOT_QUEUED, 0);
1130 mvSataEnableChannelDma(pSataAdapter,channelIndex);
1143 MV_U8 channelIndex = pSataChannel->channelNumber;
1145 MV_CHANNEL *channelInfo = &(pAdapter->mvChannel[channelIndex]);
1150 mvSataDisableChannelDma(pSataAdapter, channelIndex);
1151 mvSataFlushDmaQueue(pSataAdapter,channelIndex,MV_FLUSH_TYPE_CALLBACK);
1156 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1164 if (mvStorageDevATASetFeatures(pSataAdapter, channelIndex,
1174 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);