Home
last modified time | relevance | path

Searched refs:mite_chan (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/staging/comedi/drivers/
Dmite.c216 static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan) in mite_device_bytes_transferred() argument
218 struct mite *mite = mite_chan->mite; in mite_device_bytes_transferred()
220 return readl(mite->mmio + MITE_DAR(mite_chan->channel)); in mite_device_bytes_transferred()
227 u32 mite_bytes_in_transit(struct mite_channel *mite_chan) in mite_bytes_in_transit() argument
229 struct mite *mite = mite_chan->mite; in mite_bytes_in_transit()
231 return readl(mite->mmio + MITE_FCR(mite_chan->channel)) & 0xff; in mite_bytes_in_transit()
236 static u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan) in mite_bytes_written_to_memory_lb() argument
240 device_byte_count = mite_device_bytes_transferred(mite_chan); in mite_bytes_written_to_memory_lb()
241 return device_byte_count - mite_bytes_in_transit(mite_chan); in mite_bytes_written_to_memory_lb()
245 static u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan) in mite_bytes_written_to_memory_ub() argument
[all …]
Dmite.h54 u32 mite_bytes_in_transit(struct mite_channel *mite_chan);
56 void mite_sync_dma(struct mite_channel *mite_chan, struct comedi_subdevice *s);
57 void mite_ack_linkc(struct mite_channel *mite_chan, struct comedi_subdevice *s,
59 int mite_done(struct mite_channel *mite_chan);
61 void mite_dma_arm(struct mite_channel *mite_chan);
62 void mite_dma_disarm(struct mite_channel *mite_chan);
64 void mite_prep_dma(struct mite_channel *mite_chan,
73 void mite_release_channel(struct mite_channel *mite_chan);
Dni_tiocmd.c86 if (counter->mite_chan) in ni_tio_input_inttrig()
87 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig()
110 counter->mite_chan->dir = COMEDI_INPUT; in ni_tio_input_cmd()
114 mite_prep_dma(counter->mite_chan, 32, 32); in ni_tio_input_cmd()
117 mite_prep_dma(counter->mite_chan, 16, 32); in ni_tio_input_cmd()
127 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd()
181 if (!counter->mite_chan) { in ni_tio_cmd()
281 if (counter->mite_chan) in ni_tio_cancel()
282 mite_dma_disarm(counter->mite_chan); in ni_tio_cancel()
314 if (!counter->mite_chan || in should_ack_gate()
[all …]
Dni_660x.c338 struct mite_channel *mite_chan; in ni_660x_request_mite_channel() local
343 mite_chan = mite_request_channel(devpriv->mite, ring); in ni_660x_request_mite_channel()
344 if (!mite_chan) { in ni_660x_request_mite_channel()
350 mite_chan->dir = direction; in ni_660x_request_mite_channel()
351 ni_tio_set_mite_channel(counter, mite_chan); in ni_660x_request_mite_channel()
352 ni_660x_set_dma_channel(dev, mite_chan->channel, counter); in ni_660x_request_mite_channel()
364 if (counter->mite_chan) { in ni_660x_release_mite_channel()
365 struct mite_channel *mite_chan = counter->mite_chan; in ni_660x_release_mite_channel() local
367 ni_660x_unset_dma_channel(dev, mite_chan->channel, counter); in ni_660x_release_mite_channel()
369 mite_release_channel(mite_chan); in ni_660x_release_mite_channel()
[all …]
Dni_tio.h98 struct mite_channel *mite_chan; member
138 struct mite_channel *mite_chan);
Dni_mio_common.c564 struct mite_channel *mite_chan; in ni_request_ai_mite_channel() local
569 mite_chan = mite_request_channel(devpriv->mite, devpriv->ai_mite_ring); in ni_request_ai_mite_channel()
570 if (!mite_chan) { in ni_request_ai_mite_channel()
576 mite_chan->dir = COMEDI_INPUT; in ni_request_ai_mite_channel()
577 devpriv->ai_mite_chan = mite_chan; in ni_request_ai_mite_channel()
579 bits = NI_STC_DMA_CHAN_SEL(mite_chan->channel); in ni_request_ai_mite_channel()
590 struct mite_channel *mite_chan; in ni_request_ao_mite_channel() local
595 mite_chan = mite_request_channel(devpriv->mite, devpriv->ao_mite_ring); in ni_request_ao_mite_channel()
596 if (!mite_chan) { in ni_request_ao_mite_channel()
602 mite_chan->dir = COMEDI_OUTPUT; in ni_request_ao_mite_channel()
[all …]