Lines Matching refs:to
6 #define movs(type,to,from) \ argument
7 asm volatile("movs" type:"=&D" (to), "=&S" (from):"0" (to), "1" (from):"memory")
10 static __always_inline void rep_movs(void *to, const void *from, size_t n) in rep_movs() argument
22 : "0" (n / 4), "q" (n), "1" ((long)to), "2" ((long)from) in rep_movs()
26 static void string_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in string_memcpy_fromio() argument
33 movs("b", to, from); in string_memcpy_fromio()
37 movs("w", to, from); in string_memcpy_fromio()
40 rep_movs(to, (const void *)from, n); in string_memcpy_fromio()
42 kmsan_unpoison_memory(to, n); in string_memcpy_fromio()
45 static void string_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in string_memcpy_toio() argument
53 if (unlikely(1 & (unsigned long)to)) { in string_memcpy_toio()
54 movs("b", to, from); in string_memcpy_toio()
57 if (n > 1 && unlikely(2 & (unsigned long)to)) { in string_memcpy_toio()
58 movs("w", to, from); in string_memcpy_toio()
61 rep_movs((void *)to, (const void *) from, n); in string_memcpy_toio()
64 static void unrolled_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in unrolled_memcpy_fromio() argument
67 char *out = to; in unrolled_memcpy_fromio()
74 static void unrolled_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in unrolled_memcpy_toio() argument
76 volatile char __iomem *out = to; in unrolled_memcpy_toio()
93 void memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in memcpy_fromio() argument
96 unrolled_memcpy_fromio(to, from, n); in memcpy_fromio()
98 string_memcpy_fromio(to, from, n); in memcpy_fromio()
102 void memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in memcpy_toio() argument
105 unrolled_memcpy_toio(to, from, n); in memcpy_toio()
107 string_memcpy_toio(to, from, n); in memcpy_toio()