Lines Matching refs:in

11 	u32 in[MLX5_ST_SZ_DW(query_special_contexts_in)] = {};  in mlx5r_cmd_query_special_mkeys()  local
23 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5r_cmd_query_special_mkeys()
25 err = mlx5_cmd_exec_inout(dev->mdev, query_special_contexts, in, out); in mlx5r_cmd_query_special_mkeys()
48 u32 in[MLX5_ST_SZ_DW(query_cong_params_in)] = {}; in mlx5_cmd_query_cong_params() local
50 MLX5_SET(query_cong_params_in, in, opcode, in mlx5_cmd_query_cong_params()
52 MLX5_SET(query_cong_params_in, in, cong_protocol, cong_point); in mlx5_cmd_query_cong_params()
54 return mlx5_cmd_exec_inout(dev, query_cong_params, in, out); in mlx5_cmd_query_cong_params()
59 u32 in[MLX5_ST_SZ_DW(destroy_tir_in)] = {}; in mlx5_cmd_destroy_tir() local
61 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); in mlx5_cmd_destroy_tir()
62 MLX5_SET(destroy_tir_in, in, tirn, tirn); in mlx5_cmd_destroy_tir()
63 MLX5_SET(destroy_tir_in, in, uid, uid); in mlx5_cmd_destroy_tir()
64 mlx5_cmd_exec_in(dev, destroy_tir, in); in mlx5_cmd_destroy_tir()
69 u32 in[MLX5_ST_SZ_DW(destroy_tis_in)] = {}; in mlx5_cmd_destroy_tis() local
71 MLX5_SET(destroy_tis_in, in, opcode, MLX5_CMD_OP_DESTROY_TIS); in mlx5_cmd_destroy_tis()
72 MLX5_SET(destroy_tis_in, in, tisn, tisn); in mlx5_cmd_destroy_tis()
73 MLX5_SET(destroy_tis_in, in, uid, uid); in mlx5_cmd_destroy_tis()
74 mlx5_cmd_exec_in(dev, destroy_tis, in); in mlx5_cmd_destroy_tis()
79 u32 in[MLX5_ST_SZ_DW(destroy_rqt_in)] = {}; in mlx5_cmd_destroy_rqt() local
81 MLX5_SET(destroy_rqt_in, in, opcode, MLX5_CMD_OP_DESTROY_RQT); in mlx5_cmd_destroy_rqt()
82 MLX5_SET(destroy_rqt_in, in, rqtn, rqtn); in mlx5_cmd_destroy_rqt()
83 MLX5_SET(destroy_rqt_in, in, uid, uid); in mlx5_cmd_destroy_rqt()
84 return mlx5_cmd_exec_in(dev, destroy_rqt, in); in mlx5_cmd_destroy_rqt()
90 u32 in[MLX5_ST_SZ_DW(alloc_transport_domain_in)] = {}; in mlx5_cmd_alloc_transport_domain() local
94 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_cmd_alloc_transport_domain()
96 MLX5_SET(alloc_transport_domain_in, in, uid, uid); in mlx5_cmd_alloc_transport_domain()
98 err = mlx5_cmd_exec_inout(dev, alloc_transport_domain, in, out); in mlx5_cmd_alloc_transport_domain()
109 u32 in[MLX5_ST_SZ_DW(dealloc_transport_domain_in)] = {}; in mlx5_cmd_dealloc_transport_domain() local
111 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_cmd_dealloc_transport_domain()
113 MLX5_SET(dealloc_transport_domain_in, in, uid, uid); in mlx5_cmd_dealloc_transport_domain()
114 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_cmd_dealloc_transport_domain()
115 mlx5_cmd_exec_in(dev, dealloc_transport_domain, in); in mlx5_cmd_dealloc_transport_domain()
120 u32 in[MLX5_ST_SZ_DW(dealloc_pd_in)] = {}; in mlx5_cmd_dealloc_pd() local
122 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in mlx5_cmd_dealloc_pd()
123 MLX5_SET(dealloc_pd_in, in, pd, pdn); in mlx5_cmd_dealloc_pd()
124 MLX5_SET(dealloc_pd_in, in, uid, uid); in mlx5_cmd_dealloc_pd()
125 return mlx5_cmd_exec_in(dev, dealloc_pd, in); in mlx5_cmd_dealloc_pd()
131 u32 in[MLX5_ST_SZ_DW(attach_to_mcg_in)] = {}; in mlx5_cmd_attach_mcg() local
134 MLX5_SET(attach_to_mcg_in, in, opcode, MLX5_CMD_OP_ATTACH_TO_MCG); in mlx5_cmd_attach_mcg()
135 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); in mlx5_cmd_attach_mcg()
136 MLX5_SET(attach_to_mcg_in, in, uid, uid); in mlx5_cmd_attach_mcg()
137 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); in mlx5_cmd_attach_mcg()
139 return mlx5_cmd_exec_in(dev, attach_to_mcg, in); in mlx5_cmd_attach_mcg()
145 u32 in[MLX5_ST_SZ_DW(detach_from_mcg_in)] = {}; in mlx5_cmd_detach_mcg() local
148 MLX5_SET(detach_from_mcg_in, in, opcode, MLX5_CMD_OP_DETACH_FROM_MCG); in mlx5_cmd_detach_mcg()
149 MLX5_SET(detach_from_mcg_in, in, qpn, qpn); in mlx5_cmd_detach_mcg()
150 MLX5_SET(detach_from_mcg_in, in, uid, uid); in mlx5_cmd_detach_mcg()
151 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); in mlx5_cmd_detach_mcg()
153 return mlx5_cmd_exec_in(dev, detach_from_mcg, in); in mlx5_cmd_detach_mcg()
159 u32 in[MLX5_ST_SZ_DW(alloc_xrcd_in)] = {}; in mlx5_cmd_xrcd_alloc() local
162 MLX5_SET(alloc_xrcd_in, in, opcode, MLX5_CMD_OP_ALLOC_XRCD); in mlx5_cmd_xrcd_alloc()
163 MLX5_SET(alloc_xrcd_in, in, uid, uid); in mlx5_cmd_xrcd_alloc()
164 err = mlx5_cmd_exec_inout(dev, alloc_xrcd, in, out); in mlx5_cmd_xrcd_alloc()
172 u32 in[MLX5_ST_SZ_DW(dealloc_xrcd_in)] = {}; in mlx5_cmd_xrcd_dealloc() local
174 MLX5_SET(dealloc_xrcd_in, in, opcode, MLX5_CMD_OP_DEALLOC_XRCD); in mlx5_cmd_xrcd_dealloc()
175 MLX5_SET(dealloc_xrcd_in, in, xrcd, xrcdn); in mlx5_cmd_xrcd_dealloc()
176 MLX5_SET(dealloc_xrcd_in, in, uid, uid); in mlx5_cmd_xrcd_dealloc()
177 return mlx5_cmd_exec_in(dev, dealloc_xrcd, in); in mlx5_cmd_xrcd_dealloc()
189 u32 *in; in mlx5_cmd_mad_ifc() local
191 in = kzalloc(inlen, GFP_KERNEL); in mlx5_cmd_mad_ifc()
193 if (!in || !out) in mlx5_cmd_mad_ifc()
196 MLX5_SET(mad_ifc_in, in, opcode, MLX5_CMD_OP_MAD_IFC); in mlx5_cmd_mad_ifc()
197 MLX5_SET(mad_ifc_in, in, op_mod, opmod); in mlx5_cmd_mad_ifc()
199 MLX5_SET(mad_ifc_in, in, plane_index, port); in mlx5_cmd_mad_ifc()
200 MLX5_SET(mad_ifc_in, in, port, in mlx5_cmd_mad_ifc()
203 MLX5_SET(mad_ifc_in, in, port, port); in mlx5_cmd_mad_ifc()
206 data = MLX5_ADDR_OF(mad_ifc_in, in, mad); in mlx5_cmd_mad_ifc()
209 err = mlx5_cmd_exec_inout(dev->mdev, mad_ifc, in, out); in mlx5_cmd_mad_ifc()
219 kfree(in); in mlx5_cmd_mad_ifc()
226 u32 in[MLX5_ST_SZ_DW(alloc_uar_in)] = {}; in mlx5_cmd_uar_alloc() local
229 MLX5_SET(alloc_uar_in, in, opcode, MLX5_CMD_OP_ALLOC_UAR); in mlx5_cmd_uar_alloc()
230 MLX5_SET(alloc_uar_in, in, uid, uid); in mlx5_cmd_uar_alloc()
231 err = mlx5_cmd_exec_inout(dev, alloc_uar, in, out); in mlx5_cmd_uar_alloc()
241 u32 in[MLX5_ST_SZ_DW(dealloc_uar_in)] = {}; in mlx5_cmd_uar_dealloc() local
243 MLX5_SET(dealloc_uar_in, in, opcode, MLX5_CMD_OP_DEALLOC_UAR); in mlx5_cmd_uar_dealloc()
244 MLX5_SET(dealloc_uar_in, in, uar, uarn); in mlx5_cmd_uar_dealloc()
245 MLX5_SET(dealloc_uar_in, in, uid, uid); in mlx5_cmd_uar_dealloc()
246 return mlx5_cmd_exec_in(dev, dealloc_uar, in); in mlx5_cmd_uar_dealloc()
254 u8 in[MLX5_ST_SZ_BYTES(query_vuid_in)] = {}; in mlx5_cmd_query_vuid() local
258 MLX5_SET(query_vuid_in, in, opcode, MLX5_CMD_OPCODE_QUERY_VUID); in mlx5_cmd_query_vuid()
259 MLX5_SET(query_vuid_in, in, vhca_id, MLX5_CAP_GEN(dev, vhca_id)); in mlx5_cmd_query_vuid()
260 MLX5_SET(query_vuid_in, in, data_direct, data_direct); in mlx5_cmd_query_vuid()
261 err = mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_query_vuid()