/linux-6.6.21/arch/arc/include/asm/ |
D | checksum.h | 25 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/ |
D | checksum.h | 15 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/ |
D | checksum.h | 21 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/ |
D | checksum.h | 58 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/ |
D | checksum_32.h | 63 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/ |
D | checksum.h | 67 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/ |
D | checksum.h | 77 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/ |
D | checksum.h | 48 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/ |
D | checksum.h | 63 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/ |
D | checksum.h | 67 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/ |
D | checksum_64.h | 51 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()
|
D | checksum_32.h | 118 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/ |
D | checksum.h | 9 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/ |
D | checksum_32.h | 99 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()
|
D | checksum_64.h | 22 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/ |
D | checksum.h | 27 #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/ |
D | checksum.h | 128 *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/ |
D | checksum_32.h | 10 return csum_fold (csum_partial(buff, len, 0)); in ip_compute_csum() 35 return csum_fold(sum); in csum_ipv6_magic()
|
D | checksum.h | 31 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/ |
D | checksum.h | 39 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/ |
D | checksum.h | 21 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/ |
D | utils.c | 435 *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/ |
D | ila_common.c | 53 *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/ |
D | ip_vs_proto_udp.c | 101 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/ |
D | ip6t_NPT.c | 35 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()
|