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 1a7460a commit a2d6f86Copy full SHA for a2d6f86
drivers/gpu/drm/xe/xe_gt_topology.h
@@ -25,6 +25,19 @@ void xe_gt_topology_init(struct xe_gt *gt);
25
26
void xe_gt_topology_dump(struct xe_gt *gt, struct drm_printer *p);
27
28
+/**
29
+ * xe_gt_topology_mask_last_dss() - Returns the index of the last DSS in a mask.
30
+ * @mask: Input DSS mask
31
+ *
32
+ * Return: Index of the last DSS in the input DSS mask,
33
+ * XE_MAX_DSS_FUSE_BITS if DSS mask is empty.
34
+ */
35
+static inline unsigned int
36
+xe_gt_topology_mask_last_dss(const xe_dss_mask_t mask)
37
+{
38
+ return find_last_bit(mask, XE_MAX_DSS_FUSE_BITS);
39
+}
40
+
41
unsigned int
42
xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
43
0 commit comments