Lines Matching refs:ras_context
193 psp_ta_free_shared_buf(&psp->ras_context.context.mem_context); in psp_free_shared_bufs()
1444 (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_ta_check_status()
1474 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_invoke()
1482 ret = psp_ta_invoke(psp, ta_cmd_id, &psp->ras_context.context); in psp_ras_invoke()
1515 if (!psp->ras_context.context.initialized) in psp_ras_enable_features()
1518 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_enable_features()
1545 if (!psp->ras_context.context.initialized) in psp_ras_terminate()
1548 ret = psp_ta_unload(psp, &psp->ras_context.context); in psp_ras_terminate()
1550 psp->ras_context.context.initialized = false; in psp_ras_terminate()
1568 if (!adev->psp.ras_context.context.bin_desc.size_bytes || in psp_ras_initialize()
1569 !adev->psp.ras_context.context.bin_desc.start_addr) { in psp_ras_initialize()
1615 psp->ras_context.context.mem_context.shared_mem_size = PSP_RAS_SHARED_MEM_SIZE; in psp_ras_initialize()
1616 psp->ras_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA; in psp_ras_initialize()
1618 if (!psp->ras_context.context.initialized) { in psp_ras_initialize()
1619 ret = psp_ta_init_shared_buf(psp, &psp->ras_context.context.mem_context); in psp_ras_initialize()
1624 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_initialize()
1632 ret = psp_ta_load(psp, &psp->ras_context.context); in psp_ras_initialize()
1635 psp->ras_context.context.initialized = true; in psp_ras_initialize()
1651 if (!psp->ras_context.context.initialized) in psp_ras_trigger_error()
1654 ras_cmd = (struct ta_ras_shared_memory *)psp->ras_context.context.mem_context.shared_buf; in psp_ras_trigger_error()
2404 struct amdgpu_ras *ras = psp->ras_context.ras; in psp_load_smu_fw()
3249 psp->ras_context.context.bin_desc.fw_version = le32_to_cpu(desc->fw_version); in parse_ta_bin_descriptor()
3250 psp->ras_context.context.bin_desc.size_bytes = le32_to_cpu(desc->size_bytes); in parse_ta_bin_descriptor()
3251 psp->ras_context.context.bin_desc.start_addr = ucode_start_addr; in parse_ta_bin_descriptor()