Lines Matching refs:total
16 static int omap_crypto_copy_sg_lists(int total, int bs,
33 while (*sg && total) {
36 if (total < len)
37 len = total;
40 total -= len;
42 if (total <= 0)
55 static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg,
62 new_len = ALIGN(total, bs);
73 scatterwalk_map_and_copy(buf, *sg, 0, total, 0);
75 memset(buf + total, 0, new_len - total);
88 static int omap_crypto_check_sg(struct scatterlist *sg, int total, int bs,
94 if (!IS_ALIGNED(total, bs))
112 if (len >= total)
119 if (len != total)
125 int omap_crypto_align_sg(struct scatterlist **sg, int total, int bs,
136 ret = omap_crypto_check_sg(*sg, total, bs, flags);
139 ret = omap_crypto_copy_sgs(total, bs, sg, new_sg, flags);
144 ret = omap_crypto_copy_sg_lists(total, bs, sg, new_sg, flags);