Home
last modified time | relevance | path

Searched refs:mite (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/comedi/drivers/
Dmite.c206 static unsigned int mite_fifo_size(struct mite *mite, unsigned int channel) in mite_fifo_size() argument
208 unsigned int fcr_bits = readl(mite->mmio + MITE_FCR(channel)); in mite_fifo_size()
217 struct mite *mite = mite_chan->mite; in mite_device_bytes_transferred() local
219 return readl(mite->mmio + MITE_DAR(mite_chan->channel)); in mite_device_bytes_transferred()
228 struct mite *mite = mite_chan->mite; in mite_bytes_in_transit() local
230 return readl(mite->mmio + MITE_FCR(mite_chan->channel)) & 0xff; in mite_bytes_in_transit()
362 struct mite *mite = mite_chan->mite; in mite_get_status() local
366 spin_lock_irqsave(&mite->lock, flags); in mite_get_status()
367 status = readl(mite->mmio + MITE_CHSR(mite_chan->channel)); in mite_get_status()
371 mite->mmio + MITE_CHOR(mite_chan->channel)); in mite_get_status()
[all …]
Dmite.h37 struct mite *mite; member
44 struct mite { struct
67 struct mite_channel *mite_request_channel_in_range(struct mite *mite, argument
71 struct mite_channel *mite_request_channel(struct mite *mite,
79 struct mite_ring *mite_alloc_ring(struct mite *mite);
82 struct mite *mite_attach(struct comedi_device *dev, bool use_win1);
83 void mite_detach(struct mite *mite);
Dni_pcimio.c1213 struct mite *mite = devpriv->mite; in m_series_init_eeprom_buffer() local
1223 daq_phys_addr = pci_resource_start(mite->pcidev, 1); in m_series_init_eeprom_buffer()
1225 old_iodwbsr_bits = readl(mite->mmio + MITE_IODWBSR); in m_series_init_eeprom_buffer()
1226 old_iodwbsr1_bits = readl(mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
1227 old_iodwcr1_bits = readl(mite->mmio + MITE_IODWCR_1); in m_series_init_eeprom_buffer()
1228 writel(0x0, mite->mmio + MITE_IODWBSR); in m_series_init_eeprom_buffer()
1230 mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
1231 writel(0x1 | old_iodwcr1_bits, mite->mmio + MITE_IODWCR_1); in m_series_init_eeprom_buffer()
1232 writel(0xf, mite->mmio + 0x30); in m_series_init_eeprom_buffer()
1237 writel(old_iodwbsr1_bits, mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
[all …]
Dni_pcidio.c284 struct mite *mite; member
301 mite_request_channel_in_range(devpriv->mite, in ni_pcidio_request_di_mite_channel()
858 ret = comedi_load_firmware(dev, &devpriv->mite->pcidev->dev, in pci_6534_upload_firmware()
906 devpriv->mite = mite_attach(dev, false); /* use win0 */ in nidio_auto_attach()
907 if (!devpriv->mite) in nidio_auto_attach()
910 devpriv->di_mite_ring = mite_alloc_ring(devpriv->mite); in nidio_auto_attach()
971 mite_detach(devpriv->mite); in nidio_detach()
Dni_660x.c257 struct mite *mite; member
347 mite_chan = mite_request_channel(devpriv->mite, ring); in ni_660x_request_mite_channel()
509 devpriv->ring[i][j] = mite_alloc_ring(devpriv->mite); in ni_660x_alloc_mite_rings()
1026 devpriv->mite = mite_attach(dev, true); /* use win1 */ in ni_660x_auto_attach()
1027 if (!devpriv->mite) in ni_660x_auto_attach()
1212 mite_detach(devpriv->mite); in ni_660x_detach()
Dni_mio_common.c448 if (!devpriv->mite && reg < 8) { in ni_stc_writew()
481 if (!devpriv->mite && reg < 8) { in ni_stc_readw()
569 mite_chan = mite_request_channel(devpriv->mite, devpriv->ai_mite_ring); in ni_request_ai_mite_channel()
595 mite_chan = mite_request_channel(devpriv->mite, devpriv->ao_mite_ring); in ni_request_ao_mite_channel()
624 mite_chan = mite_request_channel(devpriv->mite, in ni_request_gpct_mite_channel()
652 mite_chan = mite_request_channel(devpriv->mite, devpriv->cdo_mite_ring); in ni_request_cdo_mite_channel()
2836 if (devpriv->mite) in ni_ao_insn_config()
2837 data[2] += devpriv->mite->fifo_size; in ni_ao_insn_config()
5909 if (devpriv->mite) { in ni_E_interrupt()
6045 if (devpriv->mite) in ni_E_init()
[all …]
DMakefile137 obj-$(CONFIG_COMEDI_MITE) += mite.o
Dni_stc.h1037 struct mite *mite; member