Lines Matching refs:cmd

169 	struct tee_cmd_unload_ta cmd = {0};  in handle_unload_ta()  local
187 cmd.ta_handle = ta_handle; in handle_unload_ta()
189 ret = psp_tee_process_cmd(TEE_CMD_ID_UNLOAD_TA, (void *)&cmd, in handle_unload_ta()
190 sizeof(cmd), &status); in handle_unload_ta()
205 struct tee_cmd_close_session cmd = {0}; in handle_close_session() local
212 cmd.ta_handle = ta_handle; in handle_close_session()
213 cmd.session_info = info; in handle_close_session()
215 ret = psp_tee_process_cmd(TEE_CMD_ID_CLOSE_SESSION, (void *)&cmd, in handle_close_session()
216 sizeof(cmd), &status); in handle_close_session()
227 struct tee_cmd_unmap_shared_mem cmd = {0}; in handle_unmap_shmem() local
231 cmd.buf_id = buf_id; in handle_unmap_shmem()
233 ret = psp_tee_process_cmd(TEE_CMD_ID_UNMAP_SHARED_MEM, (void *)&cmd, in handle_unmap_shmem()
234 sizeof(cmd), &status); in handle_unmap_shmem()
243 struct tee_cmd_invoke_cmd cmd = {0}; in handle_invoke_cmd() local
256 ret = tee_params_to_amd_params(p, arg->num_params, &cmd.op); in handle_invoke_cmd()
263 cmd.ta_handle = get_ta_handle(arg->session); in handle_invoke_cmd()
264 cmd.cmd_id = arg->func; in handle_invoke_cmd()
265 cmd.session_info = sinfo; in handle_invoke_cmd()
267 ret = psp_tee_process_cmd(TEE_CMD_ID_INVOKE_CMD, (void *)&cmd, in handle_invoke_cmd()
268 sizeof(cmd), &arg->ret); in handle_invoke_cmd()
272 ret = amd_params_to_tee_params(p, arg->num_params, &cmd.op); in handle_invoke_cmd()
278 arg->ret_origin = cmd.return_origin; in handle_invoke_cmd()
288 struct tee_cmd_map_shared_mem *cmd; in handle_map_shmem() local
296 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in handle_map_shmem()
297 if (!cmd) in handle_map_shmem()
315 cmd->sg_list.count = count; in handle_map_shmem()
320 cmd->sg_list.buf[i].hi_addr = upper_32_bits(paddr); in handle_map_shmem()
321 cmd->sg_list.buf[i].low_addr = lower_32_bits(paddr); in handle_map_shmem()
322 cmd->sg_list.buf[i].size = start[i].size; in handle_map_shmem()
323 cmd->sg_list.size += cmd->sg_list.buf[i].size; in handle_map_shmem()
326 cmd->sg_list.buf[i].hi_addr); in handle_map_shmem()
328 cmd->sg_list.buf[i].low_addr); in handle_map_shmem()
329 pr_debug("buf[%d]:size = 0x%x\n", i, cmd->sg_list.buf[i].size); in handle_map_shmem()
330 pr_debug("list size = 0x%x\n", cmd->sg_list.size); in handle_map_shmem()
335 ret = psp_tee_process_cmd(TEE_CMD_ID_MAP_SHARED_MEM, (void *)cmd, in handle_map_shmem()
336 sizeof(*cmd), &status); in handle_map_shmem()
338 *buf_id = cmd->buf_id; in handle_map_shmem()
346 kfree(cmd); in handle_map_shmem()
354 struct tee_cmd_open_session cmd = {0}; in handle_open_session() local
367 ret = tee_params_to_amd_params(p, arg->num_params, &cmd.op); in handle_open_session()
374 cmd.ta_handle = get_ta_handle(arg->session); in handle_open_session()
377 ret = psp_tee_process_cmd(TEE_CMD_ID_OPEN_SESSION, (void *)&cmd, in handle_open_session()
378 sizeof(cmd), &arg->ret); in handle_open_session()
382 ret = amd_params_to_tee_params(p, arg->num_params, &cmd.op); in handle_open_session()
388 arg->ret_origin = cmd.return_origin; in handle_open_session()
389 *info = cmd.session_info; in handle_open_session()