Lines Matching defs:sink
34 void clrarea(unsigned int *source, unsigned int *sink);
36 void clrarea2(unsigned int *source, unsigned int *sink);
53 unsigned int *sink, *source;
59 retr = kmem_alloc_wired(kernel_map, (vm_offset_t *)&sink, (1024*1024)+4096); /* Get sink area */
61 panic("bcopytest: Whoops... no memory for sink\n");
69 db_printf("Source at %08X; Sink at %08X\n", source, sink);
72 snkptr = (void *)&sink[0];
75 db_printf("Testing non-overlap case; source bndry = 0 to 7F; sink bndry = 0 - 7F; lgn = 1 to 256\n");
77 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step the sink 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);
98 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step the sink 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);
125 db_printf("No overlap; source < sink, length = 0 to 1023\nSource =");
130 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step sink 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 =");
150 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step sink 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 =");
170 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step sink by 1 */
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 =");
206 db_printf("Overlap; source = sink + N + 128 (N = 0 to 127), length = 0 to 1023\nN =");
211 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step sink by 1 */
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 =");
246 db_printf("Overlap; source = sink + N + 256 (N = 0 to 127), length = 0 to 1023\nSource =");
251 for(bsnk = 0; bsnk < 128; bsnk++) { /* Step sink by 1 */
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 =");
305 bsnk = makerand & 0x0007FFFF; /* Generate sink */
309 db_printf("rt %7d: src = %08X; sink = %08X; length = %7d\n", i, ((unsigned int)srcptr + bsrc),
319 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
354 bsnk = makerand & 0x0007FFFF; /* Generate sink */
358 db_printf("rt %7d: src = %08X; sink = %08X; length = %7d\n", i, ((unsigned int)srcptr + bsrc),
368 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
401 bsnk = makerand & 0x0007FFFF; /* Generate sink */
405 db_printf("rt %7d: src = %08X; sink = %08X; length = %7d\n", i, ((unsigned int)srcptr + bsrc),
415 db_printf("Test failed; source = %02X; sink = %02X; length = %d\n", bsrc, bsnk, size);
432 kmem_free(kernel_map, (vm_offset_t) sink, (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 */
445 sink[i] = 0xAAAAAAAA; /* Known pattern */
451 clrarea2(unsigned int *source, __unused unsigned int *sink)
458 for(i=0; i < 1024 * 4; i++) { /* Init source/sink */
473 db_printf("bad copy at sink[%d] (%08X) it is %02X\n", i,crap, ((unsigned char *)snk)[i]);
479 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
499 db_printf("bad copy at sink[%d] (%08X) it is %02X\n", i,crap, ((unsigned char *)snk)[i]);
507 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
528 db_printf("bad copy at sink[%d] (%08X) it is %02X\n", i ,crap, ((unsigned char *)snk)[i]);
536 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
561 oic = ((unsigned char *)snk)[0]; /* Original first sink character */
563 ec = ((unsigned char *)snk)[lgn]; /* Original character just after last sink character */
564 pc = ((unsigned char *)snk)[-1]; /* Original character just before sink */
570 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
576 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
580 for(i = 0; i < lgn; i++) { /* Check sink byte sequence */
583 db_printf("bad copy at sink[%d] (%08X) it is %02X\n", i ,crap, ((unsigned char *)snk)[i]);