Lines Matching refs:ioctl
96 /* The DRM_IOCTL_DMA ioctl should be defined by the driver. */
349 * Called whenever a process performs an ioctl on /dev/drm.
353 * Looks up the ioctl function in the ::ioctls table, checking for root
360 struct drm_ioctl_desc *ioctl;
377 ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE];
379 cmd = ioctl->cmd;
382 ioctl = &drm_ioctls[nr];
383 cmd = ioctl->cmd;
389 func = ioctl->func;
397 } else if (((ioctl->flags & DRM_ROOT_ONLY) && !DRM_SUSER(credp)) ||
398 ((ioctl->flags & DRM_AUTH) && !file_priv->authenticated) ||
399 ((ioctl->flags & DRM_MASTER) && !file_priv->is_master) ||
400 (!(ioctl->flags & DRM_CONTROL_ALLOW) && (file_priv->minor->type == DRM_MINOR_CONTROL))) {
419 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32 && ioctl->copyin32) {
420 if (ioctl->copyin32((void*)kdata, (void*)arg)) {
439 if (ddi_model_convert_from(mode & FMODELS) == DDI_MODEL_ILP32 && ioctl->copyout32) {
440 if (ioctl->copyout32((void*)arg, (void*)kdata)) {