Home
last modified time | relevance | path

Searched refs:__sum16 (Results 1 – 25 of 127) sorted by relevance

123456

/linux-6.1.9/include/net/
Dchecksum.h70 static __always_inline __sum16 csum16_add(__sum16 csum, __be16 addend) in csum16_add()
75 return (__force __sum16)(res + (res < (__force u16)addend)); in csum16_add()
78 static __always_inline __sum16 csum16_sub(__sum16 csum, __be16 addend) in csum16_sub()
111 static __always_inline __wsum csum_unfold(__sum16 n) in csum_unfold()
122 #define CSUM_MANGLED_0 ((__force __sum16)0xffff)
124 static __always_inline void csum_replace_by_diff(__sum16 *sum, __wsum diff) in csum_replace_by_diff()
129 static __always_inline void csum_replace4(__sum16 *sum, __be32 from, __be32 to) in csum_replace4()
142 static __always_inline void csum_replace2(__sum16 *sum, __be16 old, __be16 new) in csum_replace2()
153 void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb,
155 void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb,
[all …]
/linux-6.1.9/arch/parisc/include/asm/
Dchecksum.h27 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.1.9/arch/m68k/include/asm/
Dchecksum.h46 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.1.9/arch/ia64/include/asm/
Dchecksum.h14 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
20 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
44 extern __sum16 ip_compute_csum(const void *buff, int len);
49 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
54 return (__force __sum16)~sum; in csum_fold()
59 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
/linux-6.1.9/net/netfilter/
Dutils.c10 __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.1.9/arch/alpha/include/asm/
Dchecksum.h11 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.1.9/arch/x86/include/asm/
Dchecksum_64.h23 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
30 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
46 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
73 return (__force __sum16)sum; in ip_fast_csum()
113 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic()
147 extern __sum16 ip_compute_csum(const void *buff, int len);
165 extern __sum16
Dchecksum_32.h65 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.1.9/arch/sparc/include/asm/
Dchecksum_32.h81 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()
Dchecksum_64.h48 __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.1.9/include/asm-generic/
Dchecksum.h24 extern __sum16 ip_fast_csum(const void *iph, unsigned int ihl);
31 static inline __sum16 csum_fold(__wsum csum) in csum_fold()
36 return (__force __sum16)~sum; in csum_fold()
51 static inline __sum16
63 extern __sum16 ip_compute_csum(const void *buff, int len);
/linux-6.1.9/arch/nios2/include/asm/
Dchecksum.h15 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.1.9/arch/x86/um/asm/
Dchecksum.h31 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.1.9/arch/arm/include/asm/
Dchecksum.h57 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
64 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
71 static inline __sum16
135 static inline __sum16
147 static inline __sum16
158 static inline __sum16
/linux-6.1.9/arch/sh/include/asm/
Dchecksum_32.h62 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
75 return (__force __sum16)sum; in csum_fold()
85 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
140 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic()
151 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum()
157 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
/linux-6.1.9/arch/xtensa/include/asm/
Dchecksum.h67 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.1.9/arch/s390/include/asm/
Dchecksum.h47 static inline __sum16 csum_fold(__wsum sum) in csum_fold()
53 return (__force __sum16) ~csum; in csum_fold()
60 static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
97 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic()
106 static inline __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum()
112 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic()
/linux-6.1.9/arch/alpha/lib/
Dchecksum.c45 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic()
48 return (__force __sum16)~from64to16( in csum_tcpudp_magic()
145 __sum16 ip_fast_csum(const void *iph, unsigned int ihl) in ip_fast_csum()
147 return (__force __sum16)~do_csum(iph,ihl*4); in ip_fast_csum()
180 __sum16 ip_compute_csum(const void *buff, int len) in ip_compute_csum()
182 return (__force __sum16)~from64to16(do_csum(buff,len)); in ip_compute_csum()
/linux-6.1.9/arch/arm64/include/asm/
Dchecksum.h11 __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.1.9/arch/ia64/lib/
Dchecksum.c37 __sum16
41 return (__force __sum16)~from64to16( in csum_tcpudp_magic()
97 __sum16 ip_compute_csum (const void *buff, int len) in ip_compute_csum()
99 return (__force __sum16)~do_csum(buff,len); in ip_compute_csum()
/linux-6.1.9/arch/powerpc/include/asm/
Dchecksum.h39 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.1.9/arch/mips/include/asm/
Dchecksum.h77 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.1.9/lib/
Dchecksum.c106 __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.1.9/include/uapi/linux/
Digmp.h34 __sum16 csum;
57 __sum16 csum;
66 __sum16 csum;
/linux-6.1.9/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_map_data.c19 static __sum16 *rmnet_map_get_csum_field(unsigned char protocol, in rmnet_map_get_csum_field()
38 __sum16 *csum_field, pseudo_csum; in rmnet_map_ipv4_dl_csum_trailer()
39 __sum16 ip_payload_csum; in rmnet_map_ipv4_dl_csum_trailer()
97 if (ip_payload_csum != (__sum16)~pseudo_csum) { in rmnet_map_ipv4_dl_csum_trailer()
114 __sum16 *csum_field, pseudo_csum; in rmnet_map_ipv6_dl_csum_trailer()
115 __sum16 ip6_payload_csum; in rmnet_map_ipv6_dl_csum_trailer()
148 if (ip6_payload_csum != (__sum16)~pseudo_csum) { in rmnet_map_ipv6_dl_csum_trailer()
256 __sum16 *check; in rmnet_map_v5_checksum_uplink_packet()

123456