Home
last modified time | relevance | path

Searched refs:csum (Results 1 – 15 of 15) sorted by relevance

/include/net/
Dchecksum.h60 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
62 u32 res = (__force u32)csum; in csum_add()
67 static inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub() argument
69 return csum_add(csum, ~addend); in csum_sub()
73 csum_block_add(__wsum csum, __wsum csum2, int offset) in csum_block_add() argument
78 return csum_add(csum, (__force __wsum)sum); in csum_block_add()
82 csum_block_sub(__wsum csum, __wsum csum2, int offset) in csum_block_sub() argument
87 return csum_sub(csum, (__force __wsum)sum); in csum_block_sub()
Dudp.h140 __wsum csum = csum_partial(skb_transport_header(skb), in udp_csum_outgoing() local
143 csum = csum_add(csum, skb->csum); in udp_csum_outgoing()
145 return csum; in udp_csum_outgoing()
150 __wsum csum = csum_partial(skb_transport_header(skb), in udp_csum() local
151 sizeof(struct udphdr), skb->csum); in udp_csum()
154 csum = csum_add(csum, skb->csum); in udp_csum()
156 return csum; in udp_csum()
Dudplite.h74 __wsum csum = 0; in udplite_csum_outgoing() local
104 csum = skb_checksum(skb, off, (cscov > len)? len : cscov, csum); in udplite_csum_outgoing()
109 return csum; in udplite_csum_outgoing()
Dip6_checksum.h40 __wsum csum) in csum_ipv6_magic() argument
46 __u32 sum = (__force u32)csum; in csum_ipv6_magic()
Dsock.h1714 __wsum csum = csum_and_copy_from_user(from, to, copy, 0, &err); in skb_do_copy_data_nocache() local
1717 skb->csum = csum_block_add(skb->csum, csum, offset); in skb_do_copy_data_nocache()
1767 __wsum csum = csum_and_copy_from_user(from, in skb_copy_to_page() local
1772 skb->csum = csum_block_add(skb->csum, csum, skb->len); in skb_copy_to_page()
Dip.h165 __wsum csum; member
/include/asm-generic/
Dchecksum.h50 static inline __sum16 csum_fold(__wsum csum) in csum_fold() argument
52 u32 sum = (__force u32)csum; in csum_fold()
/include/linux/netfilter/
Dnf_conntrack_proto_gre.h35 csum:1, member
40 __u16 csum:1,
/include/linux/
Dpim.h21 __be16 csum; member
Dnetfilter.h310 __sum16 csum = 0; in nf_checksum() local
315 csum = afinfo->checksum(skb, hook, dataoff, protocol); in nf_checksum()
317 return csum; in nf_checksum()
326 __sum16 csum = 0; in nf_checksum_partial() local
331 csum = afinfo->checksum_partial(skb, hook, dataoff, len, in nf_checksum_partial()
334 return csum; in nf_checksum_partial()
Digmp.h33 __sum16 csum; member
56 __be16 csum; member
65 __be16 csum; member
Dsfi.h96 u8 csum; member
Dskbuff.h415 __wsum csum; member
1951 __wsum csum = csum_and_copy_from_user(from, skb_put(skb, copy), in skb_add_data() local
1954 skb->csum = csum_block_add(skb->csum, csum, off); in skb_add_data()
2021 skb->csum = csum_sub(skb->csum, csum_partial(start, len, 0)); in skb_postpull_rcsum()
2125 int len, __wsum csum);
2132 __wsum csum);
/include/video/
Dmetronomefb.h19 u16 csum; member
/include/linux/sunrpc/
Dxdr.h168 __wsum csum; member