Lines Matching defs:ioctl
36 * open/close, and ioctl dispatch.
698 /* drm_ioctl is called whenever a process performs an ioctl on /dev/drm.
705 drm_ioctl_desc_t *ioctl;
738 DRM_DEBUG("Bad ioctl group 0x%x\n", (int)IOCGROUP(cmd));
742 ioctl = &drm_ioctls[nr];
743 /* It's not a core DRM ioctl, try driver-specific. */
744 if (ioctl->func == NULL && nr >= DRM_COMMAND_BASE) {
745 /* The array entries begin at DRM_COMMAND_BASE ioctl nr */
748 DRM_DEBUG("Bad driver ioctl number, 0x%x (of 0x%x)\n",
752 ioctl = &dev->driver->ioctls[nr];
755 func = ioctl->func;
762 if (((ioctl->flags & DRM_ROOT_ONLY) && !DRM_SUSER(p)) ||
763 ((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
764 ((ioctl->flags & DRM_MASTER) && !file_priv->master))
829 error = ioctl(p, (struct ioctl_args *)args);