crypto: hisilicon - Update some names on SEC V2

1.Adjust dma map function to be reused by AEAD algorithms;
2.Update some names of internal functions and variables to
  support AEAD algorithms;
3.Rename 'sec_skcipher_exit' as 'sec_skcipher_uninit';
4.Rename 'sec_get/put_queue_id' as 'sec_alloc/free_queue_id';

Signed-off-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Zaibo Xu
2020-01-11 10:41:50 +08:00
committed by Herbert Xu
parent a718cfce06
commit a181647c06
2 changed files with 36 additions and 29 deletions

View File

@@ -9,8 +9,8 @@
#include "../qm.h"
#include "sec_crypto.h"
/* Cipher resource per hardware SEC queue */
struct sec_cipher_res {
/* Algorithm resource per hardware SEC queue */
struct sec_alg_res {
u8 *c_ivin;
dma_addr_t c_ivin_dma;
};