Lines Matching refs:xe
18 void xe_sriov_probe_early(struct xe_device *xe);
19 void xe_sriov_print_info(struct xe_device *xe, struct drm_printer *p);
20 int xe_sriov_init(struct xe_device *xe);
22 static inline enum xe_sriov_mode xe_device_sriov_mode(const struct xe_device *xe) in xe_device_sriov_mode() argument
24 xe_assert(xe, xe->sriov.__mode); in xe_device_sriov_mode()
25 return xe->sriov.__mode; in xe_device_sriov_mode()
28 static inline bool xe_device_is_sriov_pf(const struct xe_device *xe) in xe_device_is_sriov_pf() argument
30 return xe_device_sriov_mode(xe) == XE_SRIOV_MODE_PF; in xe_device_is_sriov_pf()
33 static inline bool xe_device_is_sriov_vf(const struct xe_device *xe) in xe_device_is_sriov_vf() argument
35 return xe_device_sriov_mode(xe) == XE_SRIOV_MODE_VF; in xe_device_is_sriov_vf()
39 #define IS_SRIOV_PF(xe) xe_device_is_sriov_pf(xe) argument
41 #define IS_SRIOV_PF(xe) (typecheck(struct xe_device *, (xe)) && false) argument
43 #define IS_SRIOV_VF(xe) xe_device_is_sriov_vf(xe) argument
45 #define IS_SRIOV(xe) (IS_SRIOV_PF(xe) || IS_SRIOV_VF(xe)) argument