Lines Matching defs: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
372 * Setversion ioctl.
428 * drm_noop - DRM no-op ioctl implementation
429 * @dev: DRM device for the ioctl
430 * @data: data pointer for the ioctl
431 * @file_priv: DRM file for the ioctl call
435 * checks the result of the ioctl, but doesn't care about the action.
448 * drm_invalid_op - DRM invalid ioctl implementation
449 * @dev: DRM device for the ioctl
450 * @data: data pointer for the ioctl
451 * @file_priv: DRM file for the ioctl call
454 * functionality where we really don't want to allow userspace to call the ioctl
554 #define DRM_IOCTL_DEF(ioctl, _func, _flags) \
555 [DRM_IOCTL_NR(ioctl)] = { \
556 .cmd = ioctl, \
559 .name = #ioctl \
563 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, _func, _flags)
565 #define DRM_LEGACY_IOCTL_DEF(ioctl, _func, _flags) DRM_IOCTL_DEF(ioctl, drm_invalid_op, _flags)
803 * drm_ioctl - ioctl callback implementation for DRM drivers
804 * @filp: file this ioctl is called on
805 * @cmd: ioctl cmd number
808 * Looks up the ioctl function in the DRM core and the driver dispatch table,
820 const struct drm_ioctl_desc *ioctl = NULL;
840 /* driver ioctl */
846 ioctl = &dev->driver->ioctls[index];
848 /* core ioctl */
852 ioctl = &drm_ioctls[nr];
855 drv_size = _IOC_SIZE(ioctl->cmd);
857 if ((cmd & ioctl->cmd & IOC_IN) == 0)
859 if ((cmd & ioctl->cmd & IOC_OUT) == 0)
866 file_priv->authenticated, ioctl->name);
869 func = ioctl->func;
895 retcode = drm_ioctl_kernel(filp, func, kdata, ioctl->flags);
900 if (!ioctl)
902 "invalid ioctl: comm=\"%s\", pid=%d, dev=0x%lx, auth=%d, cmd=0x%02x, nr=0x%02x\n",
917 * drm_ioctl_flags - Check for core ioctl and return ioctl permission flags
918 * @nr: ioctl number
919 * @flags: where to return the ioctl permission flags
921 * This ioctl is only used by the vmwgfx driver to augment the access checks
926 * True if the @nr corresponds to a DRM core ioctl number, false otherwise.