Lines Matching full:in
12 u32 in[MLX5_ST_SZ_DW(alloc_pd_in)] = {}; in alloc_pd() local
15 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in alloc_pd()
16 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd()
18 err = mlx5_cmd_exec_inout(mdev, alloc_pd, in, out); in alloc_pd()
27 u32 in[MLX5_ST_SZ_DW(dealloc_pd_in)] = {}; in dealloc_pd() local
30 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in dealloc_pd()
31 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd()
32 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd()
33 return mlx5_cmd_exec_in(mdev, dealloc_pd, in); in dealloc_pd()
39 u32 in[MLX5_ST_SZ_DW(query_special_contexts_in)] = {}; in get_null_mkey() local
43 MLX5_SET(query_special_contexts_in, in, opcode, MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS); in get_null_mkey()
44 err = mlx5_cmd_exec_inout(mdev, query_special_contexts, in, out); in get_null_mkey()
54 void *in; in create_uctx() local
62 in = kzalloc(inlen, GFP_KERNEL); in create_uctx()
63 if (!in) in create_uctx()
66 MLX5_SET(create_uctx_in, in, opcode, MLX5_CMD_OP_CREATE_UCTX); in create_uctx()
67 MLX5_SET(create_uctx_in, in, uctx.cap, MLX5_UCTX_CAP_RAW_TX); in create_uctx()
69 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in create_uctx()
70 kfree(in); in create_uctx()
80 u32 in[MLX5_ST_SZ_DW(destroy_uctx_in)] = {}; in destroy_uctx() local
82 MLX5_SET(destroy_uctx_in, in, opcode, MLX5_CMD_OP_DESTROY_UCTX); in destroy_uctx()
83 MLX5_SET(destroy_uctx_in, in, uid, uid); in destroy_uctx()
85 mlx5_cmd_exec(mvdev->mdev, in, sizeof(in), out, sizeof(out)); in destroy_uctx()
88 int mlx5_vdpa_create_tis(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tisn) in mlx5_vdpa_create_tis() argument
93 MLX5_SET(create_tis_in, in, opcode, MLX5_CMD_OP_CREATE_TIS); in mlx5_vdpa_create_tis()
94 MLX5_SET(create_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_tis()
95 err = mlx5_cmd_exec_inout(mvdev->mdev, create_tis, in, out); in mlx5_vdpa_create_tis()
104 u32 in[MLX5_ST_SZ_DW(destroy_tis_in)] = {}; in mlx5_vdpa_destroy_tis() local
106 MLX5_SET(destroy_tis_in, in, opcode, MLX5_CMD_OP_DESTROY_TIS); in mlx5_vdpa_destroy_tis()
107 MLX5_SET(destroy_tis_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tis()
108 MLX5_SET(destroy_tis_in, in, tisn, tisn); in mlx5_vdpa_destroy_tis()
109 mlx5_cmd_exec_in(mvdev->mdev, destroy_tis, in); in mlx5_vdpa_destroy_tis()
112 int mlx5_vdpa_create_rqt(struct mlx5_vdpa_dev *mvdev, void *in, int inlen, u32 *rqtn) in mlx5_vdpa_create_rqt() argument
117 MLX5_SET(create_rqt_in, in, opcode, MLX5_CMD_OP_CREATE_RQT); in mlx5_vdpa_create_rqt()
118 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, out, sizeof(out)); in mlx5_vdpa_create_rqt()
127 u32 in[MLX5_ST_SZ_DW(destroy_rqt_in)] = {}; in mlx5_vdpa_destroy_rqt() local
129 MLX5_SET(destroy_rqt_in, in, opcode, MLX5_CMD_OP_DESTROY_RQT); in mlx5_vdpa_destroy_rqt()
130 MLX5_SET(destroy_rqt_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_rqt()
131 MLX5_SET(destroy_rqt_in, in, rqtn, rqtn); in mlx5_vdpa_destroy_rqt()
132 mlx5_cmd_exec_in(mvdev->mdev, destroy_rqt, in); in mlx5_vdpa_destroy_rqt()
135 int mlx5_vdpa_create_tir(struct mlx5_vdpa_dev *mvdev, void *in, u32 *tirn) in mlx5_vdpa_create_tir() argument
140 MLX5_SET(create_tir_in, in, opcode, MLX5_CMD_OP_CREATE_TIR); in mlx5_vdpa_create_tir()
141 err = mlx5_cmd_exec_inout(mvdev->mdev, create_tir, in, out); in mlx5_vdpa_create_tir()
150 u32 in[MLX5_ST_SZ_DW(destroy_tir_in)] = {}; in mlx5_vdpa_destroy_tir() local
152 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); in mlx5_vdpa_destroy_tir()
153 MLX5_SET(destroy_tir_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_tir()
154 MLX5_SET(destroy_tir_in, in, tirn, tirn); in mlx5_vdpa_destroy_tir()
155 mlx5_cmd_exec_in(mvdev->mdev, destroy_tir, in); in mlx5_vdpa_destroy_tir()
161 u32 in[MLX5_ST_SZ_DW(alloc_transport_domain_in)] = {}; in mlx5_vdpa_alloc_transport_domain() local
164 MLX5_SET(alloc_transport_domain_in, in, opcode, MLX5_CMD_OP_ALLOC_TRANSPORT_DOMAIN); in mlx5_vdpa_alloc_transport_domain()
165 MLX5_SET(alloc_transport_domain_in, in, uid, mvdev->res.uid); in mlx5_vdpa_alloc_transport_domain()
167 err = mlx5_cmd_exec_inout(mvdev->mdev, alloc_transport_domain, in, out); in mlx5_vdpa_alloc_transport_domain()
176 u32 in[MLX5_ST_SZ_DW(dealloc_transport_domain_in)] = {}; in mlx5_vdpa_dealloc_transport_domain() local
178 MLX5_SET(dealloc_transport_domain_in, in, opcode, MLX5_CMD_OP_DEALLOC_TRANSPORT_DOMAIN); in mlx5_vdpa_dealloc_transport_domain()
179 MLX5_SET(dealloc_transport_domain_in, in, uid, mvdev->res.uid); in mlx5_vdpa_dealloc_transport_domain()
180 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_vdpa_dealloc_transport_domain()
181 mlx5_cmd_exec_in(mvdev->mdev, dealloc_transport_domain, in); in mlx5_vdpa_dealloc_transport_domain()
184 int mlx5_vdpa_create_mkey(struct mlx5_vdpa_dev *mvdev, struct mlx5_core_mkey *mkey, u32 *in, in mlx5_vdpa_create_mkey() argument
192 MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY); in mlx5_vdpa_create_mkey()
193 MLX5_SET(create_mkey_in, in, uid, mvdev->res.uid); in mlx5_vdpa_create_mkey()
195 err = mlx5_cmd_exec(mvdev->mdev, in, inlen, lout, sizeof(lout)); in mlx5_vdpa_create_mkey()
199 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_vdpa_create_mkey()
210 u32 in[MLX5_ST_SZ_DW(destroy_mkey_in)] = {}; in mlx5_vdpa_destroy_mkey() local
212 MLX5_SET(destroy_mkey_in, in, uid, mvdev->res.uid); in mlx5_vdpa_destroy_mkey()
213 MLX5_SET(destroy_mkey_in, in, opcode, MLX5_CMD_OP_DESTROY_MKEY); in mlx5_vdpa_destroy_mkey()
214 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key)); in mlx5_vdpa_destroy_mkey()
215 return mlx5_cmd_exec_in(mvdev->mdev, destroy_mkey, in); in mlx5_vdpa_destroy_mkey()