linux/drivers/gpu/drm/i915/gt/uc
Lucas De Marchi c816723b6b drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER
This was done by the following semantic patch:

	@@ expression i915; @@
	- INTEL_GEN(i915)
	+ GRAPHICS_VER(i915)

	@@ expression i915; expression E; @@
	- INTEL_GEN(i915) >= E
	+ GRAPHICS_VER(i915) >= E

	@@ expression dev_priv; expression E; @@
	- !IS_GEN(dev_priv, E)
	+ GRAPHICS_VER(dev_priv) != E

	@@ expression dev_priv; expression E; @@
	- IS_GEN(dev_priv, E)
	+ GRAPHICS_VER(dev_priv) == E

	@@
	expression dev_priv;
	expression from, until;
	@@
	- IS_GEN_RANGE(dev_priv, from, until)
	+ IS_GRAPHICS_VER(dev_priv, from, until)

	@def@
	expression E;
	identifier id =~ "^gen$";
	@@
	- id = GRAPHICS_VER(E)
	+ ver = GRAPHICS_VER(E)

	@@
	identifier def.id;
	@@
	- id
	+ ver

It also takes care of renaming the variable we assign to GRAPHICS_VER()
so to use "ver" rather than "gen".

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210605155356.4183026-2-lucas.demarchi@intel.com
2021-06-05 15:09:06 -07:00
..
abi drm/i915/guc: Stop using fence/status from CTB descriptor 2021-06-03 23:32:11 +02:00
intel_guc_ads.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_guc_ads.h
intel_guc_ct.c drm/i915/guc: Always copy CT message to new allocation 2021-06-04 10:42:15 +02:00
intel_guc_ct.h drm/i915/guc: Don't receive all G2H messages in irq handler 2021-06-04 10:41:51 +02:00
intel_guc_debugfs.c
intel_guc_debugfs.h
intel_guc_fw.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_guc_fw.h
intel_guc_fwif.h drm/i915/guc: Use guc_class instead of engine_class in fw interface 2021-06-04 10:42:41 +02:00
intel_guc_log_debugfs.c drm/i915: Remove stray newlines 2021-04-28 15:55:09 +03:00
intel_guc_log_debugfs.h
intel_guc_log.c drm/i915: Lock ww in ucode objects correctly 2021-03-24 17:27:21 +01:00
intel_guc_log.h
intel_guc_reg.h
intel_guc_submission.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_guc_submission.h drm/i915/gt: Move submission_method into intel_gt 2021-05-25 15:14:24 +02:00
intel_guc.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_guc.h drm/i915/guc: Drop guc->interrupts.enabled 2021-06-03 23:31:45 +02:00
intel_huc_debugfs.c
intel_huc_debugfs.h
intel_huc_fw.c
intel_huc_fw.h
intel_huc.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_huc.h
intel_uc_debugfs.c
intel_uc_debugfs.h
intel_uc_fw_abi.h
intel_uc_fw.c drm/i915: Lock ww in ucode objects correctly 2021-03-24 17:27:21 +01:00
intel_uc_fw.h
intel_uc.c drm/i915/gt: replace IS_GEN and friends with GRAPHICS_VER 2021-06-05 15:09:06 -07:00
intel_uc.h