Lines Matching refs:msg_arg
40 struct tee_shm **shmp, struct optee_msg_arg **msg_arg) in get_msg_arg() argument
54 *msg_arg = ma; in get_msg_arg()
268 static void fill_i2c_rpc_params(struct optee_msg_arg *msg_arg, u64 bus_num, in fill_i2c_rpc_params() argument
272 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in fill_i2c_rpc_params()
273 msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in fill_i2c_rpc_params()
274 msg_arg->params[2].attr = OPTEE_MSG_ATTR_TYPE_RMEM_INOUT; in fill_i2c_rpc_params()
275 msg_arg->params[3].attr = OPTEE_MSG_ATTR_TYPE_VALUE_OUTPUT; in fill_i2c_rpc_params()
278 msg_arg->cmd = OPTEE_MSG_RPC_CMD_I2C_TRANSFER; in fill_i2c_rpc_params()
280 msg_arg->params[0].u.value.a = op; in fill_i2c_rpc_params()
281 msg_arg->params[0].u.value.b = bus_num; in fill_i2c_rpc_params()
282 msg_arg->params[0].u.value.c = chip_addr; in fill_i2c_rpc_params()
283 msg_arg->params[1].u.value.a = xfer_flags; in fill_i2c_rpc_params()
286 msg_arg->params[2].u.rmem.shm_ref = (ulong)memref.shm; in fill_i2c_rpc_params()
287 msg_arg->params[2].u.rmem.size = memref.size; in fill_i2c_rpc_params()
288 msg_arg->params[2].u.rmem.offs = memref.shm_offs; in fill_i2c_rpc_params()
290 msg_arg->num_params = 4; in fill_i2c_rpc_params()
299 struct optee_msg_arg *msg_arg; in ta_rpc_test_invoke_func() local
330 res = get_msg_arg(dev, 4, &shm, &msg_arg); in ta_rpc_test_invoke_func()
334 fill_i2c_rpc_params(msg_arg, bus_num, chip_addr, xfer_flags, op, in ta_rpc_test_invoke_func()
339 res = msg_arg->ret; in ta_rpc_test_invoke_func()