/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_fsm.c | 38 static int mlxfw_fsm_state_err(struct mlxfw_dev *mlxfw_dev, in mlxfw_fsm_state_err() argument 49 MLXFW_ERR_MSG(mlxfw_dev, extack, "general error", err); in mlxfw_fsm_state_err() 52 MLXFW_ERR_MSG(mlxfw_dev, extack, "component hash mismatch", err); in mlxfw_fsm_state_err() 55 MLXFW_ERR_MSG(mlxfw_dev, extack, "component not applicable", err); in mlxfw_fsm_state_err() 58 MLXFW_ERR_MSG(mlxfw_dev, extack, "unknown key", err); in mlxfw_fsm_state_err() 61 MLXFW_ERR_MSG(mlxfw_dev, extack, "authentication failed", err); in mlxfw_fsm_state_err() 64 MLXFW_ERR_MSG(mlxfw_dev, extack, "component was not signed", err); in mlxfw_fsm_state_err() 67 MLXFW_ERR_MSG(mlxfw_dev, extack, "key not applicable", err); in mlxfw_fsm_state_err() 70 MLXFW_ERR_MSG(mlxfw_dev, extac in mlxfw_fsm_state_err() 84 mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, enum mlxfw_fsm_state fsm_state, struct netlink_ext_ack *extack) mlxfw_fsm_state_wait() argument 118 mlxfw_fsm_reactivate_err(struct mlxfw_dev *mlxfw_dev, struct netlink_ext_ack *extack, u8 err) mlxfw_fsm_reactivate_err() argument 166 mlxfw_fsm_reactivate(struct mlxfw_dev *mlxfw_dev, struct netlink_ext_ack *extack, bool *supported) mlxfw_fsm_reactivate() argument 195 mlxfw_status_notify(struct mlxfw_dev *mlxfw_dev, const char *msg, const char *comp_name, u32 done_bytes, u32 total_bytes) mlxfw_status_notify() 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 306 mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, struct mlxfw_mfa2_file *mfa2_file, bool reactivate_supp, struct netlink_ext_ack *extack) mlxfw_flash_components() argument 347 mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxfw_firmware_flash() argument [all...] |
H A D | mlxfw.h | 12 struct mlxfw_dev { struct 20 struct device *mlxfw_dev_dev(struct mlxfw_dev *mlxfw_dev) in mlxfw_dev_dev() argument 22 return mlxfw_dev->devlink->dev; in mlxfw_dev_dev() 27 #define mlxfw_info(mlxfw_dev, fmt, ...) \ 28 dev_info(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 29 #define mlxfw_err(mlxfw_dev, fmt, ...) \ 30 dev_err(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 31 #define mlxfw_dbg(mlxfw_dev, fmt, ...) \ 32 dev_dbg(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRF 107 mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxfw_firmware_flash() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_fsm.c | 38 static int mlxfw_fsm_state_err(struct mlxfw_dev *mlxfw_dev, in mlxfw_fsm_state_err() argument 49 MLXFW_ERR_MSG(mlxfw_dev, extack, "general error", err); in mlxfw_fsm_state_err() 52 MLXFW_ERR_MSG(mlxfw_dev, extack, "component hash mismatch", err); in mlxfw_fsm_state_err() 55 MLXFW_ERR_MSG(mlxfw_dev, extack, "component not applicable", err); in mlxfw_fsm_state_err() 58 MLXFW_ERR_MSG(mlxfw_dev, extack, "unknown key", err); in mlxfw_fsm_state_err() 61 MLXFW_ERR_MSG(mlxfw_dev, extack, "authentication failed", err); in mlxfw_fsm_state_err() 64 MLXFW_ERR_MSG(mlxfw_dev, extack, "component was not signed", err); in mlxfw_fsm_state_err() 67 MLXFW_ERR_MSG(mlxfw_dev, extack, "key not applicable", err); in mlxfw_fsm_state_err() 70 MLXFW_ERR_MSG(mlxfw_dev, extac in mlxfw_fsm_state_err() 84 mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, enum mlxfw_fsm_state fsm_state, struct netlink_ext_ack *extack) mlxfw_fsm_state_wait() argument 118 mlxfw_fsm_reactivate_err(struct mlxfw_dev *mlxfw_dev, struct netlink_ext_ack *extack, u8 err) mlxfw_fsm_reactivate_err() argument 166 mlxfw_fsm_reactivate(struct mlxfw_dev *mlxfw_dev, struct netlink_ext_ack *extack, bool *supported) mlxfw_fsm_reactivate() argument 195 mlxfw_status_notify(struct mlxfw_dev *mlxfw_dev, const char *msg, const char *comp_name, u32 done_bytes, u32 total_bytes) mlxfw_status_notify() 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 306 mlxfw_flash_components(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, struct mlxfw_mfa2_file *mfa2_file, bool reactivate_supp, struct netlink_ext_ack *extack) mlxfw_flash_components() argument 347 mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxfw_firmware_flash() argument [all...] |
H A D | mlxfw.h | 12 struct mlxfw_dev { struct 20 struct device *mlxfw_dev_dev(struct mlxfw_dev *mlxfw_dev) in mlxfw_dev_dev() argument 22 return devlink_to_dev(mlxfw_dev->devlink); in mlxfw_dev_dev() 27 #define mlxfw_info(mlxfw_dev, fmt, ...) \ 28 dev_info(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 29 #define mlxfw_err(mlxfw_dev, fmt, ...) \ 30 dev_err(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRFX fmt, ## __VA_ARGS__) 31 #define mlxfw_dbg(mlxfw_dev, fmt, ...) \ 32 dev_dbg(mlxfw_dev_dev(mlxfw_dev), MLXFW_PRF 107 mlxfw_firmware_flash(struct mlxfw_dev *mlxfw_dev, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxfw_firmware_flash() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fw.c | 493 struct mlxfw_dev mlxfw_dev; member 497 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 502 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 514 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 517 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 534 mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index, u32 component_size) mlx5_fsm_component_update() argument 545 mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u8 *data, u16 size, u32 offset) mlx5_fsm_block_download() argument 555 mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index) mlx5_fsm_component_verify() argument 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 616 mlx5_fsm_reactivate(struct mlxfw_dev *mlxfw_dev, u8 *status) mlx5_fsm_reactivate() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fw.c | 520 struct mlxfw_dev mlxfw_dev; member 524 static int mlx5_component_query(struct mlxfw_dev *mlxfw_dev, in mlx5_component_query() argument 529 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_component_query() 541 static int mlx5_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlx5_fsm_lock() argument 544 container_of(mlxfw_dev, struct mlx5_mlxfw_dev, mlxfw_dev); in mlx5_fsm_lock() 561 mlx5_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index, u32 component_size) mlx5_fsm_component_update() argument 572 mlx5_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u8 *data, u16 size, u32 offset) mlx5_fsm_block_download() argument 582 mlx5_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index) mlx5_fsm_component_verify() argument 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 642 mlx5_fsm_reactivate(struct mlxfw_dev *mlxfw_dev, u8 *status) mlx5_fsm_reactivate() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_linecards.c | 92 struct mlxfw_dev mlxfw_dev; member 97 static int mlxsw_linecard_device_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_linecard_device_fw_component_query() argument 104 container_of(mlxfw_dev, struct mlxsw_linecard_device_fw_info, in mlxsw_linecard_device_fw_component_query() 105 mlxfw_dev); in mlxsw_linecard_device_fw_component_query() 130 static int mlxsw_linecard_device_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, in mlxsw_linecard_device_fw_fsm_lock() argument 134 container_of(mlxfw_dev, struct mlxsw_linecard_device_fw_info, in mlxsw_linecard_device_fw_fsm_lock() 135 mlxfw_dev); in mlxsw_linecard_device_fw_fsm_lock() 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 D | core.c | 1046 struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_flash() 1053 err = mlxfw_firmware_flash(mlxfw_dev, firmware, extack); in mlxsw_core_fw_flash() 1060 struct mlxfw_dev mlxfw_dev; member 1064 static int mlxsw_core_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_component_query() argument 1069 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_component_query() 1085 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_de argument 1045 mlxsw_core_fw_flash(struct mlxsw_core *mlxsw_core, struct mlxfw_dev *mlxfw_dev, const struct firmware *firmware, struct netlink_ext_ack *extack) mlxsw_core_fw_flash() argument 1107 mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index, u32 component_size) mlxsw_core_fw_fsm_component_update() argument 1120 mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u8 *data, u16 size, u32 offset) mlxsw_core_fw_fsm_block_download() argument 1132 mlxsw_core_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index) mlxsw_core_fw_fsm_component_verify() argument 1145 mlxsw_core_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) 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...] |
H A D | core.h | 55 struct mlxfw_dev *mlxfw_dev,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core.c | 885 struct mlxfw_dev mlxfw_dev; member 889 static int mlxsw_core_fw_component_query(struct mlxfw_dev *mlxfw_dev, in mlxsw_core_fw_component_query() argument 894 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_component_query() 910 static int mlxsw_core_fw_fsm_lock(struct mlxfw_dev *mlxfw_dev, u32 *fwhandle) in mlxsw_core_fw_fsm_lock() argument 913 container_of(mlxfw_dev, struct mlxsw_core_fw_info, mlxfw_dev); in mlxsw_core_fw_fsm_lock() 932 mlxsw_core_fw_fsm_component_update(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index, u32 component_size) mlxsw_core_fw_fsm_component_update() argument 945 mlxsw_core_fw_fsm_block_download(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u8 *data, u16 size, u32 offset) mlxsw_core_fw_fsm_block_download() argument 957 mlxsw_core_fw_fsm_component_verify(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, u16 component_index) mlxsw_core_fw_fsm_component_verify() argument 970 mlxsw_core_fw_fsm_activate(struct mlxfw_dev *mlxfw_dev, u32 fwhandle) 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...] |