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
35 if (unlikely(1 & (unsigned long)from)) { in string_memcpy_fromio()
36 movs("b", to, from); in string_memcpy_fromio()
39 if (n > 1 && unlikely(2 & (unsigned long)from)) { in string_memcpy_fromio()
40 movs("w", to, from); in string_memcpy_fromio()
43 rep_movs(to, (const void *)from, n); in string_memcpy_fromio()
48 static void string_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in string_memcpy_toio() argument
54 kmsan_check_memory(from, n); in string_memcpy_toio()
57 movs("b", to, from); in string_memcpy_toio()
61 movs("w", to, from); in string_memcpy_toio()
64 rep_movs((void *)to, (const void *) from, n); in string_memcpy_toio()
67 static void unrolled_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in unrolled_memcpy_fromio() argument
69 const volatile char __iomem *in = from; in unrolled_memcpy_fromio()
77 static void unrolled_memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in unrolled_memcpy_toio() argument
80 const char *in = from; in unrolled_memcpy_toio()
96 void memcpy_fromio(void *to, const volatile void __iomem *from, size_t n) in memcpy_fromio() argument
99 unrolled_memcpy_fromio(to, from, n); in memcpy_fromio()
101 string_memcpy_fromio(to, from, n); in memcpy_fromio()
105 void memcpy_toio(volatile void __iomem *to, const void *from, size_t n) in memcpy_toio() argument
108 unrolled_memcpy_toio(to, from, n); in memcpy_toio()
110 string_memcpy_toio(to, from, n); in memcpy_toio()