Lines Matching refs:counter
579 "failed to reserve mite dma channel for counter.");
4188 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned bits,
4191 struct comedi_device *dev = counter->counter_dev->dev;
4256 static unsigned ni_gpct_read_register(struct ni_gpct *counter,
4259 struct comedi_device *dev = counter->counter_dev->dev;
4496 /* formerly general purpose counter/timer device, but no longer used */
5081 struct ni_gpct *counter = s->private;
5082 return ni_tio_insn_config(counter, insn, data);
5089 struct ni_gpct *counter = s->private;
5090 return ni_tio_rinsn(counter, insn, data);
5097 struct ni_gpct *counter = s->private;
5098 return ni_tio_winsn(counter, insn, data);
5105 struct ni_gpct *counter = s->private;
5108 retval = ni_request_gpct_mite_channel(dev, counter->counter_index,
5112 "no dma channel available for use by counter");
5115 ni_tio_acknowledge_and_confirm(counter, NULL, NULL, NULL, NULL);
5116 ni_e_series_enable_second_irq(dev, counter->counter_index, 1);
5117 retval = ni_tio_cmd(counter, s->async);
5128 struct ni_gpct *counter = s->private;
5130 return ni_tio_cmdtest(counter, cmd);
5139 struct ni_gpct *counter = s->private;
5142 retval = ni_tio_cancel(counter);
5143 ni_e_series_enable_second_irq(dev, counter->counter_index, 0);
5144 ni_release_gpct_mite_channel(dev, counter->counter_index);