summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_vm_types.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2023-08-31 17:54:21 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:40:39 +0300
commit35dfb48462d92ce5514f883c461857ca55bdb499 (patch)
treec968ad05c4801c4a1a7b5cae1486726808bc5093 /drivers/gpu/drm/xe/xe_vm_types.h
parent9a4566d5e0ae9dd38ef20fab00990e6958c421b4 (diff)
downloadlinux-35dfb48462d92ce5514f883c461857ca55bdb499.tar.xz
drm/xe: Convert xe_vma_op_flags to BIT macros
Rather than open code the shift for values, use BIT macros. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_vm_types.h')
-rw-r--r--drivers/gpu/drm/xe/xe_vm_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h
index f8675c3da3b1..40ce8953bacb 100644
--- a/drivers/gpu/drm/xe/xe_vm_types.h
+++ b/drivers/gpu/drm/xe/xe_vm_types.h
@@ -370,11 +370,11 @@ struct xe_vma_op_prefetch {
/** enum xe_vma_op_flags - flags for VMA operation */
enum xe_vma_op_flags {
/** @XE_VMA_OP_FIRST: first VMA operation for a set of syncs */
- XE_VMA_OP_FIRST = (0x1 << 0),
+ XE_VMA_OP_FIRST = BIT(0),
/** @XE_VMA_OP_LAST: last VMA operation for a set of syncs */
- XE_VMA_OP_LAST = (0x1 << 1),
+ XE_VMA_OP_LAST = BIT(1),
/** @XE_VMA_OP_COMMITTED: VMA operation committed */
- XE_VMA_OP_COMMITTED = (0x1 << 2),
+ XE_VMA_OP_COMMITTED = BIT(2),
};
/** struct xe_vma_op - VMA operation */