Lines Matching refs:params
21 if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != in handle_rpc_func_cmd_get_time()
26 arg->params[0].u.value.a = ts.tv_sec; in handle_rpc_func_cmd_get_time()
27 arg->params[0].u.value.b = ts.tv_nsec; in handle_rpc_func_cmd_get_time()
40 struct tee_param *params; in handle_rpc_func_cmd_i2c_transfer() local
57 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_func_cmd_i2c_transfer()
59 if (!params) { in handle_rpc_func_cmd_i2c_transfer()
64 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_func_cmd_i2c_transfer()
65 arg->params)) in handle_rpc_func_cmd_i2c_transfer()
69 if (params[i].attr != attr[i]) in handle_rpc_func_cmd_i2c_transfer()
73 adapter = i2c_get_adapter(params[0].u.value.b); in handle_rpc_func_cmd_i2c_transfer()
77 if (params[1].u.value.a & OPTEE_RPC_I2C_FLAGS_TEN_BIT) { in handle_rpc_func_cmd_i2c_transfer()
87 msg.addr = params[0].u.value.c; in handle_rpc_func_cmd_i2c_transfer()
88 msg.buf = params[2].u.memref.shm->kaddr; in handle_rpc_func_cmd_i2c_transfer()
89 msg.len = params[2].u.memref.size; in handle_rpc_func_cmd_i2c_transfer()
91 switch (params[0].u.value.a) { in handle_rpc_func_cmd_i2c_transfer()
107 params[3].u.value.a = msg.len; in handle_rpc_func_cmd_i2c_transfer()
108 if (optee->ops->to_msg_param(optee, arg->params, in handle_rpc_func_cmd_i2c_transfer()
109 arg->num_params, params)) in handle_rpc_func_cmd_i2c_transfer()
116 kfree(params); in handle_rpc_func_cmd_i2c_transfer()
119 kfree(params); in handle_rpc_func_cmd_i2c_transfer()
136 if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != in handle_rpc_func_cmd_wq()
140 switch (arg->params[0].u.value.a) { in handle_rpc_func_cmd_wq()
142 if (optee_notif_wait(optee, arg->params[0].u.value.b)) in handle_rpc_func_cmd_wq()
146 if (optee_notif_send(optee, arg->params[0].u.value.b)) in handle_rpc_func_cmd_wq()
166 if ((arg->params[0].attr & OPTEE_MSG_ATTR_TYPE_MASK) != in handle_rpc_func_cmd_wait()
170 msec_to_wait = arg->params[0].u.value.a; in handle_rpc_func_cmd_wait()
184 struct tee_param *params; in handle_rpc_supp_cmd() local
188 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_supp_cmd()
190 if (!params) { in handle_rpc_supp_cmd()
195 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_supp_cmd()
196 arg->params)) { in handle_rpc_supp_cmd()
201 arg->ret = optee_supp_thrd_req(ctx, arg->cmd, arg->num_params, params); in handle_rpc_supp_cmd()
203 if (optee->ops->to_msg_param(optee, arg->params, arg->num_params, in handle_rpc_supp_cmd()
204 params)) in handle_rpc_supp_cmd()
207 kfree(params); in handle_rpc_supp_cmd()