Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/comedi/drivers/
Dmite.c215 static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan) in mite_device_bytes_transferred() argument
217 struct mite *mite = mite_chan->mite; in mite_device_bytes_transferred()
219 return readl(mite->mmio + MITE_DAR(mite_chan->channel)); in mite_device_bytes_transferred()
226 u32 mite_bytes_in_transit(struct mite_channel *mite_chan) in mite_bytes_in_transit() argument
228 struct mite *mite = mite_chan->mite; in mite_bytes_in_transit()
230 return readl(mite->mmio + MITE_FCR(mite_chan->channel)) & 0xff; in mite_bytes_in_transit()
235 static u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan) in mite_bytes_written_to_memory_lb() argument
239 device_byte_count = mite_device_bytes_transferred(mite_chan); in mite_bytes_written_to_memory_lb()
240 return device_byte_count - mite_bytes_in_transit(mite_chan); in mite_bytes_written_to_memory_lb()
244 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.c87 if (counter->mite_chan) in ni_tio_input_inttrig()
88 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig()
113 counter->mite_chan->dir = COMEDI_INPUT; in ni_tio_input_cmd()
117 mite_prep_dma(counter->mite_chan, 32, 32); in ni_tio_input_cmd()
120 mite_prep_dma(counter->mite_chan, 16, 32); in ni_tio_input_cmd()
130 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd()
213 if (!counter->mite_chan) { in ni_tio_cmd()
339 if (counter->mite_chan) in ni_tio_cancel()
340 mite_dma_disarm(counter->mite_chan); in ni_tio_cancel()
372 if (!counter->mite_chan || in should_ack_gate()
[all …]
Dni_660x.c342 struct mite_channel *mite_chan; in ni_660x_request_mite_channel() local
347 mite_chan = mite_request_channel(devpriv->mite, ring); in ni_660x_request_mite_channel()
348 if (!mite_chan) { in ni_660x_request_mite_channel()
354 mite_chan->dir = direction; in ni_660x_request_mite_channel()
355 ni_tio_set_mite_channel(counter, mite_chan); in ni_660x_request_mite_channel()
356 ni_660x_set_dma_channel(dev, mite_chan->channel, counter); in ni_660x_request_mite_channel()
368 if (counter->mite_chan) { in ni_660x_release_mite_channel()
369 struct mite_channel *mite_chan = counter->mite_chan; in ni_660x_release_mite_channel() local
371 ni_660x_unset_dma_channel(dev, mite_chan->channel, counter); in ni_660x_release_mite_channel()
373 mite_release_channel(mite_chan); in ni_660x_release_mite_channel()
[all …]
Dni_tio.h98 struct mite_channel *mite_chan; member
142 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 …]