Lines Matching refs:ioctl
512 #define DRM_IOCTL_DEF(ioctl, _func, _flags) \ argument
513 [DRM_IOCTL_NR(ioctl)] = { \
514 .cmd = ioctl, \
517 .name = #ioctl \
653 const struct drm_ioctl_desc *ioctl = NULL; in drm_ioctl() local
673 ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE]; in drm_ioctl()
678 ioctl = &drm_ioctls[nr]; in drm_ioctl()
681 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl()
683 if ((cmd & ioctl->cmd & IOC_IN) == 0) in drm_ioctl()
685 if ((cmd & ioctl->cmd & IOC_OUT) == 0) in drm_ioctl()
692 file_priv->authenticated, ioctl->name); in drm_ioctl()
695 func = ioctl->func; in drm_ioctl()
703 retcode = drm_ioctl_permit(ioctl->flags, file_priv); in drm_ioctl()
728 (ioctl->flags & DRM_UNLOCKED)) in drm_ioctl()
740 if (!ioctl) in drm_ioctl()