Lines Matching refs:data_desc
985 struct crypto_lli_desc *data_desc = NULL, *aad_desc = NULL; in hw_cipher_crypt() local
1001 data_desc = align_malloc(sizeof(*data_desc), LLI_ADDR_ALIGN_SIZE); in hw_cipher_crypt()
1002 if (!data_desc) in hw_cipher_crypt()
1023 memset(data_desc, 0x00, sizeof(*data_desc)); in hw_cipher_crypt()
1027 data_desc->src_addr = (u32)virt_to_phys(dma_in); in hw_cipher_crypt()
1028 data_desc->src_len = tmp_len; in hw_cipher_crypt()
1029 data_desc->dst_addr = (u32)virt_to_phys(dma_out); in hw_cipher_crypt()
1030 data_desc->dst_len = dst_len; in hw_cipher_crypt()
1031 data_desc->dma_ctrl = LLI_DMA_CTRL_LAST; in hw_cipher_crypt()
1035 data_desc->dma_ctrl |= LLI_DMA_CTRL_LIST_DONE; in hw_cipher_crypt()
1038 data_desc->dma_ctrl |= LLI_DMA_CTRL_DST_DONE; in hw_cipher_crypt()
1041 data_desc->user_define = LLI_USER_CIPHER_START | in hw_cipher_crypt()
1045 crypto_write((u32)virt_to_phys(data_desc), CRYPTO_DMA_LLI_ADDR); in hw_cipher_crypt()
1055 aad_desc->next_addr = (u32)virt_to_phys(data_desc); in hw_cipher_crypt()
1108 data_desc->user_define = LLI_USER_STRING_START | in hw_cipher_crypt()
1117 cache_op_inner(DCACHE_AREA_CLEAN, data_desc, sizeof(*data_desc)); in hw_cipher_crypt()
1146 dump_crypto_state(data_desc, tmp, expt_int, in, out, len, ret); in hw_cipher_crypt()
1152 align_free(data_desc); in hw_cipher_crypt()