Lines Matching defs:dev
221 static void ni_writel(struct comedi_device *dev, unsigned int data, int reg) in ni_writel()
226 static void ni_writew(struct comedi_device *dev, unsigned int data, int reg) in ni_writew()
231 static void ni_writeb(struct comedi_device *dev, unsigned int data, int reg) in ni_writeb()
236 static unsigned int ni_readl(struct comedi_device *dev, int reg) in ni_readl()
241 static unsigned int ni_readw(struct comedi_device *dev, int reg) in ni_readw()
246 static unsigned int ni_readb(struct comedi_device *dev, int reg) in ni_readb()
253 static void ni_writel(struct comedi_device *dev, unsigned int data, int reg) in ni_writel()
258 static void ni_writew(struct comedi_device *dev, unsigned int data, int reg) in ni_writew()
263 static void ni_writeb(struct comedi_device *dev, unsigned int data, int reg) in ni_writeb()
268 static unsigned int ni_readl(struct comedi_device *dev, int reg) in ni_readl()
273 static unsigned int ni_readw(struct comedi_device *dev, int reg) in ni_readw()
278 static unsigned int ni_readb(struct comedi_device *dev, int reg) in ni_readb()
378 static void m_series_stc_write(struct comedi_device *dev, in m_series_stc_write()
426 static unsigned int m_series_stc_read(struct comedi_device *dev, in m_series_stc_read()
453 static void ni_stc_writew(struct comedi_device *dev, in ni_stc_writew()
473 static void ni_stc_writel(struct comedi_device *dev, in ni_stc_writel()
486 static unsigned int ni_stc_readw(struct comedi_device *dev, int reg) in ni_stc_readw()
507 static unsigned int ni_stc_readl(struct comedi_device *dev, int reg) in ni_stc_readl()
521 static inline void ni_set_bitfield(struct comedi_device *dev, int reg, in ni_set_bitfield()
576 static int ni_request_ai_mite_channel(struct comedi_device *dev) in ni_request_ai_mite_channel()
602 static int ni_request_ao_mite_channel(struct comedi_device *dev) in ni_request_ao_mite_channel()
628 static int ni_request_gpct_mite_channel(struct comedi_device *dev, in ni_request_gpct_mite_channel()
659 static int ni_request_cdo_mite_channel(struct comedi_device *dev) in ni_request_cdo_mite_channel()
693 static void ni_release_ai_mite_channel(struct comedi_device *dev) in ni_release_ai_mite_channel()
710 static void ni_release_ao_mite_channel(struct comedi_device *dev) in ni_release_ao_mite_channel()
728 static void ni_release_gpct_mite_channel(struct comedi_device *dev, in ni_release_gpct_mite_channel()
748 static void ni_release_cdo_mite_channel(struct comedi_device *dev) in ni_release_cdo_mite_channel()
763 static void ni_e_series_enable_second_irq(struct comedi_device *dev, in ni_e_series_enable_second_irq()
790 static void ni_clear_ai_fifo(struct comedi_device *dev) in ni_clear_ai_fifo()
829 static inline void ni_ao_win_outw(struct comedi_device *dev, in ni_ao_win_outw()
841 static inline void ni_ao_win_outl(struct comedi_device *dev, in ni_ao_win_outl()
853 static inline unsigned short ni_ao_win_inw(struct comedi_device *dev, int addr) in ni_ao_win_inw()
877 static inline void ni_set_bits(struct comedi_device *dev, int reg, in ni_set_bits()
890 static void ni_sync_ai_dma(struct comedi_device *dev) in ni_sync_ai_dma()
902 static int ni_ai_drain_dma(struct comedi_device *dev) in ni_ai_drain_dma()
935 static int ni_ao_wait_for_dma_load(struct comedi_device *dev) in ni_ao_wait_for_dma_load()
962 static void ni_ao_fifo_load(struct comedi_device *dev, in ni_ao_fifo_load()
1004 static int ni_ao_fifo_half_empty(struct comedi_device *dev, in ni_ao_fifo_half_empty()
1026 static int ni_ao_prep_fifo(struct comedi_device *dev, in ni_ao_prep_fifo()
1053 static void ni_ai_fifo_read(struct comedi_device *dev, in ni_ai_fifo_read()
1113 static void ni_handle_fifo_half_full(struct comedi_device *dev) in ni_handle_fifo_half_full()
1126 static void ni_handle_fifo_dregs(struct comedi_device *dev) in ni_handle_fifo_dregs()
1186 static void get_last_sample_611x(struct comedi_device *dev) in get_last_sample_611x()
1204 static void get_last_sample_6143(struct comedi_device *dev) in get_last_sample_6143()
1226 static void shutdown_ai_command(struct comedi_device *dev) in shutdown_ai_command()
1240 static void ni_handle_eos(struct comedi_device *dev, struct comedi_subdevice *s) in ni_handle_eos()
1265 static void handle_gpct_interrupt(struct comedi_device *dev, in handle_gpct_interrupt()
1280 static void ack_a_interrupt(struct comedi_device *dev, unsigned short a_status) in ack_a_interrupt()
1298 static void handle_a_interrupt(struct comedi_device *dev, in handle_a_interrupt()
1355 static void ack_b_interrupt(struct comedi_device *dev, unsigned short b_status) in ack_b_interrupt()
1377 static void handle_b_interrupt(struct comedi_device *dev, in handle_b_interrupt()
1410 static void ni_ai_munge(struct comedi_device *dev, struct comedi_subdevice *s, in ni_ai_munge()
1444 static int ni_ai_setup_MITE_dma(struct comedi_device *dev) in ni_ai_setup_MITE_dma()
1478 static int ni_ao_setup_MITE_dma(struct comedi_device *dev) in ni_ao_setup_MITE_dma()
1520 static int ni_ai_reset(struct comedi_device *dev, struct comedi_subdevice *s) in ni_ai_reset()
1586 static int ni_ai_poll(struct comedi_device *dev, struct comedi_subdevice *s) in ni_ai_poll()
1604 static void ni_prime_channelgain_list(struct comedi_device *dev) in ni_prime_channelgain_list()
1620 static void ni_m_series_load_channelgain_list(struct comedi_device *dev, in ni_m_series_load_channelgain_list()
1718 static void ni_load_channelgain_list(struct comedi_device *dev, in ni_load_channelgain_list()
1836 static int ni_ai_insn_read(struct comedi_device *dev, in ni_ai_insn_read()
1941 static int ni_ns_to_timer(const struct comedi_device *dev, in ni_ns_to_timer()
1962 static unsigned int ni_timer_to_ns(const struct comedi_device *dev, int timer) in ni_timer_to_ns()
2003 static unsigned int ni_min_ai_scan_period_ns(struct comedi_device *dev, in ni_min_ai_scan_period_ns()
2017 static int ni_ai_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s, in ni_ai_cmdtest()
2160 static int ni_ai_inttrig(struct comedi_device *dev, in ni_ai_inttrig()
2177 static int ni_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_ai_cmd()
2479 static int ni_ai_insn_config(struct comedi_device *dev, in ni_ai_insn_config()
2534 static void ni_ao_munge(struct comedi_device *dev, struct comedi_subdevice *s, in ni_ao_munge()
2567 static int ni_m_series_ao_config_chanlist(struct comedi_device *dev, in ni_m_series_ao_config_chanlist()
2640 static int ni_old_ao_config_chanlist(struct comedi_device *dev, in ni_old_ao_config_chanlist()
2681 static int ni_ao_config_chanlist(struct comedi_device *dev, in ni_ao_config_chanlist()
2695 static int ni_ao_insn_write(struct comedi_device *dev, in ni_ao_insn_write()
2762 static int ni_ao_arm(struct comedi_device *dev, in ni_ao_arm()
2836 static int ni_ao_insn_config(struct comedi_device *dev, in ni_ao_insn_config()
2876 static int ni_ao_inttrig(struct comedi_device *dev, in ni_ao_inttrig()
2920 static void ni_ao_cmd_personalize(struct comedi_device *dev, in ni_ao_cmd_personalize()
2968 static void ni_ao_cmd_set_trigger(struct comedi_device *dev, in ni_ao_cmd_set_trigger()
3015 static void ni_ao_cmd_set_counters(struct comedi_device *dev, in ni_ao_cmd_set_counters()
3091 static void ni_ao_cmd_set_update(struct comedi_device *dev, in ni_ao_cmd_set_update()
3178 static void ni_ao_cmd_set_channels(struct comedi_device *dev, in ni_ao_cmd_set_channels()
3223 static void ni_ao_cmd_set_stop_conditions(struct comedi_device *dev, in ni_ao_cmd_set_stop_conditions()
3242 static void ni_ao_cmd_set_fifo_mode(struct comedi_device *dev) in ni_ao_cmd_set_fifo_mode()
3266 static void ni_ao_cmd_set_interrupts(struct comedi_device *dev, in ni_ao_cmd_set_interrupts()
3276 static int ni_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_ao_cmd()
3316 static int ni_ao_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s, in ni_ao_cmdtest()
3396 static int ni_ao_reset(struct comedi_device *dev, struct comedi_subdevice *s) in ni_ao_reset()
3467 static int ni_dio_insn_config(struct comedi_device *dev, in ni_dio_insn_config()
3486 static int ni_dio_insn_bits(struct comedi_device *dev, in ni_dio_insn_bits()
3510 static int ni_m_series_dio_insn_config(struct comedi_device *dev, in ni_m_series_dio_insn_config()
3535 static int ni_m_series_dio_insn_bits(struct comedi_device *dev, in ni_m_series_dio_insn_bits()
3548 static int ni_cdio_check_chanlist(struct comedi_device *dev, in ni_cdio_check_chanlist()
3564 static int ni_cdio_cmdtest(struct comedi_device *dev, in ni_cdio_cmdtest()
3626 static int ni_cdo_inttrig(struct comedi_device *dev, in ni_cdo_inttrig()
3680 static int ni_cdio_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_cdio_cmd()
3724 static int ni_cdio_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in ni_cdio_cancel()
3740 static void handle_cdio_interrupt(struct comedi_device *dev) in handle_cdio_interrupt()
3768 static int ni_serial_hw_readwrite8(struct comedi_device *dev, in ni_serial_hw_readwrite8()
3819 static int ni_serial_sw_readwrite8(struct comedi_device *dev, in ni_serial_sw_readwrite8()
3866 static int ni_serial_insn_config(struct comedi_device *dev, in ni_serial_insn_config()
3959 static void init_ao_67xx(struct comedi_device *dev, struct comedi_subdevice *s) in init_ao_67xx()
4009 static unsigned int ni_gpct_to_stc_register(struct comedi_device *dev, in ni_gpct_to_stc_register()
4028 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_write_register() local
4074 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_read_register() local
4099 static int ni_freq_out_insn_read(struct comedi_device *dev, in ni_freq_out_insn_read()
4114 static int ni_freq_out_insn_write(struct comedi_device *dev, in ni_freq_out_insn_write()
4137 static int ni_freq_out_insn_config(struct comedi_device *dev, in ni_freq_out_insn_config()
4173 static int ni_8255_callback(struct comedi_device *dev, in ni_8255_callback()
4184 static int ni_get_pwm_config(struct comedi_device *dev, unsigned int *data) in ni_get_pwm_config()
4193 static int ni_m_series_pwm_config(struct comedi_device *dev, in ni_m_series_pwm_config()
4253 static int ni_6143_pwm_config(struct comedi_device *dev, in ni_6143_pwm_config()
4376 static void ni_write_caldac(struct comedi_device *dev, int addr, int val) in ni_write_caldac()
4417 static int ni_calib_insn_write(struct comedi_device *dev, in ni_calib_insn_write()
4431 static int ni_calib_insn_read(struct comedi_device *dev, in ni_calib_insn_read()
4445 static void caldac_setup(struct comedi_device *dev, struct comedi_subdevice *s) in caldac_setup()
4500 static int ni_read_eeprom(struct comedi_device *dev, int addr) in ni_read_eeprom()
4530 static int ni_eeprom_insn_read(struct comedi_device *dev, in ni_eeprom_insn_read()
4546 static int ni_m_series_eeprom_insn_read(struct comedi_device *dev, in ni_m_series_eeprom_insn_read()
4560 static unsigned int ni_old_get_pfi_routing(struct comedi_device *dev, in ni_old_get_pfi_routing()
4592 static int ni_old_set_pfi_routing(struct comedi_device *dev, in ni_old_set_pfi_routing()
4601 static unsigned int ni_m_series_get_pfi_routing(struct comedi_device *dev, in ni_m_series_get_pfi_routing()
4611 static int ni_m_series_set_pfi_routing(struct comedi_device *dev, in ni_m_series_set_pfi_routing()
4629 static unsigned int ni_get_pfi_routing(struct comedi_device *dev, in ni_get_pfi_routing()
4644 static int ni_set_pfi_routing(struct comedi_device *dev, in ni_set_pfi_routing()
4658 static int ni_config_pfi_filter(struct comedi_device *dev, in ni_config_pfi_filter()
4680 static void ni_set_pfi_direction(struct comedi_device *dev, int chan, in ni_set_pfi_direction()
4691 static int ni_get_pfi_direction(struct comedi_device *dev, int chan) in ni_get_pfi_direction()
4703 static int ni_pfi_insn_config(struct comedi_device *dev, in ni_pfi_insn_config()
4736 static int ni_pfi_insn_bits(struct comedi_device *dev, in ni_pfi_insn_bits()
4754 static int cs5529_wait_for_idle(struct comedi_device *dev) in cs5529_wait_for_idle()
4775 static void cs5529_command(struct comedi_device *dev, unsigned short value) in cs5529_command()
4796 static int cs5529_do_conversion(struct comedi_device *dev, in cs5529_do_conversion()
4827 static int cs5529_ai_insn_read(struct comedi_device *dev, in cs5529_ai_insn_read()
4858 static void cs5529_config_write(struct comedi_device *dev, unsigned int value, in cs5529_config_write()
4870 static int init_cs5529(struct comedi_device *dev) in init_cs5529()
4939 static int ni_mseries_set_pll_master_clock(struct comedi_device *dev, in ni_mseries_set_pll_master_clock()
5024 static int ni_set_master_clock(struct comedi_device *dev, in ni_set_master_clock()
5069 static int ni_valid_rtsi_output_source(struct comedi_device *dev, in ni_valid_rtsi_output_source()
5107 static int ni_set_rtsi_routing(struct comedi_device *dev, in ni_set_rtsi_routing()
5139 static unsigned int ni_get_rtsi_routing(struct comedi_device *dev, in ni_get_rtsi_routing()
5162 static void ni_set_rtsi_direction(struct comedi_device *dev, int chan, in ni_set_rtsi_direction()
5193 static int ni_get_rtsi_direction(struct comedi_device *dev, int chan) in ni_get_rtsi_direction()
5214 static int ni_rtsi_insn_config(struct comedi_device *dev, in ni_rtsi_insn_config()
5257 static int ni_rtsi_insn_bits(struct comedi_device *dev, in ni_rtsi_insn_bits()
5289 static void set_rgout0_reg(int reg, struct comedi_device *dev) in set_rgout0_reg()
5311 static int get_rgout0_reg(struct comedi_device *dev) in get_rgout0_reg()
5327 static inline int get_rgout0_src(struct comedi_device *dev) in get_rgout0_src()
5345 static int incr_rgout0_src_use(int src, struct comedi_device *dev) in incr_rgout0_src_use()
5371 static int decr_rgout0_src_use(int src, struct comedi_device *dev) in decr_rgout0_src_use()
5392 static void set_ith_rtsi_brd_reg(int i, int reg, struct comedi_device *dev) in set_ith_rtsi_brd_reg()
5412 static int get_ith_rtsi_brd_reg(int i, struct comedi_device *dev) in get_ith_rtsi_brd_reg()
5427 static inline int get_rtsi_brd_src(int brd, struct comedi_device *dev) in get_rtsi_brd_src()
5456 static int incr_rtsi_brd_src_use(int src, struct comedi_device *dev) in incr_rtsi_brd_src_use()
5514 struct comedi_device *dev) in decr_rtsi_brd_src_use()
5532 static void ni_rtsi_init(struct comedi_device *dev) in ni_rtsi_init()
5577 struct comedi_device *dev) in ni_get_gout_routing()
5598 struct comedi_device *dev) in ni_disable_gout_routing()
5619 struct comedi_device *dev) in ni_set_gout_routing()
5654 static int get_output_select_source(int dest, struct comedi_device *dev) in get_output_select_source()
5708 struct comedi_device *dev) in test_route()
5723 struct comedi_device *dev) in connect_route()
5791 struct comedi_device *dev) in disconnect_route()
5850 static int ni_global_insn_config(struct comedi_device *dev, in ni_global_insn_config()
5873 static int ni_gpct_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_gpct_cmd()
5891 static int ni_gpct_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in ni_gpct_cancel()
5905 struct comedi_device *dev = d; in ni_E_interrupt() local
5960 static int ni_alloc_private(struct comedi_device *dev) in ni_alloc_private()
5975 static unsigned int _ni_get_valid_routes(struct comedi_device *dev, in _ni_get_valid_routes()
5985 static int ni_E_init(struct comedi_device *dev, in ni_E_init()
6356 static void mio_common_detach(struct comedi_device *dev) in mio_common_detach()