Lines Matching refs:aad_tmp
986 u8 *dma_in = NULL, *dma_out = NULL, *aad_tmp = NULL; in hw_cipher_crypt() local
1071 aad_tmp = align_malloc(aad_tmp_len, in hw_cipher_crypt()
1073 if (!aad_tmp) in hw_cipher_crypt()
1077 memset(aad_tmp + aad_tmp_len - AES_BLOCK_SIZE, in hw_cipher_crypt()
1081 get_iv_reg(key_chn, aad_tmp, AES_BLOCK_SIZE); in hw_cipher_crypt()
1082 ccm_compose_aad_iv(aad_tmp, tmp_len, aad_len, tag_len); in hw_cipher_crypt()
1083 memcpy(aad_tmp + AES_BLOCK_SIZE, padding, padding_size); in hw_cipher_crypt()
1085 memcpy(aad_tmp + AES_BLOCK_SIZE + padding_size, in hw_cipher_crypt()
1090 aad_tmp = (void *)aad; in hw_cipher_crypt()
1092 aad_tmp = align_malloc(aad_tmp_len, in hw_cipher_crypt()
1094 if (!aad_tmp) in hw_cipher_crypt()
1097 memcpy(aad_tmp, aad, aad_tmp_len); in hw_cipher_crypt()
1104 aad_desc->src_addr = (u32)virt_to_phys(aad_tmp); in hw_cipher_crypt()
1112 cache_op_inner(DCACHE_AREA_CLEAN, aad_tmp, aad_tmp_len); in hw_cipher_crypt()
1158 if (aad && aad != aad_tmp) in hw_cipher_crypt()
1159 align_free(aad_tmp); in hw_cipher_crypt()