Lines Matching refs:new_sg
18 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sg_lists() argument
24 new_sg = kmalloc_array(n, sizeof(*sg), GFP_KERNEL); in omap_crypto_copy_sg_lists()
25 if (!new_sg) in omap_crypto_copy_sg_lists()
28 sg_init_table(new_sg, n); in omap_crypto_copy_sg_lists()
31 tmp = new_sg; in omap_crypto_copy_sg_lists()
50 *sg = new_sg; in omap_crypto_copy_sg_lists()
56 struct scatterlist *new_sg, u16 flags) in omap_crypto_copy_sgs() argument
79 sg_init_table(new_sg, 1); in omap_crypto_copy_sgs()
81 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
83 *sg = new_sg; in omap_crypto_copy_sgs()
126 struct scatterlist *new_sg, u16 flags, in omap_crypto_align_sg() argument
139 ret = omap_crypto_copy_sgs(total, bs, sg, new_sg, flags); in omap_crypto_align_sg()
144 ret = omap_crypto_copy_sg_lists(total, bs, sg, new_sg, flags); in omap_crypto_align_sg()
150 sg_set_buf(new_sg, sg_virt(*sg), (*sg)->length); in omap_crypto_align_sg()