Home
last modified time | relevance | path

Searched refs:fwhandle (Results 1 - 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_fsm.c84 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument
95 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait()
208 u32 fwhandle, in mlxfw_flash_component()
244 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component()
258 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component()
272 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component()
287 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component()
295 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component()
302 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component()
306 static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_flash_components() argument
207 mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, struct mlxfw_mfa2_component *comp, bool reactivate_supp, struct netlink_ext_ack *extack) mlxfw_flash_component() argument
353 u32 fwhandle; mlxfw_firmware_flash() local
[all...]
H A Dmlxfw.h77 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle);
79 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
82 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
85 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
88 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
92 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
96 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
98 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_fsm.c84 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait() argument
95 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait()
208 u32 fwhandle, in mlxfw_flash_component()
244 err = mlxfw_dev->ops->fsm_component_update(mlxfw_dev, fwhandle, in mlxfw_flash_component()
258 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component()
272 err = mlxfw_dev->ops->fsm_block_download(mlxfw_dev, fwhandle, in mlxfw_flash_component()
287 err = mlxfw_dev->ops->fsm_component_verify(mlxfw_dev, fwhandle, in mlxfw_flash_component()
295 err = mlxfw_fsm_state_wait(mlxfw_dev, fwhandle, in mlxfw_flash_component()
302 mlxfw_dev->ops->fsm_cancel(mlxfw_dev, fwhandle); in mlxfw_flash_component()
306 static int mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_flash_components() argument
207 mlxfw_flash_component(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, struct mlxfw_mfa2_component *comp, bool reactivate_supp, struct netlink_ext_ack *extack) mlxfw_flash_component() argument
353 u32 fwhandle; mlxfw_firmware_flash() local
[all...]
H A Dmlxfw.h77 int (*fsm_lock)(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle);
79 int (*fsm_component_update)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
82 int (*fsm_block_download)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
85 int (*fsm_component_verify)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
88 int (*fsm_activate)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
92 int (*fsm_query_state)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle,
96 void (*fsm_cancel)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
98 void (*fsm_release)(struct mlxfw_dev *mlxfw_dev, u32 fwhandle);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw.c514 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument
522 *fwhandle = 0; in mlx5_fsm_lock()
523 err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state); in mlx5_fsm_lock()
531 0, *fwhandle, 0); in mlx5_fsm_lock()
534 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument
542 component_index, fwhandle, component_size); in mlx5_fsm_component_update()
545 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument
552 return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data); in mlx5_fsm_block_download()
555 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument
563 component_index, fwhandle, in mlx5_fsm_component_verify()
566 mlx5_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_activate() argument
576 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
596 mlx5_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_cancel() argument
605 mlx5_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_release() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfw.c541 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument
549 *fwhandle = 0; in mlx5_fsm_lock()
550 err = mlx5_reg_mcc_query(dev, fwhandle, &error_code, &control_state); in mlx5_fsm_lock()
558 0, *fwhandle, 0); in mlx5_fsm_lock()
561 static int mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_update() argument
569 component_index, fwhandle, component_size); in mlx5_fsm_component_update()
572 static int mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_block_download() argument
579 return mlx5_reg_mcda_set(dev, fwhandle, offset, size, data); in mlx5_fsm_block_download()
582 static int mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlx5_fsm_component_verify() argument
590 component_index, fwhandle, in mlx5_fsm_component_verify()
593 mlx5_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_activate() argument
603 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
623 mlx5_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_cancel() argument
632 mlx5_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlx5_fsm_release() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_linecards.c131 u32 *fwhandle) in mlxsw_linecard_device_fw_fsm_lock()
152 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_linecard_device_fw_fsm_lock()
161 0, *fwhandle, 0); in mlxsw_linecard_device_fw_fsm_lock()
167 u32 fwhandle, in mlxsw_linecard_device_fw_fsm_component_update()
184 component_index, fwhandle, component_size); in mlxsw_linecard_device_fw_fsm_component_update()
190 u32 fwhandle, u8 *data, in mlxsw_linecard_device_fw_fsm_block_download()
205 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); in mlxsw_linecard_device_fw_fsm_block_download()
211 u32 fwhandle, u16 component_index) in mlxsw_linecard_device_fw_fsm_component_verify()
226 component_index, fwhandle, 0); in mlxsw_linecard_device_fw_fsm_component_verify()
231 u32 fwhandle) in mlxsw_linecard_device_fw_fsm_activate()
130 mlxsw_linecard_device_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) mlxsw_linecard_device_fw_fsm_lock() argument
166 mlxsw_linecard_device_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index, u32 component_size) mlxsw_linecard_device_fw_fsm_component_update() argument
189 mlxsw_linecard_device_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u8 *data, u16 size, u32 offset) mlxsw_linecard_device_fw_fsm_block_download() argument
210 mlxsw_linecard_device_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index) mlxsw_linecard_device_fw_fsm_component_verify() argument
230 mlxsw_linecard_device_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_linecard_device_fw_fsm_activate() argument
251 mlxsw_linecard_device_fw_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, enum mlxfw_fsm_state *fsm_state, enum mlxfw_fsm_state_err *fsm_state_err) mlxsw_linecard_device_fw_fsm_query_state() argument
283 mlxsw_linecard_device_fw_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_linecard_device_fw_fsm_cancel() argument
303 mlxsw_linecard_device_fw_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_linecard_device_fw_fsm_release() argument
[all...]
H A Dcore.c1085 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument
1099 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_core_fw_fsm_lock()
1103 mlxsw_reg_mcc_pack(mcc_pl, MLXSW_REG_MCC_INSTRUCTION_LOCK_UPDATE_HANDLE, 0, *fwhandle, 0); in mlxsw_core_fw_fsm_lock()
1107 static int mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_update() argument
1116 component_index, fwhandle, component_size); in mlxsw_core_fw_fsm_component_update()
1120 static int mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_block_download() argument
1128 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); in mlxsw_core_fw_fsm_block_download()
1132 static int mlxsw_core_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_verify() argument
1141 component_index, fwhandle, 0); in mlxsw_core_fw_fsm_component_verify()
1145 static int mlxsw_core_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) in mlxsw_core_fw_fsm_activate() argument
1156 mlxsw_core_fw_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, enum mlxfw_fsm_state *fsm_state, enum mlxfw_fsm_state_err *fsm_state_err) mlxsw_core_fw_fsm_query_state() argument
1179 mlxsw_core_fw_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_core_fw_fsm_cancel() argument
1190 mlxsw_core_fw_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_core_fw_fsm_release() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore.c910 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument
924 mlxsw_reg_mcc_unpack(mcc_pl, fwhandle, NULL, &control_state); in mlxsw_core_fw_fsm_lock()
928 mlxsw_reg_mcc_pack(mcc_pl, MLXSW_REG_MCC_INSTRUCTION_LOCK_UPDATE_HANDLE, 0, *fwhandle, 0); in mlxsw_core_fw_fsm_lock()
932 static int mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_update() argument
941 component_index, fwhandle, component_size); in mlxsw_core_fw_fsm_component_update()
945 static int mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_block_download() argument
953 mlxsw_reg_mcda_pack(mcda_pl, fwhandle, offset, size, data); in mlxsw_core_fw_fsm_block_download()
957 static int mlxsw_core_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxsw_core_fw_fsm_component_verify() argument
966 component_index, fwhandle, 0); in mlxsw_core_fw_fsm_component_verify()
970 static int mlxsw_core_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) in mlxsw_core_fw_fsm_activate() argument
981 mlxsw_core_fw_fsm_query_state(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, enum mlxfw_fsm_state *fsm_state, enum mlxfw_fsm_state_err *fsm_state_err) mlxsw_core_fw_fsm_query_state() argument
1004 mlxsw_core_fw_fsm_cancel(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_core_fw_fsm_cancel() argument
1015 mlxsw_core_fw_fsm_release(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) mlxsw_core_fw_fsm_release() argument
[all...]

Completed in 19 milliseconds