taglinefilesource code
l2384drivers/char/ftape/ecc.cstatic inline int gfinv3(unsigned char l0, unsigned char l1, unsigned char l2, Matrix Ainv)
l2392drivers/char/ftape/ecc.ct20 = gfpow[l2 - l0];  /* t20 = r^l2/r^l0 */
l2394drivers/char/ftape/ecc.ct21 = gfpow[l2 - l1];  /* t21 = r^l2/r^l1 */
l2395drivers/char/ftape/ecc.ct12 = gfpow[l1 - l2 + 255];  /* t12 = r^l1/r^l2 */
l2397drivers/char/ftape/ecc.ct02 = gfpow[l0 - l2 + 255];  /* t02 = r^l0/r^l2 */
l2413drivers/char/ftape/ecc.cAinv[0][0] = gfmul_exp(gfadd(gfpow[l1], gfpow[l2]), log_det);
l2415drivers/char/ftape/ecc.cAinv[0][2] = gfmul_exp(gfadd(gfpow[255 - l1], gfpow[255 - l2]), log_det);
l2417drivers/char/ftape/ecc.cAinv[1][0] = gfmul_exp(gfadd(gfpow[l0], gfpow[l2]), log_det);
l2419drivers/char/ftape/ecc.cAinv[1][2] = gfmul_exp(gfadd(gfpow[255 - l0], gfpow[255 - l2]), log_det);
l2825drivers/isdn/teles/callc.cst->l2.sap = 0;
l2827drivers/isdn/teles/callc.cst->l2.tei = 255;
l2829drivers/isdn/teles/callc.cst->l2.ces = ces;
l2830drivers/isdn/teles/callc.cst->l2.extended = !0;
l2831drivers/isdn/teles/callc.cst->l2.laptype = LAPD;
l2832drivers/isdn/teles/callc.cst->l2.window = 1;
l2833drivers/isdn/teles/callc.cst->l2.orig = !0;
l2834drivers/isdn/teles/callc.cst->l2.t200 = 1000;               /* 1000 milliseconds  */
l2836drivers/isdn/teles/callc.cst->l2.n200 = 3;          /* try 3 times        */
l2837drivers/isdn/teles/callc.cst->l2.t203 = 10000;      /* 10000 milliseconds */
l2839drivers/isdn/teles/callc.cst->l2.n200 = 4;          /* try 4 times        */
l2840drivers/isdn/teles/callc.cst->l2.t203 = 5000;       /* 5000 milliseconds  */
l2846drivers/isdn/teles/callc.cst->l2.debug = 2;
l2848drivers/isdn/teles/callc.cst->l2.debug = 0xff;
l2855drivers/isdn/teles/callc.cst->l2.l2man = cc_l2man;
l21008drivers/isdn/teles/callc.cBufQueueRelease(&st->l2.i_queue);
l21043drivers/isdn/teles/callc.cptr += chanp->ds.l2.ihsize;
l21044drivers/isdn/teles/callc.csize = ibh->datasize - chanp->ds.l2.ihsize;
l21105drivers/isdn/teles/callc.cst->l2.extended = 0;
l21106drivers/isdn/teles/callc.cst->l2.laptype = LAPB;
l21107drivers/isdn/teles/callc.cst->l2.orig = !incoming;
l21108drivers/isdn/teles/callc.cst->l2.t200 = 1000;        /* 1000 milliseconds */
l21109drivers/isdn/teles/callc.cst->l2.window = 3;
l21110drivers/isdn/teles/callc.cst->l2.n200 = 4;           /* try 4 times       */
l21111drivers/isdn/teles/callc.cst->l2.t203 = 5000;        /* 5000 milliseconds */
l21113drivers/isdn/teles/callc.cst->l2.debug = 0xff;
l21119drivers/isdn/teles/callc.cst->l2.l2l3 = lldata_handler;
l21121drivers/isdn/teles/callc.cst->l2.l2man = dcc_l2man;
l21125drivers/isdn/teles/callc.cst->l2.l2m.debug = debugflags & 16;
l21167drivers/isdn/teles/callc.cchanlist[i].is.l2.l2m.debug = debugflags & 8;
l21168drivers/isdn/teles/callc.cchanlist[i].ds.l2.l2m.debug = debugflags & 16;
l21284drivers/isdn/teles/callc.ci = st->l2.ihsize;
l21300drivers/isdn/teles/callc.cchanp->ds.l2.l2l1(&chanp->ds, PH_DATA, ibh);
l2888drivers/isdn/teles/card.cif ((ptr[0] >> 2) == stptr->l2.sap)
l2902drivers/isdn/teles/card.cif (((ptr[0] >> 2) == stptr->l2.sap) &&
l2903drivers/isdn/teles/card.c((ptr[1] >> 1) == stptr->l2.tei)) {
l21432drivers/isdn/teles/card.cst->l2.l2l1 = teles_l2l1;
l21433drivers/isdn/teles/card.cst->l2.l2l1discardq = teles_l2l1discardq;
l21761drivers/isdn/teles/card.cst->l2.l2l1 = hscx_l2l1;
l21763drivers/isdn/teles/card.cst->l2.l2l1discardq = hscx_l2l1discardq;
l2173drivers/isdn/teles/isdnl2.cp1 = (st->l2.va + st->l2.window) % (st->l2.extended ? 128 : 8);
l2174drivers/isdn/teles/isdnl2.creturn (st->l2.vs != p1);
l2182drivers/isdn/teles/isdnl2.cwhile (!BufQueueUnlink(&ibh, &st->l2.i_queue))
l2191drivers/isdn/teles/isdnl2.cstruct Layer2  *l2;
l2194drivers/isdn/teles/isdnl2.cl2 = &st->l2;
l2195drivers/isdn/teles/isdnl2.cp1 = l2->vs - l2->va;
l2197drivers/isdn/teles/isdnl2.cp1 += l2->extended ? 128 : 8;
l2200drivers/isdn/teles/isdnl2.cp2 = (i + l2->sow) % l2->window;
l2201drivers/isdn/teles/isdnl2.cibh = l2->windowar[p2];
l2255drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_DATA, ibh);
l2268drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_DATA, ibh);
l2274drivers/isdn/teles/isdnl2.cstruct Layer2  *l2 = &st->l2;
l2277drivers/isdn/teles/isdnl2.clvs = (l2->vs >= l2->va) ? l2->vs : (l2->vs + l2->extended ? 128 : 8);
l2278drivers/isdn/teles/isdnl2.clnr = (nr >= l2->va) ? nr : (nr + l2->extended ? 128 : 8);
l2285drivers/isdn/teles/isdnl2.cstruct Layer2  *l2 = &st->l2;
l2287drivers/isdn/teles/isdnl2.cif (l2->va != nr) {
l2288drivers/isdn/teles/isdnl2.cwhile (l2->va != nr) {
l2289drivers/isdn/teles/isdnl2.cl2->va = (l2->va + 1) % (l2->extended ? 128 : 8);
l2290drivers/isdn/teles/isdnl2.cBufPoolRelease(l2->windowar[l2->sow]);
l2291drivers/isdn/teles/isdnl2.cl2->sow = (l2->sow + 1) % l2->window;
l2303drivers/isdn/teles/isdnl2.cst->l2.l2tei(st, MDL_ASSIGN, (void *)st->l2.ces);
l2316drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh, 0);
l2330drivers/isdn/teles/isdnl2.cst->l2.l2l3(st, DL_UNIT_DATA, ibh);
l2342drivers/isdn/teles/isdnl2.cst->l2.rc = 0;
l2344drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 1))
l2345drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2346drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 1");
l2351drivers/isdn/teles/isdnl2.ci = sethdraddr(&st->l2, ibh, 0);
l2354drivers/isdn/teles/isdnl2.cif (st->l2.extended)
l2380drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 1);
l2381drivers/isdn/teles/isdnl2.cif (st->l2.t200_running) {
l2382drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 2);
l2383drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l2385drivers/isdn/teles/isdnl2.cst->l2.rc = 0;
l2386drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 2))
l2387drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2388drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 2");
l2391drivers/isdn/teles/isdnl2.cif ((chanp->impair == 2) && (st->l2.laptype == LAPB))
l2396drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh, 0);
l2416drivers/isdn/teles/isdnl2.cst->l2.vs = 0;
l2417drivers/isdn/teles/isdnl2.cst->l2.va = 0;
l2418drivers/isdn/teles/isdnl2.cst->l2.vr = 0;
l2419drivers/isdn/teles/isdnl2.cst->l2.sow = 0;
l2421drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 3))
l2422drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2423drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 3");
l2425drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_ESTABLISH, NULL);
l2429drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh, 0);
l2448drivers/isdn/teles/isdnl2.cptr += l2addrsize(&(st->l2));
l2454drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 3);
l2455drivers/isdn/teles/isdnl2.cif (st->l2.t200_running) {
l2456drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 4);
l2457drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l2459drivers/isdn/teles/isdnl2.cif ((chanp->impair == 1) && (st->l2.laptype == LAPB))
l2464drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh, 0);
l2472drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_RELEASE, NULL);
l2485drivers/isdn/teles/isdnl2.cdata += l2addrsize(&(st->l2));
l2491drivers/isdn/teles/isdnl2.cst->l2.vs = 0;
l2492drivers/isdn/teles/isdnl2.cst->l2.va = 0;
l2493drivers/isdn/teles/isdnl2.cst->l2.vr = 0;
l2494drivers/isdn/teles/isdnl2.cst->l2.sow = 0;
l2497drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 5);
l2498drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 4))
l2499drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2500drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 4");
l2503drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_ESTABLISH, NULL);
l2516drivers/isdn/teles/isdnl2.cdata += l2addrsize(&st->l2);
l2522drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 6);
l2524drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_RELEASE, NULL);
l2536drivers/isdn/teles/isdnl2.cstruct Layer2  *l2;
l2538drivers/isdn/teles/isdnl2.cl2 = &st->l2;
l2541drivers/isdn/teles/isdnl2.cif (l2->laptype == LAPD) {
l2543drivers/isdn/teles/isdnl2.cif (l2->orig)
l2547drivers/isdn/teles/isdnl2.cif (l2->orig)
l2551drivers/isdn/teles/isdnl2.cptr += l2addrsize(l2);
l2553drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2562drivers/isdn/teles/isdnl2.cif ((chanp->impair == 4) && (st->l2.laptype == LAPB))
l2567drivers/isdn/teles/isdnl2.ci = sethdraddr(l2, ibh, !0);
l2571drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2573drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 1) | (p ? 1 : 0);
l2576drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0);
l2585drivers/isdn/teles/isdnl2.cif (seq == st->l2.vs) {
l2587drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 7);
l2588drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l2589drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 8);
l2590drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 5))
l2591drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2592drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 5");
l2594drivers/isdn/teles/isdnl2.cif (st->l2.i_queue.head)
l2595drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2596drivers/isdn/teles/isdnl2.c} else if (st->l2.va != seq) {
l2598drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 9);
l2599drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 6))
l2600drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2601drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 6");
l2603drivers/isdn/teles/isdnl2.cif (st->l2.i_queue.head)
l2604drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2618drivers/isdn/teles/isdnl2.ci = sethdraddr(&st->l2, ibh, 0);
l2621drivers/isdn/teles/isdnl2.cif (st->l2.laptype == LAPD)
l2623drivers/isdn/teles/isdnl2.csprintf(str, "Q.931 frame user->network tei %d", st->l2.tei);
l2624drivers/isdn/teles/isdnl2.cdlogframe(sp, ptr + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2627drivers/isdn/teles/isdnl2.cBufQueueLink(&st->l2.i_queue, ibh);
l2629drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2641drivers/isdn/teles/isdnl2.cstruct Layer2  *l2 = &(st->l2);
l2646drivers/isdn/teles/isdnl2.cptr += l2addrsize(l2);
l2647drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2657drivers/isdn/teles/isdnl2.cif (l2->vr == seq) {
l2660drivers/isdn/teles/isdnl2.cl2->vr = (l2->vr + 1) % (l2->extended ? 128 : 8);
l2661drivers/isdn/teles/isdnl2.cl2->rejexp = 0;
l2664drivers/isdn/teles/isdnl2.cif (st->l2.laptype == LAPD)
l2666drivers/isdn/teles/isdnl2.csprintf(str, "Q.931 frame network->user tei %d", st->l2.tei);
l2667drivers/isdn/teles/isdnl2.cdlogframe(st->l1.hardware, ptr + l2->ihsize,
l2668drivers/isdn/teles/isdnl2.cibh->datasize - l2->ihsize, str);
l2671drivers/isdn/teles/isdnl2.cif ((chanp->impair == 3) && (st->l2.laptype == LAPB))
l2675drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh2, p);
l2679drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2681drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 1) | (p ? 1 : 0);
l2684drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 5) | 0x1 | (p ? 0x10 : 0x0);
l2695drivers/isdn/teles/isdnl2.cif (st->l2.rejexp) {
l2699drivers/isdn/teles/isdnl2.cst->l2.rejexp = !0;
l2701drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh2, p);
l2705drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2707drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 1) | (p ? 1 : 0);
l2710drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 5) | 0x9 | (p ? 0x10 : 0x0);
l2720drivers/isdn/teles/isdnl2.cif (nr == st->l2.vs) {
l2722drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 10);
l2723drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l2724drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 11);
l2725drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 7))
l2726drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2727drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 5");
l2729drivers/isdn/teles/isdnl2.cif (st->l2.i_queue.head)
l2730drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2731drivers/isdn/teles/isdnl2.c} else if (nr != st->l2.va) {
l2733drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 12);
l2734drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 8))
l2735drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2736drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 6");
l2738drivers/isdn/teles/isdnl2.cif (st->l2.i_queue.head)
l2739drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2742drivers/isdn/teles/isdnl2.cst->l2.l2l3(st, DL_DATA, ibh);
l2751drivers/isdn/teles/isdnl2.cst->l2.tei = (int) arg;
l2761drivers/isdn/teles/isdnl2.cstruct Layer2  *l2;
l2763drivers/isdn/teles/isdnl2.cl2 = &st->l2;
l2765drivers/isdn/teles/isdnl2.ci = sethdraddr(&(st->l2), ibh2, !0);
l2769drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2771drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 1) | 0x1;
l2774drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 5) | 0x1 | 0x10;
l2785drivers/isdn/teles/isdnl2.cstruct Layer2  *l2 = &st->l2;
l2788drivers/isdn/teles/isdnl2.cif (l2->vs != nr) {
l2789drivers/isdn/teles/isdnl2.cwhile (l2->vs != nr) {
l2791drivers/isdn/teles/isdnl2.cl2->vs = l2->vs - 1;
l2792drivers/isdn/teles/isdnl2.cif (l2->vs < 0)
l2793drivers/isdn/teles/isdnl2.cl2->vs += l2->extended ? 128 : 8;
l2795drivers/isdn/teles/isdnl2.cp1 = l2->vs - l2->va;
l2797drivers/isdn/teles/isdnl2.cp1 += l2->extended ? 128 : 8;
l2798drivers/isdn/teles/isdnl2.cp1 = (p1 + l2->sow) % l2->window;
l2800drivers/isdn/teles/isdnl2.cBufQueueLinkFront(&l2->i_queue, l2->windowar[p1]);
l2802drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2813drivers/isdn/teles/isdnl2.cstruct Layer2  *l2;
l2815drivers/isdn/teles/isdnl2.cl2 = &(st->l2);
l2818drivers/isdn/teles/isdnl2.cif (l2->laptype == LAPD) {
l2820drivers/isdn/teles/isdnl2.cif (l2->orig)
l2824drivers/isdn/teles/isdnl2.cif (l2->orig)
l2829drivers/isdn/teles/isdnl2.cptr += l2addrsize(l2);
l2831drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2865drivers/isdn/teles/isdnl2.cif (st->l2.rc == st->l2.n200) {
l2867drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_RELEASE, NULL);
l2869drivers/isdn/teles/isdnl2.cst->l2.rc++;
l2871drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 9))
l2872drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2873drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 7");
l2878drivers/isdn/teles/isdnl2.ci = sethdraddr(&st->l2, ibh, 0);
l2881drivers/isdn/teles/isdnl2.cif (st->l2.extended)
l2899drivers/isdn/teles/isdnl2.cif (st->l2.rc == st->l2.n200) {
l2901drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_RELEASE, NULL);
l2903drivers/isdn/teles/isdnl2.cst->l2.rc++;
l2905drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 10))
l2906drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2907drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 8");
l2910drivers/isdn/teles/isdnl2.cif ((chanp->impair == 2) && (st->l2.laptype == LAPB))
l2916drivers/isdn/teles/isdnl2.ci = sethdraddr(&st->l2, ibh, 0);
l2932drivers/isdn/teles/isdnl2.cstruct Layer2  *l2 = &st->l2;
l2939drivers/isdn/teles/isdnl2.cif (BufQueueUnlink(&ibh, &l2->i_queue))
l2943drivers/isdn/teles/isdnl2.cp1 = l2->vs - l2->va;
l2945drivers/isdn/teles/isdnl2.cp1 += l2->extended ? 128 : 8;
l2946drivers/isdn/teles/isdnl2.cp1 = (p1 + l2->sow) % l2->window;
l2947drivers/isdn/teles/isdnl2.cl2->windowar[p1] = ibh;
l2950drivers/isdn/teles/isdnl2.cptr += l2addrsize(l2);
l2952drivers/isdn/teles/isdnl2.cif (l2->extended) {
l2953drivers/isdn/teles/isdnl2.c*ptr++ = l2->vs << 1;
l2954drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 1) | 0x1;
l2955drivers/isdn/teles/isdnl2.cl2->vs = (l2->vs + 1) % 128;
l2957drivers/isdn/teles/isdnl2.c*ptr++ = (l2->vr << 5) | (l2->vs << 1) | 0x10;
l2958drivers/isdn/teles/isdnl2.cl2->vs = (l2->vs + 1) % 8;
l2961drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_DATA_PULLED, ibh);
l2963drivers/isdn/teles/isdnl2.cif (!st->l2.t200_running) {
l2964drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 13);
l2965drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 11))
l2966drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2967drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 9");
l2969drivers/isdn/teles/isdnl2.cst->l2.t200_running = !0;
l2971drivers/isdn/teles/isdnl2.cif (l2->i_queue.head && cansend(st))
l2972drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_REQUEST_PULL, NULL);
l2984drivers/isdn/teles/isdnl2.cptr += sethdraddr(&st->l2, ibh, 0);
l2986drivers/isdn/teles/isdnl2.cif (st->l2.extended) {
l2988drivers/isdn/teles/isdnl2.c*ptr++ = (st->l2.vr << 1) | 1;
l2990drivers/isdn/teles/isdnl2.c*ptr++ = (st->l2.vr << 5) | 0x11;
l2994drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t200_timer, st->l2.t200, EV_L2_T200, NULL, 12))
l2995drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l2996drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 10");
l2998drivers/isdn/teles/isdnl2.cst->l2.t200_running = !0;
l21007drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l21009drivers/isdn/teles/isdnl2.cst->l2.rc = 1;
l21021drivers/isdn/teles/isdnl2.cstruct Layer2  *l2;
l21023drivers/isdn/teles/isdnl2.cl2 = &st->l2;
l21026drivers/isdn/teles/isdnl2.cif (l2->laptype == LAPD) {
l21028drivers/isdn/teles/isdnl2.cif (l2->orig)
l21032drivers/isdn/teles/isdnl2.cif (l2->orig)
l21037drivers/isdn/teles/isdnl2.cptr += l2addrsize(l2);
l21039drivers/isdn/teles/isdnl2.cif (l2->extended) {
l21052drivers/isdn/teles/isdnl2.cif (st->l2.t200_running) {
l21053drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 14);
l21054drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l21056drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 13))
l21057drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l21058drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 11");
l21076drivers/isdn/teles/isdnl2.cst->l2.rc = 0;
l21086drivers/isdn/teles/isdnl2.cif (st->l2.rc == st->l2.n200) {
l21089drivers/isdn/teles/isdnl2.cst->l2.rc++;
l21103drivers/isdn/teles/isdnl2.cptr += l2addrsize(&st->l2);
l21105drivers/isdn/teles/isdnl2.cif (st->l2.extended)
l21114drivers/isdn/teles/isdnl2.ci = sethdraddr(&st->l2, ibh, 0);
l21121drivers/isdn/teles/isdnl2.cif (st->l2.vs != st->l2.va) {
l21127drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 15);
l21128drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l21130drivers/isdn/teles/isdnl2.cif (FsmAddTimer(&st->l2.t203_timer, st->l2.t203, EV_L2_T203, NULL, 3))
l21131drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug)
l21132drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, "FAT 12");
l21134drivers/isdn/teles/isdnl2.cst->l2.vs = 0;
l21135drivers/isdn/teles/isdnl2.cst->l2.va = 0;
l21136drivers/isdn/teles/isdnl2.cst->l2.vr = 0;
l21137drivers/isdn/teles/isdnl2.cst->l2.sow = 0;
l21141drivers/isdn/teles/isdnl2.cst->l2.l2man(st, DL_ESTABLISH, NULL);
l21154drivers/isdn/teles/isdnl2.cptr += l2addrsize(&st->l2);
l21157drivers/isdn/teles/isdnl2.cif (st->l2.l2m.debug) {
l21158drivers/isdn/teles/isdnl2.cif (st->l2.extended)
l21165drivers/isdn/teles/isdnl2.cl2m_debug(&st->l2.l2m, tmp);
l21280drivers/isdn/teles/isdnl2.cdatap += l2addrsize(&st->l2);
l21282drivers/isdn/teles/isdnl2.cif (IsI(datap, st->l2.extended))
l21283drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_I, ibh);
l21284drivers/isdn/teles/isdnl2.celse if (IsRR(datap, st->l2.extended))
l21285drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_RR, ibh);
l21286drivers/isdn/teles/isdnl2.celse if (IsUI(datap, st->l2.extended))
l21287drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_UI, ibh);
l21288drivers/isdn/teles/isdnl2.celse if (IsSABMX(datap, st->l2.extended))
l21289drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_SABMX, ibh);
l21290drivers/isdn/teles/isdnl2.celse if (IsUA(datap, st->l2.extended))
l21291drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_UA, ibh);
l21292drivers/isdn/teles/isdnl2.celse if (IsDISC(datap, st->l2.extended))
l21293drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_DISC, ibh);
l21294drivers/isdn/teles/isdnl2.celse if (IsREJ(datap, st->l2.extended))
l21295drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_REJ, ibh);
l21296drivers/isdn/teles/isdnl2.celse if (IsFRMR(datap, st->l2.extended))
l21297drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_FRMR, ibh);
l21298drivers/isdn/teles/isdnl2.celse if (IsRNR(datap, st->l2.extended))
l21299drivers/isdn/teles/isdnl2.cret = FsmEvent(&st->l2.l2m, EV_L2_RNR, ibh);
l21306drivers/isdn/teles/isdnl2.cFsmEvent(&st->l2.l2m, EV_L2_ACK_PULL, arg);
l21317drivers/isdn/teles/isdnl2.cif (FsmEvent(&st->l2.l2m, EV_L2_DL_DATA, arg))
l21321drivers/isdn/teles/isdnl2.cif (FsmEvent(&st->l2.l2m, EV_L2_DL_UNIT_DATA, arg))
l21333drivers/isdn/teles/isdnl2.cFsmEvent(&st->l2.l2m, EV_L2_DL_ESTABLISH, arg);
l21336drivers/isdn/teles/isdnl2.cFsmEvent(&st->l2.l2m, EV_L2_DL_RELEASE, arg);
l21339drivers/isdn/teles/isdnl2.cFsmEvent(&st->l2.l2m, EV_L2_MDL_NOTEIPROC, NULL);
l21350drivers/isdn/teles/isdnl2.cFsmEvent(&st->l2.l2m, EV_L2_MDL_ASSIGN, arg);
l21358drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t200_timer, 15);
l21359drivers/isdn/teles/isdnl2.cFsmDelTimer(&st->l2.t203_timer, 16);
l21369drivers/isdn/teles/isdnl2.csprintf(str, "%s %s %s\n", tm, st->l2.debug_id, s);
l21382drivers/isdn/teles/isdnl2.cst->l2.uihsize = l2headersize(&st->l2, !0);
l21383drivers/isdn/teles/isdnl2.cst->l2.ihsize = l2headersize(&st->l2, 0);
l21384drivers/isdn/teles/isdnl2.cBufQueueInit(&(st->l2.i_queue));
l21385drivers/isdn/teles/isdnl2.cst->l2.rejexp = 0;
l21386drivers/isdn/teles/isdnl2.cst->l2.debug = 1;
l21388drivers/isdn/teles/isdnl2.cst->l2.l2m.fsm = &l2fsm;
l21389drivers/isdn/teles/isdnl2.cst->l2.l2m.state = ST_L2_1;
l21390drivers/isdn/teles/isdnl2.cst->l2.l2m.debug = 0;
l21391drivers/isdn/teles/isdnl2.cst->l2.l2m.userdata = st;
l21392drivers/isdn/teles/isdnl2.cst->l2.l2m.printdebug = l2m_debug;
l21393drivers/isdn/teles/isdnl2.cstrcpy(st->l2.debug_id, debug_id);
l21395drivers/isdn/teles/isdnl2.cFsmInitTimer(&st->l2.l2m, &st->l2.t200_timer);
l21396drivers/isdn/teles/isdnl2.cFsmInitTimer(&st->l2.l2m, &st->l2.t203_timer);
l21397drivers/isdn/teles/isdnl2.cst->l2.t200_running = 0;
l21416drivers/isdn/teles/isdnl2.cst->l2.l2l1(st, PH_DATA, ibh);
l21425drivers/isdn/teles/isdnl2.cst->l2.phdata_up = trans_acceptph;
l21426drivers/isdn/teles/isdnl2.cst->l2.service_down = (void *) transdown;
l21427drivers/isdn/teles/isdnl2.cst->l2.ihsize = 0;
l21428drivers/isdn/teles/isdnl2.cst->l2.debug = 0;
l233drivers/isdn/teles/isdnl3.cp += st->l2.ihsize;
l234drivers/isdn/teles/isdnl3.csize = st->l2.ihsize;
l274drivers/isdn/teles/isdnl3.cp += st->l2.ihsize;
l2146drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2194drivers/isdn/teles/isdnl3.cp += st->l2.uihsize;
l2202drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2210drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x01, 6))) {
l2219drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, 0x04, 0))) {
l2251drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2258drivers/isdn/teles/isdnl3.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2321drivers/isdn/teles/isdnl3.cp += st->l2.ihsize;
l2322drivers/isdn/teles/isdnl3.csize = st->l2.ihsize;
l2416drivers/isdn/teles/isdnl3.cptr += st->l2.ihsize;
l2417drivers/isdn/teles/isdnl3.csize = ibh->datasize - st->l2.ihsize;
l2455drivers/isdn/teles/isdnl3.cptr += st->l2.uihsize;
l2456drivers/isdn/teles/isdnl3.csize = ibh->datasize - st->l2.uihsize;
l2533drivers/isdn/teles/isdnl3.cst->l2.l2l3 = l3up;
l232drivers/isdn/teles/l3_1TR6.cp += st->l2.ihsize;
l257drivers/isdn/teles/l3_1TR6.cp += st->l2.ihsize;
l2109drivers/isdn/teles/l3_1TR6.cp += st->l2.uihsize;
l2117drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2125drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize, WE6_serviceInd, 6))) {
l2132drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2139drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.uihsize, ibh->datasize - st->l2.uihsize,
l2164drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2185drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2207drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2232drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2329drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2344drivers/isdn/teles/l3_1TR6.cif ((p = findie(p + st->l2.ihsize, ibh->datasize - st->l2.ihsize,
l2424drivers/isdn/teles/l3_1TR6.cp += st->l2.ihsize;
l2632drivers/isdn/teles/q931.cint             l, l2;
l2645drivers/isdn/teles/q931.cdp += sprintf(dp, "   octet 5 %d\n", l2 = *p++ & 0x7f);
l2648drivers/isdn/teles/q931.cwhile (l2--) {
l213drivers/isdn/teles/tei.cif (ptr->l2.ces == ces)
l229drivers/isdn/teles/tei.cif (ptr->l2.tei == tei)
l245drivers/isdn/teles/tei.cif (st->l2.debug)
l255drivers/isdn/teles/tei.cbp += st->l2.uihsize;
l287drivers/isdn/teles/tei.cif ((ptr->l2.tei & 0x7f) != 0x7f) {
l293drivers/isdn/teles/tei.cbp[1] = ptr->l2.ces >> 8;
l294drivers/isdn/teles/tei.cbp[2] = ptr->l2.ces & 0xff;
l296drivers/isdn/teles/tei.cbp[4] = (ptr->l2.tei << 1) | 1;
l2108drivers/isdn/teles/tei.cprintk(KERN_DEBUG "ces is %d\n", otsp->l2.ces);
l2114drivers/isdn/teles/tei.cbp[1] = otsp->l2.ces >> 8;
l2115drivers/isdn/teles/tei.cbp[2] = otsp->l2.ces & 0xff;
l2117drivers/isdn/teles/tei.cbp[4] = (otsp->l2.tei << 1) | 1;
l2159drivers/isdn/teles/tei.cst->l2.l2tei = tei_l2tei;
l2181drivers/isdn/teles/tei.cst->l2.extended = !0;
l2182drivers/isdn/teles/tei.cst->l2.laptype = LAPD;
l2183drivers/isdn/teles/tei.cst->l2.window = 1;
l2184drivers/isdn/teles/tei.cst->l2.orig = !0;
l2191drivers/isdn/teles/tei.cst->l2.t200 = 500;  /* 500 milliseconds */
l2192drivers/isdn/teles/tei.cst->l2.n200 = 4;  /* try 4 times */
l2194drivers/isdn/teles/tei.cst->l2.sap = 63;
l2195drivers/isdn/teles/tei.cst->l2.tei = 127;
l2199drivers/isdn/teles/tei.cst->l2.debug = 0;
l2204drivers/isdn/teles/tei.cst->l2.l2l3 = (void *) tei_handler;
l2206drivers/isdn/teles/tei.cst->l2.l2man = tei_man;
l2288drivers/isdn/teles/teles.hstruct Layer2   l2;
l226include/asm-sparc/winmacro.hstd  %l2, [%reg + RW_L2]; \
l237include/asm-sparc/winmacro.hldd  [%reg + RW_L2], %l2; \
l2287lib/string.cint l1, l2;
l2289lib/string.cl2 = strlen(s2);
l2290lib/string.cif (!l2)
l2293lib/string.cwhile (l1 >= l2) {
l2295lib/string.cif (!memcmp(s1,s2,l2))