Lines Matching defs:xe

26 static bool has_samedia(const struct xe_device *xe)
28 return xe->info.media_verx100 >= 1300;
31 static bool rule_matches(const struct xe_device *xe,
44 match = xe->info.platform == r->platform;
47 match = xe->info.platform == r->platform &&
48 xe->info.subplatform == r->subplatform;
51 match = xe->info.graphics_verx100 == r->ver_start &&
52 (!has_samedia(xe) || !xe_gt_is_media_type(gt));
55 match = xe->info.graphics_verx100 >= r->ver_start &&
56 xe->info.graphics_verx100 <= r->ver_end &&
57 (!has_samedia(xe) || !xe_gt_is_media_type(gt));
60 match = xe->info.step.graphics >= r->step_start &&
61 xe->info.step.graphics < r->step_end &&
62 (!has_samedia(xe) || !xe_gt_is_media_type(gt));
65 match = xe->info.media_verx100 == r->ver_start &&
66 (!has_samedia(xe) || xe_gt_is_media_type(gt));
69 match = xe->info.media_verx100 >= r->ver_start &&
70 xe->info.media_verx100 <= r->ver_end &&
71 (!has_samedia(xe) || xe_gt_is_media_type(gt));
74 match = xe->info.step.media >= r->step_start &&
75 xe->info.step.media < r->step_end &&
76 (!has_samedia(xe) || xe_gt_is_media_type(gt));
79 match = !xe->info.is_dgfx;
82 match = xe->info.is_dgfx;
85 if (drm_WARN_ON(&xe->drm, !hwe))
91 if (drm_WARN_ON(&xe->drm, !hwe))
100 drm_warn(&xe->drm, "Invalid RTP match %u\n",
129 struct xe_device *xe, struct xe_gt *gt,
136 if (!rule_matches(xe, gt, hwe, entry->rules, entry->n_rules))
155 struct xe_device **xe)
161 *xe = gt_to_xe(*gt);
166 *xe = gt_to_xe(*gt);
190 static void rtp_mark_active(struct xe_device *xe,
197 if (drm_WARN_ON(&xe->drm, last > ctx->n_entries))
226 struct xe_device *xe = NULL;
228 rtp_get_context(ctx, &hwe, &gt, &xe);
238 match |= rtp_process_one_sr(entry, xe, gt,
241 match = rtp_process_one_sr(entry, xe, gt, hwe, sr);
245 rtp_mark_active(xe, ctx, entry - entries,
270 struct xe_device *xe;
272 rtp_get_context(ctx, &hwe, &gt, &xe);
275 if (drm_WARN_ON(&xe->drm, !first_entry->name))
282 if (!rule_matches(xe, gt, hwe, entry->rules, entry->n_rules))
291 rtp_mark_active(xe, ctx, first_entry - entries,