Lines Matching defs:xe
16 * @xe: the PF &xe_device to assert on
19 * Assert that &xe represents the Physical Function (PF) device and provided &vfid
25 #define xe_sriov_pf_assert_vfid(xe, vfid) \
26 xe_assert((xe), (vfid) <= xe_sriov_pf_get_totalvfs(xe))
30 * @xe: the &xe_device to query (shall be PF)
34 static inline int xe_sriov_pf_get_totalvfs(struct xe_device *xe)
36 xe_assert(xe, IS_SRIOV_PF(xe));
37 return xe->sriov.pf.driver_max_vfs;
42 * @xe: the PF &xe_device
46 static inline unsigned int xe_sriov_pf_num_vfs(const struct xe_device *xe)
48 return pci_num_vf(to_pci_dev(xe->drm.dev));
53 * @xe: the PF &xe_device
57 static inline bool xe_sriov_pf_admin_only(const struct xe_device *xe)
59 return !xe->info.probe_display;
62 static inline struct mutex *xe_sriov_pf_master_mutex(struct xe_device *xe)
64 xe_assert(xe, IS_SRIOV_PF(xe));
65 return &xe->sriov.pf.master_lock;
68 int xe_sriov_pf_arm_guard(struct xe_device *xe, struct xe_guard *guard,
70 void xe_sriov_pf_disarm_guard(struct xe_device *xe, struct xe_guard *guard,