Files
linux/drivers
Daniele Ceraolo Spurio 4c467d5dcd drm/i915/uc: autogenerate uC checker functions
We want to map uC-level checks to GuC/HuC-level ones. The mapping from
the uC state to the GuC/HuC one follows the same pattern for all the
functions:

 uc_xxx_guc() -> guc_is_yyy()

So we can easily use a macro to autogenerate the functions via macros by
passing in the 2 mapped states.

v2: Split this change to its own patch (Michal)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200218223327.11058-5-daniele.ceraolospurio@intel.com
2020-02-20 17:48:05 +00:00
..
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2020-01-13 18:50:18 -08:00
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2020-01-20 11:42:57 +10:00
2019-11-14 13:06:33 +08:00
2020-01-20 11:42:57 +10:00