fwhandle          505 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle)
fwhandle          513 drivers/net/ethernet/mellanox/mlx5/core/fw.c 	*fwhandle = 0;
fwhandle          514 drivers/net/ethernet/mellanox/mlx5/core/fw.c 	err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state);
fwhandle          522 drivers/net/ethernet/mellanox/mlx5/core/fw.c 				0, *fwhandle, 0);
fwhandle          525 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          533 drivers/net/ethernet/mellanox/mlx5/core/fw.c 				component_index, fwhandle, component_size);
fwhandle          536 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          543 drivers/net/ethernet/mellanox/mlx5/core/fw.c 	return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data);
fwhandle          546 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          554 drivers/net/ethernet/mellanox/mlx5/core/fw.c 				component_index, fwhandle, 0);
fwhandle          557 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          564 drivers/net/ethernet/mellanox/mlx5/core/fw.c 				fwhandle, 0);
fwhandle          567 drivers/net/ethernet/mellanox/mlx5/core/fw.c static int mlx5_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          577 drivers/net/ethernet/mellanox/mlx5/core/fw.c 	err = mlx5_reg_mcc_query(dev, &fwhandle, &error_code, &control_state);
fwhandle          587 drivers/net/ethernet/mellanox/mlx5/core/fw.c static void mlx5_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          593 drivers/net/ethernet/mellanox/mlx5/core/fw.c 	mlx5_reg_mcc_set(dev, MLX5_REG_MCC_INSTRUCTION_CANCEL, 0, fwhandle, 0);
fwhandle          596 drivers/net/ethernet/mellanox/mlx5/core/fw.c static void mlx5_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          603 drivers/net/ethernet/mellanox/mlx5/core/fw.c 			 fwhandle, 0);
fwhandle           41 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle);
fwhandle           43 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle           46 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle           49 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle           52 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
fwhandle           54 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle           58 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
fwhandle           60 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h 	void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
fwhandle           52 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle           63 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle,
fwhandle           93 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 				 u32 fwhandle,
fwhandle          127 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle,
fwhandle          133 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
fwhandle          147 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 		err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle,
fwhandle          159 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle,
fwhandle          164 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
fwhandle          171 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle);
fwhandle          175 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          201 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 		err = mlxfw_flash_component(mlxfw_dev, fwhandle, comp, extack);
fwhandle          214 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	u32 fwhandle;
fwhandle          230 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_dev->ops->fsm_lock(mlxfw_dev, &fwhandle);
fwhandle          237 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
fwhandle          242 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_flash_components(mlxfw_dev, fwhandle, mfa2_file, extack);
fwhandle          248 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_dev->ops->fsm_activate(mlxfw_dev, fwhandle);
fwhandle          255 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
fwhandle          261 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	mlxfw_dev->ops->fsm_release(mlxfw_dev, fwhandle);
fwhandle          272 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c 	mlxfw_dev->ops->fsm_release(mlxfw_dev, fwhandle);
fwhandle          207 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle)
fwhandle          221 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state);
fwhandle          227 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   0, *fwhandle, 0);
fwhandle          232 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 					 u32 fwhandle, u16 component_index,
fwhandle          241 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   component_index, fwhandle, component_size);
fwhandle          246 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 				       u32 fwhandle, u8 *data, u16 size,
fwhandle          254 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data);
fwhandle          259 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 					 u32 fwhandle, u16 component_index)
fwhandle          267 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   component_index, fwhandle, 0);
fwhandle          271 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          279 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   fwhandle, 0);
fwhandle          283 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
fwhandle          295 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 	mlxsw_reg_mcc_pack(mcc_pl, 0, 0, fwhandle, 0);
fwhandle          307 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static void mlxsw_sp_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          315 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   fwhandle, 0);
fwhandle          319 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static void mlxsw_sp_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
fwhandle          328 drivers/net/ethernet/mellanox/mlxsw/spectrum.c 			   fwhandle, 0);