• Home
  • Raw
  • Download

Lines Matching full:ioctl

58  *  - GET_UNIQUE ioctl, implemented by drm_getunique is wrapped up in libdrm
60 * - The libdrm drmSetBusid function is backed by the SET_UNIQUE ioctl. All
63 * exclusively use by the SET_VERSION ioctl, because only drm 1.0 (which is
64 * nerved) allowed userspace to set the busid through the above ioctl.
86 * name returned by that ioctl. Note that SET_VERSION is not called, which
189 * Hollowed-out getclient ioctl to keep some dead old drm tests/tools in drm_getclient()
374 * Setversion ioctl.
430 * drm_noop - DRM no-op ioctl implemntation
431 * @dev: DRM device for the ioctl
432 * @data: data pointer for the ioctl
433 * @file_priv: DRM file for the ioctl call
437 * checks the result of the ioctl, but doesn't care about the action.
450 * drm_invalid_op - DRM invalid ioctl implemntation
451 * @dev: DRM device for the ioctl
452 * @data: data pointer for the ioctl
453 * @file_priv: DRM file for the ioctl call
456 * functionality where we really don't want to allow userspace to call the ioctl
472 * Copy and IOCTL return string to user space
533 * drm_ioctl_permit - Check ioctl permissions against caller
535 * @flags: ioctl permission flags.
538 * Checks whether the caller is allowed to run an ioctl with the
569 #define DRM_IOCTL_DEF(ioctl, _func, _flags) \ argument
570 [DRM_IOCTL_NR(ioctl)] = { \
571 .cmd = ioctl, \
574 .name = #ioctl \
578 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, _func, _flags) argument
580 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, drm_invalid_op, _flags) argument
583 /* Ioctl table */
735 * which define IOCTL for use by the display DRM master, but they all predate
742 * First you need to define the structure for your IOCTL in your driver private
755 * Then you need to define your IOCTL number, using one of DRM_IO(), DRM_IOR(),
761 * DRM driver private IOCTL must be in the range from DRM_COMMAND_BASE to
805 * drm_ioctl - ioctl callback implementation for DRM drivers
806 * @filp: file this ioctl is called on
807 * @cmd: ioctl cmd number
810 * Looks up the ioctl function in the DRM core and the driver dispatch table,
822 const struct drm_ioctl_desc *ioctl = NULL; in drm_ioctl() local
842 /* driver ioctl */ in drm_ioctl()
848 ioctl = &dev->driver->ioctls[index]; in drm_ioctl()
850 /* core ioctl */ in drm_ioctl()
854 ioctl = &drm_ioctls[nr]; in drm_ioctl()
857 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl()
859 if ((cmd & ioctl->cmd & IOC_IN) == 0) in drm_ioctl()
861 if ((cmd & ioctl->cmd & IOC_OUT) == 0) in drm_ioctl()
868 file_priv->authenticated, ioctl->name); in drm_ioctl()
871 func = ioctl->func; in drm_ioctl()
897 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags); in drm_ioctl()
902 if (!ioctl) in drm_ioctl()
903 DRM_DEBUG("invalid ioctl: comm=\"%s\", pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n", in drm_ioctl()
918 * drm_ioctl_flags - Check for core ioctl and return ioctl permission flags
919 * @nr: ioctl number
920 * @flags: where to return the ioctl permission flags
922 * This ioctl is only used by the vmwgfx driver to augment the access checks
927 * True if the @nr corresponds to a DRM core ioctl number, false otherwise.