Lines Matching defs:ioctl
36 * open/close, and ioctl dispatch.
721 /* drm_ioctl is called whenever a process performs an ioctl on /dev/drm.
728 drm_ioctl_desc_t *ioctl;
761 DRM_DEBUG("Bad ioctl group 0x%x\n", (int)IOCGROUP(cmd));
765 ioctl = &drm_ioctls[nr];
766 /* It's not a core DRM ioctl, try driver-specific. */
767 if (ioctl->func == NULL && nr >= DRM_COMMAND_BASE) {
768 /* The array entries begin at DRM_COMMAND_BASE ioctl nr */
771 DRM_DEBUG("Bad driver ioctl number, 0x%x (of 0x%x)\n",
775 ioctl = &dev->driver->ioctls[nr];
778 func = ioctl->func;
785 if (((ioctl->flags & DRM_ROOT_ONLY) && !DRM_SUSER(p)) ||
786 ((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
787 ((ioctl->flags & DRM_MASTER) && !file_priv->master))
852 error = ioctl(p, (struct ioctl_args *)args);