Searched refs:mite_chan (Results 1 – 6 of 6) sorted by relevance
/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | mite.c | 289 void mite_release_channel(struct mite_channel *mite_chan) in mite_release_channel() argument 291 struct mite_struct *mite = mite_chan->mite; in mite_release_channel() 296 if (mite->channel_allocated[mite_chan->channel]) { in mite_release_channel() 297 mite_dma_disarm(mite_chan); in mite_release_channel() 298 mite_dma_reset(mite_chan); in mite_release_channel() 307 mite->mite_io_addr + MITE_CHCR(mite_chan->channel)); in mite_release_channel() 308 mite->channel_allocated[mite_chan->channel] = 0; in mite_release_channel() 309 mite_chan->ring = NULL; in mite_release_channel() 316 void mite_dma_arm(struct mite_channel *mite_chan) in mite_dma_arm() argument 318 struct mite_struct *mite = mite_chan->mite; in mite_dma_arm() [all …]
|
D | ni_tiocmd.c | 111 if (counter->mite_chan) in ni_tio_input_inttrig() 112 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig() 132 counter->mite_chan->dir = COMEDI_INPUT; in ni_tio_input_cmd() 136 mite_prep_dma(counter->mite_chan, 32, 32); in ni_tio_input_cmd() 139 mite_prep_dma(counter->mite_chan, 16, 32); in ni_tio_input_cmd() 151 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd() 159 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd() 163 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd() 178 counter->mite_chan->dir = COMEDI_OUTPUT; in ni_tio_output_cmd() 179 mite_prep_dma(counter->mite_chan, 32, 32); in ni_tio_output_cmd() [all …]
|
D | mite.h | 147 void mite_release_channel(struct mite_channel *mite_chan); 149 unsigned mite_dma_tcr(struct mite_channel *mite_chan); 150 void mite_dma_arm(struct mite_channel *mite_chan); 151 void mite_dma_disarm(struct mite_channel *mite_chan); 152 int mite_sync_input_dma(struct mite_channel *mite_chan, 154 int mite_sync_output_dma(struct mite_channel *mite_chan, 156 u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan); 157 u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan); 158 u32 mite_bytes_read_from_memory_lb(struct mite_channel *mite_chan); 159 u32 mite_bytes_read_from_memory_ub(struct mite_channel *mite_chan); [all …]
|
D | ni_660x.c | 876 struct mite_channel *mite_chan; in ni_660x_request_mite_channel() local 879 BUG_ON(counter->mite_chan); in ni_660x_request_mite_channel() 880 mite_chan = in ni_660x_request_mite_channel() 883 if (mite_chan == NULL) { in ni_660x_request_mite_channel() 889 mite_chan->dir = direction; in ni_660x_request_mite_channel() 890 ni_tio_set_mite_channel(counter, mite_chan); in ni_660x_request_mite_channel() 891 ni_660x_set_dma_channel(dev, mite_chan->channel, counter); in ni_660x_request_mite_channel() 902 if (counter->mite_chan) { in ni_660x_release_mite_channel() 903 struct mite_channel *mite_chan = counter->mite_chan; in ni_660x_release_mite_channel() local 905 ni_660x_unset_dma_channel(dev, mite_chan->channel, counter); in ni_660x_release_mite_channel() [all …]
|
D | ni_tio.h | 117 struct mite_channel *mite_chan; member 163 struct mite_channel *mite_chan);
|
D | ni_mio_common.c | 571 struct mite_channel *mite_chan; in ni_request_gpct_mite_channel() local 575 BUG_ON(devpriv->counter_dev->counters[gpct_index].mite_chan); in ni_request_gpct_mite_channel() 576 mite_chan = in ni_request_gpct_mite_channel() 579 if (mite_chan == NULL) { in ni_request_gpct_mite_channel() 585 mite_chan->dir = direction; in ni_request_gpct_mite_channel() 587 mite_chan); in ni_request_gpct_mite_channel() 588 ni_set_gpct_dma_channel(dev, gpct_index, mite_chan->channel); in ni_request_gpct_mite_channel() 655 if (devpriv->counter_dev->counters[gpct_index].mite_chan) { in ni_release_gpct_mite_channel() 656 struct mite_channel *mite_chan = in ni_release_gpct_mite_channel() local 657 devpriv->counter_dev->counters[gpct_index].mite_chan; in ni_release_gpct_mite_channel() [all …]
|