/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_fsm.c | 38 static int mlxfw_fsm_state_err(struct mlxfw_dev *mlxfw_dev, in mlxfw_fsm_state_err() argument 49 MLXFW_ERR_MSG(mlxfw_dev, extack, "general error", err); in mlxfw_fsm_state_err() 52 MLXFW_ERR_MSG(mlxfw_dev, extack, "component hash mismatch", err); in mlxfw_fsm_state_err() 55 MLXFW_ERR_MSG(mlxfw_dev, extack, "component not applicable", err); in mlxfw_fsm_state_err() 58 MLXFW_ERR_MSG(mlxfw_dev, extack, "unknown key", err); in mlxfw_fsm_state_err() 61 MLXFW_ERR_MSG(mlxfw_dev, extack, "authentication failed", err); in mlxfw_fsm_state_err() 64 MLXFW_ERR_MSG(mlxfw_dev, extack, "component was not signed", err); in mlxfw_fsm_state_err() 67 MLXFW_ERR_MSG(mlxfw_dev, extack, "key not applicable", err); in mlxfw_fsm_state_err() 70 MLXFW_ERR_MSG(mlxfw_dev, extack, "bad format", err); in mlxfw_fsm_state_err() 73 MLXFW_ERR_MSG(mlxfw_dev, extack, "pending reset", err); in mlxfw_fsm_state_err() [all …]
|
D | mlxfw.h | 12 struct mlxfw_dev { struct 20 struct device *mlxfw_dev_dev(struct mlxfw_dev *mlxfw_dev) in mlxfw_dev_dev() argument 22 return mlxfw_dev->devlink->dev; in mlxfw_dev_dev() 27 #define mlxfw_info(mlxfw_dev, fmt, ...) \ argument 28 dev_info(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 29 #define mlxfw_err(mlxfw_dev, fmt, ...) \ argument 30 dev_err(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 31 #define mlxfw_dbg(mlxfw_dev, fmt, ...) \ argument 32 dev_dbg(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 73 int (*component_query)(struct mlxfw_dev *mlxfw_dev, u16 component_index, [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fw.c | 499 struct mlxfw_dev mlxfw_dev; member 503 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 508 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 520 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 523 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 540 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 544 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update() 551 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument 555 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download() 561 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 934 struct mlxfw_dev mlxfw_dev; member 938 static int mlxsw_core_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_component_query() argument 943 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_component_query() 959 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument 962 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_lock() 981 static int mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_update() argument 985 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_component_update() 994 static int mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_block_download() argument 998 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_block_download() 1006 static int mlxsw_core_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_verify() argument [all …]
|