Home
last modified time | relevance | path

Searched refs:n_chan (Results 1 – 25 of 119) sorted by relevance

12345

/linux/drivers/comedi/drivers/
H A Dpcl730.c224 if ((mask & 0xff00) && (s->n_chan > 8)) in pcl730_do_insn_bits()
226 if ((mask & 0xff0000) && (s->n_chan > 16)) in pcl730_do_insn_bits()
228 if ((mask & 0xff000000) && (s->n_chan > 24)) in pcl730_do_insn_bits()
244 if (s->n_chan > 8) in pcl730_get_bits()
246 if (s->n_chan > 16) in pcl730_get_bits()
248 if (s->n_chan > 24) in pcl730_get_bits()
287 s->n_chan = board->n_iso_out_chan; in pcl730_attach()
303 s->n_chan = board->n_iso_in_chan; in pcl730_attach()
317 s->n_chan = board->n_ttl_chan; in pcl730_attach()
327 s->n_chan = board->n_ttl_chan; in pcl730_attach()
H A Daddi_apci_16xx.c33 int n_chan; member
39 .n_chan = 48, /* 2 subdevices */
43 .n_chan = 96, /* 3 subdevices */
116 n_subdevs = board->n_chan / 32; in apci16xx_auto_attach()
117 if ((n_subdevs * 32) < board->n_chan) { in apci16xx_auto_attach()
118 last = board->n_chan - (n_subdevs * 32); in apci16xx_auto_attach()
133 s->n_chan = ((i * 32) < board->n_chan) ? 32 : last; in apci16xx_auto_attach()
H A Dadv_pci_dio.c415 if (s->n_chan > 8) in pci_dio_insn_bits_di_b()
417 if (s->n_chan > 16) in pci_dio_insn_bits_di_b()
419 if (s->n_chan > 24) in pci_dio_insn_bits_di_b()
434 if (s->n_chan > 16) in pci_dio_insn_bits_di_w()
450 if (s->n_chan > 8) in pci_dio_insn_bits_do_b()
452 if (s->n_chan > 16) in pci_dio_insn_bits_do_b()
454 if (s->n_chan > 24) in pci_dio_insn_bits_do_b()
473 if (s->n_chan > 16) in pci_dio_insn_bits_do_w()
598 s->n_chan = d->chans; in pci_dio_auto_attach()
615 s->n_chan = d->chans; in pci_dio_auto_attach()
[all …]
H A Dadl_pci8164.c80 s->n_chan = 4; in adl_pci8164_auto_attach()
91 s->n_chan = 4; in adl_pci8164_auto_attach()
102 s->n_chan = 4; in adl_pci8164_auto_attach()
113 s->n_chan = 4; in adl_pci8164_auto_attach()
H A Dmultiq3.c269 s->n_chan = 8; in multiq3_attach()
278 s->n_chan = 8; in multiq3_attach()
291 s->n_chan = 16; in multiq3_attach()
300 s->n_chan = 16; in multiq3_attach()
309 s->n_chan = it->options[2] * 2; in multiq3_attach()
315 for (i = 0; i < s->n_chan; i++) in multiq3_attach()
H A Dadq12b.c201 s->n_chan = 8; in adq12b_attach()
204 s->n_chan = 16; in adq12b_attach()
215 s->n_chan = 5; in adq12b_attach()
224 s->n_chan = 8; in adq12b_attach()
H A Ddyna_pci10xx.c189 s->n_chan = 16; in dyna_pci10xx_auto_attach()
198 s->n_chan = 1; in dyna_pci10xx_auto_attach()
207 s->n_chan = 16; in dyna_pci10xx_auto_attach()
216 s->n_chan = 16; in dyna_pci10xx_auto_attach()
H A Dpcl818.c571 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
577 if (n_chan < 1) { in check_channel_list()
582 if (n_chan > 1) { in check_channel_list()
586 for (i = 1, seglen = 1; i < n_chan; i++, seglen++) { in check_channel_list()
592 (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list()
606 for (i = 0; i < n_chan; i++) { in check_channel_list()
1039 s->n_chan = 16; in pcl818_attach()
1042 s->n_chan = 8; in pcl818_attach()
1053 s->len_chanlist = s->n_chan; in pcl818_attach()
1064 s->n_chan = board->n_aochan; in pcl818_attach()
[all …]
H A Dcomedi_parport.c249 s->n_chan = 8; in parport_attach()
259 s->n_chan = 5; in parport_attach()
268 s->n_chan = 4; in parport_attach()
279 s->n_chan = 1; in parport_attach()
H A Dadl_pci7x3x.c301 if (s->n_chan == 16) { in adl_pci7x3x_do_insn_bits()
402 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
417 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
435 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
450 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
470 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
H A Ddt2801.c584 s->n_chan = n_ai_chans; in dt2801_attach()
587 s->n_chan = board->ad_chan; in dt2801_attach()
589 s->n_chan = board->ad_chan / 2; in dt2801_attach()
599 s->n_chan = 2; in dt2801_attach()
614 s->n_chan = 8; in dt2801_attach()
624 s->n_chan = 8; in dt2801_attach()
H A Dadl_pci6208.c130 s->n_chan = 16; /* Only 8 usable on PCI-6208 */ in pci6208_auto_attach()
143 s->n_chan = 4; in pci6208_auto_attach()
152 s->n_chan = 4; in pci6208_auto_attach()
H A Dadv_pci1724.c142 s->n_chan = 32; in adv_pci1724_auto_attach()
156 s->n_chan = 32; in adv_pci1724_auto_attach()
169 s->n_chan = 32; in adv_pci1724_auto_attach()
H A Dcb_pcimdas.c383 s->n_chan = 16; in cb_pcimdas_auto_attach()
386 s->n_chan = 8; in cb_pcimdas_auto_attach()
397 s->n_chan = 2; in cb_pcimdas_auto_attach()
416 s->n_chan = 4; in cb_pcimdas_auto_attach()
425 s->n_chan = 4; in cb_pcimdas_auto_attach()
H A Ddas08.c368 s->n_chan = 8; in das08_common_attach()
382 s->n_chan = 2; in das08_common_attach()
392 for (i = 0; i < s->n_chan; i++) { in das08_common_attach()
405 s->n_chan = board->di_nchan; in das08_common_attach()
419 s->n_chan = board->do_nchan; in das08_common_attach()
H A Dicp_multi.c267 s->n_chan = 16; in icp_multi_auto_attach()
276 s->n_chan = 4; in icp_multi_auto_attach()
289 s->n_chan = 16; in icp_multi_auto_attach()
298 s->n_chan = 8; in icp_multi_auto_attach()
H A Dmf6x4.c228 s->n_chan = 8; in mf6x4_auto_attach()
237 s->n_chan = 8; in mf6x4_auto_attach()
250 s->n_chan = 8; in mf6x4_auto_attach()
259 s->n_chan = 8; in mf6x4_auto_attach()
H A Ddas6402.c278 if (aref0 == AREF_DIFF && chan > (s->n_chan / 2)) { in das6402_ai_check_chanlist()
386 if (aref == AREF_DIFF && chan > (s->n_chan / 2)) in das6402_ai_insn_read()
606 s->n_chan = 64; in das6402_attach()
613 s->len_chanlist = s->n_chan; in das6402_attach()
623 s->n_chan = 2; in das6402_attach()
637 s->n_chan = 8; in das6402_attach()
646 s->n_chan = 8; in das6402_attach()
H A Drti800.c286 s->n_chan = (it->options[2] ? 16 : 8); in rti800_attach()
298 s->n_chan = 2; in rti800_attach()
322 s->n_chan = 8; in rti800_attach()
331 s->n_chan = 8; in rti800_attach()
H A Dadv_pci1723.c152 s->n_chan = 8; in pci1723_auto_attach()
163 for (i = 0; i < s->n_chan; i++) { in pci1723_auto_attach()
179 s->n_chan = 16; in pci1723_auto_attach()
H A Dpcmmio.c248 unsigned int chanmask = (1 << s->n_chan) - 1; in pcmmio_dio_insn_bits()
402 bits &= ((1 << s->n_chan) - 1); in pcmmio_start_intr()
705 s->n_chan = 16; in pcmmio_attach()
720 s->n_chan = 8; in pcmmio_attach()
738 s->n_chan = 24; in pcmmio_attach()
747 s->len_chanlist = s->n_chan; in pcmmio_attach()
757 s->n_chan = 24; in pcmmio_attach()
H A Daddi_apci_3501.c335 s->n_chan = ao_n_chan; in apci3501_auto_attach()
351 s->n_chan = 2; in apci3501_auto_attach()
360 s->n_chan = 2; in apci3501_auto_attach()
373 s->n_chan = 256; in apci3501_auto_attach()
H A Dadv_pci1710.c187 unsigned int next_chan = (chan0 + 1) % s->n_chan; in pci1710_ai_check_chanlist()
214 next_chan = (next_chan + 1) % s->n_chan; in pci1710_ai_check_chanlist()
249 unsigned int n_chan, in pci1710_ai_setup_chanlist() argument
277 for ( ; i < n_chan; i++) /* store remainder of channel list */ in pci1710_ai_setup_chanlist()
807 s->n_chan = board->is_pci1713 ? 32 : 16; in pci1710_auto_attach()
814 s->len_chanlist = s->n_chan; in pci1710_auto_attach()
833 s->n_chan = 2; in pci1710_auto_attach()
848 s->n_chan = 16; in pci1710_auto_attach()
857 s->n_chan = 16; in pci1710_auto_attach()
/linux/drivers/comedi/kcomedilib/
H A Dkcomedilib_main.c171 unsigned int n_chan; in comedi_dio_bitfield2() local
176 n_chan = comedi_get_n_channels(dev, subdev); in comedi_dio_bitfield2()
177 if (base_channel >= n_chan) in comedi_dio_bitfield2()
193 if (n_chan <= 32) { in comedi_dio_bitfield2()
238 n = dev->subdevices[subdevice].n_chan; in comedi_get_n_channels()
/linux/drivers/comedi/
H A Drange.c66 if (chan >= s->n_chan) in do_rangeinfo_ioctl()
117 else if (s->range_table_list && chan < s->n_chan) in comedi_check_chanlist()
121 if (chan >= s->n_chan || in comedi_check_chanlist()

12345