Home
last modified time | relevance | path

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

12

/arch/mips/cavium-octeon/
Ddma-octeon.c39 static phys_addr_t octeon_hole_dma_to_phys(dma_addr_t daddr) in octeon_hole_dma_to_phys() argument
41 if (daddr >= CVMX_PCIE_BAR1_RC_BASE) in octeon_hole_dma_to_phys()
42 return daddr + CVMX_PCIE_BAR1_PHYS_BASE - CVMX_PCIE_BAR1_RC_BASE; in octeon_hole_dma_to_phys()
44 return daddr; in octeon_hole_dma_to_phys()
54 static phys_addr_t octeon_gen1_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen1_dma_to_phys() argument
56 daddr = octeon_hole_dma_to_phys(daddr); in octeon_gen1_dma_to_phys()
58 if (daddr >= 0x10000000ull && daddr < 0x20000000ull) in octeon_gen1_dma_to_phys()
59 daddr += 0x400000000ull; in octeon_gen1_dma_to_phys()
61 return daddr; in octeon_gen1_dma_to_phys()
69 static phys_addr_t octeon_gen2_dma_to_phys(struct device *dev, dma_addr_t daddr) in octeon_gen2_dma_to_phys() argument
[all …]
/arch/ia64/include/asm/
Ddma-mapping.h29 dma_addr_t *daddr, gfp_t gfp, in dma_alloc_attrs() argument
35 caddr = ops->alloc(dev, size, daddr, gfp, attrs); in dma_alloc_attrs()
36 debug_dma_alloc_coherent(dev, size, *daddr, caddr); in dma_alloc_attrs()
43 void *caddr, dma_addr_t daddr, in dma_free_attrs() argument
47 debug_dma_free_coherent(dev, size, caddr, daddr); in dma_free_attrs()
48 ops->free(dev, size, caddr, daddr, attrs); in dma_free_attrs()
58 static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr) in dma_mapping_error() argument
61 return ops->mapping_error(dev, daddr); in dma_mapping_error()
92 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys() argument
94 return daddr; in dma_to_phys()
Dchecksum.h19 extern __sum16 csum_tcpudp_magic (__be32 saddr, __be32 daddr,
24 extern __wsum csum_tcpudp_nofold (__be32 saddr, __be32 daddr,
76 const struct in6_addr *daddr, __u32 len, unsigned short proto,
/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()
126 const struct in6_addr *daddr, 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/frv/include/asm/
Dchecksum.h108 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
116 : "r" (daddr), "r" (saddr), "r" (len + proto), "0"(sum) in csum_tcpudp_nofold()
123 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
126 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
137 csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, in csum_ipv6_magic() argument
173 : "r" (saddr), "r" (daddr), "0" (sum), "2" (len + proto) in csum_ipv6_magic()
/arch/m68k/include/asm/
Dchecksum.h81 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
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/score/include/asm/
Dchecksum.h130 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_nofold() argument
153 : "0" (daddr), "r"(saddr), in csum_tcpudp_nofold()
164 csum_tcpudp_magic(__be32 saddr, __be32 daddr, unsigned short len, in csum_tcpudp_magic() argument
167 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
182 const struct in6_addr *daddr, in csum_ipv6_magic() argument
230 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/m32r/include/asm/
Dchecksum.h116 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
136 : "r" (daddr), "r" (saddr), "r" (len_proto), "0" (sum) in csum_tcpudp_nofold()
147 static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
152 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
167 const struct in6_addr *daddr, in csum_ipv6_magic() argument
195 : "r" (saddr), "r" (daddr), 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
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()
129 const struct in6_addr *daddr, 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
182 : "r" (daddr), "r" (proto + len), "0" (sum), 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()
203 const struct in6_addr *daddr, in csum_ipv6_magic() argument
228 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/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/x86/um/asm/
Dchecksum_32.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()
154 const struct in6_addr *daddr, in csum_ipv6_magic() argument
171 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
Dchecksum_64.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/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()
147 const struct in6_addr *daddr, 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/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()
163 const struct in6_addr *daddr, in csum_ipv6_magic() argument
190 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/xtensa/include/asm/
Dchecksum.h122 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
161 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
176 const struct in6_addr *daddr, in csum_ipv6_magic() argument
230 : "r" (saddr), "r" (daddr), in csum_ipv6_magic()
/arch/mn10300/include/asm/
Dchecksum.h41 unsigned long daddr, in csum_tcpudp_nofold() argument
57 : "r" (daddr), "r"(saddr), "r"(tmp), "0"(sum) in csum_tcpudp_nofold()
68 unsigned long daddr, in csum_tcpudp_magic() argument
73 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/arch/s390/include/asm/
Dchecksum.h103 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
113 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
114 if (csum < (__force __u32)daddr) in csum_tcpudp_nofold()
130 csum_tcpudp_magic(__be32 saddr, __be32 daddr, in csum_tcpudp_magic() argument
134 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/arch/mips/include/asm/
Dchecksum.h133 __be32 daddr, unsigned short len, unsigned short proto, in csum_tcpudp_nofold() argument
162 : "0" ((__force unsigned long)daddr), 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()
197 const struct in6_addr *daddr, 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,
101 static inline __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, in csum_tcpudp_nofold() argument
110 s += (__force u32)daddr; in csum_tcpudp_nofold()
122 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
/arch/alpha/include/asm/
Dchecksum.h16 extern __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
21 __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
72 const struct in6_addr *daddr,

12