Lines Matching full:l3
76 VHiSax_putstatus(st->l1.hardware, st->l3.debug_id, fmt, args); in l3m_debug()
220 HiSax_putstatus(st->l1.hardware, "L3", "no D protocol"); in no_l3_proto()
236 struct l3_process *p = st->l3.proc; in getl3proc()
255 if (!st->l3.proc) in new_l3_process()
256 st->l3.proc = p; in new_l3_process()
258 np = st->l3.proc; in new_l3_process()
264 p->debug = st->l3.debug; in new_l3_process()
269 p->N303 = st->l3.N303; in new_l3_process()
281 np = p->st->l3.proc; in release_l3_process()
287 else if (!(p->st->l3.proc = np->next) && in release_l3_process()
291 if (skb_queue_empty(&p->st->l3.squeue)) { in release_l3_process()
295 FsmEvent(&p->st->l3.l3m, EV_RELEASE_REQ, NULL); in release_l3_process()
297 FsmEvent(&p->st->l3.l3m, EV_RELEASE_IND, NULL); in release_l3_process()
309 printk(KERN_ERR "HiSax internal L3 error CR(%d) not in list\n", p->callref); in release_l3_process()
310 l3_debug(p->st, "HiSax internal L3 error CR(%d) not in list", p->callref); in release_l3_process()
316 struct l3_process *p = st->l3.proc; in l3ml3p()
322 st->l3.l3ml3(st, pr, p); in l3ml3p()
332 st->l3.proc = NULL; in setstack_l3dc()
333 st->l3.global = NULL; in setstack_l3dc()
334 skb_queue_head_init(&st->l3.squeue); in setstack_l3dc()
335 st->l3.l3m.fsm = &l3fsm; in setstack_l3dc()
336 st->l3.l3m.state = ST_L3_LC_REL; in setstack_l3dc()
337 st->l3.l3m.debug = 1; in setstack_l3dc()
338 st->l3.l3m.userdata = st; in setstack_l3dc()
339 st->l3.l3m.userint = 0; in setstack_l3dc()
340 st->l3.l3m.printdebug = l3m_debug; in setstack_l3dc()
341 FsmInitTimer(&st->l3.l3m, &st->l3.l3m_timer); in setstack_l3dc()
342 strcpy(st->l3.debug_id, "L3DC "); in setstack_l3dc()
363 st->l3.l3ml3 = no_l3_proto; in setstack_l3dc()
368 st->l3.l3ml3 = no_l3_proto; in setstack_l3dc()
381 st->l3.l3l2(st, pr, arg); in isdnl3_trans()
387 while (st->l3.proc) in releasestack_isdnl3()
388 release_l3_process(st->l3.proc); in releasestack_isdnl3()
389 if (st->l3.global) { in releasestack_isdnl3()
390 StopAllL3Timer(st->l3.global); in releasestack_isdnl3()
391 kfree(st->l3.global); in releasestack_isdnl3()
392 st->l3.global = NULL; in releasestack_isdnl3()
394 FsmDelTimer(&st->l3.l3m_timer, 54); in releasestack_isdnl3()
395 skb_queue_purge(&st->l3.squeue); in releasestack_isdnl3()
402 st->l3.proc = NULL; in setstack_l3bc()
403 st->l3.global = NULL; in setstack_l3bc()
404 skb_queue_head_init(&st->l3.squeue); in setstack_l3bc()
405 st->l3.l3m.fsm = &l3fsm; in setstack_l3bc()
406 st->l3.l3m.state = ST_L3_LC_REL; in setstack_l3bc()
407 st->l3.l3m.debug = 1; in setstack_l3bc()
408 st->l3.l3m.userdata = st; in setstack_l3bc()
409 st->l3.l3m.userint = 0; in setstack_l3bc()
410 st->l3.l3m.printdebug = l3m_debug; in setstack_l3bc()
411 strcpy(st->l3.debug_id, "L3BC "); in setstack_l3bc()
423 st->l3.l3l2(st, DL_ESTABLISH | REQUEST, NULL); in lc_activate()
434 while ((skb = skb_dequeue(&st->l3.squeue))) { in lc_connect()
435 st->l3.l3l2(st, DL_DATA | REQUEST, skb); in lc_connect()
438 if ((!st->l3.proc) && dequeued) { in lc_connect()
439 if (st->l3.debug) in lc_connect()
441 FsmEvent(&st->l3.l3m, EV_RELEASE_REQ, NULL); in lc_connect()
453 FsmDelTimer(&st->l3.l3m_timer, 51); in lc_connected()
455 while ((skb = skb_dequeue(&st->l3.squeue))) { in lc_connected()
456 st->l3.l3l2(st, DL_DATA | REQUEST, skb); in lc_connected()
459 if ((!st->l3.proc) && dequeued) { in lc_connected()
460 if (st->l3.debug) in lc_connected()
462 FsmEvent(&st->l3.l3m, EV_RELEASE_REQ, NULL); in lc_connected()
473 FsmAddTimer(&st->l3.l3m_timer, DREL_TIMER_VALUE, EV_TIMEOUT, NULL, 50); in lc_start_delay()
485 FsmAddTimer(&st->l3.l3m_timer, DREL_TIMER_VALUE, EV_TIMEOUT, NULL, 50); in lc_start_delay_check()
494 if (st->l3.debug) in lc_release_req()
497 FsmAddTimer(&st->l3.l3m_timer, DREL_TIMER_VALUE, EV_TIMEOUT, NULL, 51); in lc_release_req()
500 st->l3.l3l2(st, DL_RELEASE | REQUEST, NULL); in lc_release_req()
509 FsmDelTimer(&st->l3.l3m_timer, 52); in lc_release_ind()
511 skb_queue_purge(&st->l3.squeue); in lc_release_ind()
521 skb_queue_purge(&st->l3.squeue); in lc_release_cnf()
550 if (st->l3.l3m.state == ST_L3_LC_ESTAB) { in l3_msg()
551 st->l3.l3l2(st, pr, arg); in l3_msg()
555 skb_queue_tail(&st->l3.squeue, skb); in l3_msg()
556 FsmEvent(&st->l3.l3m, EV_ESTABLISH_REQ, NULL); in l3_msg()
560 FsmEvent(&st->l3.l3m, EV_ESTABLISH_REQ, NULL); in l3_msg()
563 FsmEvent(&st->l3.l3m, EV_ESTABLISH_CNF, NULL); in l3_msg()
566 FsmEvent(&st->l3.l3m, EV_ESTABLISH_IND, NULL); in l3_msg()
569 FsmEvent(&st->l3.l3m, EV_RELEASE_IND, NULL); in l3_msg()
572 FsmEvent(&st->l3.l3m, EV_RELEASE_CNF, NULL); in l3_msg()
575 FsmEvent(&st->l3.l3m, EV_RELEASE_REQ, NULL); in l3_msg()