Lines Matching refs:rap_context
1717 return psp_ta_init_shared_buf(psp, &psp->rap_context.context.mem_context); in psp_rap_init_shared_buf()
1722 return psp_ta_load(psp, &psp->rap_context.context); in psp_rap_load()
1727 return psp_ta_unload(psp, &psp->rap_context.context); in psp_rap_unload()
1741 if (!psp->rap_context.context.bin_desc.size_bytes || in psp_rap_initialize()
1742 !psp->rap_context.context.bin_desc.start_addr) { in psp_rap_initialize()
1747 psp->rap_context.context.mem_context.shared_mem_size = PSP_RAP_SHARED_MEM_SIZE; in psp_rap_initialize()
1748 psp->rap_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA; in psp_rap_initialize()
1750 if (!psp->rap_context.context.initialized) { in psp_rap_initialize()
1758 psp->rap_context.context.initialized = true; in psp_rap_initialize()
1759 mutex_init(&psp->rap_context.mutex); in psp_rap_initialize()
1780 if (!psp->rap_context.context.initialized) in psp_rap_terminate()
1785 psp->rap_context.context.initialized = false; in psp_rap_terminate()
1788 psp_ta_free_shared_buf(&psp->rap_context.context.mem_context); in psp_rap_terminate()
1798 if (!psp->rap_context.context.initialized) in psp_rap_invoke()
1805 mutex_lock(&psp->rap_context.mutex); in psp_rap_invoke()
1808 psp->rap_context.context.mem_context.shared_buf; in psp_rap_invoke()
1814 ret = psp_ta_invoke(psp, rap_cmd->cmd_id, &psp->rap_context.context); in psp_rap_invoke()
1822 mutex_unlock(&psp->rap_context.mutex); in psp_rap_invoke()
3131 psp->rap_context.context.bin_desc.fw_version = le32_to_cpu(desc->fw_version); in parse_ta_bin_descriptor()
3132 psp->rap_context.context.bin_desc.size_bytes = le32_to_cpu(desc->size_bytes); in parse_ta_bin_descriptor()
3133 psp->rap_context.context.bin_desc.start_addr = ucode_start_addr; in parse_ta_bin_descriptor()