Home
last modified time | relevance | path

Searched refs:mlxfw_dev (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/dev/mlxfw/
H A Dmlxfw_fsm.c70 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 Dmlxfw.h64 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 Dmlx5_fw.c485 struct mlxfw_dev mlxfw_dev; in mlx5_component_query()
489 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query()
494 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
501 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock()
504 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock()
479 struct mlxfw_dev mlxfw_dev; global() member
483 mlx5_component_query(struct mlxfw_dev * mlxfw_dev,u16 component_index,u32 * p_max_size,u8 * p_align_bits,u16 * p_max_write_size) mlx5_component_query() argument
495 mlx5_fsm_lock(struct mlxfw_dev * mlxfw_dev,u32 * fwhandle) mlx5_fsm_lock() argument
515 mlx5_fsm_component_update(struct mlxfw_dev * mlxfw_dev,u32 fwhandle,u16 component_index,u32 component_size) mlx5_fsm_component_update() argument
526 mlx5_fsm_block_download(struct mlxfw_dev * mlxfw_dev,u32 fwhandle,u8 * data,u16 size,u32 offset) mlx5_fsm_block_download() argument
536 mlx5_fsm_component_verify(struct mlxfw_dev * mlxfw_dev,u32 fwhandle,u16 component_index) mlx5_fsm_component_verify() argument
547 mlx5_fsm_activate(struct mlxfw_dev * mlxfw_dev,u32 fwhandle) mlx5_fsm_activate() argument
557 mlx5_fsm_query_state(struct mlxfw_dev * mlxfw_dev,u32 fwhandle,enum mlxfw_fsm_state * fsm_state,enum mlxfw_fsm_state_err * fsm_state_err) mlx5_fsm_query_state() argument
577 mlx5_fsm_cancel(struct mlxfw_dev * mlxfw_dev,u32 fwhandle) mlx5_fsm_cancel() argument
586 mlx5_fsm_release(struct mlxfw_dev * mlxfw_dev,u32 fwhandle) mlx5_fsm_release() argument
[all...]