/linux-2.6.39/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 | 1104 int ret, subdev, n_subdevices, i, j; in pci_dio_attach() local 1160 n_subdevices = 4; /* 8 IDI, 8 IDO, 2 PWM, 8 CNT */ in pci_dio_attach() 1162 n_subdevices = 0; in pci_dio_attach() 1165 n_subdevices++; in pci_dio_attach() 1168 n_subdevices++; in pci_dio_attach() 1170 n_subdevices += this_board->sdio[i].regs; in pci_dio_attach() 1172 n_subdevices++; in pci_dio_attach() 1175 n_subdevices++; in pci_dio_attach() 1178 ret = alloc_subdevices(dev, n_subdevices); in pci_dio_attach() 1278 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 1461 n_subdevices = 0; 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 n_subdevices++; in pci1710_attach() 1473 ret = alloc_subdevices(dev, n_subdevices); in pci1710_attach()
|
D | pcl812.c | 1369 int n_subdevices; in pcl812_attach() local 1458 n_subdevices = 0; in pcl812_attach() 1460 n_subdevices++; in pcl812_attach() 1462 n_subdevices++; in pcl812_attach() 1464 n_subdevices++; in pcl812_attach() 1466 n_subdevices++; in pcl812_attach() 1468 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 | 1175 int n_subdevices; in nidio_attach() local 1208 n_subdevices = this_board->n_8255; in nidio_attach() 1210 n_subdevices = 1; in nidio_attach() 1212 ret = alloc_subdevices(dev, n_subdevices); in nidio_attach()
|
D | amplc_dio200.c | 1417 for (n = 0; n < dev->n_subdevices; n++) { in dio200_attach() 1461 if (sdx >= 0 && sdx < dev->n_subdevices) in dio200_attach() 1517 for (n = 0; n < dev->n_subdevices; n++) { in dio200_detach()
|
D | pcmuio.c | 357 for (sdev_no = 0; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmuio_attach() 757 s < dev->subdevices + dev->n_subdevices; in interrupt_pcmuio()
|
D | s526.c | 346 dev->n_subdevices = 4; in s526_attach() 347 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in s526_attach()
|
D | unioxx5.c | 277 for (i = 0; i < dev->n_subdevices; i++) { in unioxx5_detach()
|
D | pcmmio.c | 470 for (; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmmio_attach() 892 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 | usbdux.c | 2666 dev->n_subdevices = 5; in usbdux_attach() 2669 dev->n_subdevices = 4; in usbdux_attach() 2673 ret = alloc_subdevices(dev, dev->n_subdevices); in usbdux_attach()
|
/linux-2.6.39/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-2.6.39/drivers/staging/comedi/ |
D | comedi_fops.c | 318 if (bc.subdevice >= dev->n_subdevices || bc.subdevice < 0) in do_bufconfig_ioctl() 385 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl() 427 kcalloc(dev->n_subdevices, sizeof(struct comedi_subdinfo), in do_subdinfo_ioctl() 433 for (i = 0; i < dev->n_subdevices; i++) { in do_subdinfo_ioctl() 480 dev->n_subdevices * sizeof(struct comedi_subdinfo)); in do_subdinfo_ioctl() 510 if (it.subdev >= dev->n_subdevices) in do_chaninfo_ioctl() 577 if (bi.subdevice >= dev->n_subdevices || bi.subdevice < 0) in do_bufinfo_ioctl() 829 if (insn->subdev >= dev->n_subdevices) { in parse_insn() 859 if (insn->subdev >= dev->n_subdevices) { in parse_insn() 1043 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 | 220 int n_subdevices; member 362 dev->n_subdevices = num_subdevices; in alloc_subdevices()
|
D | range.c | 69 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
|
D | drivers.c | 66 for (i = 0; i < dev->n_subdevices; i++) { in cleanup_device() 76 dev->n_subdevices = 0; in cleanup_device() 236 for (i = 0; i < dev->n_subdevices; i++) { in postconfig()
|
/linux-2.6.39/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 | 2605 int ret, pages, i, n_subdevices; in i_ADDI_Attach() local 2783 n_subdevices = 7; in i_ADDI_Attach() 2784 ret = alloc_subdevices(dev, n_subdevices); in i_ADDI_Attach()
|