Home
last modified time | relevance | path

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

12

/linux-2.6.39/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.c1104 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()
Dadv_pci1710.c1375 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()
Dpcl812.c1369 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()
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.c1175 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()
Damplc_dio200.c1417 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()
Dpcmuio.c357 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()
Ds526.c346 dev->n_subdevices = 4; in s526_attach()
347 if (alloc_subdevices(dev, dev->n_subdevices) < 0) in s526_attach()
Dunioxx5.c277 for (i = 0; i < dev->n_subdevices; i++) { in unioxx5_detach()
Dpcmmio.c470 for (; sdev_no < (int)dev->n_subdevices; ++sdev_no) { in pcmmio_attach()
892 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()
Dusbdux.c2666 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/
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-2.6.39/drivers/staging/comedi/
Dcomedi_fops.c318 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 …]
Dproc.c66 dev->board_name, dev->n_subdevices); in comedi_read()
Dcomedidev.h220 int n_subdevices; member
362 dev->n_subdevices = num_subdevices; in alloc_subdevices()
Drange.c69 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
Ddrivers.c66 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/
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.c2605 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()

12