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
74 u32 in[MLX5_ST_SZ_DW(query_adapter_in)] = {};
81 MLX5_SET(query_adapter_in, in, opcode, MLX5_CMD_OP_QUERY_ADAPTER);
82 err = mlx5_cmd_exec_inout(dev, query_adapter, in, out);
101 u32 in[MLX5_ST_SZ_DW(query_adapter_in)] = {};
108 MLX5_SET(query_adapter_in, in, opcode, MLX5_CMD_OP_QUERY_ADAPTER);
109 err = mlx5_cmd_exec_inout(mdev, query_adapter, in, out);
288 u32 in[MLX5_ST_SZ_DW(init_hca_in)] = {};
291 MLX5_SET(init_hca_in, in, opcode, MLX5_CMD_OP_INIT_HCA);
295 MLX5_ARRAY_SET(init_hca_in, in, sw_owner_id, i,
301 MLX5_SET(init_hca_in, in, sw_vhca_id, dev->priv.sw_vhca_id);
303 return mlx5_cmd_exec_in(dev, init_hca, in);
308 u32 in[MLX5_ST_SZ_DW(teardown_hca_in)] = {};
310 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA);
311 return mlx5_cmd_exec_in(dev, teardown_hca, in);
317 u32 in[MLX5_ST_SZ_DW(teardown_hca_in)] = {0};
322 mlx5_core_dbg(dev, "force teardown is not supported in the firmware\n");
326 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA);
327 MLX5_SET(teardown_hca_in, in, profile, MLX5_TEARDOWN_HCA_IN_PROFILE_FORCE_CLOSE);
329 ret = mlx5_cmd_exec_polling(dev, in, sizeof(in), out, sizeof(out));
346 u32 in[MLX5_ST_SZ_DW(teardown_hca_in)] = {};
351 mlx5_core_dbg(dev, "fast teardown is not supported in the firmware\n");
355 MLX5_SET(teardown_hca_in, in, opcode, MLX5_CMD_OP_TEARDOWN_HCA);
356 MLX5_SET(teardown_hca_in, in, profile,
359 ret = mlx5_cmd_exec_inout(dev, teardown_hca, in, out);
404 u32 in[MLX5_ST_SZ_DW(mcc_reg)];
406 memset(in, 0, sizeof(in));
408 MLX5_SET(mcc_reg, in, instruction, instr);
409 MLX5_SET(mcc_reg, in, component_index, component_index);
410 MLX5_SET(mcc_reg, in, update_handle, update_handle);
411 MLX5_SET(mcc_reg, in, component_size, component_size);
413 return mlx5_core_access_reg(dev, in, sizeof(in), out,
422 u32 in[MLX5_ST_SZ_DW(mcc_reg)];
425 memset(in, 0, sizeof(in));
427 MLX5_SET(mcc_reg, in, update_handle, *update_handle);
429 err = mlx5_core_access_reg(dev, in, sizeof(in), out,
451 u32 *in;
453 in = kzalloc(in_size, GFP_KERNEL);
454 if (!in)
457 MLX5_SET(mcda_reg, in, update_handle, update_handle);
458 MLX5_SET(mcda_reg, in, offset, offset);
459 MLX5_SET(mcda_reg, in, size, size);
464 memcpy(MLX5_ADDR_OF(mcda_reg, in, data) + j, &data_element, 4);
467 err = mlx5_core_access_reg(dev, in, in_size, out,
469 kfree(in);
478 u32 in[MLX5_ST_SZ_DW(mcqi_reg)] = {};
482 MLX5_SET(mcqi_reg, in, component_index, component_index);
483 MLX5_SET(mcqi_reg, in, read_pending_component, read_pending);
484 MLX5_SET(mcqi_reg, in, info_type, info_type);
485 MLX5_SET(mcqi_reg, in, data_size, data_size);
487 err = mlx5_core_access_reg(dev, in, sizeof(in), out,
648 u32 in[MLX5_ST_SZ_DW(mirc_reg)];
657 memset(in, 0, sizeof(in));
659 err = mlx5_core_access_reg(dev, in, sizeof(in), out,
666 err = mlx5_core_access_reg(dev, in, sizeof(in), out,
734 u32 in[MLX5_ST_SZ_DW(mcqs_reg)] = {};
739 MLX5_SET(mcqs_reg, in, component_index, component_index);
741 err = mlx5_core_access_reg(dev, in, sizeof(in), out,