Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_fsm.c73 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()
109 u32 fwhandle, in mlxfw_flash_component() argument
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()
178 static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_flash_components() argument
[all …]
Dmlxfw.h71 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);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dfw.c393 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument
401 *fwhandle = 0; in mlx5_fsm_lock()
402 err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state); in mlx5_fsm_lock()
410 0, *fwhandle, 0); in mlx5_fsm_lock()
413 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument
421 component_index, fwhandle, component_size); 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
431 return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data); 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
442 component_index, fwhandle, 0); in mlx5_fsm_component_verify()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c163 static int mlxsw_sp_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_sp_fsm_lock() argument
177 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_sp_fsm_lock()
183 0, *fwhandle, 0); in mlxsw_sp_fsm_lock()
188 u32 fwhandle, u16 component_index, in mlxsw_sp_fsm_component_update() argument
197 component_index, fwhandle, component_size); in mlxsw_sp_fsm_component_update()
202 u32 fwhandle, u8 *data, u16 size, in mlxsw_sp_fsm_block_download() argument
210 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); in mlxsw_sp_fsm_block_download()
215 u32 fwhandle, u16 component_index) in mlxsw_sp_fsm_component_verify() argument
223 component_index, fwhandle, 0); in mlxsw_sp_fsm_component_verify()
227 static int mlxsw_sp_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) in mlxsw_sp_fsm_activate() argument
[all …]