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
201 mlx5_core_err(dev, "Firmware over %u MS in %s state, aborting\n",
211 mlx5_core_warn(dev, "Waiting for FW %s, timeout abort in %ds (0x%x)\n",
226 u8 in[MLX5_ST_SZ_BYTES(set_driver_version_in)] = {};
232 string = MLX5_ADDR_OF(set_driver_version_in, in, driver_version);
239 MLX5_SET(set_driver_version_in, in, opcode,
242 mlx5_cmd_exec_in(dev, set_driver_version, in);
365 u8 in[MLX5_ST_SZ_BYTES(query_hca_cap_in)];
371 memset(in, 0, sizeof(in));
376 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP);
377 MLX5_SET(query_hca_cap_in, in, op_mod, opmod);
378 err = mlx5_cmd_exec_inout(dev, query_hca_cap, in, out);
419 static int set_caps(struct mlx5_core_dev *dev, void *in, int opmod)
421 MLX5_SET(set_hca_cap_in, in, opcode, MLX5_CMD_OP_SET_HCA_CAP);
422 MLX5_SET(set_hca_cap_in, in, op_mod, opmod << 1);
423 return mlx5_cmd_exec_in(dev, set_hca_cap, in);
584 /* Check log_max_qp from HCA caps to set in current profile */
588 mlx5_core_warn(dev, "log_max_qp value in current profile is %d, changing it to HCA capability limit (%d)\n",
653 /* Cached MLX5_CAP_GEN(dev, roce) can be out of sync this early in the
655 * In case RoCE cap is writable in FW and user/devlink requested to change the
661 * 1) RoCE cap is read only in FW and already disabled
663 * 2) RoCE cap is writable in FW and user/devlink requested it off.
814 u32 in[MLX5_ST_SZ_DW(enable_hca_in)] = {};
816 MLX5_SET(enable_hca_in, in, opcode, MLX5_CMD_OP_ENABLE_HCA);
817 MLX5_SET(enable_hca_in, in, function_id, func_id);
818 MLX5_SET(enable_hca_in, in, embedded_cpu_function,
820 return mlx5_cmd_exec_in(dev, enable_hca, in);
825 u32 in[MLX5_ST_SZ_DW(disable_hca_in)] = {};
827 MLX5_SET(disable_hca_in, in, opcode, MLX5_CMD_OP_DISABLE_HCA);
828 MLX5_SET(disable_hca_in, in, function_id, func_id);
829 MLX5_SET(enable_hca_in, in, embedded_cpu_function,
831 return mlx5_cmd_exec_in(dev, disable_hca, in);
937 /* health work might still be active, and it needs pci bar in
1733 /* xxx_light() function are used in order to configure the device without full
1734 * init (light init). e.g.: There isn't a point in reload a device to light state.
2137 mlx5_core_dbg(dev, "Device in internal error state, giving up\n");
2162 /* Some platforms requiring freeing the IRQ's in the shutdown
2318 "mlx5_core name not in sync with kernel module name");