Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static void put_dma_channel ( int  idx  )  [inline, static]

release a dma channel.

Parameters:
idx channel number
Returns:
none;

Definition at line 137 of file dma_mx2.c.

References mxc_dma_channel::lock.

Referenced by mxc_dma_free(), and mxc_dma_request_ext().

{
      mxc_dma_channel_t *p;

      if ((idx < MAX_DMA_CHANNELS) && (idx >= 0)) {
            p = g_dma_channels + idx;
            (void)xchg(&p->lock, 0);
      }
}


Generated by  Doxygen 1.6.0   Back to index