Home
last modified time | relevance | path

Searched refs:fwhandle (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_fsm.c52 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()
93 u32 fwhandle, in mlxfw_flash_component() argument
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()
147 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component()
159 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component()
164 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component()
171 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component()
175 static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_flash_components() argument
[all …]
Dmlxfw.h41 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);
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfw.c505 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument
513 *fwhandle = 0; in mlx5_fsm_lock()
514 err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state); in mlx5_fsm_lock()
522 0, *fwhandle, 0); in mlx5_fsm_lock()
525 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument
533 component_index, fwhandle, component_size); 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
543 return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data); 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
554 component_index, fwhandle, 0); in mlx5_fsm_component_verify()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c207 static int mlxsw_sp_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_sp_fsm_lock() argument
221 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_sp_fsm_lock()
227 0, *fwhandle, 0); in mlxsw_sp_fsm_lock()
232 u32 fwhandle, u16 component_index, in mlxsw_sp_fsm_component_update() argument
241 component_index, fwhandle, component_size); in mlxsw_sp_fsm_component_update()
246 u32 fwhandle, u8 *data, u16 size, in mlxsw_sp_fsm_block_download() argument
254 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); in mlxsw_sp_fsm_block_download()
259 u32 fwhandle, u16 component_index) in mlxsw_sp_fsm_component_verify() argument
267 component_index, fwhandle, 0); in mlxsw_sp_fsm_component_verify()
271 static int mlxsw_sp_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) in mlxsw_sp_fsm_activate() argument
[all …]