Searched refs:mlxfw_dev (Results 1 – 3 of 3) sorted by relevance
| /freebsd/sys/dev/mlxfw/ |
| H A D | mlxfw_fsm.c | 70 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument 80 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait() 105 static int mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev, in mlxfw_flash_component() argument 117 err = mlxfw_dev->ops->component_query(mlxfw_dev, comp->index, in mlxfw_flash_component() 134 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component() 140 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component() 152 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component() 160 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component() 165 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, MLXFW_FSM_STATE_LOCKED); in mlxfw_flash_component() 171 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component() [all …]
|
| H A D | mlxfw.h | 64 struct mlxfw_dev; 68 int (*component_query)(struct mlxfw_dev *mlxfw_dev, u16 component_index, 72 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle); 74 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 77 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 80 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 83 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 85 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, 89 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); 91 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle); [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_fw.c | 485 struct mlxfw_dev mlxfw_dev; member 489 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 494 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 501 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 504 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 521 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument 525 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_component_update() 532 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument 536 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_block_download() 542 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument [all …]
|