Lines Matching defs:in
7 * COPYING in the main directory of this source tree, or the
10 * Redistribution and use in source and binary forms, with or
18 * - Redistributions in binary form must reproduce the above
20 * disclaimer in the documentation and/or other materials
97 struct mlx5_hca_vport_context *in;
101 in = kzalloc(sizeof(*in), GFP_KERNEL);
102 if (!in)
105 in->policy = net_to_mlx_policy(state);
106 if (in->policy == MLX5_POLICY_INVALID) {
110 in->field_select = MLX5_HCA_VPORT_SEL_STATE_POLICY;
111 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in);
113 vfs_ctx[vf].policy = in->policy;
116 kfree(in);
156 struct mlx5_hca_vport_context *in;
160 in = kzalloc(sizeof(*in), GFP_KERNEL);
161 if (!in)
164 in->field_select = MLX5_HCA_VPORT_SEL_NODE_GUID;
165 in->node_guid = guid;
166 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in);
171 kfree(in);
180 struct mlx5_hca_vport_context *in;
184 in = kzalloc(sizeof(*in), GFP_KERNEL);
185 if (!in)
188 in->field_select = MLX5_HCA_VPORT_SEL_PORT_GUID;
189 in->port_guid = guid;
190 err = mlx5_core_modify_hca_vport_context(mdev, 1, 1, vf + 1, in);
195 kfree(in);