| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxfw/ |
| D | mlxfw_fsm.c | 42 static void mlxfw_status_notify(struct mlxfw_dev *mlxfw_dev, in mlxfw_status_notify() argument 46 if (!mlxfw_dev->ops->status_notify) in mlxfw_status_notify() 48 mlxfw_dev->ops->status_notify(mlxfw_dev, msg, comp_name, in mlxfw_status_notify() 52 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument 63 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait() 92 static int mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev, in mlxfw_flash_component() argument 108 err = mlxfw_dev->ops->component_query(mlxfw_dev, comp->index, in mlxfw_flash_component() 126 mlxfw_status_notify(mlxfw_dev, "Updating component", comp_name, 0, 0); in mlxfw_flash_component() 127 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component() 133 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component() [all …]
|
| D | mlxfw.h | 34 struct mlxfw_dev; 37 int (*component_query)(struct mlxfw_dev *mlxfw_dev, u16 component_index, 41 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle); 43 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 46 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 49 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 52 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 54 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 58 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 60 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); [all …]
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | fw.c | 484 struct mlxfw_dev mlxfw_dev; member 488 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 493 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 505 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 508 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 525 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 529 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update() 536 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument 540 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download() 546 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument [all …]
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
| D | spectrum.c | 147 struct mlxfw_dev mlxfw_dev; member 184 static int mlxsw_sp_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_component_query() argument 189 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_component_query() 207 static int mlxsw_sp_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_sp_fsm_lock() argument 210 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_lock() 231 static int mlxsw_sp_fsm_component_update(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_component_update() argument 236 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_component_update() 245 static int mlxsw_sp_fsm_block_download(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_block_download() argument 250 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_block_download() 258 static int mlxsw_sp_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_component_verify() argument [all …]
|