crypto: qat - fix naming for init/shutdown VF to PF notifications
[ Upstream commit b90c1c4d3fa8cd90f4e8245b13564380fd0bfad1 ] At start and shutdown, VFs notify the PF about their state. These notifications are carried out through a message exchange using the PFVF protocol. Function names lead to believe they do perform init or shutdown logic. This is to fix the naming to better reflect their purpose. Signed-off-by: Marco Chiappero <marco.chiappero@intel.com> Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
c29cc43e30
commit
205cfad5c0
@@ -79,10 +79,10 @@ void adf_init_hw_data_c3xxxiov(struct adf_hw_device_data *hw_data)
|
|||||||
hw_data->enable_error_correction = adf_vf_void_noop;
|
hw_data->enable_error_correction = adf_vf_void_noop;
|
||||||
hw_data->init_admin_comms = adf_vf_int_noop;
|
hw_data->init_admin_comms = adf_vf_int_noop;
|
||||||
hw_data->exit_admin_comms = adf_vf_void_noop;
|
hw_data->exit_admin_comms = adf_vf_void_noop;
|
||||||
hw_data->send_admin_init = adf_vf2pf_init;
|
hw_data->send_admin_init = adf_vf2pf_notify_init;
|
||||||
hw_data->init_arb = adf_vf_int_noop;
|
hw_data->init_arb = adf_vf_int_noop;
|
||||||
hw_data->exit_arb = adf_vf_void_noop;
|
hw_data->exit_arb = adf_vf_void_noop;
|
||||||
hw_data->disable_iov = adf_vf2pf_shutdown;
|
hw_data->disable_iov = adf_vf2pf_notify_shutdown;
|
||||||
hw_data->get_accel_mask = get_accel_mask;
|
hw_data->get_accel_mask = get_accel_mask;
|
||||||
hw_data->get_ae_mask = get_ae_mask;
|
hw_data->get_ae_mask = get_ae_mask;
|
||||||
hw_data->get_num_accels = get_num_accels;
|
hw_data->get_num_accels = get_num_accels;
|
||||||
|
@@ -79,10 +79,10 @@ void adf_init_hw_data_c62xiov(struct adf_hw_device_data *hw_data)
|
|||||||
hw_data->enable_error_correction = adf_vf_void_noop;
|
hw_data->enable_error_correction = adf_vf_void_noop;
|
||||||
hw_data->init_admin_comms = adf_vf_int_noop;
|
hw_data->init_admin_comms = adf_vf_int_noop;
|
||||||
hw_data->exit_admin_comms = adf_vf_void_noop;
|
hw_data->exit_admin_comms = adf_vf_void_noop;
|
||||||
hw_data->send_admin_init = adf_vf2pf_init;
|
hw_data->send_admin_init = adf_vf2pf_notify_init;
|
||||||
hw_data->init_arb = adf_vf_int_noop;
|
hw_data->init_arb = adf_vf_int_noop;
|
||||||
hw_data->exit_arb = adf_vf_void_noop;
|
hw_data->exit_arb = adf_vf_void_noop;
|
||||||
hw_data->disable_iov = adf_vf2pf_shutdown;
|
hw_data->disable_iov = adf_vf2pf_notify_shutdown;
|
||||||
hw_data->get_accel_mask = get_accel_mask;
|
hw_data->get_accel_mask = get_accel_mask;
|
||||||
hw_data->get_ae_mask = get_ae_mask;
|
hw_data->get_ae_mask = get_ae_mask;
|
||||||
hw_data->get_num_accels = get_num_accels;
|
hw_data->get_num_accels = get_num_accels;
|
||||||
|
@@ -195,8 +195,8 @@ void adf_enable_vf2pf_interrupts(struct adf_accel_dev *accel_dev,
|
|||||||
void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
|
void adf_enable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
|
||||||
void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
|
void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev);
|
||||||
|
|
||||||
int adf_vf2pf_init(struct adf_accel_dev *accel_dev);
|
int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev);
|
||||||
void adf_vf2pf_shutdown(struct adf_accel_dev *accel_dev);
|
void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev);
|
||||||
int adf_init_pf_wq(void);
|
int adf_init_pf_wq(void);
|
||||||
void adf_exit_pf_wq(void);
|
void adf_exit_pf_wq(void);
|
||||||
int adf_init_vf_wq(void);
|
int adf_init_vf_wq(void);
|
||||||
@@ -219,12 +219,12 @@ static inline void adf_disable_pf2vf_interrupts(struct adf_accel_dev *accel_dev)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int adf_vf2pf_init(struct adf_accel_dev *accel_dev)
|
static inline int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void adf_vf2pf_shutdown(struct adf_accel_dev *accel_dev)
|
static inline void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,14 +5,14 @@
|
|||||||
#include "adf_pf2vf_msg.h"
|
#include "adf_pf2vf_msg.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* adf_vf2pf_init() - send init msg to PF
|
* adf_vf2pf_notify_init() - send init msg to PF
|
||||||
* @accel_dev: Pointer to acceleration VF device.
|
* @accel_dev: Pointer to acceleration VF device.
|
||||||
*
|
*
|
||||||
* Function sends an init messge from the VF to a PF
|
* Function sends an init messge from the VF to a PF
|
||||||
*
|
*
|
||||||
* Return: 0 on success, error code otherwise.
|
* Return: 0 on success, error code otherwise.
|
||||||
*/
|
*/
|
||||||
int adf_vf2pf_init(struct adf_accel_dev *accel_dev)
|
int adf_vf2pf_notify_init(struct adf_accel_dev *accel_dev)
|
||||||
{
|
{
|
||||||
u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM |
|
u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM |
|
||||||
(ADF_VF2PF_MSGTYPE_INIT << ADF_VF2PF_MSGTYPE_SHIFT));
|
(ADF_VF2PF_MSGTYPE_INIT << ADF_VF2PF_MSGTYPE_SHIFT));
|
||||||
@@ -25,17 +25,17 @@ int adf_vf2pf_init(struct adf_accel_dev *accel_dev)
|
|||||||
set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
|
set_bit(ADF_STATUS_PF_RUNNING, &accel_dev->status);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(adf_vf2pf_init);
|
EXPORT_SYMBOL_GPL(adf_vf2pf_notify_init);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* adf_vf2pf_shutdown() - send shutdown msg to PF
|
* adf_vf2pf_notify_shutdown() - send shutdown msg to PF
|
||||||
* @accel_dev: Pointer to acceleration VF device.
|
* @accel_dev: Pointer to acceleration VF device.
|
||||||
*
|
*
|
||||||
* Function sends a shutdown messge from the VF to a PF
|
* Function sends a shutdown messge from the VF to a PF
|
||||||
*
|
*
|
||||||
* Return: void
|
* Return: void
|
||||||
*/
|
*/
|
||||||
void adf_vf2pf_shutdown(struct adf_accel_dev *accel_dev)
|
void adf_vf2pf_notify_shutdown(struct adf_accel_dev *accel_dev)
|
||||||
{
|
{
|
||||||
u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM |
|
u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM |
|
||||||
(ADF_VF2PF_MSGTYPE_SHUTDOWN << ADF_VF2PF_MSGTYPE_SHIFT));
|
(ADF_VF2PF_MSGTYPE_SHUTDOWN << ADF_VF2PF_MSGTYPE_SHIFT));
|
||||||
@@ -45,4 +45,4 @@ void adf_vf2pf_shutdown(struct adf_accel_dev *accel_dev)
|
|||||||
dev_err(&GET_DEV(accel_dev),
|
dev_err(&GET_DEV(accel_dev),
|
||||||
"Failed to send Shutdown event to PF\n");
|
"Failed to send Shutdown event to PF\n");
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(adf_vf2pf_shutdown);
|
EXPORT_SYMBOL_GPL(adf_vf2pf_notify_shutdown);
|
||||||
|
@@ -79,10 +79,10 @@ void adf_init_hw_data_dh895xcciov(struct adf_hw_device_data *hw_data)
|
|||||||
hw_data->enable_error_correction = adf_vf_void_noop;
|
hw_data->enable_error_correction = adf_vf_void_noop;
|
||||||
hw_data->init_admin_comms = adf_vf_int_noop;
|
hw_data->init_admin_comms = adf_vf_int_noop;
|
||||||
hw_data->exit_admin_comms = adf_vf_void_noop;
|
hw_data->exit_admin_comms = adf_vf_void_noop;
|
||||||
hw_data->send_admin_init = adf_vf2pf_init;
|
hw_data->send_admin_init = adf_vf2pf_notify_init;
|
||||||
hw_data->init_arb = adf_vf_int_noop;
|
hw_data->init_arb = adf_vf_int_noop;
|
||||||
hw_data->exit_arb = adf_vf_void_noop;
|
hw_data->exit_arb = adf_vf_void_noop;
|
||||||
hw_data->disable_iov = adf_vf2pf_shutdown;
|
hw_data->disable_iov = adf_vf2pf_notify_shutdown;
|
||||||
hw_data->get_accel_mask = get_accel_mask;
|
hw_data->get_accel_mask = get_accel_mask;
|
||||||
hw_data->get_ae_mask = get_ae_mask;
|
hw_data->get_ae_mask = get_ae_mask;
|
||||||
hw_data->get_num_accels = get_num_accels;
|
hw_data->get_num_accels = get_num_accels;
|
||||||
|
Reference in New Issue
Block a user