Ville Syrjälä
df52905359
drm/i915: Introduce intel_crtc_is_bigjoiner_{slave,master}()
...
Introduce helpers to query whether the crtc is the slave/master
for bigjoiner. This decouples most places from the exact
state layout we use to track this relationship, allowing us
to change and extend it more easily.
Performed with cocci:
@@
expression S, E;
@@
(
S->bigjoiner_slave = E;
|
- S->bigjoiner_slave
+ intel_crtc_is_bigjoiner_slave(S)
)
@@
expression S, E;
@@
(
- E && S->bigjoiner && !intel_crtc_is_bigjoiner_slave(S)
+ E && intel_crtc_is_bigjoiner_master(S)
|
- S->bigjoiner && !intel_crtc_is_bigjoiner_slave(S)
+ intel_crtc_is_bigjoiner_master(S)
)
@@
expression S;
@@
- (intel_crtc_is_bigjoiner_master(S))
+ intel_crtc_is_bigjoiner_master(S)
@@
expression S, E1, E2, E3;
@@
- intel_crtc_is_bigjoiner_slave(S) ? E1 : S->bigjoiner ? E2 : E3
+ intel_crtc_is_bigjoiner_slave(S) ? E1 : intel_crtc_is_bigjoiner_master(S) ? E2 : E3
@@
typedef bool;
@@
+ bool intel_crtc_is_bigjoiner_slave(const struct intel_crtc_state *crtc_state)
+ {
+ return crtc_state->bigjoiner_slave;
+ }
+
intel_master_crtc(...) {...}
@@
typedef bool;
@@
+ bool intel_crtc_is_bigjoiner_master(const struct intel_crtc_state *crtc_state)
+ {
+ return crtc_state->bigjoiner && !crtc_state->bigjoiner_slave;
+ }
+
intel_master_crtc(...) {...}
@@
typedef bool;
identifier S;
@@
- bool is_trans_port_sync_mode(const struct intel_crtc_state *S);
+ bool is_trans_port_sync_mode(const struct intel_crtc_state *state);
+ bool intel_crtc_is_bigjoiner_slave(const struct intel_crtc_state *crtc_state);
+ bool intel_crtc_is_bigjoiner_master(const struct intel_crtc_state *crtc_state);
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220203183823.22890-7-ville.syrjala@linux.intel.com
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
2022-02-15 14:38:12 +02:00
..
2022-02-15 14:38:12 +02:00
2022-02-14 13:39:54 +02:00
2022-02-14 13:19:37 +02:00
2022-02-14 13:39:54 +02:00
2022-02-02 07:59:14 -08:00
2022-02-11 13:22:10 +02:00
2021-12-13 12:04:44 +02:00
2021-12-20 16:26:09 +01:00
2021-12-20 16:26:09 +01:00
2022-02-14 13:19:37 +02:00
2022-01-10 15:43:09 +02:00
2021-10-07 11:04:05 -07:00
2021-12-17 21:51:59 -08:00
2022-02-14 12:19:06 +02:00
2021-12-22 08:52:57 +01:00
2021-12-22 08:52:57 +01:00
2022-02-14 13:16:28 +02:00
2022-02-10 11:44:25 +02:00
2022-02-14 14:16:55 +02:00
2022-02-14 13:16:28 +02:00
2022-01-10 15:43:12 +02:00
2022-01-10 15:43:12 +02:00
2022-01-10 15:43:12 +02:00
2022-02-14 13:19:37 +02:00
2022-01-31 13:19:33 -05:00
2022-01-10 15:43:05 +02:00
2022-02-14 13:19:37 +02:00
2022-02-14 13:07:11 +02:00
2022-01-10 15:43:05 +02:00
2022-01-21 09:59:22 +02:00
2022-01-21 09:59:22 +02:00
2021-10-27 00:32:01 -07:00
2022-02-10 11:44:25 +02:00
2022-02-09 13:39:35 +02:00
2022-02-10 11:44:25 +02:00
2021-12-08 13:26:14 -08:00
2022-02-03 01:06:56 -08:00
2022-02-10 11:44:25 +02:00
2021-12-14 15:08:20 +05:30
2021-12-14 15:08:20 +05:30
2022-02-14 13:39:54 +02:00
2022-02-02 07:52:23 -08:00
2022-02-02 07:59:54 -08:00
2022-02-14 13:16:28 +02:00
2022-02-02 07:59:14 -08:00
2021-12-17 21:51:59 -08:00
2022-02-02 07:59:54 -08:00
2022-02-14 20:55:39 -08:00
2022-02-10 11:44:25 +02:00
2021-12-22 08:14:30 +01:00
2021-11-01 18:10:49 +01:00
2021-11-01 18:10:49 +01:00
2022-01-10 16:17:46 +02:00
2021-11-30 17:52:15 -08:00
2021-11-30 17:52:15 -08:00
2021-11-30 17:52:15 -08:00
2021-11-17 11:47:55 +02:00
2022-02-02 07:59:14 -08:00
2021-12-09 11:21:46 +02:00
2022-01-24 14:02:16 +02:00
2021-12-01 16:53:22 +01:00
2021-12-01 16:53:22 +01:00
2021-12-24 06:14:51 +10:00
2022-01-31 13:19:33 -05:00
2021-12-20 16:31:02 +01:00
2022-02-07 12:55:30 -08:00
2022-01-31 13:19:33 -05:00
2022-02-02 07:59:54 -08:00
2021-12-17 21:51:59 -08:00
2021-12-14 15:08:20 +05:30
2021-11-25 09:36:16 +01:00
2021-12-08 13:03:04 -08:00
2021-12-08 13:03:04 -08:00
2022-01-10 16:17:46 +02:00
2022-02-02 07:59:54 -08:00
2022-01-13 15:20:57 +02:00
2021-12-03 11:28:12 +02:00
2022-02-11 15:46:02 +02:00
2022-02-07 11:10:32 +02:00
2021-11-25 09:36:16 +01:00
2021-11-25 09:36:16 +01:00
2022-02-11 13:22:10 +02:00
2022-02-11 13:22:10 +02:00
2022-02-02 07:59:54 -08:00
2021-10-14 18:05:04 +03:00
2021-11-02 13:05:40 -07:00
2021-11-02 13:05:40 -07:00
2022-02-02 07:59:14 -08:00
2022-02-02 07:59:54 -08:00
2021-10-15 10:37:26 -07:00
2021-12-17 21:51:59 -08:00
2021-11-22 17:35:32 +02:00
2022-02-09 21:51:25 +02:00
2022-01-10 16:17:50 +02:00
2022-02-02 07:59:54 -08:00
2022-01-10 16:17:50 +02:00
2022-02-02 07:59:14 -08:00