Lines Matching refs:td_aad
34 struct rkce_symm_td *td_aad; member
614 hw_ctx->td_aad = rkce_cma_alloc(sizeof(struct rkce_symm_td)); in rkce_cipher_ctx_alloc()
615 if (!hw_ctx->td_aad) in rkce_cipher_ctx_alloc()
618 memset(hw_ctx->td_aad, 0x00, sizeof(struct rkce_symm_td)); in rkce_cipher_ctx_alloc()
629 rkce_cma_free(hw_ctx->td_aad); in rkce_cipher_ctx_alloc()
642 rkce_cma_free(hw_ctx->td_aad); in rkce_cipher_ctx_free()
803 rkce_init_symm_td(hw_ctx->td_aad, hw_ctx->td_buf); in rk_crypto_cipher()
812 ret = rk_set_symm_td_sg(hw_ctx->td_aad, new_aad, new_aad_len, NULL, 0); in rk_crypto_cipher()
820 hw_ctx->td_aad->ctrl = hw_ctx->td->ctrl; in rk_crypto_cipher()
821 hw_ctx->td_aad->ctrl.is_aad = 1; in rk_crypto_cipher()
823 crypto_flush_cacheline((ulong)hw_ctx->td_aad, sizeof(*hw_ctx->td_aad)); in rk_crypto_cipher()
829 ret = rkce_push_td_sync(priv->hardware, hw_ctx->td_aad, RKCE_SYMM_TIMEOUT_MS); in rk_crypto_cipher()
842 rkce_init_symm_td(hw_ctx->td_aad, hw_ctx->td_buf); in rk_crypto_cipher()
844 ret = rk_set_symm_td_sg(hw_ctx->td_aad, aad, aad_len, NULL, 0); in rk_crypto_cipher()
851 hw_ctx->td_aad->ctrl = hw_ctx->td->ctrl; in rk_crypto_cipher()
852 hw_ctx->td_aad->ctrl.is_aad = 1; in rk_crypto_cipher()
854 crypto_flush_cacheline((ulong)hw_ctx->td_aad, sizeof(*hw_ctx->td_aad)); in rk_crypto_cipher()
860 ret = rkce_push_td_sync(priv->hardware, hw_ctx->td_aad, RKCE_SYMM_TIMEOUT_MS); in rk_crypto_cipher()