drm/xe: Use FIELD_PREP for lrc descriptor
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Fri, 22 Mar 2024 19:14:55 +0000 (12:14 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 26 Mar 2024 16:17:13 +0000 (09:17 -0700)
commitcf03825bdd190b7ab323f797278a00fbf163d889
tree3db3342f0c030ba1b46e5ae0ee792e8148708a5e
parent008aa86a09ba623e563d7777353f6ca2a391424d
drm/xe: Use FIELD_PREP for lrc descriptor

Use FIELD_PREP for setting lrc descriptor fields instead
of shifting values to fields.

v2: Use ULL macro variants
v3: Do not use FIELD_PREP for 1-bit values

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240322191455.7613-1-niranjana.vishwanathapura@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_lrc.c