/linux-6.6.21/drivers/comedi/drivers/ |
D | ni_labpc_common.c | 336 struct comedi_8254 *pacer = dev->pacer; in labpc_adc_timing() local 351 pacer->next_div1 = (scan_period - 1) / in labpc_adc_timing() 352 (pacer->osc_base * I8254_MAX_COUNT) + 1; in labpc_adc_timing() 354 comedi_check_trigger_arg_min(&pacer->next_div1, 2); in labpc_adc_timing() 355 comedi_check_trigger_arg_max(&pacer->next_div1, in labpc_adc_timing() 358 base_period = pacer->osc_base * pacer->next_div1; in labpc_adc_timing() 364 pacer->next_div = DIV_ROUND_CLOSEST(convert_period, in labpc_adc_timing() 366 pacer->next_div2 = DIV_ROUND_CLOSEST(scan_period, in labpc_adc_timing() 370 pacer->next_div = DIV_ROUND_UP(convert_period, in labpc_adc_timing() 372 pacer->next_div2 = DIV_ROUND_UP(scan_period, in labpc_adc_timing() [all …]
|
D | cb_pcimdas.c | 367 dev->pacer = comedi_8254_init(devpriv->BADR3 + PCIMDAS_8254_BASE, in cb_pcimdas_auto_attach() 370 if (!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()
|
D | adl_pci9118.c | 398 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() 919 struct comedi_8254 *pacer = dev->pacer; in pci9118_ai_cmd() local 1040 comedi_8254_cascade_ns_to_timer(pacer, &cmd->convert_arg, in pci9118_ai_cmd() [all …]
|
D | aio_aio12_8.c | 209 dev->pacer = comedi_8254_init(dev->iobase + AIO12_8_8254_BASE_REG, in aio_aio12_8_attach() 211 if (!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()
|
D | ni_at_ao.c | 273 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_init(dev->iobase + ATAO_82C53_BASE, in atao_attach() 308 if (!dev->pacer) in atao_attach()
|
D | cb_das16_cs.c | 366 dev->pacer = comedi_8254_init(dev->iobase + DAS16CS_TIMER_BASE, in das16cs_auto_attach() 368 if (!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()
|
D | adv_pci1710.c | 383 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() 770 dev->pacer = comedi_8254_init(dev->iobase + PCI171X_TIMER_BASE, in pci1710_auto_attach() 772 if (!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 …]
|
D | pcl816.c | 385 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_init(dev->iobase + PCL816_TIMER_BASE, in pcl816_attach() 620 if (!dev->pacer) in pcl816_attach()
|
D | pcl711.c | 327 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_init(dev->iobase + PCL711_TIMER_BASE, in pcl711_attach() 434 if (!dev->pacer) in pcl711_attach()
|
D | das16m1.c | 221 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_init(dev->iobase + DAS16M1_8254_IOBASE2, in das16m1_attach() 534 if (!dev->pacer) in das16m1_attach()
|
D | das800.c | 347 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_init(dev->iobase + DAS800_8254, in das800_attach() 677 if (!dev->pacer) in das800_attach()
|
D | das6402.c | 235 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_init(dev->iobase + DAS6402_TIMER_BASE, in das6402_attach() 595 if (!dev->pacer) in das6402_attach()
|
D | adl_pci9111.c | 305 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_init(dev->iobase + PCI9111_8254_BASE_REG, in pci9111_auto_attach() 652 if (!dev->pacer) in pci9111_auto_attach()
|
D | das16.c | 662 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_init(dev->iobase + DAS16_TIMER_BASE_REG, in das16_attach() 1072 if (!dev->pacer) in das16_attach()
|
D | das08.c | 442 dev->pacer = comedi_8254_init(dev->iobase + board->i8254_offset, in das08_common_attach() 444 if (!dev->pacer) in das08_common_attach() 447 comedi_8254_subdevice_init(s, dev->pacer); in das08_common_attach()
|
D | das1800.c | 557 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_init(dev->iobase + DAS1800_COUNTER, in das1800_attach() 1238 if (!dev->pacer) in das1800_attach()
|
D | pcl812.c | 692 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 = comedi_8254_init(dev->iobase + PCL812_TIMER_BASE, in pcl812_attach() 1149 if (!dev->pacer) in pcl812_attach()
|
D | pcl818.c | 688 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_init(dev->iobase + PCL818_TIMER_BASE, in pcl818_attach() 1020 if (!dev->pacer) in pcl818_attach()
|
D | amplc_pci230.c | 688 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() 2478 dev->pacer = comedi_8254_init(dev->iobase + PCI230_Z2_CT_BASE, in pci230_auto_attach() [all …]
|
D | amplc_pci224.c | 788 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_init(devpriv->iobase1 + PCI224_Z2_BASE, in pci224_auto_attach() 1056 if (!dev->pacer) in pci224_auto_attach()
|
D | ni_at_a2150.c | 529 comedi_8254_load(dev->pacer, 2, 72, I8254_MODE0 | I8254_BINARY); in a2150_ai_cmd() 710 dev->pacer = comedi_8254_init(dev->iobase + I8253_BASE_REG, in a2150_attach() 712 if (!dev->pacer) in a2150_attach()
|
D | cb_pcidas.c | 762 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_init(dev->iobase + PCIDAS_AI_8254_BASE, in cb_pcidas_auto_attach() 1293 if (!dev->pacer) in cb_pcidas_auto_attach()
|
D | adv_pci_dio.c | 667 dev->pacer = comedi_8254_init(dev->iobase + in pci_dio_auto_attach() 670 if (!dev->pacer) in pci_dio_auto_attach() 673 comedi_8254_subdevice_init(s, dev->pacer); in pci_dio_auto_attach()
|
D | rtd520.c | 1292 dev->pacer = comedi_8254_mm_init(dev->mmio + LAS0_8254_TIMER_BASE, in rtd_auto_attach() 1294 if (!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-6.6.21/drivers/comedi/ |
D | drivers.c | 180 kfree(dev->pacer); in comedi_device_detach_cleanup() 182 dev->pacer = NULL; in comedi_device_detach_cleanup()
|