Lines Matching refs:plen
175 int plen = min_t(int, used, sg[i].length); in skcipher_pull_sgl() local
180 sg[i].length -= plen; in skcipher_pull_sgl()
181 sg[i].offset += plen; in skcipher_pull_sgl()
183 used -= plen; in skcipher_pull_sgl()
184 ctx->used -= plen; in skcipher_pull_sgl()
356 int plen; in skcipher_sendmsg() local
399 plen = min_t(int, len, PAGE_SIZE); in skcipher_sendmsg()
407 msg, plen); in skcipher_sendmsg()
414 sg[i].length = plen; in skcipher_sendmsg()
415 len -= plen; in skcipher_sendmsg()
416 ctx->used += plen; in skcipher_sendmsg()
417 copied += plen; in skcipher_sendmsg()
418 size -= plen; in skcipher_sendmsg()
425 ctx->merge = plen & (PAGE_SIZE - 1); in skcipher_sendmsg()