Searched refs:n_subdevices (Results 1 – 17 of 17) sorted by relevance
/Linux-v5.4/drivers/staging/comedi/drivers/ |
D | pcl724.c | 102 int n_subdevices; in pcl724_attach() local 107 n_subdevices = board->numofports; in pcl724_attach() 113 n_subdevices = 4; in pcl724_attach() 120 ret = comedi_alloc_subdevices(dev, n_subdevices); in pcl724_attach() 124 for (i = 0; i < dev->n_subdevices; i++) { in pcl724_attach()
|
D | 8255.c | 69 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_attach() 105 for (i = 0; i < dev->n_subdevices; i++) { in dev_8255_detach()
|
D | jr3_pci.c | 298 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_open() 432 for (subdev = 0; subdev < dev->n_subdevices; subdev++) in jr3_download_firmware() 595 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_poll_dev() 713 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_auto_attach() 730 for (i = 0; i < dev->n_subdevices; i++) in jr3_pci_auto_attach() 757 for (i = 0; i < dev->n_subdevices; i++) { in jr3_pci_auto_attach()
|
D | adv_pci1710.c | 752 int ret, subdev, n_subdevices; in pci1710_auto_attach() local 776 n_subdevices = 1; /* all boards have analog inputs */ in pci1710_auto_attach() 778 n_subdevices++; in pci1710_auto_attach() 784 n_subdevices += 3; in pci1710_auto_attach() 787 ret = comedi_alloc_subdevices(dev, n_subdevices); in pci1710_auto_attach()
|
D | pcl812.c | 1135 int n_subdevices; in pcl812_attach() local 1181 n_subdevices = 1; /* all boardtypes have analog inputs */ in pcl812_attach() 1183 n_subdevices++; in pcl812_attach() 1185 n_subdevices += 2; in pcl812_attach() 1187 ret = comedi_alloc_subdevices(dev, n_subdevices); in pcl812_attach()
|
D | pcm3724.c | 207 for (i = 0; i < dev->n_subdevices; i++) { in pcm3724_attach()
|
D | addi_apci_3xxx.c | 760 int n_subdevices; in apci3xxx_auto_attach() local 791 n_subdevices = (board->ai_n_chan ? 0 : 1) + board->has_ao + in apci3xxx_auto_attach() 794 ret = comedi_alloc_subdevices(dev, n_subdevices); in apci3xxx_auto_attach()
|
D | ni_670x.c | 244 if (dev->n_subdevices) { in ni_670x_detach()
|
D | pcmuio.c | 571 for (i = 0; i < dev->n_subdevices; ++i) { in pcmuio_attach()
|
D | amplc_dio200_common.c | 787 for (n = 0; n < dev->n_subdevices; n++) { in amplc_dio200_common_attach()
|
D | ni_660x.c | 445 for (i = 0; i < dev->n_subdevices; ++i) { in ni_660x_interrupt()
|
/Linux-v5.4/drivers/staging/comedi/kcomedilib/ |
D | kcomedilib_main.c | 81 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-v5.4/drivers/staging/comedi/ |
D | comedi_fops.c | 772 for (i = 0; i < dev->n_subdevices; i++) { in comedi_device_cancel_all() 788 for (i = 0; i < dev->n_subdevices; i++) { in is_device_busy() 877 if (bc.subdevice >= dev->n_subdevices) in do_bufconfig_ioctl() 939 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl() 982 tmp = kcalloc(dev->n_subdevices, sizeof(*tmp), GFP_KERNEL); in do_subdinfo_ioctl() 987 for (i = 0; i < dev->n_subdevices; i++) { in do_subdinfo_ioctl() 1028 ret = copy_to_user(arg, tmp, dev->n_subdevices * sizeof(*tmp)); in do_subdinfo_ioctl() 1059 if (it.subdev >= dev->n_subdevices) in do_chaninfo_ioctl() 1119 if (bi.subdevice >= dev->n_subdevices) in do_bufinfo_ioctl() 1347 if (insn->subdev >= dev->n_subdevices) { in parse_insn() [all …]
|
D | proc.c | 41 dev->board_name, dev->n_subdevices); in comedi_read()
|
D | drivers.c | 109 dev->n_subdevices = num_subdevices; in comedi_alloc_subdevices() 165 for (i = 0; i < dev->n_subdevices; i++) { in comedi_device_detach_cleanup() 178 dev->n_subdevices = 0; in comedi_device_detach_cleanup() 704 for (i = 0; i < dev->n_subdevices; i++) { in __comedi_device_postconfig()
|
D | range.c | 63 if (subd >= dev->n_subdevices) in do_rangeinfo_ioctl()
|
D | comedidev.h | 561 int n_subdevices; member
|