Lines Matching refs:from

6  * Idea and some code bits from via_memcpy.c which is
117 #define PREFETCH1(arch_prefetch,from) \
129 : "r" (from) );
131 #define PREFETCH2(arch_prefetch,from) \
135 : "r" (from) );
137 #define PREFETCH3(arch_prefetch,from) \
141 : "r" (from) );
143 #define small_memcpy_i386(to,from,n) \
154 : "=&D" (to), "=&S" (from) \
155 : "c" (n), "0" ((long) to), "1" ((long) from) \
157 PDEBUG(ErrorF("Jong-small_memcpy_i386(to,from,n)...\n")); \
160 #define small_memcpy_amd64(to,from,n) \
174 : "=&D" (to), "=&S" (from) \
175 : "c" (n), "0" ((long) to), "1" ((long) from) \
177 PDEBUG(ErrorF("Jong-small_memcpy_amd64(to,from,n)...\n")); \
180 #define MMX_CPY(prefetch,from,to,dummy,lcnt) \
205 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
206 : "0" (to), "1" (from), "2" (lcnt) \
208 PDEBUG(ErrorF("Jong-MMX_CPY(prefetch,from,to,dummy,lcnt)...\n"));
211 #define SSE_CPY(prefetch,from,to,dummy,lcnt) \
212 if((ULong) from & 15) { \
229 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
230 : "0" (to), "1" (from), "2" (lcnt) \
232 PDEBUG(ErrorF("Jong-SSE_CPY(prefetch,from,to,dummy,lcnt)-1...\n")); \
250 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
251 : "0" (to), "1" (from), "2" (lcnt) \
253 PDEBUG(ErrorF("Jong-SSE_CPY(prefetch,from,to,dummy,lcnt)-2...\n")); \
256 #define SSE64_CPY(prefetch,from,to,dummy,lcnt) \
257 if((ULong) from & 15) { \
274 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
275 : "0" (to), "1" (from), "2" (lcnt) \
277 PDEBUG(ErrorF("Jong-SSE64_CPY(prefetch,from,to,dummy,lcnt)-1...\n")); \
295 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
296 : "0" (to), "1" (from), "2" (lcnt) \
298 PDEBUG(ErrorF("Jong-SSE64_CPY(prefetch,from,to,dummy,lcnt)-2...\n")); \
301 #define MMXEXT_CPY(prefetch,from,to,dummy,lcnt) \
327 : "=&D"(to), "=&S"(from), "=&r"(dummy) \
328 : "0" (to), "1" (from), "2" (lcnt) \
330 PDEBUG(ErrorF("Jong-MMXEXT_CPY(prefetch,from,to,dummy,lcnt)...\n"));
337 const UChar *from, \
344 PREFETCH1(ptype##_PREFETCH,from); \
349 itype##_CPY(ptype##_PREFETCH,from,to,dummy,lcnt); \
354 PREFETCH2(ptype##_PREFETCH,from); \
356 small(to, from, rest); \
358 PREFETCH3(ptype##_PREFETCH,from); \
369 const UChar *from, \
378 itype##_CPY("#",from,to,dummy,lcnt); \
381 small(to, from, rest); \
428 vidCopyFunc XGIVidCopyInit(ScreenPtr pScreen, vidCopyFunc *UMemCpy, Bool from)
454 void XGI_builtin_memcpy_arm(UChar *to, const UChar *from, int n)
468 " ldmia r1!, {r4-r11}\n" /* Load 8 words from the source */
477 " ldr r3, [r1], #4\n" /* Load a word from the source */
484 :"r" ((long) to), "r" ((long) from), "r" ((unsigned long) n)
501 static __inline void * builtin_memcpy(void * to, const void * from, size_t n)
515 : "0" (n), "1" ((long) to), "2" ((long) from)
523 static void XGI_builtin_memcp2(UChar *to, const UChar *from, int n)
565 : "0" (n), "1" ((long) to), "2" ((long) from)
597 static __inline void * builtin_memcpy(void * to, const void * from, int n)
608 "1" ((long) to), "2" ((long) from)
616 static void XGI_builtin_memcp2(UChar *to, const UChar *from, int n)
649 :"0" ((ULong) n), "1" ((long) to), "2" ((long) from)
681 /* static __inline void * builtin_memcpy(void * to, const void * from, int n)
762 vidCopyFunc *UMemCpy, int *best2, Bool from)
775 from ? "video" : "system",
776 from ? "system" : "video");
792 if(!from) {
854 unsigned int myCPUflags, vidCopyFunc *UMemCpy, Bool from)
863 grade = from ? MCFunctions[j].gradefrom : MCFunctions[j].grade;
881 from ? "from" : "to");
886 from ? "from" : "to");
928 /* Linux: Extract CPU speed from /proc/cpuinfo */
1178 XGIVidCopyInitGen(ScreenPtr pScreen, XGIMCFuncData *MCFunctions, vidCopyFunc *UMemCpy, Bool from)
1215 return XGI_GetBestByGrade(pScrn, MCFunctions, myCPUflags, UMemCpy, from);
1223 frqBuf, cpuFreq, UMemCpy, &secondbest, from);
1233 from ? "from" : "to");
1238 from ? "from" : "to");
1279 vidCopyFunc XGIVidCopyInit(ScreenPtr pScreen, vidCopyFunc *UMemCpy, Bool from)
1284 return(XGIVidCopyInitGen(pScreen, MCFunctions_i386, UMemCpy, from));
1287 return(XGIVidCopyInitGen(pScreen, MCFunctions_AMD64, UMemCpy, from));