Lines Matching refs:tcfg

91 	struct cryptocop_tfrm_cfg *tcfg;  member
452 if ((tc->tctx->init.alg == cryptocop_alg_aes) && (tc->tcfg->flags & CRYPTOCOP_DECRYPT)) { in setup_key_dl_desc()
509 iv_desc->dma_descr->buf = (char*)virt_to_phys(tc->tcfg->iv); in setup_cipher_iv_desc()
544 …if (((tc->produced + tc->tcfg->inject_ix) > operation->tfrm_op.outlen) || (tc->produced && (operat… in create_input_descriptors()
549 …op.outcount) && ((out_ix + operation->tfrm_op.outdata[outiov_ix].iov_len) <= tc->tcfg->inject_ix)){ in create_input_descriptors()
557 iov_offset = tc->tcfg->inject_ix - out_ix; in create_input_descriptors()
654 if (tc->tcfg) { in append_input_descriptors()
731 .tcfg = NULL}; in cryptocop_setup_dma_list()
750 .tcfg = NULL}; in cryptocop_setup_dma_list()
768 .tcfg = NULL, in cryptocop_setup_dma_list()
772 struct cryptocop_tfrm_cfg *tcfg = operation->tfrm_op.tfrm_cfg; in cryptocop_setup_dma_list() local
826 if (!tcfg) { in cryptocop_setup_dma_list()
831 while (tcfg) { in cryptocop_setup_dma_list()
832 tctx = get_transform_ctx(sess, tcfg->tid); in cryptocop_setup_dma_list()
834 DEBUG_API(printk("cryptocop_setup_dma_list: no transform id %d in session.\n", tcfg->tid)); in cryptocop_setup_dma_list()
838 if (tcfg->inject_ix > operation->tfrm_op.outlen){ in cryptocop_setup_dma_list()
839 …st: transform id %d inject_ix (%d) > operation->tfrm_op.outlen(%d)", tcfg->tid, tcfg->inject_ix, o… in cryptocop_setup_dma_list()
845 if (cipher_ctx.tcfg != NULL){ in cryptocop_setup_dma_list()
856 cipher_ctx.tcfg = tcfg; in cryptocop_setup_dma_list()
863 if (cipher_ctx.tcfg != NULL){ in cryptocop_setup_dma_list()
868 cipher_ctx.tcfg = tcfg; in cryptocop_setup_dma_list()
870 if (cipher_ctx.tcfg->flags & CRYPTOCOP_DECRYPT){ in cryptocop_setup_dma_list()
910 if (digest_ctx.tcfg != NULL){ in cryptocop_setup_dma_list()
915 digest_ctx.tcfg = tcfg; in cryptocop_setup_dma_list()
935 if (csum_ctx.tcfg != NULL){ in cryptocop_setup_dma_list()
941 csum_ctx.tcfg = tcfg; in cryptocop_setup_dma_list()
946 …yptocop_setup_dma_list: invalid algorithm %d specified in tfrm %d.\n", tctx->init.alg, tcfg->tid)); in cryptocop_setup_dma_list()
950 tcfg = tcfg->next; in cryptocop_setup_dma_list()
953 if (cipher_ctx.tcfg && (cipher_ctx.tctx->init.alg != cryptocop_alg_mem2mem)){ in cryptocop_setup_dma_list()
966 …if ((cipher_ctx.tctx->init.cipher_mode == cryptocop_cipher_mode_cbc) && (cipher_ctx.tcfg->flags & … in cryptocop_setup_dma_list()
999 if (digest_ctx.tcfg && (digest_ctx.tcfg->tid == dcfg->tid)){ in cryptocop_setup_dma_list()
1001 } else if (cipher_ctx.tcfg && (cipher_ctx.tcfg->tid == dcfg->tid)){ in cryptocop_setup_dma_list()
1003 } else if (csum_ctx.tcfg && (csum_ctx.tcfg->tid == dcfg->tid)){ in cryptocop_setup_dma_list()
1140 …if (cipher_ctx.cbcmode && !(cipher_ctx.tcfg->flags & CRYPTOCOP_EXPLICIT_IV) && cipher_ctx.produced… in cryptocop_setup_dma_list()
1260 if (cipher_ctx.tcfg && (cipher_ctx.active || !cipher_ctx.done)){ in cryptocop_setup_dma_list()
1265 if (digest_ctx.tcfg && (digest_ctx.active || !digest_ctx.done)){ in cryptocop_setup_dma_list()
1270 if (csum_ctx.tcfg && (csum_ctx.active || !csum_ctx.done)){ in cryptocop_setup_dma_list()