Home
last modified time | relevance | path

Searched refs:__wsum (Results 1 – 25 of 140) sorted by relevance

123456

/linux-6.6.21/include/net/
Dchecksum.h28 __wsum csum_and_copy_from_user (const void __user *src, void *dst, in csum_and_copy_from_user()
38 static __always_inline __wsum csum_and_copy_to_user in csum_and_copy_to_user()
41 __wsum sum = csum_partial(src, len, ~0U); in csum_and_copy_to_user()
50 static __always_inline __wsum
59 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add()
63 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add()
67 static __always_inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub()
86 static __always_inline __wsum csum_shift(__wsum sum, int offset) in csum_shift()
90 return (__force __wsum)ror32((__force u32)sum, 8); in csum_shift()
95 static __always_inline __wsum
[all …]
/linux-6.6.21/arch/powerpc/include/asm/
Dchecksum.h21 extern __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
24 extern __wsum csum_and_copy_from_user(const void __user *src, void *dst,
27 extern __wsum csum_and_copy_to_user(const void *src, void __user *dst,
39 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
57 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold()
58 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
70 return (__force __wsum) from64to32(s); in csum_tcpudp_nofold()
89 __u8 proto, __wsum sum) in csum_tcpudp_magic()
95 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add()
101 return (__force __wsum)((u32)res + (res >> 32)); in csum_add()
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dchecksum_64.h22 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
86 static inline __wsum
88 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
114 __wsum sum) in csum_tcpudp_magic()
129 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
132 extern __visible __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
134 extern __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len);
135 extern __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len);
136 extern __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len);
166 __u32 len, __u8 proto, __wsum sum);
[all …]
Dchecksum_32.h20 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
30 asmlinkage __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
39 static inline __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len) in csum_partial_copy_nocheck()
44 static inline __wsum csum_and_copy_from_user(const void __user *src, in csum_and_copy_from_user()
47 __wsum ret; in csum_and_copy_from_user()
99 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
109 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
111 __wsum sum) in csum_tcpudp_nofold()
129 __wsum sum) in csum_tcpudp_magic()
147 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
[all …]
/linux-6.6.21/arch/sparc/include/asm/
Dchecksum_64.h33 __wsum csum_partial(const void * buff, int len, __wsum sum);
41 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len);
42 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len);
43 __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len);
51 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
66 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
68 __wsum sum) in csum_tcpudp_nofold()
87 __wsum sum) in csum_tcpudp_magic()
96 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
133 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add()
Dchecksum_32.h33 __wsum csum_partial(const void *buff, int len, __wsum sum);
44 static inline __wsum
59 return (__force __wsum)ret; in csum_partial_copy_nocheck()
62 static inline __wsum
70 static inline __wsum
118 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
132 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
134 __wsum sum) in csum_tcpudp_nofold()
153 __wsum sum) in csum_tcpudp_magic()
162 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
[all …]
/linux-6.6.21/arch/arm/include/asm/
Dchecksum.h28 __wsum csum_partial(const void *buff, int len, __wsum sum);
38 __wsum
41 __wsum
47 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len) in csum_and_copy_from_user()
58 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
76 __wsum sum; in ip_fast_csum()
99 static inline __wsum
101 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
138 __u8 proto, __wsum sum) in csum_tcpudp_magic()
155 extern __wsum
[all …]
/linux-6.6.21/arch/sh/include/asm/
Dchecksum_32.h24 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
34 asmlinkage __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
45 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len) in csum_partial_copy_nocheck()
52 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len) in csum_and_copy_from_user()
63 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
88 __wsum sum; in ip_fast_csum()
115 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
117 __wsum sum) in csum_tcpudp_nofold()
143 __wsum sum) in csum_tcpudp_magic()
160 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
[all …]
/linux-6.6.21/arch/mips/include/asm/
Dchecksum.h35 __wsum csum_partial(const void *buff, int len, __wsum sum);
37 __wsum __csum_partial_copy_from_user(const void __user *src, void *dst, int len);
38 __wsum __csum_partial_copy_to_user(const void *src, void __user *dst, int len);
42 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len) in csum_and_copy_from_user()
55 __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len) in csum_and_copy_to_user()
68 __wsum __csum_partial_copy_nocheck(const void *src, void *dst, int len);
69 static inline __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len) in csum_partial_copy_nocheck()
77 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
82 csum = (__force __wsum)(sum < (__force u32)csum); in csum_fold()
129 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
[all …]
/linux-6.6.21/include/net/sctp/
Dchecksum.h31 static inline __wsum sctp_csum_update(const void *buff, int len, __wsum sum) in sctp_csum_update()
36 return (__force __wsum)crc32c((__force __u32)sum, buff, len); in sctp_csum_update()
39 static inline __wsum sctp_csum_combine(__wsum csum, __wsum csum2, in sctp_csum_combine()
42 return (__force __wsum)__crc32c_le_combine((__force __u32)csum, in sctp_csum_combine()
56 __wsum new; in sctp_compute_cksum()
59 new = ~__skb_checksum(skb, offset, skb->len - offset, ~(__wsum)0, in sctp_compute_cksum()
/linux-6.6.21/arch/alpha/include/asm/
Dchecksum.h18 __u32 len, __u8 proto, __wsum sum);
20 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
21 __u32 len, __u8 proto, __wsum sum);
35 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
46 __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len);
48 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len);
62 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
73 __u32 len, __u8 proto, __wsum sum);
/linux-6.6.21/arch/xtensa/include/asm/
Dchecksum.h30 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
40 asmlinkage __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
48 __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len) in csum_partial_copy_nocheck()
55 __wsum csum_and_copy_from_user(const void __user *src, void *dst, in csum_and_copy_from_user()
67 static __inline__ __sum16 csum_fold(__wsum sum) in csum_fold()
123 static __inline__ __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
125 __wsum sum) in csum_tcpudp_nofold()
158 __wsum sum) in csum_tcpudp_magic()
177 __wsum sum) in csum_ipv6_magic()
240 static __inline__ __wsum csum_and_copy_to_user(const void *src, in csum_and_copy_to_user()
/linux-6.6.21/arch/m68k/include/asm/
Dchecksum.h23 __wsum csum_partial(const void *buff, int len, __wsum sum);
35 extern __wsum csum_and_copy_from_user(const void __user *src,
39 extern __wsum csum_partial_copy_nocheck(const void *src,
67 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
81 static inline __wsum
83 unsigned short proto, __wsum sum) in csum_tcpudp_nofold()
103 unsigned short proto, __wsum sum) in csum_tcpudp_magic()
121 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
/linux-6.6.21/arch/s390/include/asm/
Dchecksum.h30 static inline __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial()
48 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
74 return csum_fold((__force __wsum)(csum >> 32)); in ip_fast_csum()
81 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold()
82 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
91 return (__force __wsum)(csum >> 32); in csum_tcpudp_nofold()
99 __u8 proto, __wsum sum) in csum_tcpudp_magic()
115 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic()
130 return csum_fold((__force __wsum)(sum >> 32)); in csum_ipv6_magic()
/linux-6.6.21/arch/ia64/include/asm/
Dchecksum.h21 __u32 len, __u8 proto, __wsum sum);
23 extern __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
24 __u32 len, __u8 proto, __wsum sum);
38 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
49 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
61 __u32 len, __u8 proto, __wsum csum);
/linux-6.6.21/arch/x86/lib/
Dcsum-wrappers_64.c23 __wsum
26 __wsum sum; in csum_and_copy_from_user()
47 __wsum
50 __wsum sum; in csum_and_copy_to_user()
69 __wsum
78 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic()
95 (__force __wsum)add32_with_carry(sum64 & 0xffffffff, sum64>>32)); in csum_ipv6_magic()
/linux-6.6.21/arch/ia64/lib/
Dchecksum.c39 __u8 proto, __wsum sum) in csum_tcpudp_magic()
48 __wsum
50 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
62 return (__force __wsum)result; in csum_tcpudp_nofold()
80 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial()
88 return (__force __wsum)result; in csum_partial()
/linux-6.6.21/arch/m68k/lib/
Dchecksum.c38 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial()
131 __wsum
140 __wsum sum = ~0U; in csum_and_copy_from_user()
273 __wsum
277 __wsum sum = 0; in csum_partial_copy_nocheck()
/linux-6.6.21/include/asm-generic/
Dchecksum.h17 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
31 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
45 extern __wsum
47 __u8 proto, __wsum sum);
53 __u8 proto, __wsum sum) in csum_tcpudp_magic()
/linux-6.6.21/arch/nios2/include/asm/
Dchecksum.h14 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
21 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
40 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
42 __wsum sum) in csum_tcpudp_nofold()
65 __wsum sum) in csum_tcpudp_magic()
/linux-6.6.21/arch/parisc/include/asm/
Dchecksum.h19 extern __wsum csum_partial(const void *, int, __wsum);
63 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
74 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
76 __wsum sum) in csum_tcpudp_nofold()
94 __wsum sum) in csum_tcpudp_magic()
113 __wsum sum) in csum_ipv6_magic()
/linux-6.6.21/arch/x86/um/asm/
Dchecksum.h21 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
31 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
54 static inline __wsum
56 __u8 proto, __wsum sum) in csum_tcpudp_nofold()
73 __wsum sum) in csum_tcpudp_magic()
/linux-6.6.21/arch/alpha/lib/
Dchecksum.c46 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_magic()
54 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
55 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold()
68 return (__force __wsum)result; in csum_tcpudp_nofold()
163 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial()
171 return (__force __wsum)result; in csum_partial()
/linux-6.6.21/lib/
Dchecksum.c125 __wsum csum_partial(const void *buff, int len, __wsum wsum) in csum_partial()
134 return (__force __wsum)result; in csum_partial()
158 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold()
159 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold()
170 return (__force __wsum)from64to32(s); in csum_tcpudp_nofold()
/linux-6.6.21/arch/powerpc/lib/
Dchecksum_wrappers.c14 __wsum csum_and_copy_from_user(const void __user *src, void *dst, in csum_and_copy_from_user()
17 __wsum csum; in csum_and_copy_from_user()
28 __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len) in csum_and_copy_to_user()
30 __wsum csum; in csum_and_copy_to_user()

123456