Home
last modified time | relevance | path

Searched refs:daddr (Results 1 – 25 of 34) sorted by relevance

12

/arch/mips/cavium-octeon/
Ddma-octeon.c32 phys_addr_t (*dma_to_phys)(struct device *dev, dma_addr_t daddr);
43 static phys_addr_t octeon_hole_dma_to_phys(dma_addr_t daddr) in octeon_hole_dma_to_phys() argument
45 if (daddr >= CVMX_PCIE_BAR1_RC_BASE) in octeon_hole_dma_to_phys()
46 return daddr + CVMX_PCIE_BAR1_PHYS_BASE - CVMX_PCIE_BAR1_RC_BASE; in octeon_hole_dma_to_phys()
48 return daddr; in octeon_hole_dma_to_phys()
58 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys() argument
60 daddr = octeon_hole_dma_to_phys(daddr); in octeon_gen1_dma_to_phys()
62 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_gen1_dma_to_phys()
63 daddr += 0x400000000ull; in octeon_gen1_dma_to_phys()
65 return daddr; in octeon_gen1_dma_to_phys()
[all …]
/arch/s390/include/asm/
Dchecksum.h80 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
86 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
97 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
100 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
113 const struct in6_addr *daddr, in csum_ipv6_magic() argument
122 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
123 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
124 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
125 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/arch/arm/include/asm/
Dchecksum.h99 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
113 : "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
126 : "r" (sum), "r" (daddr), "r" (saddr), "r" (lenprot) in csum_tcpudp_nofold()
136 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
155 __csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, __be32 len,
159 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
162 return csum_fold(__csum_ipv6_magic(saddr, daddr, htonl(len), in csum_ipv6_magic()
/arch/parisc/include/asm/
Dchecksum.h74 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
84 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
92 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
111 const struct in6_addr *daddr, in csum_ipv6_magic() argument
169 : "=r" (sum), "=r" (saddr), "=r" (daddr), "=r" (len), in csum_ipv6_magic()
171 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len) in csum_ipv6_magic()
/arch/m68k/include/asm/
Dchecksum.h82 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
91 : "g" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
102 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
120 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
143 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
/arch/sparc/include/asm/
Dchecksum_64.h66 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
76 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
85 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
89 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
95 const struct in6_addr *daddr, in csum_ipv6_magic() argument
119 : "r" (saddr), "r" (daddr), "r"(htonl(len)), in csum_ipv6_magic()
Dchecksum_32.h132 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
141 : "r" (daddr), "r" (proto + len), "0" (sum), in csum_tcpudp_nofold()
151 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
155 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
161 const struct in6_addr *daddr, in csum_ipv6_magic() argument
185 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/sh/include/asm/
Dchecksum_32.h113 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
129 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum) in csum_tcpudp_nofold()
139 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
143 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
157 const struct in6_addr *daddr, in csum_ipv6_magic() argument
183 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/x86/include/asm/
Dchecksum_32.h109 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
131 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
146 const struct in6_addr *daddr, in csum_ipv6_magic() argument
161 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
Dchecksum_64.h88 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
96 : "g" (daddr), "g" (saddr), in csum_tcpudp_nofold()
113 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
117 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
166 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr,
/arch/nios2/include/asm/
Dchecksum.h40 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
55 : "r" (daddr), "r" ((len + proto) << 8), in csum_tcpudp_nofold()
63 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
67 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/arch/xtensa/include/asm/
Dchecksum.h123 static __inline__ __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
148 : "r" (daddr), "r" (saddr), "1" (len_proto), "0" (sum)); in csum_tcpudp_nofold()
156 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()
175 const struct in6_addr *daddr, in csum_ipv6_magic() argument
229 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/x86/um/asm/
Dchecksum.h55 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
63 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
71 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
75 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
Dchecksum_32.h15 const struct in6_addr *daddr, in csum_ipv6_magic() argument
32 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/mips/loongson64/
Ddma.c16 phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys() argument
20 long nid = (daddr >> node_id_offset) & 0x3; in dma_to_phys()
22 return ((nid << node_id_offset) ^ daddr) | (nid << 44); in dma_to_phys()
/arch/ia64/lib/
Dchecksum.c38 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
42 (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_magic()
49 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
54 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()
/arch/ia64/include/asm/
Dchecksum.h20 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
23 extern __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
60 const struct in6_addr *daddr,
/arch/alpha/include/asm/
Dchecksum.h17 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
20 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
72 const struct in6_addr *daddr,
/arch/powerpc/include/asm/
Dchecksum.h56 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
63 s += (__force u32)daddr; in csum_tcpudp_nofold()
78 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
87 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
90 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
210 const struct in6_addr *daddr,
Ddma-direct.h10 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys() argument
12 return daddr - dev->archdata.dma_offset; in dma_to_phys()
/arch/x86/lib/
Dcsum-wrappers_64.c79 const struct in6_addr *daddr, in csum_ipv6_magic() argument
94 : "[sum]" (rest), [saddr] "r" (saddr), [daddr] "r" (daddr)); in csum_ipv6_magic()
/arch/microblaze/include/asm/
Dchecksum.h16 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_nofold() argument
24 : "d" (saddr), "d" (daddr), in csum_tcpudp_nofold()
/arch/hexagon/include/asm/
Dchecksum.h17 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
21 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
/arch/mips/include/asm/
Dchecksum.h129 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
163 : "0" ((__force unsigned long)daddr), in csum_tcpudp_nofold()
187 const struct in6_addr *daddr, in csum_ipv6_magic() argument
246 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/alpha/lib/
Dchecksum.c45 __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
49 (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_magic()
54 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
59 result = (__force u64)saddr + (__force u64)daddr + in csum_tcpudp_nofold()

12