Home
last modified time | relevance | path

Searched refs:mlxfw_dev (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_fsm.c37 static int mlxfw_fsm_state_err(struct mlxfw_dev *mlxfw_dev, in mlxfw_fsm_state_err() argument
48 MLXFW_ERR_MSG(mlxfw_dev, extack, "general error", err); in mlxfw_fsm_state_err()
51 MLXFW_ERR_MSG(mlxfw_dev, extack, "component hash mismatch", err); in mlxfw_fsm_state_err()
54 MLXFW_ERR_MSG(mlxfw_dev, extack, "component not applicable", err); in mlxfw_fsm_state_err()
57 MLXFW_ERR_MSG(mlxfw_dev, extack, "unknown key", err); in mlxfw_fsm_state_err()
60 MLXFW_ERR_MSG(mlxfw_dev, extack, "authentication failed", err); in mlxfw_fsm_state_err()
63 MLXFW_ERR_MSG(mlxfw_dev, extack, "component was not signed", err); in mlxfw_fsm_state_err()
66 MLXFW_ERR_MSG(mlxfw_dev, extack, "key not applicable", err); in mlxfw_fsm_state_err()
69 MLXFW_ERR_MSG(mlxfw_dev, extack, "bad format", err); in mlxfw_fsm_state_err()
72 MLXFW_ERR_MSG(mlxfw_dev, extack, "pending reset", err); in mlxfw_fsm_state_err()
[all …]
H A Dmlxfw.h12 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 …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw.c524 struct mlxfw_dev mlxfw_dev; member
528 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument
533 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query()
545 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument
548 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock()
565 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument
569 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update()
576 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument
580 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download()
586 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_linecards.c92 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 …]
H A Dcore.c1046 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 …]
H A Dcore.h55 struct mlxfw_dev *mlxfw_dev,