Lines Matching refs:nfrags
46 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int extralen) in esp_alloc_tmp() argument
63 len += sizeof(struct scatterlist) * nfrags; in esp_alloc_tmp()
444 int nfrags; in esp_output_head() local
464 nfrags = 1; in esp_output_head()
493 nfrags = skb_shinfo(skb)->nr_frags; in esp_output_head()
495 __skb_fill_page_desc(skb, nfrags, page, pfrag->offset, in esp_output_head()
497 skb_shinfo(skb)->nr_frags = ++nfrags; in esp_output_head()
503 nfrags++; in esp_output_head()
516 nfrags = skb_cow_data(skb, tailen, &trailer); in esp_output_head()
517 if (nfrags < 0) in esp_output_head()
527 return nfrags; in esp_output_head()
559 tmp = esp_alloc_tmp(aead, esp->nfrags + 2, extralen); in esp_output_tail()
571 dsg = &sg[esp->nfrags]; in esp_output_tail()
576 sg_init_table(sg, esp->nfrags); in esp_output_tail()
687 esp.nfrags = esp_output_head(x, skb, &esp); in esp_output()
688 if (esp.nfrags < 0) in esp_output()
689 return esp.nfrags; in esp_output()
884 int nfrags; in esp_input() local
909 nfrags = 1; in esp_input()
913 nfrags = skb_shinfo(skb)->nr_frags; in esp_input()
914 nfrags++; in esp_input()
924 nfrags = err; in esp_input()
928 tmp = esp_alloc_tmp(aead, nfrags, seqhilen); in esp_input()
940 sg_init_table(sg, nfrags); in esp_input()