Lines Matching defs:src
185 sg_pcopy_to_buffer(req->src, sg_nents(req->src), temp,
608 static int chcr_hash_ent_in_wr(struct scatterlist *src,
617 if (sg_dma_len(src) == srcskip) {
618 src = sg_next(src);
621 while (src && space > (sgl_ent_len[srcsg + 1])) {
622 sless = min_t(unsigned int, sg_dma_len(src) - soffset - srcskip,
627 if (sg_dma_len(src) == (soffset + srcskip)) {
628 src = sg_next(src);
636 static int chcr_sg_ent_in_wr(struct scatterlist *src,
647 if (sg_dma_len(src) == srcskip) {
648 src = sg_next(src);
656 while (src && dst &&
658 sless = min_t(unsigned int, sg_dma_len(src) - srcskip - soffset,
679 if ((soffset + srcskip) == sg_dma_len(src)) {
680 src = sg_next(src);
700 skcipher_request_set_crypt(&reqctx->fallback_req, req->src, req->dst,
889 sg_pcopy_to_buffer(wrparam->req->src,
890 sg_nents(wrparam->req->src), wrparam->req->iv, 16,
1299 bytes = chcr_sg_ent_in_wr(req->src, req->dst, 0,
1339 reqctx->srcsg = req->src;
1681 sg_pcopy_to_buffer(req->src, sg_nents(req->src), req_ctx->reqbfr
1707 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen,
1718 req_ctx->hctx_wr.srcsg = req->src;
1732 sg_pcopy_to_buffer(req->src, sg_nents(req->src),
1799 req_ctx->hctx_wr.srcsg = req->src;
1873 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen,
1897 req_ctx->hctx_wr.srcsg = req->src;
1969 params.sg_len = chcr_hash_ent_in_wr(req->src, !!req_ctx->reqlen,
1991 req_ctx->hctx_wr.srcsg = req->src;
2426 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen,
2475 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen,
2585 /* calculate and handle src and dst sg length separately
2588 if (req->src == req->dst) {
2608 if (req->src == req->dst) {
2609 error = dma_map_sg(dev, req->src,
2610 sg_nents_for_len(req->src, src_len),
2615 error = dma_map_sg(dev, req->src,
2616 sg_nents_for_len(req->src, src_len),
2624 dma_unmap_sg(dev, req->src,
2625 sg_nents_for_len(req->src, src_len),
2646 /* calculate and handle src and dst sg length separately
2649 if (req->src == req->dst) {
2664 if (req->src == req->dst) {
2665 dma_unmap_sg(dev, req->src,
2666 sg_nents_for_len(req->src, src_len),
2669 dma_unmap_sg(dev, req->src,
2670 sg_nents_for_len(req->src, src_len),
2691 sg_pcopy_to_buffer(req->src, sg_nents(req->src),
2698 ulptx_walk_add_sg(&ulp_walk, req->src, req->cryptlen +
2737 sg_pcopy_to_buffer(req->src, sg_nents(req->src),
2809 error = dma_map_sg(dev, req->src, sg_nents(req->src),
2825 dma_unmap_sg(dev, req->src, sg_nents(req->src),
2836 if (req->src == req->dst) {
2837 error = dma_map_sg(dev, req->src, sg_nents(req->src),
2842 error = dma_map_sg(dev, req->src, sg_nents(req->src),
2849 dma_unmap_sg(dev, req->src, sg_nents(req->src),
2863 if (req->src == req->dst) {
2864 dma_unmap_sg(dev, req->src, sg_nents(req->src),
2867 dma_unmap_sg(dev, req->src, sg_nents(req->src),
3071 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen,
3165 snents = sg_nents_xlen(req->src, req->assoclen + req->cryptlen,