Home
last modified time | relevance | path

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

/drivers/staging/comedi/drivers/
Dmite.c216 static unsigned int mite_fifo_size(struct mite *mite, unsigned int channel) in mite_fifo_size() argument
218 unsigned int fcr_bits = readl(mite->mmio + MITE_FCR(channel)); in mite_fifo_size()
227 struct mite *mite = mite_chan->mite; in mite_device_bytes_transferred() local
229 return readl(mite->mmio + MITE_DAR(mite_chan->channel)); in mite_device_bytes_transferred()
238 struct mite *mite = mite_chan->mite; in mite_bytes_in_transit() local
240 return readl(mite->mmio + MITE_FCR(mite_chan->channel)) & 0xff; in mite_bytes_in_transit()
372 struct mite *mite = mite_chan->mite; in mite_get_status() local
376 spin_lock_irqsave(&mite->lock, flags); in mite_get_status()
377 status = readl(mite->mmio + MITE_CHSR(mite_chan->channel)); in mite_get_status()
381 mite->mmio + MITE_CHOR(mite_chan->channel)); in mite_get_status()
[all …]
Dmite.h46 struct mite *mite; member
53 struct mite { struct
76 struct mite_channel *mite_request_channel_in_range(struct mite *, argument
80 struct mite_channel *mite_request_channel(struct mite *, struct mite_ring *);
87 struct mite_ring *mite_alloc_ring(struct mite *);
90 struct mite *mite_attach(struct comedi_device *, bool use_win1);
91 void mite_detach(struct mite *);
Dni_pcimio.c1060 struct mite *mite = devpriv->mite; in m_series_init_eeprom_buffer() local
1072 daq_phys_addr = pci_resource_start(mite->pcidev, 1); in m_series_init_eeprom_buffer()
1074 old_iodwbsr_bits = readl(mite->mmio + MITE_IODWBSR); in m_series_init_eeprom_buffer()
1075 old_iodwbsr1_bits = readl(mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
1076 old_iodwcr1_bits = readl(mite->mmio + MITE_IODWCR_1); in m_series_init_eeprom_buffer()
1077 writel(0x0, mite->mmio + MITE_IODWBSR); in m_series_init_eeprom_buffer()
1079 mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
1080 writel(0x1 | old_iodwcr1_bits, mite->mmio + MITE_IODWCR_1); in m_series_init_eeprom_buffer()
1081 writel(0xf, mite->mmio + 0x30); in m_series_init_eeprom_buffer()
1093 writel(old_iodwbsr1_bits, mite->mmio + MITE_IODWBSR_1); in m_series_init_eeprom_buffer()
[all …]
Dni_pcidio.c286 struct mite *mite; member
303 mite_request_channel_in_range(devpriv->mite, in ni_pcidio_request_di_mite_channel()
853 ret = comedi_load_firmware(dev, &devpriv->mite->pcidev->dev, in pci_6534_upload_firmware()
901 devpriv->mite = mite_attach(dev, false); /* use win0 */ in nidio_auto_attach()
902 if (!devpriv->mite) in nidio_auto_attach()
905 devpriv->di_mite_ring = mite_alloc_ring(devpriv->mite); in nidio_auto_attach()
966 mite_detach(devpriv->mite); in nidio_detach()
Dni_660x.c256 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()
727 devpriv->mite = mite_attach(dev, true); /* use win1 */ in ni_660x_auto_attach()
728 if (!devpriv->mite) in ni_660x_auto_attach()
898 mite_detach(devpriv->mite); in ni_660x_detach()
Dni_mio_common.c456 if (!devpriv->mite && reg < 8) { in ni_stc_writew()
489 if (!devpriv->mite && reg < 8) { in ni_stc_readw()
578 mite_chan = mite_request_channel(devpriv->mite, devpriv->ai_mite_ring); in ni_request_ai_mite_channel()
604 mite_chan = mite_request_channel(devpriv->mite, devpriv->ao_mite_ring); in ni_request_ao_mite_channel()
633 mite_chan = mite_request_channel(devpriv->mite, in ni_request_gpct_mite_channel()
661 mite_chan = mite_request_channel(devpriv->mite, devpriv->cdo_mite_ring); in ni_request_cdo_mite_channel()
2748 if (devpriv->mite) in ni_ao_insn_config()
2749 data[2] += devpriv->mite->fifo_size; in ni_ao_insn_config()
5157 if (devpriv->mite) { in ni_E_interrupt()
5264 if (devpriv->mite) in ni_E_init()
[all …]
DMakefile137 obj-$(CONFIG_COMEDI_MITE) += mite.o
Dni_stc.h1036 struct mite *mite; member