Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/comedi/drivers/
Dpcl724.c101 int n_subdevices; in pcl724_attach() local
106 n_subdevices = board->numofports; in pcl724_attach()
112 n_subdevices = 4; in pcl724_attach()
119 ret = comedi_alloc_subdevices(dev, n_subdevices); in pcl724_attach()
123 for (i = 0; i < dev->n_subdevices; i++) { in pcl724_attach()
D8255.c68 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_attach()
104 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_detach()
Djr3_pci.c284 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_open()
418 for (subdev = 0; subdev < dev->n_subdevices; subdev++) in jr3_download_firmware()
579 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_poll_dev()
697 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_auto_attach()
714 for (i = 0; i < dev->n_subdevices; i++) in jr3_pci_auto_attach()
741 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_auto_attach()
Dadv_pci1710.c751 int ret, subdev, n_subdevices; in pci1710_auto_attach() local
775 n_subdevices = 1; /* all boards have analog inputs */ in pci1710_auto_attach()
777 n_subdevices++; in pci1710_auto_attach()
783 n_subdevices += 3; in pci1710_auto_attach()
786 ret = comedi_alloc_subdevices(dev, n_subdevices); in pci1710_auto_attach()
Dpcl812.c1133 int n_subdevices; in pcl812_attach() local
1179 n_subdevices = 1; /* all boardtypes have analog inputs */ in pcl812_attach()
1181 n_subdevices++; in pcl812_attach()
1183 n_subdevices += 2; in pcl812_attach()
1185 ret = comedi_alloc_subdevices(dev, n_subdevices); in pcl812_attach()
Dpcm3724.c205 for (i = 0; i < dev->n_subdevices; i++) { in pcm3724_attach()
Daddi_apci_3xxx.c759 int n_subdevices; in apci3xxx_auto_attach() local
790 n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao + in apci3xxx_auto_attach()
793 ret = comedi_alloc_subdevices(dev, n_subdevices); in apci3xxx_auto_attach()
Dni_670x.c243 if (dev->n_subdevices) { in ni_670x_detach()
Dpcmuio.c570 for (i = 0; i < dev->n_subdevices; ++i) { in pcmuio_attach()
Damplc_dio200_common.c786 for (n = 0; n < dev->n_subdevices; n++) { in amplc_dio200_common_attach()
Dni_660x.c444 for (i = 0; i < dev->n_subdevices; ++i) { in ni_660x_interrupt()
/linux-6.1.9/drivers/comedi/kcomedilib/
Dkcomedilib_main.c81 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn()
218 for (; subd < dev->n_subdevices; subd++) { in comedi_find_subdevice_by_type()
235 if (!dev->attached || subdevice >= dev->n_subdevices) in comedi_get_n_channels()
/linux-6.1.9/drivers/comedi/
Dcomedi_fops.c774 for (i = 0; i < dev->n_subdevices; i++) { in comedi_device_cancel_all()
790 for (i = 0; i < dev->n_subdevices; i++) { in is_device_busy()
879 if (bc.subdevice >= dev->n_subdevices) in do_bufconfig_ioctl()
941 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl()
984 tmp = kcalloc(dev->n_subdevices, sizeof(*tmp), GFP_KERNEL); in do_subdinfo_ioctl()
989 for (i = 0; i < dev->n_subdevices; i++) { in do_subdinfo_ioctl()
1030 ret = copy_to_user(arg, tmp, dev->n_subdevices * sizeof(*tmp)); in do_subdinfo_ioctl()
1058 if (it->subdev >= dev->n_subdevices) in do_chaninfo_ioctl()
1118 if (bi.subdevice >= dev->n_subdevices) in do_bufinfo_ioctl()
1346 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
[all …]
Dproc.c41 dev->board_name, dev->n_subdevices); in comedi_read()
Ddrivers.c108 dev->n_subdevices = num_subdevices; in comedi_alloc_subdevices()
164 for (i = 0; i < dev->n_subdevices; i++) { in comedi_device_detach_cleanup()
177 dev->n_subdevices = 0; in comedi_device_detach_cleanup()
703 for (i = 0; i < dev->n_subdevices; i++) { in __comedi_device_postconfig()
Drange.c60 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
/linux-6.1.9/include/linux/comedi/
Dcomedidev.h560 int n_subdevices; member