Lines Matching defs:xe
33 * @xe: the &xe_device to probe mode on
43 void xe_sriov_probe_early(struct xe_device *xe, bool has_sriov)
48 xe_assert(xe, !has_sriov);
50 xe_assert(xe, !xe->sriov.__mode);
51 xe->sriov.__mode = mode;
52 xe_assert(xe, xe->sriov.__mode);
55 drm_info(&xe->drm, "Running in %s mode\n",
56 xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
61 struct xe_device *xe = arg;
63 destroy_workqueue(xe->sriov.wq);
64 xe->sriov.wq = NULL;
69 * @xe: the &xe_device to initialize
76 int xe_sriov_init(struct xe_device *xe)
78 if (!IS_SRIOV(xe))
81 xe_assert(xe, !xe->sriov.wq);
82 xe->sriov.wq = alloc_workqueue("xe-sriov-wq", 0, 0);
83 if (!xe->sriov.wq)
86 return drmm_add_action_or_reset(&xe->drm, fini_sriov, xe);