/Linux-v4.19/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw.h | 64 struct mlxfw_dev; 67 int (*component_query)(struct mlxfw_dev *mlxfw_dev, u16 component_index, 71 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle); 73 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 76 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 79 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 82 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 84 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 88 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 90 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); [all …]
|
D | mlxfw_fsm.c | 73 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument 83 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait() 108 static int mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev, in mlxfw_flash_component() argument 120 err = mlxfw_dev->ops->component_query(mlxfw_dev, comp->index, in mlxfw_flash_component() 137 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component() 143 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component() 155 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component() 163 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component() 168 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, MLXFW_FSM_STATE_LOCKED); in mlxfw_flash_component() 174 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fw.c | 377 struct mlxfw_dev mlxfw_dev; member 381 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 386 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 393 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 396 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 413 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 417 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update() 424 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument 428 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download() 434 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum.c | 136 struct mlxfw_dev mlxfw_dev; member 140 static int mlxsw_sp_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_component_query() argument 145 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_component_query() 163 static int mlxsw_sp_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_sp_fsm_lock() argument 166 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_lock() 187 static int mlxsw_sp_fsm_component_update(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_component_update() argument 192 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_component_update() 201 static int mlxsw_sp_fsm_block_download(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_block_download() argument 206 container_of(mlxfw_dev, struct mlxsw_sp_mlxfw_dev, mlxfw_dev); in mlxsw_sp_fsm_block_download() 214 static int mlxsw_sp_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, in mlxsw_sp_fsm_component_verify() argument [all …]
|