Lines Matching refs:n_subdevices
778 for (i = 0; i < dev->n_subdevices; i++) { in comedi_device_cancel_all()
794 for (i = 0; i < dev->n_subdevices; i++) { in is_device_busy()
883 if (bc.subdevice >= dev->n_subdevices) in do_bufconfig_ioctl()
945 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl()
988 tmp = kcalloc(dev->n_subdevices, sizeof(*tmp), GFP_KERNEL); in do_subdinfo_ioctl()
993 for (i = 0; i < dev->n_subdevices; i++) { in do_subdinfo_ioctl()
1034 ret = copy_to_user(arg, tmp, dev->n_subdevices * sizeof(*tmp)); in do_subdinfo_ioctl()
1062 if (it->subdev >= dev->n_subdevices) in do_chaninfo_ioctl()
1122 if (bi.subdevice >= dev->n_subdevices) in do_bufinfo_ioctl()
1351 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
1400 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
1662 if (cmd->subdev >= dev->n_subdevices) { in __comedi_get_user_cmd()
1912 if (arg >= dev->n_subdevices) in do_lock_ioctl()
1945 if (arg >= dev->n_subdevices) in do_unlock_ioctl()
1980 if (arg >= dev->n_subdevices) in do_cancel_ioctl()
2014 if (arg >= dev->n_subdevices) in do_poll_ioctl()
2050 if (arg >= dev->n_subdevices) in do_setrsubd_ioctl()
2093 if (arg >= dev->n_subdevices) in do_setwsubd_ioctl()
2811 for (i = 0; i < dev->n_subdevices; i++) { in comedi_close()