Lines Matching refs:dlen
42 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_decompress() local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
52 if (dlen < (plen + sizeof(struct ip_comp_hdr))) in ipcomp_decompress()
55 len = dlen - plen; in ipcomp_decompress()
64 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
80 if (dlen < len) in ipcomp_decompress()
81 len = dlen; in ipcomp_decompress()
129 int dlen = IPCOMP_SCRATCH_SIZE; in ipcomp_compress() local
138 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
142 if ((dlen + sizeof(struct ip_comp_hdr)) >= plen) { in ipcomp_compress()
147 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
150 pskb_trim(skb, dlen + sizeof(struct ip_comp_hdr)); in ipcomp_compress()