Lines Matching full:ioctl

57  *  - GET_UNIQUE ioctl, implemented by drm_getunique is wrapped up in libdrm
59 * - The libdrm drmSetBusid function is backed by the SET_UNIQUE ioctl. All
62 * exclusively use by the SET_VERSION ioctl, because only drm 1.0 (which is
63 * nerved) allowed userspace to set the busid through the above ioctl.
85 * name returned by that ioctl. Note that SET_VERSION is not called, which
188 * Hollowed-out getclient ioctl to keep some dead old drm tests/tools in drm_getclient()
373 * Setversion ioctl.
429 * drm_noop - DRM no-op ioctl implementation
430 * @dev: DRM device for the ioctl
431 * @data: data pointer for the ioctl
432 * @file_priv: DRM file for the ioctl call
436 * checks the result of the ioctl, but doesn't care about the action.
449 * drm_invalid_op - DRM invalid ioctl implementation
450 * @dev: DRM device for the ioctl
451 * @data: data pointer for the ioctl
452 * @file_priv: DRM file for the ioctl call
455 * functionality where we really don't want to allow userspace to call the ioctl
471 * Copy and IOCTL return string to user space
555 #define DRM_IOCTL_DEF(ioctl, _func, _flags) \ argument
556 [DRM_IOCTL_NR(ioctl)] = { \
557 .cmd = ioctl, \
560 .name = #ioctl \
564 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, _func, _flags) argument
566 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, drm_invalid_op, _flags) argument
569 /* Ioctl table */
729 * which define IOCTL for use by the display DRM master, but they all predate
736 * First you need to define the structure for your IOCTL in your driver private
749 * Then you need to define your IOCTL number, using one of DRM_IO(), DRM_IOR(),
755 * DRM driver private IOCTL must be in the range from DRM_COMMAND_BASE to
799 * drm_ioctl - ioctl callback implementation for DRM drivers
800 * @filp: file this ioctl is called on
801 * @cmd: ioctl cmd number
804 * Looks up the ioctl function in the DRM core and the driver dispatch table,
816 const struct drm_ioctl_desc *ioctl = NULL; in drm_ioctl() local
836 /* driver ioctl */ in drm_ioctl()
842 ioctl = &dev->driver->ioctls[index]; in drm_ioctl()
844 /* core ioctl */ in drm_ioctl()
848 ioctl = &drm_ioctls[nr]; in drm_ioctl()
851 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl()
853 if ((cmd & ioctl->cmd & IOC_IN) == 0) in drm_ioctl()
855 if ((cmd & ioctl->cmd & IOC_OUT) == 0) in drm_ioctl()
862 file_priv->authenticated, ioctl->name); in drm_ioctl()
865 func = ioctl->func; in drm_ioctl()
891 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags); in drm_ioctl()
896 if (!ioctl) in drm_ioctl()
897 DRM_DEBUG("invalid ioctl: comm=\"%s\", pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n", in drm_ioctl()
912 * drm_ioctl_flags - Check for core ioctl and return ioctl permission flags
913 * @nr: ioctl number
914 * @flags: where to return the ioctl permission flags
916 * This ioctl is only used by the vmwgfx driver to augment the access checks
921 * True if the @nr corresponds to a DRM core ioctl number, false otherwise.