Searched refs:counter_dev (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | ni_tio.c | 131 static bool ni_tio_has_gate2_registers(const struct ni_gpct_device *counter_dev) in ni_tio_has_gate2_registers() argument 133 switch (counter_dev->variant) { in ni_tio_has_gate2_registers() 153 counter->counter_dev->write(counter, value, reg); in ni_tio_write() 165 return counter->counter_dev->read(counter, reg); in ni_tio_read() 226 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_bits_transient() local 230 spin_lock_irqsave(&counter_dev->regs_lock, flags); in ni_tio_set_bits_transient() 231 counter_dev->regs[reg] &= ~mask; in ni_tio_set_bits_transient() 232 counter_dev->regs[reg] |= (value & mask); in ni_tio_set_bits_transient() 233 ni_tio_write(counter, counter_dev->regs[reg] | transient, reg); in ni_tio_set_bits_transient() 235 spin_unlock_irqrestore(&counter_dev->regs_lock, flags); in ni_tio_set_bits_transient() [all …]
|
D | ni_tiocmd.c | 40 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_configure_dma() local 56 switch (counter_dev->variant) { in ni_tio_configure_dma() 102 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_input_cmd() local 111 switch (counter_dev->variant) { in ni_tio_input_cmd() 141 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_output_cmd() 182 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_cmd() 184 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_cmd() 212 if (ni_tio_counting_mode_registers_present(counter->counter_dev)) in ni_tio_cmdtest() 297 switch (counter->counter_dev->variant) { in should_ack_gate() 353 if (counter->counter_dev->variant != in ni_tio_acknowledge_and_confirm() [all …]
|
D | ni_tio.h | 94 struct ni_gpct_device *counter_dev; member 123 void ni_gpct_device_destroy(struct ni_gpct_device *counter_dev);
|
D | ni_660x.c | 253 struct ni_gpct_device *counter_dev; member 290 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write() 298 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read() 741 devpriv->counter_dev = gpct_dev; in ni_660x_auto_attach() 892 ni_gpct_device_destroy(devpriv->counter_dev); in ni_660x_detach()
|
D | ni_tio_internal.h | 159 ni_tio_counting_mode_registers_present(const struct ni_gpct_device *counter_dev) in ni_tio_counting_mode_registers_present() argument 162 return counter_dev->variant != ni_gpct_variant_e_series; in ni_tio_counting_mode_registers_present()
|
D | ni_mio_common.c | 618 struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index]; in ni_request_gpct_mite_channel() 720 if (devpriv->counter_dev->counters[gpct_index].mite_chan) { in ni_release_gpct_mite_channel() 722 devpriv->counter_dev->counters[gpct_index].mite_chan; in ni_release_gpct_mite_channel() 727 counter_dev->counters[gpct_index], in ni_release_gpct_mite_channel() 1260 ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], in handle_gpct_interrupt() 3962 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_write_register() 4008 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_read_register() 5505 devpriv->counter_dev = ni_gpct_device_construct(dev, in ni_E_init() 5512 if (!devpriv->counter_dev) in ni_E_init() 5517 struct ni_gpct *gpct = &devpriv->counter_dev->counters[i]; in ni_E_init() [all …]
|
D | ni_stc.h | 996 struct ni_gpct_device *counter_dev; member
|