Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 25 of 36) sorted by relevance

12

/arch/m68k/include/asm/
Dchecksum_no.h73 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
81 : "=&d" (sum), "=&d" (saddr) in csum_tcpudp_nofold()
82 : "0" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
88 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
91 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
103 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
126 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
Dchecksum_mm.h81 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
89 : "=&d" (sum), "=d" (saddr) in csum_tcpudp_nofold()
90 : "g" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
101 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
104 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
119 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
142 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
/arch/arm/include/asm/
Dchecksum.h87 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
101 : "r" (sum), "r" (daddr), "r" (saddr), "r" (len), "Ir" (htons(proto)) in csum_tcpudp_nofold()
110 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
113 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
129 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
133 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __u32 len, in csum_ipv6_magic() argument
136 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
/arch/parisc/include/asm/
Dchecksum.h87 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
98 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
106 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
111 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
125 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
183 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len) in csum_ipv6_magic()
184 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) in csum_ipv6_magic()
/arch/sparc/include/asm/
Dchecksum_64.h98 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
108 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold()
109 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
118 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
123 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
128 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
154 : "r" (saddr), "r" (daddr), "r"(htonl(len)), in csum_ipv6_magic()
Dchecksum_32.h172 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
181 : "=r" (sum), "=r" (saddr) in csum_tcpudp_nofold()
183 "1" (saddr) in csum_tcpudp_nofold()
192 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
197 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
202 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
228 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/um/sys-i386/shared/sysdep/
Dchecksum.h115 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
126 : "g" (daddr), "g"(saddr), "g"((len + proto) << 8), "0"(sum)); in csum_tcpudp_nofold()
134 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
153 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
171 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/sh/include/asm/
Dchecksum_32.h117 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
134 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum) in csum_tcpudp_nofold()
144 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
149 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
162 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
190 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
Dchecksum_64.h53 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
61 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
66 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/x86/include/asm/
Dchecksum_32.h108 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
118 : "g" (daddr), "g"(saddr), in csum_tcpudp_nofold()
127 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
132 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
146 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
163 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
Dchecksum_64.h87 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
95 : "g" (daddr), "g" (saddr), in csum_tcpudp_nofold()
112 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
116 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
179 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr,
/arch/h8300/include/asm/
Dchecksum.h68 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
83 : "0" (sum), "r" (daddr), "r" (saddr), "r" (len + proto) in csum_tcpudp_nofold()
89 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
92 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/xtensa/include/asm/
Dchecksum.h121 static __inline__ __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
147 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum)); in csum_tcpudp_nofold()
155 static __inline__ __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
160 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
174 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
229 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/blackfin/include/asm/
Dchecksum.h63 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
81 : "d" (daddr), "d" (saddr), "d" ((len + proto) << 8), "0"(sum) in csum_tcpudp_nofold()
88 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
91 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/arch/s390/include/asm/
Dchecksum.h120 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
126 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
127 if (csum < (__force __u32)saddr) in csum_tcpudp_nofold()
147 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
151 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/mips/include/asm/
Dchecksum.h132 static inline __wsum csum_tcpudp_nofold(__be32 saddr, in csum_tcpudp_nofold() argument
163 "r" ((__force unsigned long)saddr), in csum_tcpudp_nofold()
178 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
183 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
196 static __inline__ __sum16 csum_ipv6_magic(const struct in6_addr *saddr, in csum_ipv6_magic() argument
254 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/ia64/lib/
Dchecksum.c37 csum_tcpudp_magic (__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
41 (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_magic()
48 csum_tcpudp_nofold (__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
53 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()
/arch/avr32/include/asm/
Dchecksum.h113 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
123 : "r"(daddr), "r"(saddr), "r"(len + proto), in csum_tcpudp_nofold()
134 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/powerpc/include/asm/
Dchecksum.h23 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
91 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
99 s += (__force u32)saddr; in csum_tcpudp_nofold()
112 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
/arch/um/sys-x86_64/shared/sysdep/
Dchecksum.h74 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
82 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
90 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
95 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/alpha/include/asm/
Dchecksum.h16 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
21 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
71 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
/arch/ia64/include/asm/
Dchecksum.h19 extern __sum16 csum_tcpudp_magic (__be32 saddr, __be32 daddr,
24 extern __wsum csum_tcpudp_nofold (__be32 saddr, __be32 daddr,
75 extern __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
/arch/cris/include/arch-v10/arch/
Dchecksum.h12 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
24 : "0" (sum), "r" (daddr), "r" (saddr), "r" ((len + proto) << 8)); in csum_tcpudp_nofold()
/arch/cris/include/arch-v32/arch/
Dchecksum.h13 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
23 : "0" (sum), "r" (daddr), "r" (saddr), \ in csum_tcpudp_nofold()
/arch/alpha/lib/
Dchecksum.c44 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
50 (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_magic()
54 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
61 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()

12