Searched refs:mite_chan (Results 1 – 5 of 5) sorted by relevance
/drivers/staging/comedi/drivers/ |
D | mite.c | 225 static u32 mite_device_bytes_transferred(struct mite_channel *mite_chan) in mite_device_bytes_transferred() argument 227 struct mite *mite = mite_chan->mite; in mite_device_bytes_transferred() 229 return readl(mite->mmio + MITE_DAR(mite_chan->channel)); in mite_device_bytes_transferred() 236 u32 mite_bytes_in_transit(struct mite_channel *mite_chan) in mite_bytes_in_transit() argument 238 struct mite *mite = mite_chan->mite; in mite_bytes_in_transit() 240 return readl(mite->mmio + MITE_FCR(mite_chan->channel)) & 0xff; in mite_bytes_in_transit() 245 static u32 mite_bytes_written_to_memory_lb(struct mite_channel *mite_chan) in mite_bytes_written_to_memory_lb() argument 249 device_byte_count = mite_device_bytes_transferred(mite_chan); in mite_bytes_written_to_memory_lb() 250 return device_byte_count - mite_bytes_in_transit(mite_chan); in mite_bytes_written_to_memory_lb() 254 static u32 mite_bytes_written_to_memory_ub(struct mite_channel *mite_chan) in mite_bytes_written_to_memory_ub() argument [all …]
|
D | ni_tiocmd.c | 95 if (counter->mite_chan) in ni_tio_input_inttrig() 96 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig() 119 counter->mite_chan->dir = COMEDI_INPUT; in ni_tio_input_cmd() 123 mite_prep_dma(counter->mite_chan, 32, 32); in ni_tio_input_cmd() 126 mite_prep_dma(counter->mite_chan, 16, 32); in ni_tio_input_cmd() 136 mite_dma_arm(counter->mite_chan); in ni_tio_input_cmd() 190 if (!counter->mite_chan) { in ni_tio_cmd() 290 if (counter->mite_chan) in ni_tio_cancel() 291 mite_dma_disarm(counter->mite_chan); in ni_tio_cancel() 323 if (!counter->mite_chan || in should_ack_gate() [all …]
|
D | ni_660x.c | 342 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 …]
|
D | ni_mio_common.c | 573 struct mite_channel *mite_chan; in ni_request_ai_mite_channel() local 578 mite_chan = mite_request_channel(devpriv->mite, devpriv->ai_mite_ring); in ni_request_ai_mite_channel() 579 if (!mite_chan) { in ni_request_ai_mite_channel() 585 mite_chan->dir = COMEDI_INPUT; in ni_request_ai_mite_channel() 586 devpriv->ai_mite_chan = mite_chan; in ni_request_ai_mite_channel() 588 bits = NI_STC_DMA_CHAN_SEL(mite_chan->channel); in ni_request_ai_mite_channel() 599 struct mite_channel *mite_chan; in ni_request_ao_mite_channel() local 604 mite_chan = mite_request_channel(devpriv->mite, devpriv->ao_mite_ring); in ni_request_ao_mite_channel() 605 if (!mite_chan) { in ni_request_ao_mite_channel() 611 mite_chan->dir = COMEDI_OUTPUT; in ni_request_ao_mite_channel() [all …]
|
D | ni_tio.h | 107 struct mite_channel *mite_chan; member
|