Home
last modified time | relevance | path

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

12

/drivers/staging/comedi/drivers/
Dni_labpc_common.c344 struct comedi_8254 *pacer = dev->pacer; in labpc_adc_timing() local
359 pacer->next_div1 = (scan_period - 1) / in labpc_adc_timing()
360 (pacer->osc_base * I8254_MAX_COUNT) + 1; in labpc_adc_timing()
362 comedi_check_trigger_arg_min(&pacer->next_div1, 2); in labpc_adc_timing()
363 comedi_check_trigger_arg_max(&pacer->next_div1, in labpc_adc_timing()
366 base_period = pacer->osc_base * pacer->next_div1; in labpc_adc_timing()
372 pacer->next_div = DIV_ROUND_CLOSEST(convert_period, in labpc_adc_timing()
374 pacer->next_div2 = DIV_ROUND_CLOSEST(scan_period, in labpc_adc_timing()
378 pacer->next_div = DIV_ROUND_UP(convert_period, in labpc_adc_timing()
380 pacer->next_div2 = DIV_ROUND_UP(scan_period, in labpc_adc_timing()
[all …]
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
538 *div1 = *tim2 / pacer->osc_base; /* convert timer (burst) */ in pci9118_calc_divisors()
539 *div2 = *tim1 / pacer->osc_base; /* scan timer */ in pci9118_calc_divisors()
544 *tim2 = *div1 * pacer->osc_base; /* real convert timer */ in pci9118_calc_divisors()
552 *tim1 = *div1 * *div2 * pacer->osc_base; in pci9118_calc_divisors()
558 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci9118_start_pacer()
569 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pci9118_ai_cancel()
918 struct comedi_8254 *pacer = dev->pacer; in pci9118_ai_cmd() local
1039 comedi_8254_cascade_ns_to_timer(pacer, &cmd->convert_arg, in pci9118_ai_cmd()
[all …]
Dcb_pcimdas.c377 dev->pacer = comedi_8254_init(devpriv->BADR3 + PCIMDAS_8254_BASE, in cb_pcimdas_auto_attach()
380 if (!dev->pacer) in cb_pcimdas_auto_attach()
442 comedi_8254_subdevice_init(s, dev->pacer); in cb_pcimdas_auto_attach()
444 dev->pacer->insn_config = cb_pcimdas_counter_insn_config; in cb_pcimdas_auto_attach()
447 comedi_8254_set_busy(dev->pacer, 1, true); in cb_pcimdas_auto_attach()
448 comedi_8254_set_busy(dev->pacer, 2, true); in cb_pcimdas_auto_attach()
Dni_at_ao.c284 comedi_8254_set_mode(dev->pacer, 0, I8254_MODE4 | I8254_BINARY); in atao_reset()
285 comedi_8254_set_mode(dev->pacer, 1, I8254_MODE4 | I8254_BINARY); in atao_reset()
286 comedi_8254_write(dev->pacer, 0, 0x0003); in atao_reset()
317 dev->pacer = comedi_8254_init(dev->iobase + ATAO_82C53_BASE, in atao_attach()
319 if (!dev->pacer) in atao_attach()
Daio_aio12_8.c219 dev->pacer = comedi_8254_init(dev->iobase + AIO12_8_8254_BASE_REG, in aio_aio12_8_attach()
221 if (!dev->pacer) in aio_aio12_8_attach()
266 comedi_8254_subdevice_init(s, dev->pacer); in aio_aio12_8_attach()
268 dev->pacer->insn_config = aio_aio12_8_counter_insn_config; in aio_aio12_8_attach()
Dcb_das16_cs.c377 dev->pacer = comedi_8254_init(dev->iobase + DAS16CS_TIMER_BASE, in das16cs_auto_attach()
379 if (!dev->pacer) in das16cs_auto_attach()
424 comedi_8254_subdevice_init(s, dev->pacer); in das16cs_auto_attach()
426 dev->pacer->insn_config = das16cs_counter_insn_config; in das16cs_auto_attach()
429 comedi_8254_set_busy(dev->pacer, 1, true); in das16cs_auto_attach()
430 comedi_8254_set_busy(dev->pacer, 2, true); in das16cs_auto_attach()
Dpcl816.c386 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl816_ai_cmdtest()
429 comedi_8254_set_mode(dev->pacer, 0, I8254_MODE1 | I8254_BINARY); in pcl816_ai_cmd()
430 comedi_8254_write(dev->pacer, 0, 0x0ff); in pcl816_ai_cmd()
432 comedi_8254_update_divisors(dev->pacer); in pcl816_ai_cmd()
433 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl816_ai_cmd()
493 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl816_ai_cancel()
619 dev->pacer = comedi_8254_init(dev->iobase + PCL816_TIMER_BASE, in pcl816_attach()
621 if (!dev->pacer) in pcl816_attach()
Dadv_pci1710.c507 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pci171x_ai_cancel()
629 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in interrupt_service_pci1710()
659 comedi_8254_update_divisors(dev->pacer); in pci171x_ai_cmd()
675 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci171x_ai_cmd()
739 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci171x_ai_cmdtest()
870 dev->pacer = comedi_8254_init(dev->iobase + PCI171X_TIMER_BASE, in pci1710_auto_attach()
872 if (!dev->pacer) in pci1710_auto_attach()
974 comedi_8254_subdevice_init(s, dev->pacer); in pci1710_auto_attach()
976 dev->pacer->insn_config = pci171x_insn_counter_config; in pci1710_auto_attach()
979 comedi_8254_set_busy(dev->pacer, 1, true); in pci1710_auto_attach()
[all …]
Dpcl711.c338 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl711_ai_cmdtest()
355 comedi_8254_update_divisors(dev->pacer); in pcl711_ai_cmd()
356 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl711_ai_cmd()
443 dev->pacer = comedi_8254_init(dev->iobase + PCL711_TIMER_BASE, in pcl711_attach()
445 if (!dev->pacer) in pcl711_attach()
Ddas16m1.c231 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16m1_cmd_test()
289 comedi_8254_update_divisors(dev->pacer); in das16m1_cmd_exec()
290 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das16m1_cmd_exec()
559 dev->pacer = comedi_8254_init(dev->iobase + DAS16M1_8254_SECOND, in das16m1_attach()
561 if (!dev->pacer) in das16m1_attach()
Ddas6402.c244 comedi_8254_update_divisors(dev->pacer); in das6402_ai_cmd()
245 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das6402_ai_cmd()
343 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das6402_ai_cmdtest()
602 dev->pacer = comedi_8254_init(dev->iobase + DAS6402_TIMER_BASE, in das6402_attach()
604 if (!dev->pacer) in das6402_attach()
Ddas800.c358 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das800_ai_do_cmdtest()
410 comedi_8254_update_divisors(dev->pacer); in das800_ai_do_cmd()
411 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das800_ai_do_cmd()
686 dev->pacer = comedi_8254_init(dev->iobase + DAS800_8254, in das800_attach()
688 if (!dev->pacer) in das800_attach()
Ddas16.c669 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16_cmd_test()
674 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das16_cmd_test()
693 comedi_8254_cascade_ns_to_timer(dev->pacer, &ns, flags); in das16_set_pacer()
694 comedi_8254_update_divisors(dev->pacer); in das16_set_pacer()
695 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das16_set_pacer()
1078 dev->pacer = comedi_8254_init(dev->iobase + DAS16_TIMER_BASE_REG, in das16_attach()
1080 if (!dev->pacer) in das16_attach()
Dadl_pci9111.c315 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci9111_ai_do_cmd_test()
370 comedi_8254_update_divisors(dev->pacer); in pci9111_ai_do_cmd()
371 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pci9111_ai_do_cmd()
660 dev->pacer = comedi_8254_init(dev->iobase + PCI9111_8254_BASE_REG, in pci9111_auto_attach()
662 if (!dev->pacer) in pci9111_auto_attach()
Damplc_pci230.c686 comedi_8254_set_mode(dev->pacer, ct, mode); in pci230_ct_setup_ns_mode()
695 comedi_8254_write(dev->pacer, ct, count); in pci230_ct_setup_ns_mode()
701 comedi_8254_set_mode(dev->pacer, ct, I8254_MODE1); in pci230_cancel_ct()
751 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_insn_read()
802 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_insn_read()
803 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_insn_read()
1759 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE0); in pci230_ai_inttrig_convert()
1760 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_inttrig_convert()
2181 comedi_8254_set_mode(dev->pacer, 2, I8254_MODE1); in pci230_ai_cmd()
2474 dev->pacer = comedi_8254_init(dev->iobase + PCI230_Z2_CT_BASE, in pci230_auto_attach()
[all …]
Ddas08.c452 dev->pacer = comedi_8254_init(dev->iobase + board->i8254_offset, in das08_common_attach()
454 if (!dev->pacer) in das08_common_attach()
457 comedi_8254_subdevice_init(s, dev->pacer); in das08_common_attach()
Dpcl818.c689 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in ai_cmdtest()
751 comedi_8254_update_divisors(dev->pacer); in pcl818_ai_cmd()
752 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl818_ai_cmd()
785 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl818_ai_cancel()
1019 dev->pacer = comedi_8254_init(dev->iobase + PCL818_TIMER_BASE, in pcl818_attach()
1021 if (!dev->pacer) in pcl818_attach()
Dpcl812.c693 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pcl812_ai_cmdtest()
744 comedi_8254_update_divisors(dev->pacer); in pcl812_ai_cmd()
745 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in pcl812_ai_cmd()
903 comedi_8254_pacer_enable(dev->pacer, 1, 2, false); in pcl812_ai_cancel()
1147 dev->pacer = comedi_8254_init(dev->iobase + PCL812_TIMER_BASE, in pcl812_attach()
1150 if (!dev->pacer) in pcl812_attach()
Damplc_pci224.c788 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in pci224_ao_cmdtest()
824 comedi_8254_pacer_enable(dev->pacer, 2, 0, false); in pci224_ao_start_pacer()
880 comedi_8254_update_divisors(dev->pacer); in pci224_ao_cmd()
1049 dev->pacer = comedi_8254_init(devpriv->iobase1 + PCI224_Z2_BASE, in pci224_auto_attach()
1051 if (!dev->pacer) in pci224_auto_attach()
Ddas1800.c798 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in das1800_ai_do_cmdtest()
812 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, in das1800_ai_do_cmdtest()
1026 comedi_8254_update_divisors(dev->pacer); in das1800_ai_do_cmd()
1027 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in das1800_ai_do_cmd()
1032 comedi_8254_load(dev->pacer, 0, 1, I8254_MODE0 | I8254_BINARY); in das1800_ai_do_cmd()
1360 dev->pacer = comedi_8254_init(dev->iobase + DAS1800_COUNTER, in das1800_attach()
1362 if (!dev->pacer) in das1800_attach()
Dcb_pcidas.c772 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in cb_pcidas_ai_cmdtest()
777 comedi_8254_cascade_ns_to_timer(dev->pacer, &arg, cmd->flags); in cb_pcidas_ai_cmdtest()
832 comedi_8254_update_divisors(dev->pacer); in cb_pcidas_ai_cmd()
833 comedi_8254_pacer_enable(dev->pacer, 1, 2, true); in cb_pcidas_ai_cmd()
1301 dev->pacer = comedi_8254_init(dev->iobase + PCIDAS_AI_8254_BASE, in cb_pcidas_auto_attach()
1303 if (!dev->pacer) in cb_pcidas_auto_attach()
Dni_at_a2150.c548 comedi_8254_load(dev->pacer, 2, 72, I8254_MODE0 | I8254_BINARY); in a2150_ai_cmd()
726 dev->pacer = comedi_8254_init(dev->iobase + I8253_BASE_REG, in a2150_attach()
728 if (!dev->pacer) in a2150_attach()
Drtd520.c1304 dev->pacer = comedi_8254_mm_init(dev->mmio + LAS0_8254_TIMER_BASE, in rtd_auto_attach()
1306 if (!dev->pacer) in rtd_auto_attach()
1309 comedi_8254_subdevice_init(s, dev->pacer); in rtd_auto_attach()
1310 dev->pacer->insn_config = rtd_counter_insn_config; in rtd_auto_attach()
Dadv_pci_dio.c1042 dev->pacer = comedi_8254_init(dev->iobase + in pci_dio_auto_attach()
1045 if (!dev->pacer) in pci_dio_auto_attach()
1048 comedi_8254_subdevice_init(s, dev->pacer); in pci_dio_auto_attach()
/drivers/staging/comedi/
Ddrivers.c188 kfree(dev->pacer); in comedi_device_detach_cleanup()
190 dev->pacer = NULL; in comedi_device_detach_cleanup()

12