summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/drm/panfrost_drm.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 19:24:38 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-25 20:35:03 +0100
commita984eb367c032dbe2577f01238c3d1268526be70 (patch)
tree437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/drm/panfrost_drm.h
parent8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff)
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/drm/panfrost_drm.h')
-rw-r--r--include/arch/x86_64/drm/panfrost_drm.h47
1 files changed, 15 insertions, 32 deletions
diff --git a/include/arch/x86_64/drm/panfrost_drm.h b/include/arch/x86_64/drm/panfrost_drm.h
index 2ce0e858..accbcba2 100644
--- a/include/arch/x86_64/drm/panfrost_drm.h
+++ b/include/arch/x86_64/drm/panfrost_drm.h
@@ -23,30 +23,16 @@ extern "C" {
#define DRM_PANFROST_MADVISE 0x08
#define DRM_PANFROST_SET_LABEL_BO 0x09
-#define DRM_IOCTL_PANFROST_SUBMIT \
- DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_SUBMIT, \
- struct drm_panfrost_submit)
-#define DRM_IOCTL_PANFROST_WAIT_BO \
- DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_WAIT_BO, \
- struct drm_panfrost_wait_bo)
-#define DRM_IOCTL_PANFROST_CREATE_BO \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_CREATE_BO, \
- struct drm_panfrost_create_bo)
-#define DRM_IOCTL_PANFROST_MMAP_BO \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_MMAP_BO, \
- struct drm_panfrost_mmap_bo)
-#define DRM_IOCTL_PANFROST_GET_PARAM \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_PARAM, \
- struct drm_panfrost_get_param)
-#define DRM_IOCTL_PANFROST_GET_BO_OFFSET \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_BO_OFFSET, \
- struct drm_panfrost_get_bo_offset)
-#define DRM_IOCTL_PANFROST_MADVISE \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_MADVISE, \
- struct drm_panfrost_madvise)
-#define DRM_IOCTL_PANFROST_SET_LABEL_BO \
- DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_SET_LABEL_BO, \
- struct drm_panfrost_set_label_bo)
+#define DRM_IOCTL_PANFROST_SUBMIT DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_SUBMIT, struct drm_panfrost_submit)
+#define DRM_IOCTL_PANFROST_WAIT_BO DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_WAIT_BO, struct drm_panfrost_wait_bo)
+#define DRM_IOCTL_PANFROST_CREATE_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_CREATE_BO, struct drm_panfrost_create_bo)
+#define DRM_IOCTL_PANFROST_MMAP_BO DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_MMAP_BO, struct drm_panfrost_mmap_bo)
+#define DRM_IOCTL_PANFROST_GET_PARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_PARAM, struct drm_panfrost_get_param)
+#define DRM_IOCTL_PANFROST_GET_BO_OFFSET \
+ DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_GET_BO_OFFSET, struct drm_panfrost_get_bo_offset)
+#define DRM_IOCTL_PANFROST_MADVISE DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_MADVISE, struct drm_panfrost_madvise)
+#define DRM_IOCTL_PANFROST_SET_LABEL_BO \
+ DRM_IOWR(DRM_COMMAND_BASE + DRM_PANFROST_SET_LABEL_BO, struct drm_panfrost_set_label_bo)
/*
* Unstable ioctl(s): only exposed when the unsafe unstable_ioctls module
@@ -54,12 +40,10 @@ extern "C" {
* All these ioctl(s) are subject to deprecation, so please don't rely on
* them for anything but debugging purpose.
*/
-#define DRM_IOCTL_PANFROST_PERFCNT_ENABLE \
- DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_PERFCNT_ENABLE, \
- struct drm_panfrost_perfcnt_enable)
-#define DRM_IOCTL_PANFROST_PERFCNT_DUMP \
- DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_PERFCNT_DUMP, \
- struct drm_panfrost_perfcnt_dump)
+#define DRM_IOCTL_PANFROST_PERFCNT_ENABLE \
+ DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_PERFCNT_ENABLE, struct drm_panfrost_perfcnt_enable)
+#define DRM_IOCTL_PANFROST_PERFCNT_DUMP \
+ DRM_IOW(DRM_COMMAND_BASE + DRM_PANFROST_PERFCNT_DUMP, struct drm_panfrost_perfcnt_dump)
#define PANFROST_JD_REQ_FS (1 << 0)
#define PANFROST_JD_REQ_CYCLE_COUNT (1 << 1)
@@ -240,8 +224,7 @@ struct drm_panfrost_perfcnt_dump {
* In the WILLNEED case, 'retained' indicates to userspace whether the
* backing pages still exist.
*/
-#define PANFROST_MADV_WILLNEED \
- 0 /* backing pages are needed, status returned in 'retained' */
+#define PANFROST_MADV_WILLNEED 0 /* backing pages are needed, status returned in 'retained' */
#define PANFROST_MADV_DONTNEED 1 /* backing pages not needed */
struct drm_panfrost_madvise {