Home
last modified time | relevance | path

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

/openbmc/linux/drivers/comedi/drivers/
H A 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;
118 void (*write)(struct ni_gpct *counter,
121 unsigned int (*read)(struct ni_gpct *counter,
128 void ni_tio_init_counter(struct ni_gpct *counter);
138 int ni_tio_cancel(struct ni_gpct *counter);
139 void ni_tio_handle_interrupt(struct ni_gpct *counter,
141 void ni_tio_set_mite_channel(struct ni_gpct *counter,
[all …]
H A Dni_tio.c752 static int ni_tio_set_clock_src(struct ni_gpct *counter, in ni_tio_set_clock_src()
1025 int ni_tio_set_gate_src_raw(struct ni_gpct *counter, in ni_tio_set_gate_src_raw()
1057 int ni_tio_set_gate_src(struct ni_gpct *counter, in ni_tio_set_gate_src()
1454 struct ni_gpct *counter = s->private; in ni_tio_insn_config()
1608 struct ni_gpct *counter = s->private; in ni_tio_read_sw_save_reg()
1637 struct ni_gpct *counter = s->private; in ni_tio_insn_read()
1678 struct ni_gpct *counter = s->private; in ni_tio_insn_write()
1723 void ni_tio_init_counter(struct ni_gpct *counter) in ni_tio_init_counter()
1764 void (*write)(struct ni_gpct *counter, in ni_gpct_device_construct()
1767 unsigned int (*read)(struct ni_gpct *counter, in ni_gpct_device_construct()
[all …]
H A Dni_tiocmd.c38 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma()
78 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig()
102 struct ni_gpct *counter = s->private; in ni_tio_input_cmd()
153 struct ni_gpct *counter = s->private; in ni_tio_output_cmd()
163 struct ni_gpct *counter = s->private; in ni_tio_cmd_setup()
206 struct ni_gpct *counter = s->private; in ni_tio_cmd()
237 struct ni_gpct *counter = s->private; in ni_tio_cmdtest()
332 int ni_tio_cancel(struct ni_gpct *counter) in ni_tio_cancel()
350 static int should_ack_gate(struct ni_gpct *counter) in should_ack_gate()
442 void ni_tio_acknowledge(struct ni_gpct *counter) in ni_tio_acknowledge()
[all …]
H A 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,
173 int ni_tio_set_gate_src_raw(struct ni_gpct *counter, unsigned int gate,
H A Dni_660x.c301 static unsigned int ni_660x_gpct_read(struct ni_gpct *counter, in ni_660x_gpct_read()
311 struct ni_gpct *counter) in ni_660x_set_dma_channel()
326 struct ni_gpct *counter) in ni_660x_unset_dma_channel()
337 struct ni_gpct *counter, in ni_660x_request_mite_channel()
362 struct ni_gpct *counter) in ni_660x_release_mite_channel()
380 struct ni_gpct *counter = s->private; in ni_660x_cmd()
396 struct ni_gpct *counter = s->private; in ni_660x_cancel()
423 struct ni_gpct *counter = s->private; in ni_660x_handle_gpct_interrupt()
457 struct ni_gpct *counter = s->private; in ni_660x_input_poll()
471 struct ni_gpct *counter = s->private; in ni_660x_buf_change()
[all …]
H A Dni_mio_common.c618 struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index]; in ni_request_gpct_mite_channel()
4010 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned int bits, in ni_gpct_write_register()
4056 static unsigned int ni_gpct_read_register(struct ni_gpct *counter, in ni_gpct_read_register()
5860 struct ni_gpct *counter = s->private; in ni_gpct_cmd()
5878 struct ni_gpct *counter = s->private; in ni_gpct_cancel()
6261 struct ni_gpct *gpct = &devpriv->counter_dev->counters[i]; in ni_E_init()