Home
last modified time | relevance | path

Searched refs:ni_gpct (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/staging/comedi/drivers/
Dni_tio.h93 struct ni_gpct { struct
104 void (*write)(struct ni_gpct *counter, unsigned int value, argument
106 unsigned int (*read)(struct ni_gpct *counter, enum ni_gpct_register);
108 struct ni_gpct *counters;
116 void (*write)(struct ni_gpct *counter,
119 unsigned int (*read)(struct ni_gpct *counter,
124 void ni_tio_init_counter(struct ni_gpct *counter);
134 int ni_tio_cancel(struct ni_gpct *counter);
135 void ni_tio_handle_interrupt(struct ni_gpct *counter,
137 void ni_tio_set_mite_channel(struct ni_gpct *counter,
[all …]
Dni_tiocmd.c37 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma()
77 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig()
101 struct ni_gpct *counter = s->private; in ni_tio_input_cmd()
139 struct ni_gpct *counter = s->private; in ni_tio_output_cmd()
149 struct ni_gpct *counter = s->private; in ni_tio_cmd_setup()
174 struct ni_gpct *counter = s->private; in ni_tio_cmd()
205 struct ni_gpct *counter = s->private; in ni_tio_cmdtest()
274 int ni_tio_cancel(struct ni_gpct *counter) in ni_tio_cancel()
292 static int should_ack_gate(struct ni_gpct *counter) in should_ack_gate()
326 static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, in ni_tio_acknowledge_and_confirm()
[all …]
Dni_tio.c149 void ni_tio_write(struct ni_gpct *counter, unsigned int value, in ni_tio_write()
162 unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register reg) in ni_tio_read()
170 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) in ni_tio_reset_count_and_disarm()
177 static int ni_tio_clock_period_ps(const struct ni_gpct *counter, in ni_tio_clock_period_ps()
221 static void ni_tio_set_bits_transient(struct ni_gpct *counter, in ni_tio_set_bits_transient()
250 void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg, in ni_tio_set_bits()
266 unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter, in ni_tio_get_soft_copy()
282 static unsigned int ni_tio_clock_src_modifiers(const struct ni_gpct *counter) in ni_tio_clock_src_modifiers()
300 static int ni_m_series_clock_src_select(const struct ni_gpct *counter, in ni_m_series_clock_src_select()
366 static int ni_660x_clock_src_select(const struct ni_gpct *counter, in ni_660x_clock_src_select()
[all …]
Dni_tio_internal.h154 void ni_tio_write(struct ni_gpct *counter, unsigned int value,
156 unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register);
165 void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg,
167 unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter,
170 int ni_tio_arm(struct ni_gpct *counter, bool arm, unsigned int start_trigger);
171 int ni_tio_set_gate_src(struct ni_gpct *counter, unsigned int gate,
Dni_660x.c287 static void ni_660x_gpct_write(struct ni_gpct *counter, unsigned int bits, in ni_660x_gpct_write()
295 static unsigned int ni_660x_gpct_read(struct ni_gpct *counter, in ni_660x_gpct_read()
305 struct ni_gpct *counter) in ni_660x_set_dma_channel()
321 struct ni_gpct *counter) in ni_660x_unset_dma_channel()
333 struct ni_gpct *counter, in ni_660x_request_mite_channel()
358 struct ni_gpct *counter) in ni_660x_release_mite_channel()
376 struct ni_gpct *counter = s->private; in ni_660x_cmd()
392 struct ni_gpct *counter = s->private; in ni_660x_cancel()
419 struct ni_gpct *counter = s->private; in ni_660x_handle_gpct_interrupt()
453 struct ni_gpct *counter = s->private; in ni_660x_input_poll()
[all …]
Dni_mio_common.c618 struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index]; in ni_request_gpct_mite_channel()
3959 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned int bits, in ni_gpct_write_register()
4005 static unsigned int ni_gpct_read_register(struct ni_gpct *counter, in ni_gpct_read_register()
5147 struct ni_gpct *counter = s->private; in ni_gpct_cmd()
5165 struct ni_gpct *counter = s->private; in ni_gpct_cancel()
5517 struct ni_gpct *gpct = &devpriv->counter_dev->counters[i]; in ni_E_init()