/Linux-v6.6/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 devlink_to_dev(mlxfw_dev->devlink); 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 …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fw.c | 520 struct mlxfw_dev mlxfw_dev; member 524 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 529 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 541 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 544 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 561 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 565 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update() 572 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument 576 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download() 582 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_linecards.c | 92 struct mlxfw_dev mlxfw_dev; member 97 static int mlxsw_linecard_device_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_linecard_device_fw_component_query() argument 104 container_of(mlxfw_dev, struct mlxsw_linecard_device_fw_info, in mlxsw_linecard_device_fw_component_query() 105 mlxfw_dev); in mlxsw_linecard_device_fw_component_query() 130 static int mlxsw_linecard_device_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, in mlxsw_linecard_device_fw_fsm_lock() argument 134 container_of(mlxfw_dev, struct mlxsw_linecard_device_fw_info, in mlxsw_linecard_device_fw_fsm_lock() 135 mlxfw_dev); in mlxsw_linecard_device_fw_fsm_lock() 166 mlxsw_linecard_device_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, in mlxsw_linecard_device_fw_fsm_component_update() argument 172 container_of(mlxfw_dev, struct mlxsw_linecard_device_fw_info, in mlxsw_linecard_device_fw_fsm_component_update() 173 mlxfw_dev); in mlxsw_linecard_device_fw_fsm_component_update() [all …]
|
D | core.c | 1046 struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_flash() argument 1053 err = mlxfw_firmware_flash(mlxfw_dev, firmware, extack); in mlxsw_core_fw_flash() 1060 struct mlxfw_dev mlxfw_dev; member 1064 static int mlxsw_core_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_component_query() argument 1069 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_component_query() 1085 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument 1088 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_lock() 1107 static int mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_update() argument 1111 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_component_update() 1120 static int mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_block_download() argument [all …]
|
D | core.h | 55 struct mlxfw_dev *mlxfw_dev,
|