Lines Matching refs:to

5 #define movs(type,to,from) \  argument
6 asm volatile("movs" type:"=&D" (to), "=&S" (from):"0" (to), "1" (from):"memory")
9 static __always_inline void rep_movs(void *to, const void *from, size_t n) in rep_movs() argument
21 : "0" (n / 4), "q" (n), "1" ((long)to), "2" ((long)from) in rep_movs()
25 static void string_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in string_memcpy_fromio() argument
32 movs("b", to, from); in string_memcpy_fromio()
36 movs("w", to, from); in string_memcpy_fromio()
39 rep_movs(to, (const void *)from, n); in string_memcpy_fromio()
42 static void string_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in string_memcpy_toio() argument
48 if (unlikely(1 & (unsigned long)to)) { in string_memcpy_toio()
49 movs("b", to, from); in string_memcpy_toio()
52 if (n > 1 && unlikely(2 & (unsigned long)to)) { in string_memcpy_toio()
53 movs("w", to, from); in string_memcpy_toio()
56 rep_movs((void *)to, (const void *) from, n); in string_memcpy_toio()
59 static void unrolled_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in unrolled_memcpy_fromio() argument
62 char *out = to; in unrolled_memcpy_fromio()
69 static void unrolled_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in unrolled_memcpy_toio() argument
71 volatile char __iomem *out = to; in unrolled_memcpy_toio()
88 void memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in memcpy_fromio() argument
91 unrolled_memcpy_fromio(to, from, n); in memcpy_fromio()
93 string_memcpy_fromio(to, from, n); in memcpy_fromio()
97 void memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in memcpy_toio() argument
100 unrolled_memcpy_toio(to, from, n); in memcpy_toio()
102 string_memcpy_toio(to, from, n); in memcpy_toio()