Lines Matching refs:n_subdevices
774 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()
1395 if (insn->subdev >= dev->n_subdevices) { in parse_insn()
1657 if (cmd->subdev >= dev->n_subdevices) { in __comedi_get_user_cmd()
1907 if (arg >= dev->n_subdevices) in do_lock_ioctl()
1940 if (arg >= dev->n_subdevices) in do_unlock_ioctl()
1975 if (arg >= dev->n_subdevices) in do_cancel_ioctl()
2009 if (arg >= dev->n_subdevices) in do_poll_ioctl()
2045 if (arg >= dev->n_subdevices) in do_setrsubd_ioctl()
2088 if (arg >= dev->n_subdevices) in do_setwsubd_ioctl()
2806 for (i = 0; i < dev->n_subdevices; i++) { in comedi_close()