Home
last modified time | relevance | path

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

12345

/drivers/staging/comedi/drivers/
Daddi_apci_16xx.c50 int n_chan; member
56 .n_chan = 48, /* 2 subdevices */
60 .n_chan = 96, /* 3 subdevices */
156 n_subdevs = board->n_chan / 32; in apci16xx_auto_attach()
157 if ((n_subdevs * 32) < board->n_chan) { in apci16xx_auto_attach()
158 last = board->n_chan - (n_subdevs * 32); in apci16xx_auto_attach()
173 s->n_chan = ((i * 32) < board->n_chan) ? 32 : last; in apci16xx_auto_attach()
Dpcm3730.c71 s->n_chan = 8; in pcm3730_attach()
80 s->n_chan = 8; in pcm3730_attach()
89 s->n_chan = 8; in pcm3730_attach()
98 s->n_chan = 8; in pcm3730_attach()
107 s->n_chan = 8; in pcm3730_attach()
116 s->n_chan = 8; in pcm3730_attach()
Dicp_multi.c133 unsigned int *chanlist, unsigned int n_chan) in setup_channel_list() argument
139 devpriv->act_chanlist_len = n_chan; in setup_channel_list()
142 for (i = 0; i < n_chan; i++) { in setup_channel_list()
429 unsigned int *chanlist, unsigned int n_chan)
434 if (n_chan < 1) {
439 for (i = 0; i < n_chan; i++) {
448 if (CR_CHAN(chanlist[i]) > s->n_chan) {
533 s->n_chan = 16; in icp_multi_auto_attach()
542 s->n_chan = 4; in icp_multi_auto_attach()
552 s->n_chan = 16; in icp_multi_auto_attach()
[all …]
Dpoc.c49 int n_chan; member
160 s->n_chan = board->n_chan; in poc_attach()
178 .n_chan = 2,
187 .n_chan = 32,
195 .n_chan = 32,
Daddi_apci_3120.c131 s->n_chan = this_board->i_NbrAiChannel; in apci3120_auto_attach()
134 s->n_chan = this_board->i_NbrAiChannelDiff; in apci3120_auto_attach()
155 s->n_chan = this_board->i_NbrAoChannel; in apci3120_auto_attach()
168 s->n_chan = this_board->i_NbrDiChannel; in apci3120_auto_attach()
180 s->n_chan = this_board->i_NbrDoChannel; in apci3120_auto_attach()
191 s->n_chan = 1; in apci3120_auto_attach()
Dpcl730.c82 s->n_chan = 16; in pcl730_attach()
92 s->n_chan = 16; in pcl730_attach()
102 s->n_chan = 16; in pcl730_attach()
112 s->n_chan = 16; in pcl730_attach()
Dmultiq3.c211 for (chan = 0; chan < s->n_chan; chan++) { in encoder_reset()
249 s->n_chan = 8; in multiq3_attach()
258 s->n_chan = 8; in multiq3_attach()
268 s->n_chan = 16; in multiq3_attach()
277 s->n_chan = 16; in multiq3_attach()
287 s->n_chan = it->options[2] * 2; in multiq3_attach()
Dadl_pci8164.c94 s->n_chan = 4; in adl_pci8164_auto_attach()
105 s->n_chan = 4; in adl_pci8164_auto_attach()
116 s->n_chan = 4; in adl_pci8164_auto_attach()
127 s->n_chan = 4; in adl_pci8164_auto_attach()
Dpcl818.c309 unsigned int *chanlist, unsigned int n_chan,
313 unsigned int *chanlist, unsigned int n_chan);
891 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
897 if (n_chan < 1) { in check_channel_list()
902 if (n_chan > 1) { in check_channel_list()
906 for (i = 1, seglen = 1; i < n_chan; i++, seglen++) { in check_channel_list()
916 (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list()
929 for (i = 0, segpos = 0; i < n_chan; i++) { in check_channel_list()
952 unsigned int *chanlist, unsigned int n_chan, in setup_channel_list() argument
1331 s->n_chan = board->n_aichan_se; in pcl818_attach()
[all …]
Dadq12b.c246 s->n_chan = 8; in adq12b_attach()
249 s->n_chan = 16; in adq12b_attach()
267 s->n_chan = 5; in adq12b_attach()
276 s->n_chan = 8; in adq12b_attach()
Dcb_pcimdas.c116 maxchans = s->n_chan / 2; in cb_pcimdas_ai_rinsn()
118 maxchans = s->n_chan; in cb_pcimdas_ai_rinsn()
249 s->n_chan = 16; in cb_pcimdas_auto_attach()
260 s->n_chan = 2; in cb_pcimdas_auto_attach()
Dadl_pci7x3x.c197 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
212 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
230 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
245 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
Dacl7225b.c95 s->n_chan = 16; in acl7225b_attach()
105 s->n_chan = 16; in acl7225b_attach()
115 s->n_chan = 16; in acl7225b_attach()
Ddyna_pci10xx.c211 s->n_chan = 16; in dyna_pci10xx_auto_attach()
221 s->n_chan = 16; in dyna_pci10xx_auto_attach()
231 s->n_chan = 16; in dyna_pci10xx_auto_attach()
241 s->n_chan = 16; in dyna_pci10xx_auto_attach()
Dadv_pci1710.c340 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
346 if (n_chan < 1) { in check_channel_list()
351 if (n_chan == 1) in check_channel_list()
355 for (i = 1, seglen = 1; i < n_chan; i++, seglen++) { in check_channel_list()
363 nowmustbechan = (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list()
365 nowmustbechan = (nowmustbechan + 1) % s->n_chan; in check_channel_list()
375 for (i = 0, segpos = 0; i < n_chan; i++) { in check_channel_list()
392 unsigned int *chanlist, unsigned int n_chan, in setup_channel_list() argument
415 for ( ; i < n_chan; i++) { /* store remainder of channel list */ in setup_channel_list()
1280 s->n_chan = this_board->n_aichan; in pci1710_auto_attach()
[all …]
Ddas08.c371 for (n = 0; n < s->n_chan; n++) in das08_ao_initialize()
488 s->n_chan = 8; in das08_common_attach()
502 s->n_chan = 2; in das08_common_attach()
517 s->n_chan = thisboard->di_nchan; in das08_common_attach()
531 s->n_chan = thisboard->do_nchan; in das08_common_attach()
555 s->n_chan = 3; in das08_common_attach()
Dcomedi_parport.c295 s->n_chan = 8; in parport_attach()
304 s->n_chan = 5; in parport_attach()
312 s->n_chan = 4; in parport_attach()
322 s->n_chan = 1; in parport_attach()
Daddi_apci_3501.c372 s->n_chan = ao_n_chan; in apci3501_auto_attach()
384 s->n_chan = 2; in apci3501_auto_attach()
393 s->n_chan = 2; in apci3501_auto_attach()
402 s->n_chan = 1; in apci3501_auto_attach()
414 s->n_chan = 256; in apci3501_auto_attach()
Ddt2801.c642 s->n_chan = n_ai_chans; in dt2801_attach()
645 s->n_chan = board->ad_chan; in dt2801_attach()
647 s->n_chan = board->ad_chan / 2; in dt2801_attach()
657 s->n_chan = 2; in dt2801_attach()
669 s->n_chan = 8; in dt2801_attach()
679 s->n_chan = 8; in dt2801_attach()
Dserial2002.c364 s->n_chan = chan; in serial2002_setup_subdevice()
367 maxdata_list = kmalloc(sizeof(unsigned int) * s->n_chan, GFP_KERNEL); in serial2002_setup_subdevice()
379 s->n_chan, GFP_KERNEL); in serial2002_setup_subdevice()
743 s->n_chan = 0; in serial2002_attach()
752 s->n_chan = 0; in serial2002_attach()
761 s->n_chan = 0; in serial2002_attach()
770 s->n_chan = 0; in serial2002_attach()
780 s->n_chan = 0; in serial2002_attach()
Dpcmmio.c263 for (byte_no = 0; byte_no < s->n_chan / CHANS_PER_PORT; ++byte_no) { in pcmmio_dio_insn_bits()
960 if (chan < s->n_chan) in ao_rinsn()
993 if (chan < s->n_chan) { in ao_winsn()
1086 s->n_chan = 16; in pcmmio_attach()
1087 s->len_chanlist = s->n_chan; in pcmmio_attach()
1101 s->n_chan = 8; in pcmmio_attach()
1102 s->len_chanlist = s->n_chan; in pcmmio_attach()
1123 s->n_chan = min(chans_left, MAX_CHANS_PER_SUBDEV); in pcmmio_attach()
1155 s->n_chan - subpriv->dio.intr.first_chan; in pcmmio_attach()
1166 chans_left -= s->n_chan; in pcmmio_attach()
Dcomedi_test.c410 s->n_chan = N_CHANS; in waveform_attach()
413 s->len_chanlist = s->n_chan * 2; in waveform_attach()
424 s->n_chan = N_CHANS; in waveform_attach()
427 s->len_chanlist = s->n_chan * 2; in waveform_attach()
434 for (i = 0; i < s->n_chan; i++) in waveform_attach()
/drivers/staging/comedi/drivers/addi-data/
Daddi_common.c183 s->n_chan = in addi_auto_attach()
187 s->n_chan = this_board->i_NbrAiChannelDiff; in addi_auto_attach()
214 s->n_chan = devpriv->s_EeParameters.i_NbrAoChannel; in addi_auto_attach()
229 s->n_chan = devpriv->s_EeParameters.i_NbrDiChannel; in addi_auto_attach()
248 s->n_chan = devpriv->s_EeParameters.i_NbrDoChannel; in addi_auto_attach()
269 s->n_chan = 1; in addi_auto_attach()
288 s->n_chan = this_board->i_NbrTTLChannel; in addi_auto_attach()
306 s->n_chan = 256; in addi_auto_attach()
Dhwdrv_APCI1710.c129 s->n_chan = 3; in i_ADDI_AttachPCI1710()
144 s->n_chan = 7; in i_ADDI_AttachPCI1710()
158 s->n_chan = 4; in i_ADDI_AttachPCI1710()
172 s->n_chan = 3; in i_ADDI_AttachPCI1710()
187 s->n_chan = 8; in i_ADDI_AttachPCI1710()
201 s->n_chan = 8; in i_ADDI_AttachPCI1710()
216 s->n_chan = 4; in i_ADDI_AttachPCI1710()
229 s->n_chan = 4; in i_ADDI_AttachPCI1710()
243 s->n_chan = 500; in i_ADDI_AttachPCI1710()
/drivers/staging/comedi/
Drange.c83 if (chan >= s->n_chan) in do_rangeinfo_ioctl()
148 if (CR_CHAN(chanlist[i]) >= s->n_chan || in comedi_check_chanlist()
153 i, chanlist[i], s->n_chan, in comedi_check_chanlist()
160 if (chan >= s->n_chan || in comedi_check_chanlist()

12345