Lines Matching full:l1
94 struct layer1 *l1 = fi->userdata; in l1m_debug() local
103 printk(KERN_DEBUG "%s: %pV\n", dev_name(&l1->dch->dev.dev), &vaf); in l1m_debug()
117 struct layer1 *l1 = fi->userdata; in l1_deact_cnf() local
120 if (test_bit(FLG_L1_ACTIVATING, &l1->Flags)) in l1_deact_cnf()
121 l1->dcb(l1->dch, HW_POWERUP_REQ); in l1_deact_cnf()
127 struct layer1 *l1 = fi->userdata; in l1_deact_req_s() local
130 mISDN_FsmRestartTimer(&l1->timerX, 550, EV_TIMER_DEACT, NULL, 2); in l1_deact_req_s()
131 test_and_set_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_deact_req_s()
137 struct layer1 *l1 = fi->userdata; in l1_power_up_s() local
139 if (test_bit(FLG_L1_ACTIVATING, &l1->Flags)) { in l1_power_up_s()
141 l1->dcb(l1->dch, INFO3_P8); in l1_power_up_s()
161 struct layer1 *l1 = fi->userdata; in l1_info2_ind() local
164 l1->dcb(l1->dch, INFO3_P8); in l1_info2_ind()
170 struct layer1 *l1 = fi->userdata; in l1_info4_ind() local
173 l1->dcb(l1->dch, INFO3_P8); in l1_info4_ind()
174 if (test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags)) in l1_info4_ind()
175 mISDN_FsmDelTimer(&l1->timerX, 4); in l1_info4_ind()
176 if (!test_bit(FLG_L1_ACTIVATED, &l1->Flags)) { in l1_info4_ind()
177 if (test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags)) in l1_info4_ind()
178 mISDN_FsmDelTimer(&l1->timer3, 3); in l1_info4_ind()
179 mISDN_FsmRestartTimer(&l1->timerX, 110, EV_TIMER_ACT, NULL, 2); in l1_info4_ind()
180 test_and_set_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_info4_ind()
187 struct layer1 *l1 = fi->userdata; in l1_timer3() local
189 test_and_clear_bit(FLG_L1_T3RUN, &l1->Flags); in l1_timer3()
190 if (test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags)) { in l1_timer3()
191 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer3()
192 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer3()
193 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer3()
195 if (l1->l1m.state != ST_L1_F6) { in l1_timer3()
204 struct layer1 *l1 = fi->userdata; in l1_timer_act() local
206 test_and_clear_bit(FLG_L1_ACTTIMER, &l1->Flags); in l1_timer_act()
207 test_and_set_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_act()
208 l1->dcb(l1->dch, PH_ACTIVATE_IND); in l1_timer_act()
214 struct layer1 *l1 = fi->userdata; in l1_timer_deact() local
216 test_and_clear_bit(FLG_L1_DEACTTIMER, &l1->Flags); in l1_timer_deact()
217 test_and_clear_bit(FLG_L1_ACTIVATED, &l1->Flags); in l1_timer_deact()
218 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_timer_deact()
219 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_timer_deact()
220 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_timer_deact()
221 l1->dcb(l1->dch, HW_DEACT_REQ); in l1_timer_deact()
227 struct layer1 *l1 = fi->userdata; in l1_activate_s() local
229 mISDN_FsmRestartTimer(&l1->timer3, l1->t3_value, EV_TIMER3, NULL, 2); in l1_activate_s()
230 test_and_set_bit(FLG_L1_T3RUN, &l1->Flags); in l1_activate_s()
232 l1->dcb(l1->dch, HW_RESET_REQ); in l1_activate_s()
238 struct layer1 *l1 = fi->userdata; in l1_activate_no() local
240 if ((!test_bit(FLG_L1_DEACTTIMER, &l1->Flags)) && in l1_activate_no()
241 (!test_bit(FLG_L1_T3RUN, &l1->Flags))) { in l1_activate_no()
242 test_and_clear_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_activate_no()
243 if (test_and_clear_bit(FLG_L1_DBLOCKED, &l1->Flags)) in l1_activate_no()
244 l1->dcb(l1->dch, HW_D_NOBLOCKED); in l1_activate_no()
245 l1->dcb(l1->dch, PH_DEACTIVATE_IND); in l1_activate_no()
298 release_l1(struct layer1 *l1) { in release_l1() argument
299 mISDN_FsmDelTimer(&l1->timerX, 0); in release_l1()
300 mISDN_FsmDelTimer(&l1->timer3, 0); in release_l1()
301 if (l1->dch) in release_l1()
302 l1->dch->l1 = NULL; in release_l1()
304 kfree(l1); in release_l1()
308 l1_event(struct layer1 *l1, u_int event) in l1_event() argument
312 if (!l1) in l1_event()
316 mISDN_FsmEvent(&l1->l1m, EV_RESET_IND, NULL); in l1_event()
319 mISDN_FsmEvent(&l1->l1m, EV_DEACT_IND, NULL); in l1_event()
322 mISDN_FsmEvent(&l1->l1m, EV_POWER_UP, NULL); in l1_event()
325 mISDN_FsmEvent(&l1->l1m, EV_DEACT_CNF, NULL); in l1_event()
328 mISDN_FsmEvent(&l1->l1m, EV_ANYSIG_IND, NULL); in l1_event()
331 mISDN_FsmEvent(&l1->l1m, EV_ANYSIG_IND, NULL); in l1_event()
334 mISDN_FsmEvent(&l1->l1m, EV_INFO2_IND, NULL); in l1_event()
337 mISDN_FsmEvent(&l1->l1m, EV_INFO4_IND, NULL); in l1_event()
340 mISDN_FsmEvent(&l1->l1m, EV_INFO4_IND, NULL); in l1_event()
343 if (test_bit(FLG_L1_ACTIVATED, &l1->Flags)) in l1_event()
344 l1->dcb(l1->dch, PH_ACTIVATE_IND); in l1_event()
346 test_and_set_bit(FLG_L1_ACTIVATING, &l1->Flags); in l1_event()
347 mISDN_FsmEvent(&l1->l1m, EV_PH_ACTIVATE, NULL); in l1_event()
351 release_l1(l1); in l1_event()
361 l1->t3_value = val; in l1_event()
395 dch->l1 = nl1; in create_l1()