Lines Matching defs:xe

54 	struct xe_device *xe = gt_to_xe(gt);
58 bo = xe_bo_create_pin_map(xe, gt_to_tile(gt), NULL,
68 return drmm_add_action_or_reset(&xe->drm, free_gsc_pkt, huc);
75 struct xe_device *xe = gt_to_xe(gt);
104 drm_err(&xe->drm, "HuC init failed with %d", ret);
111 struct xe_device *xe = huc_to_xe(huc);
120 ret = xe_managed_bo_reinit_in_vram(xe, tile, &huc->fw.bo);
139 static u32 huc_emit_pxp_auth_msg(struct xe_device *xe, struct iosys_map *map,
142 xe_map_memset(xe, map, wr_offset, 0, sizeof(struct pxp43_new_huc_auth_in));
144 huc_auth_msg_wr(xe, map, wr_offset, header.api_version, PXP_APIVER(4, 3));
145 huc_auth_msg_wr(xe, map, wr_offset, header.command_id, PXP43_CMDID_NEW_HUC_AUTH);
146 huc_auth_msg_wr(xe, map, wr_offset, header.status, 0);
147 huc_auth_msg_wr(xe, map, wr_offset, header.buffer_len,
149 huc_auth_msg_wr(xe, map, wr_offset, huc_base_address, huc_offset);
150 huc_auth_msg_wr(xe, map, wr_offset, huc_size, huc_size);
158 struct xe_device *xe = gt_to_xe(gt);
172 wr_offset = xe_gsc_emit_header(xe, &pkt->vmap, 0, HECI_MEADDRESS_PXP, 0,
174 wr_offset = huc_emit_pxp_auth_msg(xe, &pkt->vmap, wr_offset,
184 if (xe_gsc_check_and_update_pending(xe, &pkt->vmap, 0, &pkt->vmap,
192 drm_err(&xe->drm, "failed to submit GSC request to auth: %d\n", err);
196 err = xe_gsc_read_out_header(xe, &pkt->vmap, PXP43_HUC_AUTH_INOUT_SIZE,
199 drm_err(&xe->drm, "HuC: invalid GSC reply for auth (err=%d)\n", err);
208 out_status = huc_auth_msg_rd(xe, &pkt->vmap, rd_offset, header.status);
210 drm_err(&xe->drm, "auth failed with GSC error = 0x%x\n", out_status);
239 struct xe_device *xe = huc_to_xe(huc);
269 drm_err(&xe->drm, "Failed to trigger HuC auth via %s: %d\n",
277 drm_err(&xe->drm, "HuC: Firmware not verified %d\n", ret);
282 drm_dbg(&xe->drm, "HuC authenticated via %s\n", huc_auth_modes[type].name);
287 drm_err(&xe->drm, "HuC: Auth via %s failed: %d\n",