Lines Matching refs:from

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
32 if (unlikely(1 & (unsigned long)from)) { in string_memcpy_fromio()
33 movs("b", to, from); in string_memcpy_fromio()
36 if (n > 1 && unlikely(2 & (unsigned long)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()
45 static void string_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in string_memcpy_toio() argument
51 kmsan_check_memory(from, n); in string_memcpy_toio()
54 movs("b", to, from); 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
66 const volatile char __iomem *in = from; 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
77 const char *in = from; 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()