Lines Matching refs:devinfo
934 struct comedi_devinfo devinfo; in do_devinfo_ioctl() local
937 memset(&devinfo, 0, sizeof(devinfo)); in do_devinfo_ioctl()
940 devinfo.version_code = COMEDI_VERSION_CODE; in do_devinfo_ioctl()
941 devinfo.n_subdevs = dev->n_subdevices; in do_devinfo_ioctl()
942 strscpy(devinfo.driver_name, dev->driver->driver_name, COMEDI_NAMELEN); in do_devinfo_ioctl()
943 strscpy(devinfo.board_name, dev->board_name, COMEDI_NAMELEN); in do_devinfo_ioctl()
947 devinfo.read_subdevice = s->index; in do_devinfo_ioctl()
949 devinfo.read_subdevice = -1; in do_devinfo_ioctl()
953 devinfo.write_subdevice = s->index; in do_devinfo_ioctl()
955 devinfo.write_subdevice = -1; in do_devinfo_ioctl()
957 if (copy_to_user(arg, &devinfo, sizeof(devinfo))) in do_devinfo_ioctl()