Lines Matching refs:l1

146 	struct IsdnCardState *cs = st->l1.hardware;  in l1m_debug()
162 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) in L1activated()
163 st->l1.l1l2(st, PH_ACTIVATE | CONFIRM, NULL); in L1activated()
165 st->l1.l1l2(st, PH_ACTIVATE | INDICATION, NULL); in L1activated()
178 st->l1.l1l2(st, PH_PAUSE | CONFIRM, NULL); in L1deactivated()
179 st->l1.l1l2(st, PH_DEACTIVATE | INDICATION, NULL); in L1deactivated()
195 if (test_and_clear_bit(FLG_L1_PULL_REQ, &stptr->l1.Flags)) { in DChannel_proc_xmt()
196 stptr->l1.l1l2(stptr, PH_PULL | CONFIRM, NULL); in DChannel_proc_xmt()
211 if (test_bit(FLG_L1_ACTTIMER, &stptr->l1.Flags)) in DChannel_proc_rcv()
212 FsmEvent(&stptr->l1.l1m, EV_TIMER_ACT, NULL); in DChannel_proc_rcv()
239 stptr->l1.l1l2(stptr, PH_DATA | INDICATION, nskb); in DChannel_proc_rcv()
247 stptr->l1.l1tei(stptr, PH_DATA | INDICATION, nskb); in DChannel_proc_rcv()
258 stptr->l1.l1l2(stptr, PH_DATA | INDICATION, skb); in DChannel_proc_rcv()
280 if (test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags)) in BChannel_proc_xmt()
281 st->l1.l1l2(st, PH_PULL | CONFIRM, NULL); in BChannel_proc_xmt()
295 if (bcs->st->l1.l1m.state == ST_L1_WAIT_ACT) { in BChannel_proc_rcv()
296 FsmDelTimer(&bcs->st->l1.timer, 4); in BChannel_proc_rcv()
297 FsmEvent(&bcs->st->l1.l1m, EV_TIMER_ACT, NULL); in BChannel_proc_rcv()
300 bcs->st->l1.l1l2(bcs->st, PH_DATA | INDICATION, skb); in BChannel_proc_rcv()
347 FsmDelTimer(&st->l1.timer, 0); in HiSax_rmlist()
469 if (test_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) in l1_deact_cnf()
470 st->l1.l1hw(st, HW_ENABLE | REQUEST, NULL); in l1_deact_cnf()
479 FsmRestartTimer(&st->l1.timer, 550, EV_TIMER_DEACT, NULL, 2); in l1_deact_req_s()
480 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); in l1_deact_req_s()
488 if (test_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) { in l1_power_up_s()
490 st->l1.l1hw(st, HW_INFO3 | REQUEST, NULL); in l1_power_up_s()
491 FsmRestartTimer(&st->l1.timer, TIMER3_VALUE, EV_TIMER3, NULL, 2); in l1_power_up_s()
492 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_power_up_s()
515 if (test_bit(FLG_L1_UINT, &st->l1.Flags)) in l1_info2_ind()
520 st->l1.l1hw(st, HW_INFO3 | REQUEST, NULL); in l1_info2_ind()
529 if (test_bit(FLG_L1_UINT, &st->l1.Flags)) in l1_info4_ind()
534 st->l1.l1hw(st, HW_INFO3 | REQUEST, NULL); in l1_info4_ind()
535 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags)) in l1_info4_ind()
536 FsmDelTimer(&st->l1.timer, 4); in l1_info4_ind()
537 if (!test_bit(FLG_L1_ACTIVATED, &st->l1.Flags)) { in l1_info4_ind()
538 if (test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags)) in l1_info4_ind()
539 FsmDelTimer(&st->l1.timer, 3); in l1_info4_ind()
540 FsmRestartTimer(&st->l1.timer, 110, EV_TIMER_ACT, NULL, 2); in l1_info4_ind()
541 test_and_set_bit(FLG_L1_ACTTIMER, &st->l1.Flags); in l1_info4_ind()
550 test_and_clear_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_timer3()
551 if (test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) in l1_timer3()
552 L1deactivated(st->l1.hardware); in l1_timer3()
555 if (!test_bit(FLG_L1_UINT, &st->l1.Flags)) in l1_timer3()
557 if (st->l1.l1m.state != ST_L1_F6) { in l1_timer3()
559 st->l1.l1hw(st, HW_ENABLE | REQUEST, NULL); in l1_timer3()
568 test_and_clear_bit(FLG_L1_ACTTIMER, &st->l1.Flags); in l1_timer_act()
569 test_and_set_bit(FLG_L1_ACTIVATED, &st->l1.Flags); in l1_timer_act()
570 L1activated(st->l1.hardware); in l1_timer_act()
578 test_and_clear_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); in l1_timer_deact()
579 test_and_clear_bit(FLG_L1_ACTIVATED, &st->l1.Flags); in l1_timer_deact()
580 L1deactivated(st->l1.hardware); in l1_timer_deact()
581 st->l1.l1hw(st, HW_DEACTIVATE | RESPONSE, NULL); in l1_timer_deact()
589 st->l1.l1hw(st, HW_RESET | REQUEST, NULL); in l1_activate_s()
597 if ((!test_bit(FLG_L1_DEACTTIMER, &st->l1.Flags)) && (!test_bit(FLG_L1_T3RUN, &st->l1.Flags))) { in l1_activate_no()
598 test_and_clear_bit(FLG_L1_ACTIVATING, &st->l1.Flags); in l1_activate_no()
599 L1deactivated(st->l1.hardware); in l1_activate_no()
658 FsmRestartTimer(&st->l1.timer, 550, EV_TIMER_DEACT, NULL, 2); in l1_deact_req_u()
659 test_and_set_bit(FLG_L1_DEACTTIMER, &st->l1.Flags); in l1_deact_req_u()
660 st->l1.l1hw(st, HW_ENABLE | REQUEST, NULL); in l1_deact_req_u()
668 FsmRestartTimer(&st->l1.timer, TIMER3_VALUE, EV_TIMER3, NULL, 2); in l1_power_up_u()
669 test_and_set_bit(FLG_L1_T3RUN, &st->l1.Flags); in l1_power_up_u()
683 st->l1.l1hw(st, HW_INFO1 | REQUEST, NULL); in l1_activate_u()
716 FsmRestartTimer(&st->l1.timer, st->l1.delay, EV_TIMER_ACT, NULL, 2); in l1b_activate()
725 FsmRestartTimer(&st->l1.timer, 10, EV_TIMER_DEACT, NULL, 2); in l1b_deactivate()
734 st->l1.l1l2(st, PH_ACTIVATE | CONFIRM, NULL); in l1b_timer_act()
803 struct IsdnCardState *cs = (struct IsdnCardState *) st->l1.hardware; in dch_l2l1()
809 st->l1.l1hw(st, pr, arg); in dch_l2l1()
814 st->l1.l1m.fsm->strState[st->l1.l1m.state]); in dch_l2l1()
815 if (test_bit(FLG_L1_ACTIVATED, &st->l1.Flags)) in dch_l2l1()
816 st->l1.l1l2(st, PH_ACTIVATE | CONFIRM, NULL); in dch_l2l1()
818 test_and_set_bit(FLG_L1_ACTIVATING, &st->l1.Flags); in dch_l2l1()
819 FsmEvent(&st->l1.l1m, EV_PH_ACTIVATE, arg); in dch_l2l1()
829 st->l1.l1hw(st, HW_TESTLOOP | REQUEST, arg); in dch_l2l1()
847 FsmEvent(&st->l1.l1m, EV_RESET_IND, arg); in l1_msg()
850 FsmEvent(&st->l1.l1m, EV_DEACT_CNF, arg); in l1_msg()
853 FsmEvent(&st->l1.l1m, EV_DEACT_IND, arg); in l1_msg()
856 FsmEvent(&st->l1.l1m, EV_POWER_UP, arg); in l1_msg()
859 FsmEvent(&st->l1.l1m, EV_RSYNC_IND, arg); in l1_msg()
862 FsmEvent(&st->l1.l1m, EV_INFO2_IND, arg); in l1_msg()
866 FsmEvent(&st->l1.l1m, EV_INFO4_IND, arg); in l1_msg()
881 FsmEvent(&st->l1.l1m, EV_PH_ACTIVATE, NULL); in l1_msg_b()
884 FsmEvent(&st->l1.l1m, EV_PH_DEACTIVATE, NULL); in l1_msg_b()
892 st->l1.hardware = cs; in setstack_HiSax()
894 st->l1.l1m.fsm = &l1fsm_s; in setstack_HiSax()
895 st->l1.l1m.state = ST_L1_F3; in setstack_HiSax()
896 st->l1.Flags = 0; in setstack_HiSax()
899 st->l1.l1m.fsm = &l1fsm_u; in setstack_HiSax()
900 st->l1.l1m.state = ST_L1_RESET; in setstack_HiSax()
901 st->l1.Flags = FLG_L1_UINT; in setstack_HiSax()
904 st->l1.l1m.debug = cs->debug; in setstack_HiSax()
905 st->l1.l1m.userdata = st; in setstack_HiSax()
906 st->l1.l1m.userint = 0; in setstack_HiSax()
907 st->l1.l1m.printdebug = l1m_debug; in setstack_HiSax()
908 FsmInitTimer(&st->l1.l1m, &st->l1.timer); in setstack_HiSax()
911 st->l1.stlistp = &(cs->stlist); in setstack_HiSax()
920 struct IsdnCardState *cs = st->l1.hardware; in setstack_l1_B()
922 st->l1.l1m.fsm = &l1fsm_b; in setstack_l1_B()
923 st->l1.l1m.state = ST_L1_NULL; in setstack_l1_B()
924 st->l1.l1m.debug = cs->debug; in setstack_l1_B()
925 st->l1.l1m.userdata = st; in setstack_l1_B()
926 st->l1.l1m.userint = 0; in setstack_l1_B()
927 st->l1.l1m.printdebug = l1m_debug; in setstack_l1_B()
928 st->l1.Flags = 0; in setstack_l1_B()
929 FsmInitTimer(&st->l1.l1m, &st->l1.timer); in setstack_l1_B()