Home
last modified time | relevance | path

Searched refs:n_subdevices (Results 1 – 25 of 28) sorted by relevance

12

/linux-3.4.99/drivers/staging/comedi/drivers/
Dpcl724.c142 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()
Dpcm3724.c271 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()
Dadv_pci1723.c330 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()
Dicp_multi.c921 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()
Dadv_pci_dio.c1126 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()
Dadv_pci1710.c1375 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()
Dpcl812.c1370 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()
D8255.c426 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()
Dcomedi_test.c242 dev->n_subdevices = 2; in waveform_attach()
243 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in waveform_attach()
Dni_pcidio.c1213 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()
Damplc_dio200.c1414 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()
Ds526.c346 dev->n_subdevices = 4; in s526_attach()
347 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in s526_attach()
Dpcmuio.c357 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()
Dunioxx5.c284 for (i = 0; i < dev->n_subdevices; i++) { in unioxx5_detach()
Dpcmmio.c473 for (; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmmio_attach()
896 s < dev->subdevices + dev->n_subdevices; in interrupt_pcmmio()
Dni_660x.c1096 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()
Dusbduxsigma.c2684 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/
Dkcomedilib_main.c89 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/
Dcomedi_fops.c326 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 …]
Dproc.c66 dev->board_name, dev->n_subdevices); in comedi_read()
Dcomedidev.h217 int n_subdevices; member
360 dev->n_subdevices = num_subdevices; in alloc_subdevices()
Drange.c69 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
Ddrivers.c65 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/
Dhwdrv_APCI1710.c63 int n_subdevices = 9; in i_ADDI_AttachPCI1710() local
66 ret = alloc_subdevices(dev, n_subdevices); in i_ADDI_AttachPCI1710()
Daddi_common.c2604 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()

12