Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/comedi/drivers/
Dni_tio.h107 struct ni_gpct { struct
118 void (*write_register)(struct ni_gpct *counter, unsigned bits, argument
120 unsigned (*read_register)(struct ni_gpct *counter,
123 struct ni_gpct *counters;
131 void (*write_register)(struct ni_gpct *,
134 unsigned (*read_register)(struct ni_gpct *,
139 void ni_tio_init_counter(struct ni_gpct *);
149 int ni_tio_cancel(struct ni_gpct *);
150 void ni_tio_handle_interrupt(struct ni_gpct *, struct comedi_subdevice *);
151 void ni_tio_set_mite_channel(struct ni_gpct *, struct mite_channel *);
[all …]
Dni_tiocmd.c50 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma()
90 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig()
114 struct ni_gpct *counter = s->private; in ni_tio_input_cmd()
155 struct ni_gpct *counter = s->private; in ni_tio_output_cmd()
171 struct ni_gpct *counter = s->private; in ni_tio_cmd_setup()
196 struct ni_gpct *counter = s->private; in ni_tio_cmd()
227 struct ni_gpct *counter = s->private; in ni_tio_cmdtest()
296 int ni_tio_cancel(struct ni_gpct *counter) in ni_tio_cancel()
317 static int should_ack_gate(struct ni_gpct *counter) in should_ack_gate()
344 static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, in ni_tio_acknowledge_and_confirm()
[all …]
Dni_tio.c182 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) in ni_tio_reset_count_and_disarm()
189 static uint64_t ni_tio_clock_period_ps(const struct ni_gpct *counter, in ni_tio_clock_period_ps()
231 static unsigned ni_tio_clock_src_modifiers(const struct ni_gpct *counter) in ni_tio_clock_src_modifiers()
249 static unsigned ni_m_series_clock_src_select(const struct ni_gpct *counter) in ni_m_series_clock_src_select()
314 static unsigned ni_660x_clock_src_select(const struct ni_gpct *counter) in ni_660x_clock_src_select()
371 static unsigned ni_tio_generic_clock_src_select(const struct ni_gpct *counter) in ni_tio_generic_clock_src_select()
383 static void ni_tio_set_sync_mode(struct ni_gpct *counter, int force_alt_sync) in ni_tio_set_sync_mode()
427 static int ni_tio_set_counter_mode(struct ni_gpct *counter, unsigned mode) in ni_tio_set_counter_mode()
487 int ni_tio_arm(struct ni_gpct *counter, int arm, unsigned start_trigger) in ni_tio_arm()
653 static void ni_tio_set_source_subselect(struct ni_gpct *counter, in ni_tio_set_source_subselect()
[all …]
Dni_tio_internal.h159 static inline void write_register(struct ni_gpct *counter, unsigned bits, in write_register()
166 static inline unsigned read_register(struct ni_gpct *counter, in read_register()
190 static inline void ni_tio_set_bits_transient(struct ni_gpct *counter, in ni_tio_set_bits_transient()
214 static inline void ni_tio_set_bits(struct ni_gpct *counter, in ni_tio_set_bits()
226 static inline unsigned ni_tio_get_soft_copy(const struct ni_gpct *counter, in ni_tio_get_soft_copy()
241 int ni_tio_arm(struct ni_gpct *counter, int arm, unsigned start_trigger);
242 int ni_tio_set_gate_src(struct ni_gpct *counter, unsigned gate_index,
Dni_660x.c620 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned bits, in ni_gpct_write_register()
630 static unsigned ni_gpct_read_register(struct ni_gpct *counter, in ni_gpct_read_register()
642 struct ni_gpct in mite_ring()
652 struct ni_gpct *counter) in ni_660x_set_dma_channel()
672 struct ni_gpct *counter) in ni_660x_unset_dma_channel()
691 struct ni_gpct *counter, in ni_660x_request_mite_channel()
716 struct ni_gpct *counter) in ni_660x_release_mite_channel()
734 struct ni_gpct *counter = s->private; in ni_660x_cmd()
750 struct ni_gpct *counter = s->private; in ni_660x_cancel()
777 struct ni_gpct *counter = s->private; in ni_660x_handle_gpct_interrupt()
[all …]
Dni_mio_common.c3951 static void ni_gpct_write_register(struct ni_gpct *counter, unsigned bits, in ni_gpct_write_register()
4019 static unsigned ni_gpct_read_register(struct ni_gpct *counter, in ni_gpct_read_register()
5174 struct ni_gpct *counter = s->private; in ni_gpct_cmd()
5192 struct ni_gpct *counter = s->private; in ni_gpct_cancel()
5624 struct ni_gpct *gpct = &devpriv->counter_dev->counters[i]; in ni_E_init()