• Home
  • Raw
  • Download

Lines Matching refs:st

145 	struct PStack *st = fi->userdata;  in l1m_debug()  local
146 struct IsdnCardState *cs = st->l1.hardware; in l1m_debug()
158 struct PStack *st; in L1activated() local
160 st = cs->stlist; in L1activated()
161 while (st) { in L1activated()
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()
166 st = st->next; in L1activated()
173 struct PStack *st; in L1deactivated() local
175 st = cs->stlist; in L1deactivated()
176 while (st) { in L1deactivated()
178 st->l1.l1l2(st, PH_PAUSE | CONFIRM, NULL); in L1deactivated()
179 st->l1.l1l2(st, PH_DEACTIVATE | INDICATION, NULL); in L1deactivated()
180 st = st->next; in L1deactivated()
273 struct PStack *st = bcs->st; in BChannel_proc_xmt() local
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()
285 st->l2.l2l1(st, PH_DEACTIVATE | 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()
315 lli_writewakeup(bcs->st, ack); in BChannel_proc_ack()
335 struct PStack *st) in HiSax_addlist() argument
337 st->next = cs->stlist; in HiSax_addlist()
338 cs->stlist = st; in HiSax_addlist()
343 struct PStack *st) in HiSax_rmlist() argument
347 FsmDelTimer(&st->l1.timer, 0); in HiSax_rmlist()
348 if (cs->stlist == st) in HiSax_rmlist()
349 cs->stlist = st->next; in HiSax_rmlist()
353 if (p->next == st) { in HiSax_rmlist()
354 p->next = st->next; in HiSax_rmlist()
466 struct PStack *st = fi->userdata; in l1_deact_cnf() local
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()
476 struct PStack *st = fi->userdata; in l1_deact_req_s() local
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()
486 struct PStack *st = fi->userdata; in l1_power_up_s() local
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()
512 struct PStack *st = fi->userdata; in l1_info2_ind() local
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()
526 struct PStack *st = fi->userdata; in l1_info4_ind() local
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()
548 struct PStack *st = fi->userdata; in l1_timer3() local
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()
566 struct PStack *st = fi->userdata; in l1_timer_act() local
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()
576 struct PStack *st = fi->userdata; in l1_timer_deact() local
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()
587 struct PStack *st = fi->userdata; in l1_activate_s() local
589 st->l1.l1hw(st, HW_RESET | REQUEST, NULL); in l1_activate_s()
595 struct PStack *st = fi->userdata; in l1_activate_no() local
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()
655 struct PStack *st = fi->userdata; in l1_deact_req_u() local
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()
666 struct PStack *st = fi->userdata; in l1_power_up_u() local
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()
681 struct PStack *st = fi->userdata; in l1_activate_u() local
683 st->l1.l1hw(st, HW_INFO1 | REQUEST, NULL); in l1_activate_u()
713 struct PStack *st = fi->userdata; in l1b_activate() local
716 FsmRestartTimer(&st->l1.timer, st->l1.delay, EV_TIMER_ACT, NULL, 2); in l1b_activate()
722 struct PStack *st = fi->userdata; in l1b_deactivate() local
725 FsmRestartTimer(&st->l1.timer, 10, EV_TIMER_DEACT, NULL, 2); in l1b_deactivate()
731 struct PStack *st = fi->userdata; in l1b_timer_act() local
734 st->l1.l1l2(st, PH_ACTIVATE | CONFIRM, NULL); in l1b_timer_act()
740 struct PStack *st = fi->userdata; in l1b_timer_deact() local
743 st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL); in l1b_timer_deact()
801 dch_l2l1(struct PStack *st, int pr, void *arg) in dch_l2l1() argument
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()
840 struct PStack *st; in l1_msg() local
842 st = cs->stlist; in l1_msg()
844 while (st) { in l1_msg()
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()
873 st = st->next; in l1_msg()
878 l1_msg_b(struct PStack *st, int pr, void *arg) { in l1_msg_b() argument
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()
890 setstack_HiSax(struct PStack *st, struct IsdnCardState *cs) in setstack_HiSax() argument
892 st->l1.hardware = cs; in setstack_HiSax()
893 st->protocol = cs->protocol; 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()
909 setstack_tei(st); in setstack_HiSax()
910 setstack_manager(st); in setstack_HiSax()
911 st->l1.stlistp = &(cs->stlist); in setstack_HiSax()
912 st->l2.l2l1 = dch_l2l1; in setstack_HiSax()
914 cs->setstack_d(st, cs); in setstack_HiSax()
918 setstack_l1_B(struct PStack *st) in setstack_l1_B() argument
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()