Lines Matching refs:field
104 static u32 mlx5_get_cc_param_val(void *field, int offset) in mlx5_get_cc_param_val() argument
108 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
111 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
114 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
117 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
120 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
123 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
126 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
129 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
132 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
135 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
138 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
141 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
144 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
147 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
150 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
153 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val()
156 return MLX5_GET(cong_control_r_roce_ecn_np, field, in mlx5_get_cc_param_val()
159 return MLX5_GET(cong_control_r_roce_ecn_np, field, in mlx5_get_cc_param_val()
162 return MLX5_GET(cong_control_r_roce_ecn_np, field, in mlx5_get_cc_param_val()
165 return MLX5_GET(cong_control_r_roce_ecn_np, field, in mlx5_get_cc_param_val()
168 return MLX5_GET(cong_control_r_roce_general, field, in mlx5_get_cc_param_val()
171 return MLX5_GET(cong_control_r_roce_general, field, in mlx5_get_cc_param_val()
178 static void mlx5_ib_set_cc_param_mask_val(void *field, int offset, in mlx5_ib_set_cc_param_mask_val() argument
184 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
189 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
194 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
199 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
204 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
209 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
214 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
219 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
224 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
229 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
234 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
239 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
244 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
249 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
254 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
259 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
264 MLX5_SET(cong_control_r_roce_ecn_np, field, in mlx5_ib_set_cc_param_mask_val()
269 MLX5_SET(cong_control_r_roce_ecn_np, field, cnp_dscp, var); in mlx5_ib_set_cc_param_mask_val()
273 MLX5_SET(cong_control_r_roce_ecn_np, field, cnp_prio_mode, var); in mlx5_ib_set_cc_param_mask_val()
277 MLX5_SET(cong_control_r_roce_ecn_np, field, cnp_prio_mode, 0); in mlx5_ib_set_cc_param_mask_val()
278 MLX5_SET(cong_control_r_roce_ecn_np, field, cnp_802p_prio, var); in mlx5_ib_set_cc_param_mask_val()
282 MLX5_SET(cong_control_r_roce_general, field, rtt_resp_dscp_valid, var); in mlx5_ib_set_cc_param_mask_val()
286 MLX5_SET(cong_control_r_roce_general, field, rtt_resp_dscp_valid, 1); in mlx5_ib_set_cc_param_mask_val()
287 MLX5_SET(cong_control_r_roce_general, field, rtt_resp_dscp, var); in mlx5_ib_set_cc_param_mask_val()
297 void *field; in mlx5_ib_get_cc_params() local
319 field = MLX5_ADDR_OF(query_cong_params_out, out, congestion_parameters); in mlx5_ib_get_cc_params()
320 *var = mlx5_get_cc_param_val(field, offset); in mlx5_ib_get_cc_params()
334 void *field; in mlx5_ib_set_cc_params() local
357 field = MLX5_ADDR_OF(modify_cong_params_in, in, congestion_parameters); in mlx5_ib_set_cc_params()
358 mlx5_ib_set_cc_param_mask_val(field, offset, var, &attr_mask); in mlx5_ib_set_cc_params()
360 field = MLX5_ADDR_OF(modify_cong_params_in, in, field_select); in mlx5_ib_set_cc_params()
361 MLX5_SET(field_select_r_roce_rp, field, field_select_r_roce_rp, in mlx5_ib_set_cc_params()