/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | addi_apci_16xx.c | 34 int n_chan; member 40 .n_chan = 48, /* 2 subdevices */ 44 .n_chan = 96, /* 3 subdevices */ 117 n_subdevs = board->n_chan / 32; in apci16xx_auto_attach() 118 if ((n_subdevs * 32) < board->n_chan) { in apci16xx_auto_attach() 119 last = board->n_chan - (n_subdevs * 32); in apci16xx_auto_attach() 134 s->n_chan = ((i * 32) < board->n_chan) ? 32 : last; in apci16xx_auto_attach()
|
D | pcl730.c | 224 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()
|
D | adv_pci_dio.c | 217 if (s->n_chan > 8) in pci_dio_insn_bits_di_b() 219 if (s->n_chan > 16) in pci_dio_insn_bits_di_b() 221 if (s->n_chan > 24) in pci_dio_insn_bits_di_b() 236 if (s->n_chan > 16) in pci_dio_insn_bits_di_w() 252 if (s->n_chan > 8) in pci_dio_insn_bits_do_b() 254 if (s->n_chan > 16) in pci_dio_insn_bits_do_b() 256 if (s->n_chan > 24) in pci_dio_insn_bits_do_b() 275 if (s->n_chan > 16) in pci_dio_insn_bits_do_w() 381 s->n_chan = d->chans; in pci_dio_auto_attach() 397 s->n_chan = d->chans; in pci_dio_auto_attach() [all …]
|
D | adl_pci7x3x.c | 117 if (s->n_chan == 16) { in adl_pci7x3x_do_insn_bits() 181 s->n_chan = nchan; in adl_pci7x3x_auto_attach() 196 s->n_chan = nchan; in adl_pci7x3x_auto_attach() 214 s->n_chan = nchan; in adl_pci7x3x_auto_attach() 229 s->n_chan = nchan; in adl_pci7x3x_auto_attach()
|
D | adl_pci8164.c | 81 s->n_chan = 4; in adl_pci8164_auto_attach() 92 s->n_chan = 4; in adl_pci8164_auto_attach() 103 s->n_chan = 4; in adl_pci8164_auto_attach() 114 s->n_chan = 4; in adl_pci8164_auto_attach()
|
D | multiq3.c | 270 s->n_chan = 8; in multiq3_attach() 279 s->n_chan = 8; in multiq3_attach() 292 s->n_chan = 16; in multiq3_attach() 301 s->n_chan = 16; in multiq3_attach() 310 s->n_chan = it->options[2] * 2; in multiq3_attach() 316 for (i = 0; i < s->n_chan; i++) in multiq3_attach()
|
D | adq12b.c | 202 s->n_chan = 8; in adq12b_attach() 205 s->n_chan = 16; in adq12b_attach() 216 s->n_chan = 5; in adq12b_attach() 225 s->n_chan = 8; in adq12b_attach()
|
D | dyna_pci10xx.c | 190 s->n_chan = 16; in dyna_pci10xx_auto_attach() 199 s->n_chan = 1; in dyna_pci10xx_auto_attach() 208 s->n_chan = 16; in dyna_pci10xx_auto_attach() 217 s->n_chan = 16; in dyna_pci10xx_auto_attach()
|
D | comedi_parport.c | 249 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()
|
D | pcl818.c | 573 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument 579 if (n_chan < 1) { in check_channel_list() 584 if (n_chan > 1) { in check_channel_list() 588 for (i = 1, seglen = 1; i < n_chan; i++, seglen++) { in check_channel_list() 594 (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list() 608 for (i = 0; i < n_chan; i++) { in check_channel_list() 1041 s->n_chan = 16; in pcl818_attach() 1044 s->n_chan = 8; in pcl818_attach() 1055 s->len_chanlist = s->n_chan; in pcl818_attach() 1066 s->n_chan = board->n_aochan; in pcl818_attach() [all …]
|
D | adl_pci6208.c | 131 s->n_chan = 16; /* Only 8 usable on PCI-6208 */ in pci6208_auto_attach() 144 s->n_chan = 4; in pci6208_auto_attach() 153 s->n_chan = 4; in pci6208_auto_attach()
|
D | dt2801.c | 584 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()
|
D | adv_pci1724.c | 143 s->n_chan = 32; in adv_pci1724_auto_attach() 157 s->n_chan = 32; in adv_pci1724_auto_attach() 170 s->n_chan = 32; in adv_pci1724_auto_attach()
|
D | cb_pcimdas.c | 384 s->n_chan = 16; in cb_pcimdas_auto_attach() 387 s->n_chan = 8; in cb_pcimdas_auto_attach() 398 s->n_chan = 2; in cb_pcimdas_auto_attach() 417 s->n_chan = 4; in cb_pcimdas_auto_attach() 426 s->n_chan = 4; in cb_pcimdas_auto_attach()
|
D | das08.c | 370 s->n_chan = 8; in das08_common_attach() 384 s->n_chan = 2; in das08_common_attach() 394 for (i = 0; i < s->n_chan; i++) { in das08_common_attach() 407 s->n_chan = board->di_nchan; in das08_common_attach() 421 s->n_chan = board->do_nchan; in das08_common_attach()
|
D | icp_multi.c | 268 s->n_chan = 16; in icp_multi_auto_attach() 277 s->n_chan = 4; in icp_multi_auto_attach() 290 s->n_chan = 16; in icp_multi_auto_attach() 299 s->n_chan = 8; in icp_multi_auto_attach()
|
D | mf6x4.c | 229 s->n_chan = 8; in mf6x4_auto_attach() 238 s->n_chan = 8; in mf6x4_auto_attach() 251 s->n_chan = 8; in mf6x4_auto_attach() 260 s->n_chan = 8; in mf6x4_auto_attach()
|
D | das6402.c | 280 if (aref0 == AREF_DIFF && chan > (s->n_chan / 2)) { in das6402_ai_check_chanlist() 388 if (aref == AREF_DIFF && chan > (s->n_chan / 2)) in das6402_ai_insn_read() 608 s->n_chan = 64; in das6402_attach() 615 s->len_chanlist = s->n_chan; in das6402_attach() 625 s->n_chan = 2; in das6402_attach() 639 s->n_chan = 8; in das6402_attach() 648 s->n_chan = 8; in das6402_attach()
|
D | rti800.c | 286 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()
|
D | contec_pci_dio.c | 71 s->n_chan = 16; in contec_auto_attach() 79 s->n_chan = 16; in contec_auto_attach()
|
D | adv_pci1723.c | 153 s->n_chan = 8; in pci1723_auto_attach() 164 for (i = 0; i < s->n_chan; i++) { in pci1723_auto_attach() 180 s->n_chan = 16; in pci1723_auto_attach()
|
D | addi_apci_3501.c | 335 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()
|
D | pcmmio.c | 249 unsigned int chanmask = (1 << s->n_chan) - 1; in pcmmio_dio_insn_bits() 403 bits &= ((1 << s->n_chan) - 1); in pcmmio_start_intr() 706 s->n_chan = 16; in pcmmio_attach() 721 s->n_chan = 8; in pcmmio_attach() 739 s->n_chan = 24; in pcmmio_attach() 748 s->len_chanlist = s->n_chan; in pcmmio_attach() 758 s->n_chan = 24; in pcmmio_attach()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/kcomedilib/ |
D | kcomedilib_main.c | 171 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()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
D | range.c | 66 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()
|