Lines Matching defs:len
52 unsigned int len;
54 len = size + crypto_ahash_digestsize(ahash) +
58 len = ALIGN(len, crypto_tfm_ctx_alignment());
60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash);
61 len = ALIGN(len, __alignof__(struct scatterlist));
63 len += sizeof(struct scatterlist) * nfrags;
65 return kmalloc(len, GFP_ATOMIC);
108 int len = ipv6_optlen(opthdr);
113 len -= 2;
115 while (len > 0) {
123 if (len < 2)
126 if (len < optlen)
134 len -= optlen;
136 if (len == 0)
152 int len = ipv6_optlen(destopt);
157 len -= 2;
159 while (len > 0) {
167 if (len < 2)
170 if (len < optlen)
195 len -= optlen;
197 /* Note: ok if len == 0 */
244 static int ipv6_clear_mutable_options(struct ipv6hdr *iph, int len, int dir)
252 char *end = exthdr.raw + len;
377 top_iph->payload_len = htons(skb->len - sizeof(*top_iph));
416 err = skb_to_sgvec_nomark(skb, sg, 0, skb->len);
425 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len);
602 err = skb_to_sgvec_nomark(skb, sg, 0, skb->len);
612 ahash_request_set_crypt(req, sg, icv, skb->len + seqhi_len);