Lines Matching refs:xgmi_context
190 psp_ta_free_shared_buf(&psp->xgmi_context.context.mem_context); in psp_free_shared_bufs()
387 adev->psp.xgmi_context.supports_extended_data = in psp_sw_init()
1169 return psp_ta_invoke(psp, ta_cmd_id, &psp->xgmi_context.context); in psp_xgmi_invoke()
1183 if (!psp->xgmi_context.context.initialized) in psp_xgmi_terminate()
1186 ret = psp_ta_unload(psp, &psp->xgmi_context.context); in psp_xgmi_terminate()
1188 psp->xgmi_context.context.initialized = false; in psp_xgmi_terminate()
1199 !psp->xgmi_context.context.bin_desc.size_bytes || in psp_xgmi_initialize()
1200 !psp->xgmi_context.context.bin_desc.start_addr) in psp_xgmi_initialize()
1206 psp->xgmi_context.context.mem_context.shared_mem_size = PSP_XGMI_SHARED_MEM_SIZE; in psp_xgmi_initialize()
1207 psp->xgmi_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA; in psp_xgmi_initialize()
1209 if (!psp->xgmi_context.context.mem_context.shared_buf) { in psp_xgmi_initialize()
1210 ret = psp_ta_init_shared_buf(psp, &psp->xgmi_context.context.mem_context); in psp_xgmi_initialize()
1216 ret = psp_ta_load(psp, &psp->xgmi_context.context); in psp_xgmi_initialize()
1218 psp->xgmi_context.context.initialized = true; in psp_xgmi_initialize()
1224 xgmi_cmd = (struct ta_xgmi_shared_memory *)(psp->xgmi_context.context.mem_context.shared_buf); in psp_xgmi_initialize()
1239 xgmi_cmd = (struct ta_xgmi_shared_memory *)psp->xgmi_context.context.mem_context.shared_buf; in psp_xgmi_get_hive_id()
1259 xgmi_cmd = (struct ta_xgmi_shared_memory *)psp->xgmi_context.context.mem_context.shared_buf; in psp_xgmi_get_node_id()
1277 psp->xgmi_context.context.bin_desc.fw_version >= 0x2000000b; in psp_xgmi_peer_link_info_supported()
1305 mirror_top_info = &mirror_adev->psp.xgmi_context.top_info; in psp_xgmi_reflect_topology_info()
1342 xgmi_cmd = (struct ta_xgmi_shared_memory *)psp->xgmi_context.context.mem_context.shared_buf; in psp_xgmi_get_topology_info()
1402 if (psp->xgmi_context.supports_extended_data && in psp_xgmi_get_topology_info()
1422 xgmi_cmd = (struct ta_xgmi_shared_memory *)psp->xgmi_context.context.mem_context.shared_buf; in psp_xgmi_set_topology_info()
2686 psp->xgmi_context.context.initialized) { in psp_suspend()
3244 psp->xgmi_context.context.bin_desc.fw_version = le32_to_cpu(desc->fw_version); in parse_ta_bin_descriptor()
3245 psp->xgmi_context.context.bin_desc.size_bytes = le32_to_cpu(desc->size_bytes); in parse_ta_bin_descriptor()
3246 psp->xgmi_context.context.bin_desc.start_addr = ucode_start_addr; in parse_ta_bin_descriptor()