Home
last modified time | relevance | path

Searched refs:csum_fold (Results 1 – 25 of 76) sorted by relevance

1234

/linux-6.6.21/arch/arc/include/asm/
Dchecksum.h25 static inline __sum16 csum_fold(__wsum s) in csum_fold() function
62 return csum_fold(sum); in ip_fast_csum()
92 #define csum_fold csum_fold macro
/linux-6.6.21/arch/arm64/include/asm/
Dchecksum.h15 static inline __sum16 csum_fold(__wsum csum) in csum_fold() function
21 #define csum_fold csum_fold macro
40 return csum_fold((__force __wsum)(sum >> 32)); in ip_fast_csum()
/linux-6.6.21/arch/loongarch/include/asm/
Dchecksum.h21 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
33 #define csum_fold csum_fold macro
57 return csum_fold((__force __wsum)(sum >> 32)); in ip_fast_csum()
/linux-6.6.21/arch/arm/include/asm/
Dchecksum.h58 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
96 return csum_fold(sum); in ip_fast_csum()
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
151 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
163 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
/linux-6.6.21/arch/sh/include/asm/
Dchecksum_32.h63 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
112 return csum_fold(sum); in ip_fast_csum()
145 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
154 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
189 return csum_fold(sum); in csum_ipv6_magic()
/linux-6.6.21/arch/xtensa/include/asm/
Dchecksum.h67 static __inline__ __sum16 csum_fold(__wsum sum) in csum_fold() function
120 return csum_fold(sum); in ip_fast_csum()
160 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
170 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
233 return csum_fold(sum); in csum_ipv6_magic()
/linux-6.6.21/arch/mips/include/asm/
Dchecksum.h77 static inline __sum16 csum_fold(__wsum csum) in csum_fold() function
88 #define csum_fold csum_fold macro
125 return csum_fold(csum); in ip_fast_csum()
179 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
247 return csum_fold(sum); in csum_ipv6_magic()
/linux-6.6.21/arch/s390/include/asm/
Dchecksum.h48 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
74 return csum_fold((__force __wsum)(csum >> 32)); in ip_fast_csum()
101 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
109 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
130 return csum_fold((__force __wsum)(sum >> 32)); in csum_ipv6_magic()
/linux-6.6.21/arch/parisc/include/asm/
Dchecksum.h63 static inline __sum16 csum_fold(__wsum csum) in csum_fold() function
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
105 return csum_fold (csum_partial(buf, len, 0)); in ip_compute_csum()
173 return csum_fold(sum); in csum_ipv6_magic()
/linux-6.6.21/arch/m68k/include/asm/
Dchecksum.h67 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
115 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
146 return csum_fold(sum); in csum_ipv6_magic()
/linux-6.6.21/arch/sparc/include/asm/
Dchecksum_64.h51 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
89 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
123 return csum_fold(sum); in csum_ipv6_magic()
129 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
Dchecksum_32.h118 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
155 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
189 return csum_fold(sum); in csum_ipv6_magic()
195 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
/linux-6.6.21/arch/csky/include/asm/
Dchecksum.h9 static inline __sum16 csum_fold(__wsum csum) in csum_fold() function
23 #define csum_fold csum_fold macro
/linux-6.6.21/arch/x86/include/asm/
Dchecksum_32.h99 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
131 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
141 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
165 return csum_fold(sum); in csum_ipv6_magic()
Dchecksum_64.h22 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
116 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-6.6.21/include/asm-generic/
Dchecksum.h27 #ifndef csum_fold
31 static inline __sum16 csum_fold(__wsum csum) in csum_fold() function
55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-6.6.21/include/net/
Dchecksum.h128 *sum = csum_fold(csum_add(diff, ~csum_unfold(*sum))); in csum_replace_by_diff()
135 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
181 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
183 *psum = csum_fold(csum); in remcsum_adjust()
190 *psum = csum_fold(csum_sub(delta, (__force __wsum)*psum)); in remcsum_unadjust()
/linux-6.6.21/arch/x86/um/asm/
Dchecksum_32.h10 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum()
35 return csum_fold(sum); in csum_ipv6_magic()
Dchecksum.h31 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
75 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/linux-6.6.21/arch/powerpc/include/asm/
Dchecksum.h39 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
91 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
156 return csum_fold(ip_fast_csum_nofold(iph, ihl)); in ip_fast_csum()
212 return csum_fold(csum_partial(buff, len, 0)); in ip_compute_csum()
/linux-6.6.21/arch/nios2/include/asm/
Dchecksum.h21 static inline __sum16 csum_fold(__wsum sum) in csum_fold() function
67 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-6.6.21/net/core/
Dutils.c435 *sum = ~csum_fold(csum_add(csum_sub(csum_unfold(*sum), in inet_proto_csum_replace4()
467 *sum = csum_fold(csum_partial(diff, sizeof(diff), in inet_proto_csum_replace16()
470 *sum = ~csum_fold(csum_partial(diff, sizeof(diff), in inet_proto_csum_replace16()
483 *sum = ~csum_fold(csum_add(diff, csum_unfold(*sum))); in inet_proto_csum_replace_by_diff()
/linux-6.6.21/net/ipv6/ila/
Dila_common.c53 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_fmt()
71 *adjust = ~csum_fold(csum_add(diff, csum_unfold(*adjust))); in ila_csum_do_neutral_nofmt()
/linux-6.6.21/net/netfilter/ipvs/
Dip_vs_proto_udp.c101 csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_fast_csum_update()
107 csum_fold(ip_vs_check_diff4(oldip->ip, newip->ip, in udp_fast_csum_update()
123 ~csum_fold(ip_vs_check_diff16(oldip->ip6, newip->ip6, in udp_partial_csum_update()
129 ~csum_fold(ip_vs_check_diff4(oldip->ip, newip->ip, in udp_partial_csum_update()
/linux-6.6.21/net/ipv6/netfilter/
Dip6t_NPT.c35 npt->adjustment = ~csum_fold(csum_sub(src_sum, dst_sum)); in ip6t_npt_checkentry()
71 sum = ~csum_fold(csum_add(csum_unfold((__force __sum16)addr->s6_addr16[idx]), in ip6t_npt_map_pfx()

1234