Home
last modified time | relevance | path

Searched refs:pacer (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/comedi/drivers/
H A Dni_labpc_common.c341 struct comedi_8254 *pacer = dev->pacer; in labpc_adc_timing() local
363 base_period = pacer->osc_base * pacer->next_div1; in labpc_adc_timing()
415 pacer->next_div = pacer->next_div2; in labpc_adc_timing()
698 struct comedi_8254 *pacer = dev->pacer; in labpc_ai_cmd() local
701 comedi_8254_update_divisors(pacer); in labpc_ai_cmd()
704 comedi_8254_load(pacer, 0, pacer->divisor1, in labpc_ai_cmd()
714 comedi_8254_load(pacer, 1, pacer->divisor2, in labpc_ai_cmd()
1234 dev->pacer = in labpc_common_attach()
1241 dev->pacer = in labpc_common_attach()
1248 if (IS_ERR(dev->pacer)) in labpc_common_attach()
[all …]
H A Daio_aio12_8.c209 dev->pacer = comedi_8254_io_alloc(dev->iobase + AIO12_8_8254_BASE_REG, in aio_aio12_8_attach()
211 if (IS_ERR(dev->pacer)) in aio_aio12_8_attach()
212 return PTR_ERR(dev->pacer); in aio_aio12_8_attach()
256 comedi_8254_subdevice_init(s, dev->pacer); in aio_aio12_8_attach()
258 dev->pacer->insn_config = aio_aio12_8_counter_insn_config; in aio_aio12_8_attach()
H A Dcb_pcimdas.c367 dev->pacer = comedi_8254_io_alloc(devpriv->BADR3 + PCIMDAS_8254_BASE, in cb_pcimdas_auto_attach()
370 if (IS_ERR(dev->pacer)) in cb_pcimdas_auto_attach()
371 return PTR_ERR(dev->pacer); in cb_pcimdas_auto_attach()
432 comedi_8254_subdevice_init(s, dev->pacer); in cb_pcimdas_auto_attach()
434 dev->pacer->insn_config = cb_pcimdas_counter_insn_config; in cb_pcimdas_auto_attach()
437 comedi_8254_set_busy(dev->pacer, 1, true); in cb_pcimdas_auto_attach()
438 comedi_8254_set_busy(dev->pacer, 2, true); in cb_pcimdas_auto_attach()
H A Dni_at_ao.c273 comedi_8254_set_mode(dev->pacer, 0, I8254_MODE4 | I8254_BINARY); in atao_reset()
274 comedi_8254_set_mode(dev->pacer, 1, I8254_MODE4 | I8254_BINARY); in atao_reset()
275 comedi_8254_write(dev->pacer, 0, 0x0003); in atao_reset()
306 dev->pacer = comedi_8254_io_alloc(dev->iobase + ATAO_82C53_BASE, in atao_attach()
308 if (IS_ERR(dev->pacer)) in atao_attach()
309 return PTR_ERR(dev->pacer); in atao_attach()
H A Dcb_das16_cs.c366 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS16CS_TIMER_BASE, in das16cs_auto_attach()
368 if (IS_ERR(dev->pacer)) in das16cs_auto_attach()
369 return PTR_ERR(dev->pacer); in das16cs_auto_attach()
413 comedi_8254_subdevice_init(s, dev->pacer); in das16cs_auto_attach()
415 dev->pacer->insn_config = das16cs_counter_insn_config; in das16cs_auto_attach()
418 comedi_8254_set_busy(dev->pacer, 1, true); in das16cs_auto_attach()
419 comedi_8254_set_busy(dev->pacer, 2, true); in das16cs_auto_attach()
H A Dadl_pci9118.c398 comedi_8254_load(dev->pacer, 0, dmabuf->hw >> 1, in pci9118_ai_mode4_switch()
535 struct comedi_8254 *pacer = dev->pacer; in pci9118_calc_divisors() local
539 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors()
552 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
919 struct comedi_8254 *pacer = dev->pacer; in pci9118_ai_cmd() local
1043 comedi_8254_update_divisors(pacer); in pci9118_ai_cmd()
1057 comedi_8254_load(pacer, 0, dmabuf->hw >> 1, in pci9118_ai_cmd()
1078 &pacer->divisor1, in pci9118_ai_cmd()
1079 &pacer->divisor2, in pci9118_ai_cmd()
1529 if (IS_ERR(dev->pacer)) in pci9118_common_attach()
[all …]
H A Dadv_pci1710.c383 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pci1710_ai_cancel()
507 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci1710_irq_handler()
537 comedi_8254_update_divisors(dev->pacer); in pci1710_ai_cmd()
553 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci1710_ai_cmd()
617 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci1710_ai_cmdtest()
772 if (IS_ERR(dev->pacer)) in pci1710_auto_attach()
773 return PTR_ERR(dev->pacer); in pci1710_auto_attach()
864 comedi_8254_subdevice_init(s, dev->pacer); in pci1710_auto_attach()
866 dev->pacer->insn_config = pci1710_counter_insn_config; in pci1710_auto_attach()
869 comedi_8254_set_busy(dev->pacer, 1, true); in pci1710_auto_attach()
[all …]
H A Dpcl816.c385 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl816_ai_cmdtest()
428 comedi_8254_set_mode(dev->pacer, 0, I8254_MODE1 | I8254_BINARY); in pcl816_ai_cmd()
429 comedi_8254_write(dev->pacer, 0, 0x0ff); in pcl816_ai_cmd()
431 comedi_8254_update_divisors(dev->pacer); in pcl816_ai_cmd()
432 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl816_ai_cmd()
492 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl816_ai_cancel()
618 dev->pacer = comedi_8254_io_alloc(dev->iobase + PCL816_TIMER_BASE, in pcl816_attach()
620 if (IS_ERR(dev->pacer)) in pcl816_attach()
621 return PTR_ERR(dev->pacer); in pcl816_attach()
H A Dpcl711.c327 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl711_ai_cmdtest()
344 comedi_8254_update_divisors(dev->pacer); in pcl711_ai_cmd()
345 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl711_ai_cmd()
432 dev->pacer = comedi_8254_io_alloc(dev->iobase + PCL711_TIMER_BASE, in pcl711_attach()
434 if (IS_ERR(dev->pacer)) in pcl711_attach()
435 return PTR_ERR(dev->pacer); in pcl711_attach()
H A Ddas16m1.c221 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16m1_ai_cmdtest()
268 comedi_8254_update_divisors(dev->pacer); in das16m1_ai_cmd()
269 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das16m1_ai_cmd()
532 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS16M1_8254_IOBASE2, in das16m1_attach()
534 if (IS_ERR(dev->pacer)) in das16m1_attach()
535 return PTR_ERR(dev->pacer); in das16m1_attach()
H A Ddas6402.c235 comedi_8254_update_divisors(dev->pacer); in das6402_ai_cmd()
236 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das6402_ai_cmd()
334 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das6402_ai_cmdtest()
593 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS6402_TIMER_BASE, in das6402_attach()
595 if (IS_ERR(dev->pacer)) in das6402_attach()
596 return PTR_ERR(dev->pacer); in das6402_attach()
H A Ddas800.c347 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das800_ai_do_cmdtest()
399 comedi_8254_update_divisors(dev->pacer); in das800_ai_do_cmd()
400 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das800_ai_do_cmd()
675 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS800_8254, in das800_attach()
677 if (IS_ERR(dev->pacer)) in das800_attach()
678 return PTR_ERR(dev->pacer); in das800_attach()
H A Ddas08.c441 dev->pacer = in das08_common_attach()
444 if (IS_ERR(dev->pacer)) in das08_common_attach()
445 return PTR_ERR(dev->pacer); in das08_common_attach()
447 comedi_8254_subdevice_init(s, dev->pacer); in das08_common_attach()
H A Dadl_pci9111.c305 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci9111_ai_do_cmd_test()
360 comedi_8254_update_divisors(dev->pacer); in pci9111_ai_do_cmd()
361 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci9111_ai_do_cmd()
650 dev->pacer = comedi_8254_io_alloc(dev->iobase + PCI9111_8254_BASE_REG, in pci9111_auto_attach()
652 if (IS_ERR(dev->pacer)) in pci9111_auto_attach()
653 return PTR_ERR(dev->pacer); in pci9111_auto_attach()
H A Ddas16.c662 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16_cmd_test()
667 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16_cmd_test()
686 comedi_8254_cascade_ns_to_timer(dev->pacer, &ns, flags); in das16_set_pacer()
687 comedi_8254_update_divisors(dev->pacer); in das16_set_pacer()
688 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das16_set_pacer()
1070 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS16_TIMER_BASE_REG, in das16_attach()
1072 if (IS_ERR(dev->pacer)) in das16_attach()
1073 return PTR_ERR(dev->pacer); in das16_attach()
H A Dpcl812.c692 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl812_ai_cmdtest()
743 comedi_8254_update_divisors(dev->pacer); in pcl812_ai_cmd()
744 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl812_ai_cmd()
902 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl812_ai_cancel()
1146 dev->pacer = in pcl812_attach()
1149 if (IS_ERR(dev->pacer)) in pcl812_attach()
1150 return PTR_ERR(dev->pacer); in pcl812_attach()
H A Dpcl818.c688 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in ai_cmdtest()
750 comedi_8254_update_divisors(dev->pacer); in pcl818_ai_cmd()
751 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl818_ai_cmd()
784 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl818_ai_cancel()
1018 dev->pacer = comedi_8254_io_alloc(dev->iobase + PCL818_TIMER_BASE, in pcl818_attach()
1020 if (IS_ERR(dev->pacer)) in pcl818_attach()
1021 return PTR_ERR(dev->pacer); in pcl818_attach()
H A Ddas1800.c557 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das1800_ai_fixup_paced_timing()
604 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das1800_ai_fixup_burst_timing()
900 comedi_8254_update_divisors(dev->pacer); in das1800_ai_cmd()
901 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das1800_ai_cmd()
906 comedi_8254_load(dev->pacer, 0, 1, I8254_MODE0 | I8254_BINARY); in das1800_ai_cmd()
1236 dev->pacer = comedi_8254_io_alloc(dev->iobase + DAS1800_COUNTER, in das1800_attach()
1238 if (IS_ERR(dev->pacer)) in das1800_attach()
1239 return PTR_ERR(dev->pacer); in das1800_attach()
H A Damplc_pci224.c788 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci224_ao_cmdtest()
826 comedi_8254_pacer_enable(dev->pacer, 2, 0, false); in pci224_ao_start_pacer()
882 comedi_8254_update_divisors(dev->pacer); in pci224_ao_cmd()
1054 dev->pacer = comedi_8254_io_alloc(devpriv->iobase1 + PCI224_Z2_BASE, in pci224_auto_attach()
1056 if (IS_ERR(dev->pacer)) in pci224_auto_attach()
1057 return PTR_ERR(dev->pacer); in pci224_auto_attach()
H A Damplc_pci230.c688 comedi_8254_set_mode(dev->pacer, ct, mode); in pci230_ct_setup_ns_mode()
697 comedi_8254_write(dev->pacer, ct, count); in pci230_ct_setup_ns_mode()
703 comedi_8254_set_mode(dev->pacer, ct, I8254_MODE1); in pci230_cancel_ct()
753 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_insn_read()
804 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_insn_read()
805 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_insn_read()
1763 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_inttrig_convert()
1764 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_inttrig_convert()
2185 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_cmd()
2480 if (IS_ERR(dev->pacer)) in pci230_auto_attach()
[all …]
H A Dni_at_a2150.c529 comedi_8254_load(dev->pacer, 2, 72, I8254_MODE0 | I8254_BINARY); in a2150_ai_cmd()
710 dev->pacer = comedi_8254_io_alloc(dev->iobase + I8253_BASE_REG, in a2150_attach()
712 if (IS_ERR(dev->pacer)) in a2150_attach()
713 return PTR_ERR(dev->pacer); in a2150_attach()
H A Dadv_pci_dio.c667 dev->pacer = in pci_dio_auto_attach()
670 if (IS_ERR(dev->pacer)) in pci_dio_auto_attach()
671 return PTR_ERR(dev->pacer); in pci_dio_auto_attach()
673 comedi_8254_subdevice_init(s, dev->pacer); in pci_dio_auto_attach()
H A Dcb_pcidas.c762 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in cb_pcidas_ai_cmdtest()
767 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in cb_pcidas_ai_cmdtest()
822 comedi_8254_update_divisors(dev->pacer); in cb_pcidas_ai_cmd()
823 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in cb_pcidas_ai_cmd()
1291 dev->pacer = comedi_8254_io_alloc(dev->iobase + PCIDAS_AI_8254_BASE, in cb_pcidas_auto_attach()
1293 if (IS_ERR(dev->pacer)) in cb_pcidas_auto_attach()
1294 return PTR_ERR(dev->pacer); in cb_pcidas_auto_attach()
H A Drtd520.c1292 dev->pacer = comedi_8254_mm_alloc(dev->mmio + LAS0_8254_TIMER_BASE, in rtd_auto_attach()
1294 if (IS_ERR(dev->pacer)) in rtd_auto_attach()
1297 comedi_8254_subdevice_init(s, dev->pacer); in rtd_auto_attach()
1298 dev->pacer->insn_config = rtd_counter_insn_config; in rtd_auto_attach()
/linux/drivers/comedi/
H A Ddrivers.c180 if (!IS_ERR(dev->pacer)) in comedi_device_detach_cleanup()
181 kfree(dev->pacer); in comedi_device_detach_cleanup()
183 dev->pacer = NULL; in comedi_device_detach_cleanup()

12