Lines Matching defs:xe

36 int xe_device_probe_early(struct xe_device *xe);
37 int xe_device_probe(struct xe_device *xe);
38 void xe_device_remove(struct xe_device *xe);
39 void xe_device_shutdown(struct xe_device *xe);
41 void xe_device_wmb(struct xe_device *xe);
48 static inline struct xe_tile *xe_device_get_root_tile(struct xe_device *xe)
50 return &xe->tiles[0];
63 static inline struct xe_gt *xe_device_get_gt(struct xe_device *xe, u8 gt_id)
65 struct xe_tile *root_tile = xe_device_get_root_tile(xe);
75 if (MEDIA_VER(xe) >= 13) {
78 if (drm_WARN_ON(&xe->drm, gt_id >= XE_MAX_TILES_PER_DEVICE))
81 gt = xe->tiles[gt_id].primary_gt;
87 drm_WARN_ON(&xe->drm, gt->info.id != gt_id);
88 drm_WARN_ON(&xe->drm, gt->info.type == XE_GT_TYPE_UNINITIALIZED);
105 static inline struct xe_gt *xe_root_mmio_gt(struct xe_device *xe)
107 return xe_device_get_root_tile(xe)->primary_gt;
110 static inline bool xe_device_uc_enabled(struct xe_device *xe)
112 return !xe->info.force_execlist;
136 void xe_device_assert_mem_access(struct xe_device *xe);
138 static inline bool xe_device_in_fault_mode(struct xe_device *xe)
140 return xe->usm.num_vm_in_fault_mode != 0;
143 static inline bool xe_device_in_non_fault_mode(struct xe_device *xe)
145 return xe->usm.num_vm_in_non_fault_mode != 0;
148 static inline bool xe_device_has_flat_ccs(struct xe_device *xe)
150 return xe->info.has_flat_ccs;
153 static inline bool xe_device_has_sriov(struct xe_device *xe)
155 return xe->info.has_sriov;
158 static inline bool xe_device_has_memirq(struct xe_device *xe)
160 return GRAPHICS_VERx100(xe) >= 1250;
163 u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size);
165 void xe_device_snapshot_print(struct xe_device *xe, struct drm_printer *p);
167 u64 xe_device_canonicalize_addr(struct xe_device *xe, u64 address);
168 u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address);