tag | line | file | source code |
l2 | 384 | drivers/char/ftape/ecc.c | static inline int gfinv3(unsigned char l0, unsigned char l1, unsigned char l2, Matrix Ainv) |
l2 | 392 | drivers/char/ftape/ecc.c | t20 = gfpow[l2 - l0]; /* t20 = r^l2/r^l0 */ |
l2 | 394 | drivers/char/ftape/ecc.c | t21 = gfpow[l2 - l1]; /* t21 = r^l2/r^l1 */ |
l2 | 395 | drivers/char/ftape/ecc.c | t12 = gfpow[l1 - l2 + 255]; /* t12 = r^l1/r^l2 */ |
l2 | 397 | drivers/char/ftape/ecc.c | t02 = gfpow[l0 - l2 + 255]; /* t02 = r^l0/r^l2 */ |
l2 | 413 | drivers/char/ftape/ecc.c | Ainv[0][0] = gfmul_exp(gfadd(gfpow[l1], gfpow[l2]), log_det); |
l2 | 415 | drivers/char/ftape/ecc.c | Ainv[0][2] = gfmul_exp(gfadd(gfpow[255 - l1], gfpow[255 - l2]), log_det); |
l2 | 417 | drivers/char/ftape/ecc.c | Ainv[1][0] = gfmul_exp(gfadd(gfpow[l0], gfpow[l2]), log_det); |
l2 | 419 | drivers/char/ftape/ecc.c | Ainv[1][2] = gfmul_exp(gfadd(gfpow[255 - l0], gfpow[255 - l2]), log_det); |
l2 | 825 | drivers/isdn/teles/callc.c | st->l2.sap = 0; |
l2 | 827 | drivers/isdn/teles/callc.c | st->l2.tei = 255; |
l2 | 829 | drivers/isdn/teles/callc.c | st->l2.ces = ces; |
l2 | 830 | drivers/isdn/teles/callc.c | st->l2.extended = !0; |
l2 | 831 | drivers/isdn/teles/callc.c | st->l2.laptype = LAPD; |
l2 | 832 | drivers/isdn/teles/callc.c | st->l2.window = 1; |
l2 | 833 | drivers/isdn/teles/callc.c | st->l2.orig = !0; |
l2 | 834 | drivers/isdn/teles/callc.c | st->l2.t200 = 1000; /* 1000 milliseconds */ |
l2 | 836 | drivers/isdn/teles/callc.c | st->l2.n200 = 3; /* try 3 times */ |
l2 | 837 | drivers/isdn/teles/callc.c | st->l2.t203 = 10000; /* 10000 milliseconds */ |
l2 | 839 | drivers/isdn/teles/callc.c | st->l2.n200 = 4; /* try 4 times */ |
l2 | 840 | drivers/isdn/teles/callc.c | st->l2.t203 = 5000; /* 5000 milliseconds */ |
l2 | 846 | drivers/isdn/teles/callc.c | st->l2.debug = 2; |
l2 | 848 | drivers/isdn/teles/callc.c | st->l2.debug = 0xff; |
l2 | 855 | drivers/isdn/teles/callc.c | st->l2.l2man = cc_l2man; |
l2 | 1008 | drivers/isdn/teles/callc.c | BufQueueRelease(&st->l2.i_queue); |
l2 | 1043 | drivers/isdn/teles/callc.c | ptr += chanp->ds.l2.ihsize; |
l2 | 1044 | drivers/isdn/teles/callc.c | size = ibh->datasize - chanp->ds.l2.ihsize; |
l2 | 1105 | drivers/isdn/teles/callc.c | st->l2.extended = 0; |
l2 | 1106 | drivers/isdn/teles/callc.c | st->l2.laptype = LAPB; |
l2 | 1107 | drivers/isdn/teles/callc.c | st->l2.orig = !incoming; |
l2 | 1108 | drivers/isdn/teles/callc.c | st->l2.t200 = 1000; /* 1000 milliseconds */ |
l2 | 1109 | drivers/isdn/teles/callc.c | st->l2.window = 3; |
l2 | 1110 | drivers/isdn/teles/callc.c | st->l2.n200 = 4; /* try 4 times */ |
l2 | 1111 | drivers/isdn/teles/callc.c | st->l2.t203 = 5000; /* 5000 milliseconds */ |
l2 | 1113 | drivers/isdn/teles/callc.c | st->l2.debug = 0xff; |
l2 | 1119 | drivers/isdn/teles/callc.c | st->l2.l2l3 = lldata_handler; |
l2 | 1121 | drivers/isdn/teles/callc.c | st->l2.l2man = dcc_l2man; |
l2 | 1125 | drivers/isdn/teles/callc.c | st->l2.l2m.debug = debugflags & 16; |
l2 | 1167 | drivers/isdn/teles/callc.c | chanlist[i].is.l2.l2m.debug = debugflags & 8; |
l2 | 1168 | drivers/isdn/teles/callc.c | chanlist[i].ds.l2.l2m.debug = debugflags & 16; |
l2 | 1284 | drivers/isdn/teles/callc.c | i = st->l2.ihsize; |
l2 | 1300 | drivers/isdn/teles/callc.c | chanp->ds.l2.l2l1(&chanp->ds, PH_DATA, ibh); |
l2 | 888 | drivers/isdn/teles/card.c | if ((ptr[0] >> 2) == stptr->l2.sap) |
l2 | 902 | drivers/isdn/teles/card.c | if (((ptr[0] >> 2) == stptr->l2.sap) && |
l2 | 903 | drivers/isdn/teles/card.c | ((ptr[1] >> 1) == stptr->l2.tei)) { |
l2 | 1432 | drivers/isdn/teles/card.c | st->l2.l2l1 = teles_l2l1; |
l2 | 1433 | drivers/isdn/teles/card.c | st->l2.l2l1discardq = teles_l2l1discardq; |
l2 | 1761 | drivers/isdn/teles/card.c | st->l2.l2l1 = hscx_l2l1; |
l2 | 1763 | drivers/isdn/teles/card.c | st->l2.l2l1discardq = hscx_l2l1discardq; |
l2 | 173 | drivers/isdn/teles/isdnl2.c | p1 = (st->l2.va + st->l2.window) % (st->l2.extended ? 128 : 8); |
l2 | 174 | drivers/isdn/teles/isdnl2.c | return (st->l2.vs != p1); |
l2 | 182 | drivers/isdn/teles/isdnl2.c | while (!BufQueueUnlink(&ibh, &st->l2.i_queue)) |
l2 | 191 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2; |
l2 | 194 | drivers/isdn/teles/isdnl2.c | l2 = &st->l2; |
l2 | 195 | drivers/isdn/teles/isdnl2.c | p1 = l2->vs - l2->va; |
l2 | 197 | drivers/isdn/teles/isdnl2.c | p1 += l2->extended ? 128 : 8; |
l2 | 200 | drivers/isdn/teles/isdnl2.c | p2 = (i + l2->sow) % l2->window; |
l2 | 201 | drivers/isdn/teles/isdnl2.c | ibh = l2->windowar[p2]; |
l2 | 255 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_DATA, ibh); |
l2 | 268 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_DATA, ibh); |
l2 | 274 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2 = &st->l2; |
l2 | 277 | drivers/isdn/teles/isdnl2.c | lvs = (l2->vs >= l2->va) ? l2->vs : (l2->vs + l2->extended ? 128 : 8); |
l2 | 278 | drivers/isdn/teles/isdnl2.c | lnr = (nr >= l2->va) ? nr : (nr + l2->extended ? 128 : 8); |
l2 | 285 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2 = &st->l2; |
l2 | 287 | drivers/isdn/teles/isdnl2.c | if (l2->va != nr) { |
l2 | 288 | drivers/isdn/teles/isdnl2.c | while (l2->va != nr) { |
l2 | 289 | drivers/isdn/teles/isdnl2.c | l2->va = (l2->va + 1) % (l2->extended ? 128 : 8); |
l2 | 290 | drivers/isdn/teles/isdnl2.c | BufPoolRelease(l2->windowar[l2->sow]); |
l2 | 291 | drivers/isdn/teles/isdnl2.c | l2->sow = (l2->sow + 1) % l2->window; |
l2 | 303 | drivers/isdn/teles/isdnl2.c | st->l2.l2tei(st, MDL_ASSIGN, (void *)st->l2.ces); |
l2 | 316 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
l2 | 330 | drivers/isdn/teles/isdnl2.c | st->l2.l2l3(st, DL_UNIT_DATA, ibh); |
l2 | 342 | drivers/isdn/teles/isdnl2.c | st->l2.rc = 0; |
l2 | 344 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 1)) |
l2 | 345 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 346 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 1"); |
l2 | 351 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
l2 | 354 | drivers/isdn/teles/isdnl2.c | if (st->l2.extended) |
l2 | 380 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 1); |
l2 | 381 | drivers/isdn/teles/isdnl2.c | if (st->l2.t200_running) { |
l2 | 382 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 2); |
l2 | 383 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 385 | drivers/isdn/teles/isdnl2.c | st->l2.rc = 0; |
l2 | 386 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 2)) |
l2 | 387 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 388 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 2"); |
l2 | 391 | drivers/isdn/teles/isdnl2.c | if ((chanp->impair == 2) && (st->l2.laptype == LAPB)) |
l2 | 396 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
l2 | 416 | drivers/isdn/teles/isdnl2.c | st->l2.vs = 0; |
l2 | 417 | drivers/isdn/teles/isdnl2.c | st->l2.va = 0; |
l2 | 418 | drivers/isdn/teles/isdnl2.c | st->l2.vr = 0; |
l2 | 419 | drivers/isdn/teles/isdnl2.c | st->l2.sow = 0; |
l2 | 421 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 3)) |
l2 | 422 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 423 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 3"); |
l2 | 425 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_ESTABLISH, NULL); |
l2 | 429 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
l2 | 448 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(&(st->l2)); |
l2 | 454 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 3); |
l2 | 455 | drivers/isdn/teles/isdnl2.c | if (st->l2.t200_running) { |
l2 | 456 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 4); |
l2 | 457 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 459 | drivers/isdn/teles/isdnl2.c | if ((chanp->impair == 1) && (st->l2.laptype == LAPB)) |
l2 | 464 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh, 0); |
l2 | 472 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_RELEASE, NULL); |
l2 | 485 | drivers/isdn/teles/isdnl2.c | data += l2addrsize(&(st->l2)); |
l2 | 491 | drivers/isdn/teles/isdnl2.c | st->l2.vs = 0; |
l2 | 492 | drivers/isdn/teles/isdnl2.c | st->l2.va = 0; |
l2 | 493 | drivers/isdn/teles/isdnl2.c | st->l2.vr = 0; |
l2 | 494 | drivers/isdn/teles/isdnl2.c | st->l2.sow = 0; |
l2 | 497 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 5); |
l2 | 498 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 4)) |
l2 | 499 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 500 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 4"); |
l2 | 503 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_ESTABLISH, NULL); |
l2 | 516 | drivers/isdn/teles/isdnl2.c | data += l2addrsize(&st->l2); |
l2 | 522 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 6); |
l2 | 524 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_RELEASE, NULL); |
l2 | 536 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2; |
l2 | 538 | drivers/isdn/teles/isdnl2.c | l2 = &st->l2; |
l2 | 541 | drivers/isdn/teles/isdnl2.c | if (l2->laptype == LAPD) { |
l2 | 543 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 547 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 551 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(l2); |
l2 | 553 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 562 | drivers/isdn/teles/isdnl2.c | if ((chanp->impair == 4) && (st->l2.laptype == LAPB)) |
l2 | 567 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(l2, ibh, !0); |
l2 | 571 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 573 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
l2 | 576 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0); |
l2 | 585 | drivers/isdn/teles/isdnl2.c | if (seq == st->l2.vs) { |
l2 | 587 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 7); |
l2 | 588 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 589 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 8); |
l2 | 590 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 5)) |
l2 | 591 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 592 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 5"); |
l2 | 594 | drivers/isdn/teles/isdnl2.c | if (st->l2.i_queue.head) |
l2 | 595 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 596 | drivers/isdn/teles/isdnl2.c | } else if (st->l2.va != seq) { |
l2 | 598 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 9); |
l2 | 599 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 6)) |
l2 | 600 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 601 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 6"); |
l2 | 603 | drivers/isdn/teles/isdnl2.c | if (st->l2.i_queue.head) |
l2 | 604 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 618 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
l2 | 621 | drivers/isdn/teles/isdnl2.c | if (st->l2.laptype == LAPD) |
l2 | 623 | drivers/isdn/teles/isdnl2.c | sprintf(str, "Q.931 frame user->network tei %d", st->l2.tei); |
l2 | 624 | drivers/isdn/teles/isdnl2.c | dlogframe(sp, ptr + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 627 | drivers/isdn/teles/isdnl2.c | BufQueueLink(&st->l2.i_queue, ibh); |
l2 | 629 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 641 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2 = &(st->l2); |
l2 | 646 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(l2); |
l2 | 647 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 657 | drivers/isdn/teles/isdnl2.c | if (l2->vr == seq) { |
l2 | 660 | drivers/isdn/teles/isdnl2.c | l2->vr = (l2->vr + 1) % (l2->extended ? 128 : 8); |
l2 | 661 | drivers/isdn/teles/isdnl2.c | l2->rejexp = 0; |
l2 | 664 | drivers/isdn/teles/isdnl2.c | if (st->l2.laptype == LAPD) |
l2 | 666 | drivers/isdn/teles/isdnl2.c | sprintf(str, "Q.931 frame network->user tei %d", st->l2.tei); |
l2 | 667 | drivers/isdn/teles/isdnl2.c | dlogframe(st->l1.hardware, ptr + l2->ihsize, |
l2 | 668 | drivers/isdn/teles/isdnl2.c | ibh->datasize - l2->ihsize, str); |
l2 | 671 | drivers/isdn/teles/isdnl2.c | if ((chanp->impair == 3) && (st->l2.laptype == LAPB)) |
l2 | 675 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
l2 | 679 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 681 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
l2 | 684 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0); |
l2 | 695 | drivers/isdn/teles/isdnl2.c | if (st->l2.rejexp) { |
l2 | 699 | drivers/isdn/teles/isdnl2.c | st->l2.rejexp = !0; |
l2 | 701 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, p); |
l2 | 705 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 707 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | (p ? 1 : 0); |
l2 | 710 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x9 | (p ? 0x10 : 0x0); |
l2 | 720 | drivers/isdn/teles/isdnl2.c | if (nr == st->l2.vs) { |
l2 | 722 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 10); |
l2 | 723 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 724 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 11); |
l2 | 725 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 7)) |
l2 | 726 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 727 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 5"); |
l2 | 729 | drivers/isdn/teles/isdnl2.c | if (st->l2.i_queue.head) |
l2 | 730 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 731 | drivers/isdn/teles/isdnl2.c | } else if (nr != st->l2.va) { |
l2 | 733 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 12); |
l2 | 734 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 8)) |
l2 | 735 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 736 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 6"); |
l2 | 738 | drivers/isdn/teles/isdnl2.c | if (st->l2.i_queue.head) |
l2 | 739 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 742 | drivers/isdn/teles/isdnl2.c | st->l2.l2l3(st, DL_DATA, ibh); |
l2 | 751 | drivers/isdn/teles/isdnl2.c | st->l2.tei = (int) arg; |
l2 | 761 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2; |
l2 | 763 | drivers/isdn/teles/isdnl2.c | l2 = &st->l2; |
l2 | 765 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&(st->l2), ibh2, !0); |
l2 | 769 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 771 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | 0x1; |
l2 | 774 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | 0x1 | 0x10; |
l2 | 785 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2 = &st->l2; |
l2 | 788 | drivers/isdn/teles/isdnl2.c | if (l2->vs != nr) { |
l2 | 789 | drivers/isdn/teles/isdnl2.c | while (l2->vs != nr) { |
l2 | 791 | drivers/isdn/teles/isdnl2.c | l2->vs = l2->vs - 1; |
l2 | 792 | drivers/isdn/teles/isdnl2.c | if (l2->vs < 0) |
l2 | 793 | drivers/isdn/teles/isdnl2.c | l2->vs += l2->extended ? 128 : 8; |
l2 | 795 | drivers/isdn/teles/isdnl2.c | p1 = l2->vs - l2->va; |
l2 | 797 | drivers/isdn/teles/isdnl2.c | p1 += l2->extended ? 128 : 8; |
l2 | 798 | drivers/isdn/teles/isdnl2.c | p1 = (p1 + l2->sow) % l2->window; |
l2 | 800 | drivers/isdn/teles/isdnl2.c | BufQueueLinkFront(&l2->i_queue, l2->windowar[p1]); |
l2 | 802 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 813 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2; |
l2 | 815 | drivers/isdn/teles/isdnl2.c | l2 = &(st->l2); |
l2 | 818 | drivers/isdn/teles/isdnl2.c | if (l2->laptype == LAPD) { |
l2 | 820 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 824 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 829 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(l2); |
l2 | 831 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 865 | drivers/isdn/teles/isdnl2.c | if (st->l2.rc == st->l2.n200) { |
l2 | 867 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_RELEASE, NULL); |
l2 | 869 | drivers/isdn/teles/isdnl2.c | st->l2.rc++; |
l2 | 871 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 9)) |
l2 | 872 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 873 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 7"); |
l2 | 878 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
l2 | 881 | drivers/isdn/teles/isdnl2.c | if (st->l2.extended) |
l2 | 899 | drivers/isdn/teles/isdnl2.c | if (st->l2.rc == st->l2.n200) { |
l2 | 901 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_RELEASE, NULL); |
l2 | 903 | drivers/isdn/teles/isdnl2.c | st->l2.rc++; |
l2 | 905 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 10)) |
l2 | 906 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 907 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 8"); |
l2 | 910 | drivers/isdn/teles/isdnl2.c | if ((chanp->impair == 2) && (st->l2.laptype == LAPB)) |
l2 | 916 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
l2 | 932 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2 = &st->l2; |
l2 | 939 | drivers/isdn/teles/isdnl2.c | if (BufQueueUnlink(&ibh, &l2->i_queue)) |
l2 | 943 | drivers/isdn/teles/isdnl2.c | p1 = l2->vs - l2->va; |
l2 | 945 | drivers/isdn/teles/isdnl2.c | p1 += l2->extended ? 128 : 8; |
l2 | 946 | drivers/isdn/teles/isdnl2.c | p1 = (p1 + l2->sow) % l2->window; |
l2 | 947 | drivers/isdn/teles/isdnl2.c | l2->windowar[p1] = ibh; |
l2 | 950 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(l2); |
l2 | 952 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 953 | drivers/isdn/teles/isdnl2.c | *ptr++ = l2->vs << 1; |
l2 | 954 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 1) | 0x1; |
l2 | 955 | drivers/isdn/teles/isdnl2.c | l2->vs = (l2->vs + 1) % 128; |
l2 | 957 | drivers/isdn/teles/isdnl2.c | *ptr++ = (l2->vr << 5) | (l2->vs << 1) | 0x10; |
l2 | 958 | drivers/isdn/teles/isdnl2.c | l2->vs = (l2->vs + 1) % 8; |
l2 | 961 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_DATA_PULLED, ibh); |
l2 | 963 | drivers/isdn/teles/isdnl2.c | if (!st->l2.t200_running) { |
l2 | 964 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 13); |
l2 | 965 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 11)) |
l2 | 966 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 967 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 9"); |
l2 | 969 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = !0; |
l2 | 971 | drivers/isdn/teles/isdnl2.c | if (l2->i_queue.head && cansend(st)) |
l2 | 972 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_REQUEST_PULL, NULL); |
l2 | 984 | drivers/isdn/teles/isdnl2.c | ptr += sethdraddr(&st->l2, ibh, 0); |
l2 | 986 | drivers/isdn/teles/isdnl2.c | if (st->l2.extended) { |
l2 | 988 | drivers/isdn/teles/isdnl2.c | *ptr++ = (st->l2.vr << 1) | 1; |
l2 | 990 | drivers/isdn/teles/isdnl2.c | *ptr++ = (st->l2.vr << 5) | 0x11; |
l2 | 994 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 12)) |
l2 | 995 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 996 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 10"); |
l2 | 998 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = !0; |
l2 | 1007 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 1009 | drivers/isdn/teles/isdnl2.c | st->l2.rc = 1; |
l2 | 1021 | drivers/isdn/teles/isdnl2.c | struct Layer2 *l2; |
l2 | 1023 | drivers/isdn/teles/isdnl2.c | l2 = &st->l2; |
l2 | 1026 | drivers/isdn/teles/isdnl2.c | if (l2->laptype == LAPD) { |
l2 | 1028 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 1032 | drivers/isdn/teles/isdnl2.c | if (l2->orig) |
l2 | 1037 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(l2); |
l2 | 1039 | drivers/isdn/teles/isdnl2.c | if (l2->extended) { |
l2 | 1052 | drivers/isdn/teles/isdnl2.c | if (st->l2.t200_running) { |
l2 | 1053 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 14); |
l2 | 1054 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 1056 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 13)) |
l2 | 1057 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 1058 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 11"); |
l2 | 1076 | drivers/isdn/teles/isdnl2.c | st->l2.rc = 0; |
l2 | 1086 | drivers/isdn/teles/isdnl2.c | if (st->l2.rc == st->l2.n200) { |
l2 | 1089 | drivers/isdn/teles/isdnl2.c | st->l2.rc++; |
l2 | 1103 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(&st->l2); |
l2 | 1105 | drivers/isdn/teles/isdnl2.c | if (st->l2.extended) |
l2 | 1114 | drivers/isdn/teles/isdnl2.c | i = sethdraddr(&st->l2, ibh, 0); |
l2 | 1121 | drivers/isdn/teles/isdnl2.c | if (st->l2.vs != st->l2.va) { |
l2 | 1127 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 15); |
l2 | 1128 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 1130 | drivers/isdn/teles/isdnl2.c | if (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 3)) |
l2 | 1131 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) |
l2 | 1132 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, "FAT 12"); |
l2 | 1134 | drivers/isdn/teles/isdnl2.c | st->l2.vs = 0; |
l2 | 1135 | drivers/isdn/teles/isdnl2.c | st->l2.va = 0; |
l2 | 1136 | drivers/isdn/teles/isdnl2.c | st->l2.vr = 0; |
l2 | 1137 | drivers/isdn/teles/isdnl2.c | st->l2.sow = 0; |
l2 | 1141 | drivers/isdn/teles/isdnl2.c | st->l2.l2man(st, DL_ESTABLISH, NULL); |
l2 | 1154 | drivers/isdn/teles/isdnl2.c | ptr += l2addrsize(&st->l2); |
l2 | 1157 | drivers/isdn/teles/isdnl2.c | if (st->l2.l2m.debug) { |
l2 | 1158 | drivers/isdn/teles/isdnl2.c | if (st->l2.extended) |
l2 | 1165 | drivers/isdn/teles/isdnl2.c | l2m_debug(&st->l2.l2m, tmp); |
l2 | 1280 | drivers/isdn/teles/isdnl2.c | datap += l2addrsize(&st->l2); |
l2 | 1282 | drivers/isdn/teles/isdnl2.c | if (IsI(datap, st->l2.extended)) |
l2 | 1283 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_I, ibh); |
l2 | 1284 | drivers/isdn/teles/isdnl2.c | else if (IsRR(datap, st->l2.extended)) |
l2 | 1285 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_RR, ibh); |
l2 | 1286 | drivers/isdn/teles/isdnl2.c | else if (IsUI(datap, st->l2.extended)) |
l2 | 1287 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_UI, ibh); |
l2 | 1288 | drivers/isdn/teles/isdnl2.c | else if (IsSABMX(datap, st->l2.extended)) |
l2 | 1289 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_SABMX, ibh); |
l2 | 1290 | drivers/isdn/teles/isdnl2.c | else if (IsUA(datap, st->l2.extended)) |
l2 | 1291 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_UA, ibh); |
l2 | 1292 | drivers/isdn/teles/isdnl2.c | else if (IsDISC(datap, st->l2.extended)) |
l2 | 1293 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_DISC, ibh); |
l2 | 1294 | drivers/isdn/teles/isdnl2.c | else if (IsREJ(datap, st->l2.extended)) |
l2 | 1295 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_REJ, ibh); |
l2 | 1296 | drivers/isdn/teles/isdnl2.c | else if (IsFRMR(datap, st->l2.extended)) |
l2 | 1297 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_FRMR, ibh); |
l2 | 1298 | drivers/isdn/teles/isdnl2.c | else if (IsRNR(datap, st->l2.extended)) |
l2 | 1299 | drivers/isdn/teles/isdnl2.c | ret = FsmEvent(&st->l2.l2m, EV_L2_RNR, ibh); |
l2 | 1306 | drivers/isdn/teles/isdnl2.c | FsmEvent(&st->l2.l2m, EV_L2_ACK_PULL, arg); |
l2 | 1317 | drivers/isdn/teles/isdnl2.c | if (FsmEvent(&st->l2.l2m, EV_L2_DL_DATA, arg)) |
l2 | 1321 | drivers/isdn/teles/isdnl2.c | if (FsmEvent(&st->l2.l2m, EV_L2_DL_UNIT_DATA, arg)) |
l2 | 1333 | drivers/isdn/teles/isdnl2.c | FsmEvent(&st->l2.l2m, EV_L2_DL_ESTABLISH, arg); |
l2 | 1336 | drivers/isdn/teles/isdnl2.c | FsmEvent(&st->l2.l2m, EV_L2_DL_RELEASE, arg); |
l2 | 1339 | drivers/isdn/teles/isdnl2.c | FsmEvent(&st->l2.l2m, EV_L2_MDL_NOTEIPROC, NULL); |
l2 | 1350 | drivers/isdn/teles/isdnl2.c | FsmEvent(&st->l2.l2m, EV_L2_MDL_ASSIGN, arg); |
l2 | 1358 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t200_timer, 15); |
l2 | 1359 | drivers/isdn/teles/isdnl2.c | FsmDelTimer(&st->l2.t203_timer, 16); |
l2 | 1369 | drivers/isdn/teles/isdnl2.c | sprintf(str, "%s %s %s\n", tm, st->l2.debug_id, s); |
l2 | 1382 | drivers/isdn/teles/isdnl2.c | st->l2.uihsize = l2headersize(&st->l2, !0); |
l2 | 1383 | drivers/isdn/teles/isdnl2.c | st->l2.ihsize = l2headersize(&st->l2, 0); |
l2 | 1384 | drivers/isdn/teles/isdnl2.c | BufQueueInit(&(st->l2.i_queue)); |
l2 | 1385 | drivers/isdn/teles/isdnl2.c | st->l2.rejexp = 0; |
l2 | 1386 | drivers/isdn/teles/isdnl2.c | st->l2.debug = 1; |
l2 | 1388 | drivers/isdn/teles/isdnl2.c | st->l2.l2m.fsm = &l2fsm; |
l2 | 1389 | drivers/isdn/teles/isdnl2.c | st->l2.l2m.state = ST_L2_1; |
l2 | 1390 | drivers/isdn/teles/isdnl2.c | st->l2.l2m.debug = 0; |
l2 | 1391 | drivers/isdn/teles/isdnl2.c | st->l2.l2m.userdata = st; |
l2 | 1392 | drivers/isdn/teles/isdnl2.c | st->l2.l2m.printdebug = l2m_debug; |
l2 | 1393 | drivers/isdn/teles/isdnl2.c | strcpy(st->l2.debug_id, debug_id); |
l2 | 1395 | drivers/isdn/teles/isdnl2.c | FsmInitTimer(&st->l2.l2m, &st->l2.t200_timer); |
l2 | 1396 | drivers/isdn/teles/isdnl2.c | FsmInitTimer(&st->l2.l2m, &st->l2.t203_timer); |
l2 | 1397 | drivers/isdn/teles/isdnl2.c | st->l2.t200_running = 0; |
l2 | 1416 | drivers/isdn/teles/isdnl2.c | st->l2.l2l1(st, PH_DATA, ibh); |
l2 | 1425 | drivers/isdn/teles/isdnl2.c | st->l2.phdata_up = trans_acceptph; |
l2 | 1426 | drivers/isdn/teles/isdnl2.c | st->l2.service_down = (void *) transdown; |
l2 | 1427 | drivers/isdn/teles/isdnl2.c | st->l2.ihsize = 0; |
l2 | 1428 | drivers/isdn/teles/isdnl2.c | st->l2.debug = 0; |
l2 | 33 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
l2 | 34 | drivers/isdn/teles/isdnl3.c | size = st->l2.ihsize; |
l2 | 74 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
l2 | 146 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 194 | drivers/isdn/teles/isdnl3.c | p += st->l2.uihsize; |
l2 | 202 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 210 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x01, 6))) { |
l2 | 219 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x04, 0))) { |
l2 | 251 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 258 | drivers/isdn/teles/isdnl3.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 321 | drivers/isdn/teles/isdnl3.c | p += st->l2.ihsize; |
l2 | 322 | drivers/isdn/teles/isdnl3.c | size = st->l2.ihsize; |
l2 | 416 | drivers/isdn/teles/isdnl3.c | ptr += st->l2.ihsize; |
l2 | 417 | drivers/isdn/teles/isdnl3.c | size = ibh->datasize - st->l2.ihsize; |
l2 | 455 | drivers/isdn/teles/isdnl3.c | ptr += st->l2.uihsize; |
l2 | 456 | drivers/isdn/teles/isdnl3.c | size = ibh->datasize - st->l2.uihsize; |
l2 | 533 | drivers/isdn/teles/isdnl3.c | st->l2.l2l3 = l3up; |
l2 | 32 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
l2 | 57 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
l2 | 109 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.uihsize; |
l2 | 117 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 125 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, WE6_serviceInd, 6))) { |
l2 | 132 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 139 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, |
l2 | 164 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 185 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 207 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 232 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 329 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 344 | drivers/isdn/teles/l3_1TR6.c | if ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize, |
l2 | 424 | drivers/isdn/teles/l3_1TR6.c | p += st->l2.ihsize; |
l2 | 632 | drivers/isdn/teles/q931.c | int l, l2; |
l2 | 645 | drivers/isdn/teles/q931.c | dp += sprintf(dp, " octet 5 %d\n", l2 = *p++ & 0x7f); |
l2 | 648 | drivers/isdn/teles/q931.c | while (l2--) { |
l2 | 13 | drivers/isdn/teles/tei.c | if (ptr->l2.ces == ces) |
l2 | 29 | drivers/isdn/teles/tei.c | if (ptr->l2.tei == tei) |
l2 | 45 | drivers/isdn/teles/tei.c | if (st->l2.debug) |
l2 | 55 | drivers/isdn/teles/tei.c | bp += st->l2.uihsize; |
l2 | 87 | drivers/isdn/teles/tei.c | if ((ptr->l2.tei & 0x7f) != 0x7f) { |
l2 | 93 | drivers/isdn/teles/tei.c | bp[1] = ptr->l2.ces >> 8; |
l2 | 94 | drivers/isdn/teles/tei.c | bp[2] = ptr->l2.ces & 0xff; |
l2 | 96 | drivers/isdn/teles/tei.c | bp[4] = (ptr->l2.tei << 1) | 1; |
l2 | 108 | drivers/isdn/teles/tei.c | printk(KERN_DEBUG "ces is %d\n", otsp->l2.ces); |
l2 | 114 | drivers/isdn/teles/tei.c | bp[1] = otsp->l2.ces >> 8; |
l2 | 115 | drivers/isdn/teles/tei.c | bp[2] = otsp->l2.ces & 0xff; |
l2 | 117 | drivers/isdn/teles/tei.c | bp[4] = (otsp->l2.tei << 1) | 1; |
l2 | 159 | drivers/isdn/teles/tei.c | st->l2.l2tei = tei_l2tei; |
l2 | 181 | drivers/isdn/teles/tei.c | st->l2.extended = !0; |
l2 | 182 | drivers/isdn/teles/tei.c | st->l2.laptype = LAPD; |
l2 | 183 | drivers/isdn/teles/tei.c | st->l2.window = 1; |
l2 | 184 | drivers/isdn/teles/tei.c | st->l2.orig = !0; |
l2 | 191 | drivers/isdn/teles/tei.c | st->l2.t200 = 500; /* 500 milliseconds */ |
l2 | 192 | drivers/isdn/teles/tei.c | st->l2.n200 = 4; /* try 4 times */ |
l2 | 194 | drivers/isdn/teles/tei.c | st->l2.sap = 63; |
l2 | 195 | drivers/isdn/teles/tei.c | st->l2.tei = 127; |
l2 | 199 | drivers/isdn/teles/tei.c | st->l2.debug = 0; |
l2 | 204 | drivers/isdn/teles/tei.c | st->l2.l2l3 = (void *) tei_handler; |
l2 | 206 | drivers/isdn/teles/tei.c | st->l2.l2man = tei_man; |
l2 | 288 | drivers/isdn/teles/teles.h | struct Layer2 l2; |
l2 | 26 | include/asm-sparc/winmacro.h | std %l2, [%reg + RW_L2]; \ |
l2 | 37 | include/asm-sparc/winmacro.h | ldd [%reg + RW_L2], %l2; \ |
l2 | 287 | lib/string.c | int l1, l2; |
l2 | 289 | lib/string.c | l2 = strlen(s2); |
l2 | 290 | lib/string.c | if (!l2) |
l2 | 293 | lib/string.c | while (l1 >= l2) { |
l2 | 295 | lib/string.c | if (!memcmp(s1,s2,l2)) |