Lines Matching defs:common

301 	struct artpec6_crypto_req_common common;
322 struct artpec6_crypto_req_common common;
343 struct artpec6_crypto_req_common common;
376 artpec6_crypto_common_destroy(struct artpec6_crypto_req_common *common);
379 artpec6_crypto_start_dma(struct artpec6_crypto_req_common *common);
429 artpec6_crypto_copy_bounce_buffers(struct artpec6_crypto_req_common *common)
431 struct artpec6_crypto_dma_descriptors *dma = common->dma;
479 static void artpec6_crypto_start_dma(struct artpec6_crypto_req_common *common)
484 struct artpec6_crypto_dma_descriptors *dma = common->dma;
516 artpec6_crypto_init_dma_operation(struct artpec6_crypto_req_common *common)
518 struct artpec6_crypto_dma_descriptors *dma = common->dma;
545 artpec6_crypto_setup_out_descr_phys(struct artpec6_crypto_req_common *common,
548 struct artpec6_crypto_dma_descriptors *dma = common->dma;
578 artpec6_crypto_setup_out_descr_short(struct artpec6_crypto_req_common *common,
581 struct artpec6_crypto_dma_descriptors *dma = common->dma;
601 static int artpec6_crypto_dma_map_page(struct artpec6_crypto_req_common *common,
607 struct artpec6_crypto_dma_descriptors *dma = common->dma;
632 artpec6_crypto_dma_map_single(struct artpec6_crypto_req_common *common,
640 return artpec6_crypto_dma_map_page(common, page, offset, size, dir,
645 artpec6_crypto_dma_map_descs(struct artpec6_crypto_req_common *common)
647 struct artpec6_crypto_dma_descriptors *dma = common->dma;
650 ret = artpec6_crypto_dma_map_single(common, dma->in,
656 ret = artpec6_crypto_dma_map_single(common, dma->out,
669 return artpec6_crypto_dma_map_single(common,
677 artpec6_crypto_dma_unmap_all(struct artpec6_crypto_req_common *common)
679 struct artpec6_crypto_dma_descriptors *dma = common->dma;
705 artpec6_crypto_setup_out_descr(struct artpec6_crypto_req_common *common,
710 return artpec6_crypto_setup_out_descr_short(common, dst, len,
716 ret = artpec6_crypto_dma_map_single(common, dst, len,
722 return artpec6_crypto_setup_out_descr_phys(common, dma_addr,
737 artpec6_crypto_setup_in_descr_phys(struct artpec6_crypto_req_common *common,
740 struct artpec6_crypto_dma_descriptors *dma = common->dma;
767 artpec6_crypto_setup_in_descr(struct artpec6_crypto_req_common *common,
773 ret = artpec6_crypto_dma_map_single(common, buffer, len,
778 return artpec6_crypto_setup_in_descr_phys(common, dma_addr, len, last);
797 static int setup_bounce_buffer_in(struct artpec6_crypto_req_common *common,
803 bbuf = artpec6_crypto_alloc_bounce(common->gfp_flags);
811 ret = artpec6_crypto_setup_in_descr(common, bbuf->buf, size, false);
818 list_add_tail(&bbuf->list, &common->dma->bounce_buffers);
823 artpec6_crypto_setup_sg_descrs_in(struct artpec6_crypto_req_common *common,
846 ret = setup_bounce_buffer_in(common, walk, chunk);
849 ret = setup_bounce_buffer_in(common, walk, chunk);
857 ret = artpec6_crypto_dma_map_page(common,
867 ret = artpec6_crypto_setup_in_descr_phys(common,
886 artpec6_crypto_setup_sg_descrs_out(struct artpec6_crypto_req_common *common,
908 ret = artpec6_crypto_setup_out_descr_short(common, buf,
914 ret = artpec6_crypto_dma_map_page(common,
924 ret = artpec6_crypto_setup_out_descr_phys(common,
952 artpec6_crypto_terminate_out_descrs(struct artpec6_crypto_req_common *common)
954 struct artpec6_crypto_dma_descriptors *dma = common->dma;
976 artpec6_crypto_terminate_in_descrs(struct artpec6_crypto_req_common *common)
978 struct artpec6_crypto_dma_descriptors *dma = common->dma;
1039 static int artpec6_crypto_common_init(struct artpec6_crypto_req_common *common,
1050 common->gfp_flags = flags;
1051 common->dma = kmem_cache_alloc(ac->dma_cache, flags);
1052 if (!common->dma)
1055 common->req = parent;
1056 common->complete = complete;
1072 artpec6_crypto_common_destroy(struct artpec6_crypto_req_common *common)
1076 artpec6_crypto_dma_unmap_all(common);
1077 artpec6_crypto_bounce_destroy(common->dma);
1078 kmem_cache_free(ac->dma_cache, common->dma);
1079 common->dma = NULL;
1115 ret = artpec6_crypto_common_init(&req_ctx->common,
1124 artpec6_crypto_common_destroy(&req_ctx->common);
1128 return artpec6_crypto_submit(&req_ctx->common);
1161 ret = artpec6_crypto_common_init(&req_ctx->common, &req->base,
1169 artpec6_crypto_common_destroy(&req_ctx->common);
1173 return artpec6_crypto_submit(&req_ctx->common);
1268 ret = artpec6_crypto_common_init(&req_ctx->common, &req->base,
1276 artpec6_crypto_common_destroy(&req_ctx->common);
1280 return artpec6_crypto_submit(&req_ctx->common);
1292 ret = artpec6_crypto_common_init(&req_ctx->common,
1301 artpec6_crypto_common_destroy(&req_ctx->common);
1305 return artpec6_crypto_submit(&req_ctx->common);
1316 struct artpec6_crypto_req_common *common = &req_ctx->common;
1324 artpec6_crypto_init_dma_operation(common);
1342 error = artpec6_crypto_setup_out_descr(common,
1348 error = artpec6_crypto_setup_out_descr(common,
1380 error = artpec6_crypto_setup_out_descr(common,
1386 error = artpec6_crypto_setup_in_descr(common, ac->pad_buffer, 4, false);
1391 error = artpec6_crypto_setup_out_descr(common,
1415 error = artpec6_crypto_setup_out_descr(common,
1429 error = artpec6_crypto_setup_sg_descrs_out(common, &walk,
1467 error = artpec6_crypto_setup_out_descr(common,
1486 error = artpec6_crypto_setup_out_descr(common,
1496 error = artpec6_crypto_setup_in_descr(common, areq->result,
1507 error = artpec6_crypto_setup_in_descr(common,
1518 error = artpec6_crypto_terminate_in_descrs(common);
1522 error = artpec6_crypto_terminate_out_descrs(common);
1526 error = artpec6_crypto_dma_map_descs(common);
1670 struct artpec6_crypto_req_common *common;
1677 common = &req_ctx->common;
1679 artpec6_crypto_init_dma_operation(common);
1686 ret = artpec6_crypto_setup_out_descr(common, (void *)&ctx->key_md,
1691 ret = artpec6_crypto_setup_out_descr(common, ctx->aes_key,
1766 ret = artpec6_crypto_setup_out_descr(common,
1773 ret = artpec6_crypto_setup_in_descr(common, ac->pad_buffer, 4, false);
1778 ret = artpec6_crypto_setup_out_descr(common, areq->iv, iv_len,
1785 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, areq->cryptlen);
1791 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, areq->cryptlen);
1802 ret = artpec6_crypto_setup_out_descr(common,
1808 ret = artpec6_crypto_setup_in_descr(common,
1816 ret = artpec6_crypto_terminate_out_descrs(common);
1820 ret = artpec6_crypto_terminate_in_descrs(common);
1824 return artpec6_crypto_dma_map_descs(common);
1835 struct artpec6_crypto_req_common *common = &req_ctx->common;
1840 artpec6_crypto_init_dma_operation(common);
1850 ret = artpec6_crypto_setup_out_descr(common, (void *)&ctx->key_md,
1855 ret = artpec6_crypto_setup_out_descr(common, ctx->aes_key,
1892 ret = artpec6_crypto_setup_out_descr(common,
1899 ret = artpec6_crypto_setup_in_descr(common, ac->pad_buffer, 4, false);
1919 ret = artpec6_crypto_setup_out_descr(common, &req_ctx->hw_ctx,
1931 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, count);
1938 ret = artpec6_crypto_setup_out_descr(common,
1948 ret = artpec6_crypto_setup_sg_descrs_out(common, &walk, count);
1955 ret = artpec6_crypto_setup_out_descr(common,
1981 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk, count);
1989 ret = artpec6_crypto_setup_in_descr(common,
2002 ret = artpec6_crypto_setup_in_descr(common,
2013 ret = artpec6_crypto_setup_sg_descrs_in(common, &walk,
2020 ret = artpec6_crypto_setup_in_descr(common,
2030 ret = artpec6_crypto_terminate_in_descrs(common);
2034 ret = artpec6_crypto_terminate_out_descrs(common);
2038 return artpec6_crypto_dma_map_descs(common);
2296 if (!req_ctx->common.dma) {
2297 ret = artpec6_crypto_common_init(&req_ctx->common,
2309 ret = artpec6_crypto_submit(&req_ctx->common);
2317 artpec6_crypto_common_destroy(&req_ctx->common);