Commit ee103cf1 authored by Jack Xu's avatar Jack Xu Committed by Herbert Xu

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: default avatarJack Xu <jack.xu@intel.com>
Co-developed-by: default avatarWojciech Ziemba <wojciech.ziemba@intel.com>
Signed-off-by: default avatarWojciech Ziemba <wojciech.ziemba@intel.com>
Reviewed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 54fa5d4b
...@@ -61,7 +61,7 @@ void adf_ae_fw_release(struct adf_accel_dev *accel_dev) ...@@ -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, ...@@ -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, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment