crypto: qat - relocate bank state helper functions
authorMałgorzata Mielnik <malgorzata.mielnik@intel.com>
Tue, 1 Jul 2025 09:47:28 +0000 (10:47 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jul 2025 10:51:59 +0000 (20:51 +1000)
commite9eec2916c167c7867148254a8f945401a5f6a38
treeabcf8907193ef8ea424af2463ef782b6cc96fc23
parent18126fdff42f6854123b3ddaf3b469a0cee80adb
crypto: qat - relocate bank state helper functions

The existing implementation of bank state management functions,
including saving and restoring state, is located within 4xxx device
files. However, these functions do not contain GEN4-specific code and
are applicable to other QAT generations.

Relocate the bank state management functions to a new file,
adf_bank_state.c, and rename them removing the `gen4` prefix. This change
enables the reuse of such functions across different QAT generations.

Add documentation to bank state related functions that were
moved from QAT 4xxx specific files to common files.

This does not introduce any functional change.

Signed-off-by: Małgorzata Mielnik <malgorzata.mielnik@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c
drivers/crypto/intel/qat/qat_common/Makefile
drivers/crypto/intel/qat/qat_common/adf_bank_state.c [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_bank_state.h [new file with mode: 0644]
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.c
drivers/crypto/intel/qat/qat_common/adf_gen4_hw_data.h