Lines Matching refs:rap_context

271 	psp_ta_free_shared_buf(&psp->rap_context.context.mem_context);  in psp_free_shared_bufs()
1894 if (!psp->rap_context.context.bin_desc.size_bytes || in psp_rap_initialize()
1895 !psp->rap_context.context.bin_desc.start_addr) { in psp_rap_initialize()
1900 psp->rap_context.context.mem_context.shared_mem_size = PSP_RAP_SHARED_MEM_SIZE; in psp_rap_initialize()
1901 psp->rap_context.context.ta_load_type = GFX_CMD_ID_LOAD_TA; in psp_rap_initialize()
1903 if (!psp->rap_context.context.mem_context.shared_buf) { in psp_rap_initialize()
1904 ret = psp_ta_init_shared_buf(psp, &psp->rap_context.context.mem_context); in psp_rap_initialize()
1909 ret = psp_ta_load(psp, &psp->rap_context.context); in psp_rap_initialize()
1911 psp->rap_context.context.initialized = true; in psp_rap_initialize()
1912 mutex_init(&psp->rap_context.mutex); in psp_rap_initialize()
1920 psp_ta_free_shared_buf(&psp->rap_context.context.mem_context); in psp_rap_initialize()
1935 if (!psp->rap_context.context.initialized) in psp_rap_terminate()
1938 ret = psp_ta_unload(psp, &psp->rap_context.context); in psp_rap_terminate()
1940 psp->rap_context.context.initialized = false; in psp_rap_terminate()
1950 if (!psp->rap_context.context.initialized) in psp_rap_invoke()
1957 mutex_lock(&psp->rap_context.mutex); in psp_rap_invoke()
1960 psp->rap_context.context.mem_context.shared_buf; in psp_rap_invoke()
1966 ret = psp_ta_invoke(psp, rap_cmd->cmd_id, &psp->rap_context.context); in psp_rap_invoke()
1974 mutex_unlock(&psp->rap_context.mutex); in psp_rap_invoke()
3297 psp->rap_context.context.bin_desc.fw_version = le32_to_cpu(desc->fw_version); in parse_ta_bin_descriptor()
3298 psp->rap_context.context.bin_desc.size_bytes = le32_to_cpu(desc->size_bytes); in parse_ta_bin_descriptor()
3299 psp->rap_context.context.bin_desc.start_addr = ucode_start_addr; in parse_ta_bin_descriptor()