Lines Matching refs:new_sg
21 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sg_lists() argument
27 new_sg = kmalloc_array(n, sizeof(*sg), GFP_KERNEL); in omap_crypto_copy_sg_lists()
28 if (!new_sg) in omap_crypto_copy_sg_lists()
31 sg_init_table(new_sg, n); in omap_crypto_copy_sg_lists()
34 tmp = new_sg; in omap_crypto_copy_sg_lists()
53 *sg = new_sg; in omap_crypto_copy_sg_lists()
59 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sgs() argument
82 sg_init_table(new_sg, 1); in omap_crypto_copy_sgs()
84 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
86 *sg = new_sg; in omap_crypto_copy_sgs()
129 struct scatterlist *new_sg, u16 flags, in omap_crypto_align_sg() argument
142 ret = omap_crypto_copy_sgs(total, bs, sg, new_sg, flags); in omap_crypto_align_sg()
147 ret = omap_crypto_copy_sg_lists(total, bs, sg, new_sg, flags); in omap_crypto_align_sg()
153 sg_set_buf(new_sg, sg_virt(*sg), (*sg)->length); in omap_crypto_align_sg()