/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | pcl724.c | 142 int ret, i, n_subdevices; in pcl724_attach() local 192 n_subdevices = this_board->numofports; in pcl724_attach() 195 n_subdevices = 4; /* PCL-724 in 96 DIO configuration */ in pcl724_attach() 197 ret = alloc_subdevices(dev, n_subdevices); in pcl724_attach() 201 for (i = 0; i < dev->n_subdevices; i++) { in pcl724_attach() 223 for (i = 0; i < dev->n_subdevices; i++) in pcl724_detach()
|
D | pcm3724.c | 271 int ret, i, n_subdevices; in pcm3724_attach() local 294 n_subdevices = this_board->numofports; in pcm3724_attach() 296 ret = alloc_subdevices(dev, n_subdevices); in pcm3724_attach() 300 for (i = 0; i < dev->n_subdevices; i++) { in pcm3724_attach() 313 for (i = 0; i < dev->n_subdevices; i++) in pcm3724_detach()
|
D | adv_pci1723.c | 330 int ret, subdev, n_subdevices; in pci1723_attach() local 397 n_subdevices = 0; in pci1723_attach() 400 n_subdevices++; in pci1723_attach() 402 n_subdevices++; in pci1723_attach() 404 ret = alloc_subdevices(dev, n_subdevices); in pci1723_attach()
|
D | icp_multi.c | 921 int ret, subdev, n_subdevices; in icp_multi_attach() local 986 n_subdevices = 0; in icp_multi_attach() 988 n_subdevices++; in icp_multi_attach() 990 n_subdevices++; in icp_multi_attach() 992 n_subdevices++; in icp_multi_attach() 994 n_subdevices++; in icp_multi_attach() 996 n_subdevices++; in icp_multi_attach() 998 ret = alloc_subdevices(dev, n_subdevices); in icp_multi_attach()
|
D | adv_pci_dio.c | 1126 int ret, subdev, n_subdevices, i, j; in pci_dio_attach() local 1178 n_subdevices = 4; /* 8 IDI, 8 IDO, 2 PWM, 8 CNT */ in pci_dio_attach() 1180 n_subdevices = 0; in pci_dio_attach() 1183 n_subdevices++; in pci_dio_attach() 1186 n_subdevices++; in pci_dio_attach() 1188 n_subdevices += this_board->sdio[i].regs; in pci_dio_attach() 1190 n_subdevices++; in pci_dio_attach() 1193 n_subdevices++; in pci_dio_attach() 1196 ret = alloc_subdevices(dev, n_subdevices); in pci_dio_attach() 1291 for (i = 0; i < dev->n_subdevices; i++) { in pci_dio_detach()
|
D | adv_pci1710.c | 1375 int ret, subdev, n_subdevices; in pci1710_attach() local 1459 n_subdevices = 0; in pci1710_attach() 1461 n_subdevices++; in pci1710_attach() 1463 n_subdevices++; in pci1710_attach() 1465 n_subdevices++; in pci1710_attach() 1467 n_subdevices++; in pci1710_attach() 1469 n_subdevices++; in pci1710_attach() 1471 ret = alloc_subdevices(dev, n_subdevices); in pci1710_attach()
|
D | pcl812.c | 1370 int n_subdevices; in pcl812_attach() local 1459 n_subdevices = 0; in pcl812_attach() 1461 n_subdevices++; in pcl812_attach() 1463 n_subdevices++; in pcl812_attach() 1465 n_subdevices++; in pcl812_attach() 1467 n_subdevices++; in pcl812_attach() 1469 ret = alloc_subdevices(dev, n_subdevices); in pcl812_attach()
|
D | 8255.c | 426 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_attach() 453 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_detach()
|
D | comedi_test.c | 242 dev->n_subdevices = 2; in waveform_attach() 243 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in waveform_attach()
|
D | ni_pcidio.c | 1213 int n_subdevices; in nidio_attach() local 1246 n_subdevices = this_board->n_8255; in nidio_attach() 1248 n_subdevices = 1; in nidio_attach() 1250 ret = alloc_subdevices(dev, n_subdevices); in nidio_attach()
|
D | amplc_dio200.c | 1414 for (n = 0; n < dev->n_subdevices; n++) { in dio200_attach() 1458 if (sdx >= 0 && sdx < dev->n_subdevices) in dio200_attach() 1514 for (n = 0; n < dev->n_subdevices; n++) { in dio200_detach()
|
D | s526.c | 346 dev->n_subdevices = 4; in s526_attach() 347 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in s526_attach()
|
D | pcmuio.c | 357 for (sdev_no = 0; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmuio_attach() 759 s < dev->subdevices + dev->n_subdevices; in interrupt_pcmuio()
|
D | unioxx5.c | 284 for (i = 0; i < dev->n_subdevices; i++) { in unioxx5_detach()
|
D | pcmmio.c | 473 for (; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmmio_attach() 896 s < dev->subdevices + dev->n_subdevices; in interrupt_pcmmio()
|
D | ni_660x.c | 1096 dev->n_subdevices = 2 + NI_660X_MAX_NUM_COUNTERS; in ni_660x_attach() 1098 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in ni_660x_attach()
|
D | usbduxsigma.c | 2684 dev->n_subdevices = 4; in usbduxsigma_attach() 2687 dev->n_subdevices = 3; in usbduxsigma_attach() 2691 ret = alloc_subdevices(dev, dev->n_subdevices); in usbduxsigma_attach()
|
/linux-3.4.99/drivers/staging/comedi/kcomedilib/ |
D | kcomedilib_main.c | 89 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn() 178 if (subd > dev->n_subdevices) in comedi_find_subdevice_by_type() 181 for (; subd < dev->n_subdevices; subd++) { in comedi_find_subdevice_by_type()
|
/linux-3.4.99/drivers/staging/comedi/ |
D | comedi_fops.c | 326 if (bc.subdevice >= dev->n_subdevices || bc.subdevice < 0) in do_bufconfig_ioctl() 393 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl() 435 kcalloc(dev->n_subdevices, sizeof(struct comedi_subdinfo), in do_subdinfo_ioctl() 441 for (i = 0; i < dev->n_subdevices; i++) { in do_subdinfo_ioctl() 488 dev->n_subdevices * sizeof(struct comedi_subdinfo)); in do_subdinfo_ioctl() 518 if (it.subdev >= dev->n_subdevices) in do_chaninfo_ioctl() 585 if (bi.subdevice >= dev->n_subdevices || bi.subdevice < 0) in do_bufinfo_ioctl() 837 if (insn->subdev >= dev->n_subdevices) { in parse_insn() 867 if (insn->subdev >= dev->n_subdevices) { in parse_insn() 1051 if (user_cmd.subdev >= dev->n_subdevices) { in do_cmd_ioctl() [all …]
|
D | proc.c | 66 dev->board_name, dev->n_subdevices); in comedi_read()
|
D | comedidev.h | 217 int n_subdevices; member 360 dev->n_subdevices = num_subdevices; in alloc_subdevices()
|
D | range.c | 69 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
|
D | drivers.c | 65 for (i = 0; i < dev->n_subdevices; i++) { in cleanup_device() 75 dev->n_subdevices = 0; in cleanup_device() 235 for (i = 0; i < dev->n_subdevices; i++) { in postconfig()
|
/linux-3.4.99/drivers/staging/comedi/drivers/addi-data/ |
D | hwdrv_APCI1710.c | 63 int n_subdevices = 9; in i_ADDI_AttachPCI1710() local 66 ret = alloc_subdevices(dev, n_subdevices); in i_ADDI_AttachPCI1710()
|
D | addi_common.c | 2604 int ret, pages, i, n_subdevices; in i_ADDI_Attach() local 2795 n_subdevices = 7; in i_ADDI_Attach() 2796 ret = alloc_subdevices(dev, n_subdevices); in i_ADDI_Attach()
|