/linux-6.12.1/include/net/ |
D | checksum.h | 72 static __always_inline __sum16 csum16_add(__sum16 csum, __be16 addend) in csum16_add() 77 return (__force __sum16)(res + (res < (__force u16)addend)); in csum16_add() 80 static __always_inline __sum16 csum16_sub(__sum16 csum, __be16 addend) in csum16_sub() 113 static __always_inline __wsum csum_unfold(__sum16 n) in csum_unfold() 124 #define CSUM_MANGLED_0 ((__force __sum16)0xffff) 126 static __always_inline void csum_replace_by_diff(__sum16 *sum, __wsum diff) in csum_replace_by_diff() 131 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4() 144 static __always_inline void csum_replace2(__sum16 *sum, __be16 old, __be16 new) in csum_replace2() 155 void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, 157 void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, [all …]
|
/linux-6.12.1/arch/parisc/include/asm/ |
D | checksum.h | 27 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 57 return (__force __sum16)sum; in ip_fast_csum() 63 static inline __sum16 csum_fold(__wsum csum) in csum_fold() 71 return (__force __sum16)(~sum >> 16); in csum_fold() 92 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 103 static inline __sum16 ip_compute_csum(const void *buf, int len) in ip_compute_csum() 110 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/m68k/include/asm/ |
D | checksum.h | 46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 64 return (__force __sum16)~sum; in ip_fast_csum() 67 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 78 return (__force __sum16)~sum; in csum_fold() 101 static inline __sum16 113 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 119 static __inline__ __sum16
|
/linux-6.12.1/net/netfilter/ |
D | utils.c | 10 __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum() 14 __sum16 csum = 0; in nf_ip_checksum() 43 static __sum16 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip_checksum_partial() 48 __sum16 csum = 0; in nf_ip_checksum_partial() 64 __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum() 68 __sum16 csum = 0; in nf_ip6_checksum() 97 static __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, in nf_ip6_checksum_partial() 103 __sum16 csum = 0; in nf_ip6_checksum_partial() 123 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook, in nf_checksum() 127 __sum16 csum = 0; in nf_checksum() [all …]
|
/linux-6.12.1/arch/x86/include/asm/ |
D | checksum_64.h | 22 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 29 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 45 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 72 return (__force __sum16)sum; in ip_fast_csum() 112 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 146 extern __sum16 ip_compute_csum(const void *buff, int len); 164 extern __sum16
|
D | checksum_32.h | 65 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 92 return (__force __sum16)sum; in ip_fast_csum() 99 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 106 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 127 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 139 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 145 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/alpha/include/asm/ |
D | checksum.h | 11 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); 17 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, 56 extern __sum16 ip_compute_csum(const void *buff, int len); 62 static inline __sum16 csum_fold(__wsum csum) in csum_fold() 67 return (__force __sum16)~sum; in csum_fold() 71 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | checksum_32.h | 81 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 83 __sum16 sum; in ip_fast_csum() 118 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 129 return (__force __sum16)sum; in csum_fold() 151 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 160 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() 193 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum()
|
D | checksum_64.h | 48 __sum16 ip_fast_csum(const void *iph, unsigned int ihl); 51 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 63 return (__force __sum16)sum; in csum_fold() 85 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 94 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() 127 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum()
|
/linux-6.12.1/include/asm-generic/ |
D | checksum.h | 26 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); 33 static inline __sum16 csum_fold(__wsum csum) in csum_fold() 36 return (__force __sum16)((~sum - ror32(sum, 16)) >> 16); in csum_fold() 51 static inline __sum16 63 extern __sum16 ip_compute_csum(const void *buff, int len);
|
/linux-6.12.1/arch/nios2/include/asm/ |
D | checksum.h | 15 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl); 16 extern __sum16 ip_compute_csum(const void *buff, int len); 21 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 32 return (__force __sum16) sum; in csum_fold() 63 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic()
|
/linux-6.12.1/arch/x86/um/asm/ |
D | checksum.h | 31 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 40 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 71 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 83 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 110 return (__force __sum16)sum; in ip_fast_csum()
|
/linux-6.12.1/arch/arm/include/asm/ |
D | checksum.h | 58 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 65 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold() 72 static inline __sum16 136 static inline __sum16 148 static inline __sum16 159 static inline __sum16
|
/linux-6.12.1/arch/sh/include/asm/ |
D | checksum_32.h | 63 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 76 return (__force __sum16)sum; in csum_fold() 86 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 141 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 152 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 158 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/xtensa/include/asm/ |
D | checksum.h | 67 static __inline__ __sum16 csum_fold(__wsum sum) in csum_fold() 81 return (__force __sum16)sum; in csum_fold() 88 static __inline__ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 156 static __inline__ __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 168 static __inline__ __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 174 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/alpha/lib/ |
D | checksum.c | 47 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() 50 return (__force __sum16)~from64to16( in csum_tcpudp_magic() 147 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 149 return (__force __sum16)~do_csum(iph,ihl*4); in ip_fast_csum() 182 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 184 return (__force __sum16)~from64to16(do_csum(buff,len)); in ip_compute_csum()
|
/linux-6.12.1/arch/s390/include/asm/ |
D | checksum.h | 43 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 49 return (__force __sum16) ~csum; in csum_fold() 56 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 93 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() 102 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 108 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | checksum.h | 13 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 21 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 31 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold() 40 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
|
/linux-6.12.1/arch/arm64/include/asm/ |
D | checksum.h | 11 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 15 static inline __sum16 csum_fold(__wsum csum) in csum_fold() 19 return ~(__force __sum16)(sum >> 16); in csum_fold() 23 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | checksum.h | 39 static inline __sum16 csum_fold(__wsum sum) in csum_fold() 49 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold() 88 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() 154 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 210 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 216 __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
|
/linux-6.12.1/lib/ |
D | checksum_kunit.c | 455 static __sum16 to_sum16(u16 x) in to_sum16() 457 return (__force __sum16)le16_to_cpu((__force __le16)x); in to_sum16() 483 __sum16 result, expec; in test_csum_fixed_random_inputs() 509 __sum16 result, expec; in test_csum_all_carry_inputs() 549 __sum16 result, expec; in test_csum_no_carry_inputs() 577 __sum16 csum_result; in test_ip_fast_csum()
|
D | checksum.c | 106 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 108 return (__force __sum16)~do_csum(iph, ihl*4); in ip_fast_csum() 142 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 144 return (__force __sum16)~do_csum(buff, len); in ip_compute_csum()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | checksum.h | 77 static inline __sum16 csum_fold(__wsum csum) in csum_fold() 86 return (__force __sum16)~sum; in csum_fold() 97 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 177 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum() 183 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | checksum.h | 21 __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 37 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum() 83 return (__force __sum16)(csum >> 16); in ip_fast_csum()
|
/linux-6.12.1/include/uapi/linux/ |
D | igmp.h | 34 __sum16 csum; 57 __sum16 csum; 66 __sum16 csum;
|