diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-05-26 19:43:41 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:34:02 +0300 |
commit | 91042671d9f3102c7e100d2e9275cae13eb63462 (patch) | |
tree | b5e067272e797d512fa4a679d6c457b0c19c1c8b /drivers/gpu/drm/xe/xe_rtp.h | |
parent | cc982f0c168149def829f204b575fad546e9d043 (diff) | |
download | linux-91042671d9f3102c7e100d2e9275cae13eb63462.tar.xz |
drm/xe/rtp: Add "_sr" to entry/function names
The xe_rtp_process() function and xe_rtp_entry depend on the
save-restore struct. In future it will be desired to process rtp rules,
regardless of adding them to a save-restore. Rename the struct and
function so the intent is clear and the name is freed for future uses.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230526164358.86393-5-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_rtp.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_rtp.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/xe/xe_rtp.h b/drivers/gpu/drm/xe/xe_rtp.h index c4b718b9632e..179b497186d2 100644 --- a/drivers/gpu/drm/xe/xe_rtp.h +++ b/drivers/gpu/drm/xe/xe_rtp.h @@ -261,7 +261,7 @@ struct xe_reg_sr; #define XE_RTP_NAME(s_) .name = (s_) /** - * XE_RTP_ENTRY_FLAG - Helper to add multiple flags to a struct xe_rtp_entry + * XE_RTP_ENTRY_FLAG - Helper to add multiple flags to a struct xe_rtp_entry_sr * @...: Entry flags, without the ``XE_RTP_ENTRY_FLAG_`` prefix * * Helper to automatically add a ``XE_RTP_ENTRY_FLAG_`` prefix to the flags @@ -269,7 +269,7 @@ struct xe_reg_sr; * * .. code-block:: c * - * const struct xe_rtp_entry wa_entries[] = { + * const struct xe_rtp_entry_sr wa_entries[] = { * ... * { XE_RTP_NAME("test-entry"), * ... @@ -291,7 +291,7 @@ struct xe_reg_sr; * * .. code-block:: c * - * const struct xe_rtp_entry wa_entries[] = { + * const struct xe_rtp_entry_sr wa_entries[] = { * ... * { XE_RTP_NAME("test-entry"), * ... @@ -305,7 +305,7 @@ struct xe_reg_sr; .flags = (XE_RTP_PASTE_FOREACH(ACTION_FLAG_, BITWISE_OR, (__VA_ARGS__))) /** - * XE_RTP_RULES - Helper to set multiple rules to a struct xe_rtp_entry entry + * XE_RTP_RULES - Helper to set multiple rules to a struct xe_rtp_entry_sr entry * @...: Rules * * At least one rule is needed and up to 4 are supported. Multiple rules are @@ -314,7 +314,7 @@ struct xe_reg_sr; * * .. code-block:: c * - * const struct xe_rtp_entry wa_entries[] = { + * const struct xe_rtp_entry_sr wa_entries[] = { * ... * { XE_RTP_NAME("test-entry"), * XE_RTP_RULES(SUBPLATFORM(DG2, G10), STEP(A0, B0)), @@ -330,7 +330,7 @@ struct xe_reg_sr; } /** - * XE_RTP_ACTIONS - Helper to set multiple actions to a struct xe_rtp_entry + * XE_RTP_ACTIONS - Helper to set multiple actions to a struct xe_rtp_entry_sr * @...: Actions to be taken * * At least one rule is needed and up to 4 are supported. Multiple rules are @@ -339,7 +339,7 @@ struct xe_reg_sr; * * .. code-block:: c * - * const struct xe_rtp_entry wa_entries[] = { + * const struct xe_rtp_entry_sr wa_entries[] = { * ... * { XE_RTP_NAME("test-entry"), * XE_RTP_RULES(...), @@ -359,9 +359,9 @@ struct xe_reg_sr; struct xe_hw_engine *: (struct xe_rtp_process_ctx){ { (void *)(arg__) }, XE_RTP_PROCESS_TYPE_ENGINE }, \ struct xe_gt *: (struct xe_rtp_process_ctx){ { (void *)(arg__) }, XE_RTP_PROCESS_TYPE_GT }) -void xe_rtp_process(struct xe_rtp_process_ctx *ctx, - const struct xe_rtp_entry *entries, - struct xe_reg_sr *sr); +void xe_rtp_process_to_sr(struct xe_rtp_process_ctx *ctx, + const struct xe_rtp_entry_sr *entries, + struct xe_reg_sr *sr); /* Match functions to be used with XE_RTP_MATCH_FUNC */ |