Lines Matching refs:sg
551 struct scatterlist *sg; in crypto4xx_copy_pkt_to_dst() local
558 sg = &dst[i]; in crypto4xx_copy_pkt_to_dst()
559 sg_len = sg->length; in crypto4xx_copy_pkt_to_dst()
560 addr = dma_map_page(dev->core_dev->device, sg_page(sg), in crypto4xx_copy_pkt_to_dst()
561 sg->offset, sg->length, DMA_TO_DEVICE); in crypto4xx_copy_pkt_to_dst()
564 len = (nbytes <= sg->length) ? nbytes : sg->length; in crypto4xx_copy_pkt_to_dst()
574 len = (sg->length < len) ? sg->length : len; in crypto4xx_copy_pkt_to_dst()
749 struct scatterlist *sg = sg_list; in get_sg_count() local
754 if (sg->length > nbytes) in get_sg_count()
756 nbytes -= sg->length; in get_sg_count()
757 sg = sg_next(sg); in get_sg_count()
789 struct scatterlist *sg; in crypto4xx_build_pd() local
898 sg = &src[idx]; in crypto4xx_build_pd()
899 addr = dma_map_page(dev->core_dev->device, sg_page(sg), in crypto4xx_build_pd()
900 sg->offset, sg->length, DMA_TO_DEVICE); in crypto4xx_build_pd()
902 gd->ctl_len.len = sg->length; in crypto4xx_build_pd()
905 if (sg->length >= nbytes) in crypto4xx_build_pd()
907 nbytes -= sg->length; in crypto4xx_build_pd()