Symbol: mlxfw_dev
sys/dev/mlx5/mlx5_core/mlx5_fw.c
485
struct mlxfw_dev mlxfw_dev;
sys/dev/mlx5/mlx5_core/mlx5_fw.c
489
static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev,
sys/dev/mlx5/mlx5_core/mlx5_fw.c
494
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
501
static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle)
sys/dev/mlx5/mlx5_core/mlx5_fw.c
504
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
521
static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlx5/mlx5_core/mlx5_fw.c
525
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
532
static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlx5/mlx5_core/mlx5_fw.c
536
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
542
static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlx5/mlx5_core/mlx5_fw.c
546
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
553
static int mlx5_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
sys/dev/mlx5/mlx5_core/mlx5_fw.c
556
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
563
static int mlx5_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlx5/mlx5_core/mlx5_fw.c
568
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
583
static void mlx5_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
sys/dev/mlx5/mlx5_core/mlx5_fw.c
586
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
592
static void mlx5_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle)
sys/dev/mlx5/mlx5_core/mlx5_fw.c
595
container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev);
sys/dev/mlx5/mlx5_core/mlx5_fw.c
618
.mlxfw_dev = {
sys/dev/mlx5/mlx5_core/mlx5_fw.c
634
return mlxfw_firmware_flash(&mlx5_mlxfw_dev.mlxfw_dev, firmware);
sys/dev/mlxfw/mlxfw.h
100
int mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev,
sys/dev/mlxfw/mlxfw.h
64
struct mlxfw_dev;
sys/dev/mlxfw/mlxfw.h
68
int (*component_query)(struct mlxfw_dev *mlxfw_dev, u16 component_index,
sys/dev/mlxfw/mlxfw.h
72
int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle);
sys/dev/mlxfw/mlxfw.h
74
int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw.h
77
int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw.h
80
int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw.h
83
int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
sys/dev/mlxfw/mlxfw.h
85
int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw.h
89
void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
sys/dev/mlxfw/mlxfw.h
91
void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
105
static int mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev,
sys/dev/mlxfw/mlxfw_fsm.c
117
err = mlxfw_dev->ops->component_query(mlxfw_dev, comp->index,
sys/dev/mlxfw/mlxfw_fsm.c
134
err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
140
err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
152
err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
160
err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
165
err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, MLXFW_FSM_STATE_LOCKED);
sys/dev/mlxfw/mlxfw_fsm.c
171
mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
175
static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
182
err = mlxfw_mfa2_file_component_count(mfa2_file, mlxfw_dev->psid,
sys/dev/mlxfw/mlxfw_fsm.c
183
mlxfw_dev->psid_size,
sys/dev/mlxfw/mlxfw_fsm.c
193
comp = mlxfw_mfa2_file_component_get(mfa2_file, mlxfw_dev->psid,
sys/dev/mlxfw/mlxfw_fsm.c
194
mlxfw_dev->psid_size, i);
sys/dev/mlxfw/mlxfw_fsm.c
199
err = mlxfw_flash_component(mlxfw_dev, fwhandle, comp);
sys/dev/mlxfw/mlxfw_fsm.c
207
int mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev,
sys/dev/mlxfw/mlxfw_fsm.c
224
err = mlxfw_dev->ops->fsm_lock(mlxfw_dev, &fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
230
err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
235
err = mlxfw_flash_components(mlxfw_dev, fwhandle, mfa2_file);
sys/dev/mlxfw/mlxfw_fsm.c
240
err = mlxfw_dev->ops->fsm_activate(mlxfw_dev, fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
246
err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, MLXFW_FSM_STATE_LOCKED);
sys/dev/mlxfw/mlxfw_fsm.c
251
mlxfw_dev->ops->fsm_release(mlxfw_dev, fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
261
mlxfw_dev->ops->fsm_release(mlxfw_dev, fwhandle);
sys/dev/mlxfw/mlxfw_fsm.c
70
static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
sys/dev/mlxfw/mlxfw_fsm.c
80
err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle,