Lines Matching refs:buf2
714 static unsigned int time_function(vidCopyFunc mf, UChar *buf1, UChar *buf2, int size)
720 (*mf)(buf1, buf2, size);
728 * player buffer (buf2) and a pool of uninitialized "video" data (buf3).
731 XGI_AllocBuffers(ScrnInfoPtr pScrn, UChar **buf1, UChar **buf2, UChar **buf3)
743 if(!((*buf2) = (UChar *)xalloc(BUFFERSIZE + 15))) {
749 xfree((*buf2));
760 unsigned int myCPUflags, UChar *buf1, UChar *buf2,
770 /* Make probable buf1 and buf2 are not paged out by referencing them */
771 XGI_libc_memcpy(buf1, buf2, BUFFERSIZE);
793 XGI_builtin_memcpy(buf2, buf3, BUFFERSIZE);
794 tmp1 = time_function(curData->mFunc, buf1, buf2, BUFFERSIZE);
795 XGI_builtin_memcpy(buf2, buf3, BUFFERSIZE);
796 tmp2 = time_function(curData->mFunc, buf1, buf2, BUFFERSIZE);
798 XGI_builtin_memcpy(buf2, buf3, BUFFERSIZE);
799 tmp2 = time_function(curData->mFunc, buf1, buf2, BUFFERSIZE);
801 XGI_builtin_memcpy(buf2, buf3, BUFFERSIZE);
802 tmp2 = time_function(curData->mFunc, buf1, buf2, BUFFERSIZE);
805 XGI_builtin_memcpy(buf3, buf2, BUFFERSIZE);
806 tmp1 = time_function(curData->mFunc, buf2, buf1, BUFFERSIZE);
807 XGI_builtin_memcpy(buf3, buf2, BUFFERSIZE);
808 tmp2 = time_function(curData->mFunc, buf2, buf1, BUFFERSIZE);
810 XGI_builtin_memcpy(buf3, buf2, BUFFERSIZE);
811 tmp2 = time_function(curData->mFunc, buf2, buf1, BUFFERSIZE);
813 XGI_builtin_memcpy(buf3, buf2, BUFFERSIZE);
814 tmp2 = time_function(curData->mFunc, buf2, buf1, BUFFERSIZE);
1184 UChar *buf1, *buf2, *buf3;
1211 /* Allocate buffers; buf1:LFB; buf2,buf3:system memory */
1212 if(!(fbhandle = XGI_AllocBuffers(pScrn, &buf1, &buf2, &buf3))) {
1221 (UChar *)(((unsigned long)buf2 + 15) & ~15),
1227 xfree(buf2);