Lines Matching defs:xe
15 void xe_sriov_probe_early(struct xe_device *xe, bool has_sriov);
16 int xe_sriov_init(struct xe_device *xe);
18 static inline enum xe_sriov_mode xe_device_sriov_mode(struct xe_device *xe)
20 xe_assert(xe, xe->sriov.__mode);
21 return xe->sriov.__mode;
24 static inline bool xe_device_is_sriov_pf(struct xe_device *xe)
26 return xe_device_sriov_mode(xe) == XE_SRIOV_MODE_PF;
29 static inline bool xe_device_is_sriov_vf(struct xe_device *xe)
31 return xe_device_sriov_mode(xe) == XE_SRIOV_MODE_VF;
35 #define IS_SRIOV_PF(xe) xe_device_is_sriov_pf(xe)
37 #define IS_SRIOV_PF(xe) (typecheck(struct xe_device *, (xe)) && false)
39 #define IS_SRIOV_VF(xe) xe_device_is_sriov_vf(xe)
41 #define IS_SRIOV(xe) (IS_SRIOV_PF(xe) || IS_SRIOV_VF(xe))