drm/i915/dsb: Extract intel_dsb_{head,tail}()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 May 2025 06:20:33 +0000 (11:50 +0530)
committerAnimesh Manna <animesh.manna@intel.com>
Mon, 26 May 2025 07:48:15 +0000 (13:18 +0530)
commitbb3de17e2b5eb3cdc26e71b257e6c7989fce71ab
tree989e73f5431c448121e0731906934be799233643
parentd535ae997ddd6b5c0c591c7d4440d3e389618da6
drm/i915/dsb: Extract intel_dsb_{head,tail}()

Extract the code that calculates the DSB_HEAD/TAIL register
values into small helpers. We already have two copies of this,
and soon there will be a third.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
Link: https://lore.kernel.org/r/20250523062041.166468-4-chaitanya.kumar.borah@intel.com
drivers/gpu/drm/i915/display/intel_dsb.c