We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38820e6 commit 9d62b07Copy full SHA for 9d62b07
drivers/gpu/drm/xe/xe_force_wake.h
@@ -46,4 +46,20 @@ xe_force_wake_assert_held(struct xe_force_wake *fw,
46
xe_gt_assert(fw->gt, fw->awake_domains & domain);
47
}
48
49
+/**
50
+ * xe_force_wake_ref_has_domain - verifies if the domains are in fw_ref
51
+ * @fw_ref : the force_wake reference
52
+ * @domain : forcewake domain to verify
53
+ *
54
+ * This function confirms whether the @fw_ref includes a reference to the
55
+ * specified @domain.
56
57
+ * Return: true if domain is refcounted.
58
+ */
59
+static inline bool
60
+xe_force_wake_ref_has_domain(unsigned int fw_ref, enum xe_force_wake_domains domain)
61
+{
62
+ return fw_ref & domain;
63
+}
64
+
65
#endif
0 commit comments