Lines Matching refs:gDMA
64 static DMA_Global_t gDMA;
121 if (down_interruptible(&gDMA.lock) < 0) {
134 &gDMA.controller[controllerIdx].channel[channelIdx];
186 up(&gDMA.lock);
205 if (down_interruptible(&gDMA.lock) < 0) {
253 up(&gDMA.lock);
296 return &gDMA.controller[controllerIdx].channel[channelIdx];
692 memset(&gDMA, 0, sizeof(gDMA));
694 init_MUTEX_LOCKED(&gDMA.lock);
695 init_waitqueue_head(&gDMA.freeChannelQ);
708 &gDMA.controller[controllerIdx].channel[channelIdx];
729 gDMA.controller[0].channel[0].flags |= DMA_CHANNEL_FLAG_LARGE_FIFO;
730 gDMA.controller[0].channel[1].flags |= DMA_CHANNEL_FLAG_LARGE_FIFO;
731 gDMA.controller[1].channel[0].flags |= DMA_CHANNEL_FLAG_LARGE_FIFO;
732 gDMA.controller[1].channel[1].flags |= DMA_CHANNEL_FLAG_LARGE_FIFO;
808 &gDMA.controller[controllerIdx].channel[channelIdx];
853 up(&gDMA.lock);
885 if (down_interruptible(&gDMA.lock) < 0) {
918 &gDMA.controller[devAttr->dedicatedController].
963 &gDMA.controller[controllerIdx].
1021 prepare_to_wait(&gDMA.freeChannelQ, &wait,
1023 up(&gDMA.lock);
1025 finish_wait(&gDMA.freeChannelQ, &wait);
1028 /* We don't currently hold gDMA.lock, so we return directly */
1034 if (down_interruptible(&gDMA.lock)) {
1040 up(&gDMA.lock);
1070 if (down_interruptible(&gDMA.lock) < 0) {
1090 up(&gDMA.lock);
1092 wake_up_interruptible(&gDMA.freeChannelQ);