Lines Matching refs:source
34 void clrarea(unsigned int *source, unsigned int *sink);
36 void clrarea2(unsigned int *source, unsigned int *sink);
53 unsigned int *sink, *source;
64 retr = kmem_alloc_wired(kernel_map, (vm_offset_t *)&source, (1024*1024)+4096); /* Get source area */
66 panic("bcopytest: Whoops... no memory for source\n");
69 db_printf("Source at %08X; Sink at %08X\n", source, sink);
71 srcptr = (void *)&source[0];
75 db_printf("Testing non-overlap case; source bndry = 0 to 7F; sink bndry = 0 - 7F; lgn = 1 to 256\n");
76 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step the source by 1 */
80 clrarea(source, sink); /* Reset source and clear sink */
85 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
97 for(bsrc = 1; bsrc < 128; bsrc++) { /* Step the source by 1 */
101 clrarea2(source, sink); /* Reset source and clear sink */
109 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
120 for(i = 0; i < 262144 * 4; i++) { /* Set all 1MB of source and dest to known pattern */
125 db_printf("No overlap; source < sink, length = 0 to 1023\nSource =");
128 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step source by 1 */
136 db_printf("\nTest failed - source = %3d, sink = %3d size = %d\n", bsrc, bsnk, size);
145 db_printf("No overlap; source > sink, length = 0 to 1023\nSource =");
148 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step source by 1 */
156 db_printf("\nTest failed - source = %3d, sink = %3d size = %d\n", bsrc, bsnk, size);
165 db_printf("Overlap; source = sink + N (N = 0 to 127), length = 0 to 1023\nN =");
176 db_printf("\nTest failed - source = %3d, sink = %3d size = %d\n", bsrc, bsnk, size);
185 db_printf("Overlap; source + N = sink (N = 0 to 127), length = 0 to 1023\nSource =");
188 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step source by 1 */
196 db_printf("\nTest failed - source = %3d, n = %3d size = %d\n", bsrc, n, size);
206 db_printf("Overlap; source = sink + N + 128 (N = 0 to 127), length = 0 to 1023\nN =");
217 db_printf("\nTest failed - source = %3d, sink = %3d size = %d\n", bsrc, bsnk, size);
226 db_printf("Overlap; source + N + 128 = sink (N = 0 to 127), length = 0 to 1023\nSource =");
229 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step source by 1 */
237 db_printf("\nTest failed - source = %3d, n = %3d size = %d\n", bsrc, n, size);
246 db_printf("Overlap; source = sink + N + 256 (N = 0 to 127), length = 0 to 1023\nSource =");
257 db_printf("\nTest failed - source = %3d, sink = %3d size = %d\n", bsrc, bsnk, size);
266 db_printf("Overlap; source + N + 256 = sink (N = 0 to 127), length = 0 to 1023\nSource =");
268 for(bsrc = 0; bsrc < 128; bsrc++) { /* Step source by 1 */
276 db_printf("\nTest failed - source = %3d, n = %3d size = %d\n", bsrc, n, size);
297 for(i = 0; i < 262144 * 4; i++) { /* Clear all 2MB of source (and dest for this test) */
303 bsrc = makerand & 0x0007FFFF; /* Generate source */
319 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
346 for(i = 0; i < 262144 * 4; i++) { /* Clear all 2MB of source (and dest for this test) */
352 bsrc = makerand & 0x0007FFFF; /* Generate source */
368 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
393 for(i = 0; i < 262144 * 4; i++) { /* Clear all 2MB of source (and dest for this test) */
399 bsrc = makerand & 0x0007FFFF; /* Generate source */
415 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
433 kmem_free(kernel_map, (vm_offset_t) source, (1024*1024)+4096); /* Release this mapping block */
439 void clrarea(unsigned int *source, unsigned int *sink) {
443 for(i=0; i < 1024; i++) { /* Init source & sink */
444 source[i] = 0x55555555; /* Known pattern */
451 clrarea2(unsigned int *source, __unused unsigned int *sink)
456 ss = (unsigned char *)&source[0];
458 for(i=0; i < 1024 * 4; i++) { /* Init source/sink */
562 ic = ((unsigned char *)src)[0]; /* Original first source character */