Home
last modified time | relevance | path

Searched refs:xa_p (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c65 char *xa_p; /* low address: d--->n, please refer to Hisilicon HPRE UM */ member
590 ctx->dh.xa_p = dma_alloc_coherent(dev, sz << 1, in hpre_dh_set_params()
592 if (!ctx->dh.xa_p) in hpre_dh_set_params()
595 memcpy(ctx->dh.xa_p + sz, params->p, sz); in hpre_dh_set_params()
605 dma_free_coherent(dev, sz << 1, ctx->dh.xa_p, in hpre_dh_set_params()
607 ctx->dh.xa_p = NULL; in hpre_dh_set_params()
629 if (ctx->dh.xa_p) { in hpre_dh_clear_ctx()
630 memzero_explicit(ctx->dh.xa_p, sz); in hpre_dh_clear_ctx()
631 dma_free_coherent(dev, sz << 1, ctx->dh.xa_p, in hpre_dh_clear_ctx()
633 ctx->dh.xa_p = NULL; in hpre_dh_clear_ctx()
[all …]