/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_fsm.c | 84 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument 95 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait() 208 u32 fwhandle, in mlxfw_flash_component() argument 244 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component() 258 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component() 272 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component() 287 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component() 295 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component() 302 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component() 306 static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_flash_components() argument [all …]
|
D | mlxfw.h | 77 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle); 79 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 82 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 85 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 88 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 92 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 96 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 98 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fw.c | 520 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 528 *fwhandle = 0; in mlx5_fsm_lock() 529 err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state); in mlx5_fsm_lock() 537 0, *fwhandle, 0); in mlx5_fsm_lock() 540 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 548 component_index, fwhandle, component_size); 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 558 return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data); 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 569 component_index, fwhandle, 0); in mlx5_fsm_component_verify() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 959 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument 973 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_core_fw_fsm_lock() 977 mlxsw_reg_mcc_pack(mcc_pl, MLXSW_REG_MCC_INSTRUCTION_LOCK_UPDATE_HANDLE, 0, *fwhandle, 0); 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 990 component_index, fwhandle, component_size); 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 1002 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); 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 1015 component_index, fwhandle, 0); in mlxsw_core_fw_fsm_component_verify() 1019 static int mlxsw_core_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) in mlxsw_core_fw_fsm_activate() argument [all …]
|