Lines Matching refs:lgn
35 int tstcopy(void *src, void *snk, unsigned int lgn);
37 int tstcopy2(void *src, void *snk, unsigned int lgn);
38 int tstcopy3(void *src, void *snk, unsigned int lgn);
39 int tstcopy4(void *src, void *snk, unsigned int lgn);
40 int tstcopy5(void *src, void *snk, unsigned int lgn);
41 int dumbcopy(void *src, void *snk, unsigned int lgn);
75 db_printf("Testing non-overlap case; source bndry = 0 to 7F; sink bndry = 0 - 7F; lgn = 1 to 256\n");
464 int tstcopy(void *src, void *snk, unsigned int lgn) {
468 bcopy(src, snk, lgn);
470 for(i = 0; i < lgn; i++) {
477 if(((unsigned char *)snk)[lgn] != 0xAA) { /* Is it right? */
479 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
486 int tstcopy2(void *src, void *snk, unsigned int lgn) {
492 ec = ((unsigned char *)snk)[lgn];
494 bcopy(src, snk, lgn);
496 for(i = 0; i < lgn; i++) {
505 if(((unsigned char *)snk)[lgn] != ec) { /* Is it right? */
507 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
514 int tstcopy3(void *src, void *snk, unsigned int lgn) {
521 ec = ((unsigned char *)snk)[lgn];
523 bcopy(src, snk, lgn);
525 for(i = 0; i < lgn; i++) {
534 if(((unsigned char *)snk)[lgn] != ec) { /* Is it right? */
536 db_printf("Copied too far at sink[%d] (%08X) it is %02X\n", i, crap, ((unsigned char *)snk)[lgn]);
540 for(i=0; i < lgn; i++) { /* Restore pattern */
549 int tstcopy4(void *src, void *snk, unsigned int lgn) {
551 bcopy(src, snk, lgn);
556 int tstcopy5(void *src, void *snk, unsigned int lgn) {
563 ec = ((unsigned char *)snk)[lgn]; /* Original character just after last sink character */
566 bcopy(src, snk, lgn);
568 if(((unsigned char *)snk)[lgn] != ec) { /* Did we copy too far forward? */
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 */
589 for(i=0; i < lgn; i++) { /* Restore pattern */
598 int dumbcopy(void *src, void *snk, unsigned int lgn) {
603 for(i = 0; i < lgn; i++) {