mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
crypto: qat - rename qat_uclo_del_uof_obj()
Rename the function qat_uclo_del_uof_obj() in qat_uclo_del_obj() since it frees the memory allocated for all firmware objects. Signed-off-by: Jack Xu <jack.xu@intel.com> Co-developed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Signed-off-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
54fa5d4bf7
commit
ee103cf1f5
@ -61,7 +61,7 @@ void adf_ae_fw_release(struct adf_accel_dev *accel_dev)
|
|||||||
if (!hw_device->fw_name)
|
if (!hw_device->fw_name)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
qat_uclo_del_uof_obj(loader_data->fw_loader);
|
qat_uclo_del_obj(loader_data->fw_loader);
|
||||||
qat_hal_deinit(loader_data->fw_loader);
|
qat_hal_deinit(loader_data->fw_loader);
|
||||||
release_firmware(loader_data->uof_fw);
|
release_firmware(loader_data->uof_fw);
|
||||||
release_firmware(loader_data->mmp_fw);
|
release_firmware(loader_data->mmp_fw);
|
||||||
|
@ -180,7 +180,7 @@ int qat_hal_init_nn(struct icp_qat_fw_loader_handle *handle,
|
|||||||
int qat_hal_wr_lm(struct icp_qat_fw_loader_handle *handle,
|
int qat_hal_wr_lm(struct icp_qat_fw_loader_handle *handle,
|
||||||
unsigned char ae, unsigned short lm_addr, unsigned int value);
|
unsigned char ae, unsigned short lm_addr, unsigned int value);
|
||||||
int qat_uclo_wr_all_uimage(struct icp_qat_fw_loader_handle *handle);
|
int qat_uclo_wr_all_uimage(struct icp_qat_fw_loader_handle *handle);
|
||||||
void qat_uclo_del_uof_obj(struct icp_qat_fw_loader_handle *handle);
|
void qat_uclo_del_obj(struct icp_qat_fw_loader_handle *handle);
|
||||||
int qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle, void *addr_ptr,
|
int qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle, void *addr_ptr,
|
||||||
int mem_size);
|
int mem_size);
|
||||||
int qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle,
|
int qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle,
|
||||||
|
@ -1705,7 +1705,7 @@ int qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle,
|
|||||||
qat_uclo_map_uof_obj(handle, obj_addr, obj_size);
|
qat_uclo_map_uof_obj(handle, obj_addr, obj_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qat_uclo_del_uof_obj(struct icp_qat_fw_loader_handle *handle)
|
void qat_uclo_del_obj(struct icp_qat_fw_loader_handle *handle)
|
||||||
{
|
{
|
||||||
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
|
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
|
||||||
unsigned int a;
|
unsigned int a;
|
||||||
|
Loading…
Reference in New Issue
Block a user