Lines Matching defs:xe
60 * @xe: the Xe device
69 u32 xe_gsc_emit_header(struct xe_device *xe, struct iosys_map *map, u32 offset,
72 xe_assert(xe, !(host_session_id & HOST_SESSION_CLIENT_MASK));
77 xe_map_memset(xe, map, offset, 0, GSC_HDR_SIZE);
79 mtl_gsc_header_wr(xe, map, offset, validity_marker, GSC_HECI_VALIDITY_MARKER);
80 mtl_gsc_header_wr(xe, map, offset, heci_client_id, heci_client_id);
81 mtl_gsc_header_wr(xe, map, offset, host_session_handle, host_session_id);
82 mtl_gsc_header_wr(xe, map, offset, header_version, MTL_GSC_HEADER_VERSION);
83 mtl_gsc_header_wr(xe, map, offset, message_size, payload_size + GSC_HDR_SIZE);
90 * @xe: the Xe device
94 void xe_gsc_poison_header(struct xe_device *xe, struct iosys_map *map, u32 offset)
96 xe_map_memset(xe, map, offset, POISON_FREE, GSC_HDR_SIZE);
102 * @xe: the Xe device
110 bool xe_gsc_check_and_update_pending(struct xe_device *xe,
114 if (mtl_gsc_header_rd(xe, out, offset_out, flags) & GSC_OUTFLAG_MSG_PENDING) {
115 u64 handle = mtl_gsc_header_rd(xe, out, offset_out, gsc_message_handle);
117 mtl_gsc_header_wr(xe, in, offset_in, gsc_message_handle, handle);
128 * @xe: the Xe device
136 int xe_gsc_read_out_header(struct xe_device *xe,
141 u32 marker = mtl_gsc_header_rd(xe, map, offset, validity_marker);
142 u32 size = mtl_gsc_header_rd(xe, map, offset, message_size);
143 u32 status = mtl_gsc_header_rd(xe, map, offset, status);
150 drm_err(&xe->drm, "GSC header readout indicates error: %d\n",