Lines Matching +full:0 +full:xe
50 struct xe_device *xe = gt_to_xe(gt); in huc_alloc_gsc_pkt() local
54 bo = xe_managed_bo_create_pin_map(xe, gt_to_tile(gt), in huc_alloc_gsc_pkt()
63 return 0; in huc_alloc_gsc_pkt()
70 struct xe_device *xe = gt_to_xe(gt); in xe_huc_init() local
78 return 0; in xe_huc_init()
86 return 0; in xe_huc_init()
88 if (IS_SRIOV_VF(xe)) in xe_huc_init()
89 return 0; in xe_huc_init()
99 return 0; in xe_huc_init()
109 struct xe_device *xe = huc_to_xe(huc); in xe_huc_init_post_hwconfig() local
113 return 0; in xe_huc_init_post_hwconfig()
116 return 0; in xe_huc_init_post_hwconfig()
118 ret = xe_managed_bo_reinit_in_vram(xe, tile, &huc->fw.bo); in xe_huc_init_post_hwconfig()
122 return 0; in xe_huc_init_post_hwconfig()
128 return 0; in xe_huc_upload()
129 return xe_uc_fw_upload(&huc->fw, 0, HUC_UKERNEL); in xe_huc_upload()
137 static u32 huc_emit_pxp_auth_msg(struct xe_device *xe, struct iosys_map *map, in huc_emit_pxp_auth_msg() argument
140 xe_map_memset(xe, map, wr_offset, 0, sizeof(struct pxp43_new_huc_auth_in)); in huc_emit_pxp_auth_msg()
142 huc_auth_msg_wr(xe, map, wr_offset, header.api_version, PXP_APIVER(4, 3)); in huc_emit_pxp_auth_msg()
143 huc_auth_msg_wr(xe, map, wr_offset, header.command_id, PXP43_CMDID_NEW_HUC_AUTH); in huc_emit_pxp_auth_msg()
144 huc_auth_msg_wr(xe, map, wr_offset, header.status, 0); in huc_emit_pxp_auth_msg()
145 huc_auth_msg_wr(xe, map, wr_offset, header.buffer_len, in huc_emit_pxp_auth_msg()
147 huc_auth_msg_wr(xe, map, wr_offset, huc_base_address, huc_offset); in huc_emit_pxp_auth_msg()
148 huc_auth_msg_wr(xe, map, wr_offset, huc_size, huc_size); in huc_emit_pxp_auth_msg()
156 struct xe_device *xe = gt_to_xe(gt); in huc_auth_via_gsccs() local
163 int err = 0; in huc_auth_via_gsccs()
170 wr_offset = xe_gsc_emit_header(xe, &pkt->vmap, 0, HECI_MEADDRESS_PXP, 0, in huc_auth_via_gsccs()
172 wr_offset = huc_emit_pxp_auth_msg(xe, &pkt->vmap, wr_offset, in huc_auth_via_gsccs()
182 if (xe_gsc_check_and_update_pending(xe, &pkt->vmap, 0, &pkt->vmap, in huc_auth_via_gsccs()
194 err = xe_gsc_read_out_header(xe, &pkt->vmap, PXP43_HUC_AUTH_INOUT_SIZE, in huc_auth_via_gsccs()
206 out_status = huc_auth_msg_rd(xe, &pkt->vmap, rd_offset, header.status); in huc_auth_via_gsccs()
212 return 0; in huc_auth_via_gsccs()
242 return 0; in xe_huc_auth()
247 return 0; in xe_huc_auth()
281 return 0; in xe_huc_auth()
310 drm_printf(p, "\nHuC status: 0x%08x\n", in xe_huc_print_info()