Lines Matching refs:arg

141 	struct tee_open_session_arg arg = {};  in ZTEST()  local
159 arg.uuid[0] = 111; in ZTEST()
160 arg.clnt_uuid[0] = 222; in ZTEST()
161 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
164 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
176 struct tee_open_session_arg arg = {}; in ZTEST() local
201 arg.uuid[0] = 111; in ZTEST()
202 arg.clnt_uuid[0] = 222; in ZTEST()
203 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
206 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
223 struct tee_open_session_arg arg = {}; in ZTEST() local
233 arg.uuid[0] = 111; in ZTEST()
234 arg.clnt_uuid[0] = 222; in ZTEST()
235 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
238 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
296 struct tee_open_session_arg arg = {}; in ZTEST() local
306 arg.uuid[0] = 111; in ZTEST()
307 arg.clnt_uuid[0] = 222; in ZTEST()
308 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
311 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
390 struct optee_msg_arg *arg; in cmd_alloc_free_call() local
416 arg = (struct optee_msg_arg *)regs_to_u64(a1, a2); in cmd_alloc_free_call()
417 arg->cmd = OPTEE_RPC_CMD_SHM_ALLOC; in cmd_alloc_free_call()
418 arg->num_params = 1; in cmd_alloc_free_call()
419 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_alloc_free_call()
420 arg->params[0].u.value.b = 4096; in cmd_alloc_free_call()
421 arg->params[0].u.value.a = OPTEE_RPC_SHM_TYPE_KERNEL; in cmd_alloc_free_call()
431 arg = (struct optee_msg_arg *)shm->addr; in cmd_alloc_free_call()
432 arg->cmd = OPTEE_RPC_CMD_SHM_FREE; in cmd_alloc_free_call()
433 arg->num_params = 1; in cmd_alloc_free_call()
434 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_alloc_free_call()
435 arg->params[0].u.value.a = OPTEE_RPC_SHM_TYPE_KERNEL; in cmd_alloc_free_call()
436 arg->params[0].u.value.b = g_func_shm_ref; in cmd_alloc_free_call()
460 struct tee_open_session_arg arg = {}; in ZTEST() local
471 arg.uuid[0] = 111; in ZTEST()
472 arg.clnt_uuid[0] = 222; in ZTEST()
473 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
476 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
505 struct optee_msg_arg *arg; in cmd_rpc_call() local
531 arg = (struct optee_msg_arg *)regs_to_u64(a1, a2); in cmd_rpc_call()
533 arg->cmd = 555; in cmd_rpc_call()
534 arg->num_params = 2; in cmd_rpc_call()
535 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_rpc_call()
536 arg->params[0].u.value.a = 1111; in cmd_rpc_call()
537 arg->params[0].u.value.b = 3; in cmd_rpc_call()
538 arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT; in cmd_rpc_call()
545 arg = (struct optee_msg_arg *)shm->addr; in cmd_rpc_call()
546 zassert_equal(arg->params[1].attr, OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT, in cmd_rpc_call()
547 "%s failed wrong attr %lx", __func__, arg->params[0].attr); in cmd_rpc_call()
548 zassert_equal(arg->params[1].u.value.a, 0x1234, "%s failed wrong a %lx", in cmd_rpc_call()
549 __func__, arg->params[0].u.value.a); in cmd_rpc_call()
550 zassert_equal(arg->params[1].u.value.b, 0x5678, "%s failed wrong b %lx", in cmd_rpc_call()
551 __func__, arg->params[0].u.value.b); in cmd_rpc_call()
602 struct tee_open_session_arg arg = {}; in ZTEST() local
618 arg.uuid[0] = 111; in ZTEST()
619 arg.clnt_uuid[0] = 222; in ZTEST()
620 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
623 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
648 struct optee_msg_arg *arg; in cmd_shm_alloc_appl() local
674 arg = (struct optee_msg_arg *)regs_to_u64(a1, a2); in cmd_shm_alloc_appl()
675 arg->cmd = OPTEE_RPC_CMD_SHM_ALLOC; in cmd_shm_alloc_appl()
676 arg->num_params = 1; in cmd_shm_alloc_appl()
677 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_shm_alloc_appl()
678 arg->params[0].u.value.b = 4096; in cmd_shm_alloc_appl()
679 arg->params[0].u.value.a = OPTEE_RPC_SHM_TYPE_APPL; in cmd_shm_alloc_appl()
691 arg = (struct optee_msg_arg *)shm->addr; in cmd_shm_alloc_appl()
692 arg->cmd = OPTEE_RPC_CMD_SHM_FREE; in cmd_shm_alloc_appl()
693 arg->num_params = 1; in cmd_shm_alloc_appl()
694 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_shm_alloc_appl()
695 arg->params[0].u.value.a = OPTEE_RPC_SHM_TYPE_APPL; in cmd_shm_alloc_appl()
696 arg->params[0].u.value.b = g_shm_ref; in cmd_shm_alloc_appl()
780 struct tee_open_session_arg arg = {}; in ZTEST() local
796 arg.uuid[0] = 111; in ZTEST()
797 arg.clnt_uuid[0] = 222; in ZTEST()
798 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
801 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
826 struct optee_msg_arg *arg; in cmd_gettime_call() local
843 arg = (struct optee_msg_arg *)regs_to_u64(a1, a2); in cmd_gettime_call()
844 arg->cmd = OPTEE_RPC_CMD_GET_TIME; in cmd_gettime_call()
845 arg->num_params = 1; in cmd_gettime_call()
846 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT; in cmd_gettime_call()
855 arg = (struct optee_msg_arg *)shm->addr; in cmd_gettime_call()
857 t_call.a6 = arg->params[0].u.value.a; in cmd_gettime_call()
858 t_call.a7 = arg->params[0].u.value.b; in cmd_gettime_call()
882 struct tee_open_session_arg arg = {}; in ZTEST() local
893 arg.uuid[0] = 111; in ZTEST()
894 arg.clnt_uuid[0] = 222; in ZTEST()
895 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
898 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
926 struct optee_msg_arg *arg; in cmd_suspend_call() local
943 arg = (struct optee_msg_arg *)regs_to_u64(a1, a2); in cmd_suspend_call()
944 arg->cmd = OPTEE_RPC_CMD_SUSPEND; in cmd_suspend_call()
945 arg->num_params = 1; in cmd_suspend_call()
946 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_suspend_call()
947 arg->params[0].u.value.a = t_call.a0; in cmd_suspend_call()
956 arg = (struct optee_msg_arg *)shm->addr; in cmd_suspend_call()
958 t_call.a6 = arg->params[0].u.value.a; in cmd_suspend_call()
959 t_call.a7 = arg->params[0].u.value.b; in cmd_suspend_call()
978 struct tee_open_session_arg arg = {}; in ZTEST() local
989 arg.uuid[0] = 111; in ZTEST()
990 arg.clnt_uuid[0] = 222; in ZTEST()
991 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
994 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()
1081 struct optee_msg_arg *arg; in cmd_notify_wait_call() local
1095 arg = (struct optee_msg_arg *)shm->addr; in cmd_notify_wait_call()
1096 arg->cmd = OPTEE_RPC_CMD_NOTIFICATION; in cmd_notify_wait_call()
1097 arg->num_params = 1; in cmd_notify_wait_call()
1098 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_notify_wait_call()
1099 arg->params[0].u.value.a = OPTEE_RPC_NOTIFICATION_WAIT; in cmd_notify_wait_call()
1100 arg->params[0].u.value.b = wait_call.a0; /* Set notification key */ in cmd_notify_wait_call()
1116 struct optee_msg_arg *arg; in cmd_notify_send_call() local
1130 arg = (struct optee_msg_arg *)shm->addr; in cmd_notify_send_call()
1131 arg->cmd = OPTEE_RPC_CMD_NOTIFICATION; in cmd_notify_send_call()
1132 arg->num_params = 1; in cmd_notify_send_call()
1133 arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in cmd_notify_send_call()
1134 arg->params[0].u.value.a = OPTEE_RPC_NOTIFICATION_SEND; in cmd_notify_send_call()
1135 arg->params[0].u.value.b = send_call.a0; /* Set notification key */ in cmd_notify_send_call()
1200 struct tee_open_session_arg arg = {}; in ZTEST() local
1210 arg.uuid[0] = 111; in ZTEST()
1211 arg.clnt_uuid[0] = 222; in ZTEST()
1212 arg.clnt_login = TEEC_LOGIN_PUBLIC; in ZTEST()
1215 ret = tee_open_session(dev, &arg, 1, &param, &session_id); in ZTEST()