Lines Matching refs:flag

111 	test_and_set_bit(FLG_PEER_BUSY, &l2->flag);  in set_peer_busy()
113 test_and_set_bit(FLG_L2BLOCK, &l2->flag); in set_peer_busy()
118 if (test_and_clear_bit(FLG_PEER_BUSY, &l2->flag)) in clear_peer_busy()
119 test_and_clear_bit(FLG_L2BLOCK, &l2->flag); in clear_peer_busy()
166 if(test_bit(FLG_MOD128, &st->l2.flag)) in cansend()
170 return ((p1 < st->l2.window) && !test_bit(FLG_PEER_BUSY, &st->l2.flag)); in cansend()
176 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in clear_exception()
177 test_and_clear_bit(FLG_REJEXC, &l2->flag); in clear_exception()
178 test_and_clear_bit(FLG_OWN_BUSY, &l2->flag); in clear_exception()
185 return (((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
186 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1)); in l2headersize()
192 return (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2addrsize()
201 if (test_bit(FLG_LAPD, &l2->flag)) { in sethdraddr()
206 if (test_bit(FLG_ORIG, &l2->flag)) in sethdraddr()
220 if (test_bit(FLG_LAPB, &st->l2.flag)) in enqueue_super()
254 if (test_bit(FLG_MOD128, &st->l2.flag)) in IsRR()
265 if (!test_bit(FLG_MOD128, &st->l2.flag)) in IsSFrame()
275 return (test_bit(FLG_MOD128, &st->l2.flag) ? d == SABME : d == SABM); in IsSABME()
281 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == REJ : (data[0] & 0xf) == REJ); in IsREJ()
293 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == RNR : (data[0] & 0xf) == RNR); in IsRNR()
299 int i = l2addrsize(&st->l2) + (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1); in iframe_error()
302 if (test_bit(FLG_ORIG, &st->l2.flag)) in iframe_error()
323 (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1)) in super_error()
333 if (test_bit(FLG_ORIG, &st->l2.flag)) in unnum_error()
349 if (test_bit(FLG_ORIG, &st->l2.flag)) in UI_error()
368 if (test_bit(FLG_ORIG, &st->l2.flag)) in FRMR_error()
374 if (test_bit(FLG_MOD128, &st->l2.flag)) { in FRMR_error()
397 if(test_bit(FLG_MOD128, &l2->flag)) in legalnr()
411 if(test_bit(FLG_MOD128, &l2->flag)) in setva()
470 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); in start_t200()
477 test_and_set_bit(FLG_T200_RUN, &st->l2.flag); in restart_t200()
483 if(test_and_clear_bit(FLG_T200_RUN, &st->l2.flag)) in stop_t200()
492 if(test_and_clear_bit(FLG_PEND_REL, &st->l2.flag)) in st5_dl_release_l2l3()
503 if (test_bit(FLG_LAPB, &st->l2.flag)) in lapb_dl_release_l2l3()
516 cmd = (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) | 0x10; in establishlink()
520 test_and_clear_bit(FLG_PEND_REL, &st->l2.flag); in establishlink()
548 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_mdl_error_dm()
564 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_st8_mdl_error_dm()
648 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_establish()
657 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_discard_i_setl3()
658 test_and_clear_bit(FLG_PEND_REL, &st->l2.flag); in l2_discard_i_setl3()
668 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_l3_reestablish()
684 test_and_set_bit(FLG_PEND_REL, &st->l2.flag); in l2_pend_rel()
803 if (test_and_clear_bit(FLG_PEND_REL, &st->l2.flag)) in l2_connected()
806 if (test_and_clear_bit(FLG_L3_INIT, &st->l2.flag)) { in l2_connected()
854 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_reestablish()
866 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) in l2_st5_dm_release()
868 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_st5_dm_release()
898 if (test_bit(FLG_MOD128, &l2->flag)) { in enquiry_cr()
914 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) in enquiry_response()
918 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); in enquiry_response()
924 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) in transmit_enquiry()
928 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); in transmit_enquiry()
940 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in nrerrorrecovery()
952 if(test_bit(FLG_MOD128, &l2->flag)) { in invoke_retransmission()
960 if (test_bit(FLG_LAPB, &l2->flag)) in invoke_retransmission()
979 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st7_got_super()
991 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st7_got_super()
1036 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_i_if_reest()
1038 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) in l2_feed_i_if_reest()
1050 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_i_pull()
1062 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_iqueue()
1077 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_got_iframe()
1086 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { in l2_got_iframe()
1091 if(test_bit(FLG_MOD128, &l2->flag)) in l2_got_iframe()
1095 test_and_clear_bit(FLG_REJEXC, &l2->flag); in l2_got_iframe()
1100 test_and_set_bit(FLG_ACK_PEND, &l2->flag); in l2_got_iframe()
1106 if (test_and_set_bit(FLG_REJEXC, &l2->flag)) { in l2_got_iframe()
1111 test_and_clear_bit(FLG_ACK_PEND, &l2->flag); in l2_got_iframe()
1116 if (!test_bit(FLG_PEER_BUSY, &st->l2.flag) && (fi->state == ST_L2_7)) { in l2_got_iframe()
1132 if (test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag)) in l2_got_iframe()
1145 test_and_set_bit(FLG_L3_INIT, &st->l2.flag); in l2_got_tei()
1157 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st5_tout_200()
1158 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st5_tout_200()
1162 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); in l2_st5_tout_200()
1165 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_st5_tout_200()
1171 send_uframe(st, (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) in l2_st5_tout_200()
1181 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st6_tout_200()
1182 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st6_tout_200()
1186 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); in l2_st6_tout_200()
1202 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st7_tout_200()
1203 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st7_tout_200()
1207 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); in l2_st7_tout_200()
1220 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st8_tout_200()
1221 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st8_tout_200()
1225 test_and_clear_bit(FLG_T200_RUN, &st->l2.flag); in l2_st8_tout_200()
1229 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_st8_tout_200()
1241 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st7_tout_203()
1242 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st7_tout_203()
1271 if(test_bit(FLG_MOD128, &l2->flag)) in l2_pull_iqueue()
1285 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_pull_iqueue()
1308 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); in l2_pull_iqueue()
1309 if (!test_and_set_bit(FLG_T200_RUN, &st->l2.flag)) { in l2_pull_iqueue()
1327 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st8_got_super()
1338 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st8_got_super()
1385 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_got_FRMR()
1459 if (test_and_clear_bit(FLG_ESTAB_PEND, &st->l2.flag)) in l2_st14_persistant_da()
1506 if(!test_and_set_bit(FLG_OWN_BUSY, &st->l2.flag)) { in l2_set_own_busy()
1508 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); in l2_set_own_busy()
1517 if(!test_and_clear_bit(FLG_OWN_BUSY, &st->l2.flag)) { in l2_clear_own_busy()
1519 test_and_clear_bit(FLG_ACK_PEND, &st->l2.flag); in l2_clear_own_busy()
1538 test_and_clear_bit(FLG_L3_INIT, &st->l2.flag); in l2_frame_error_reest()
1695 test_and_set_bit(FLG_DCHAN_BUSY, &st->l2.flag); in isdnl2_l1l2()
1698 test_and_clear_bit(FLG_DCHAN_BUSY, &st->l2.flag); in isdnl2_l1l2()
1702 test_and_set_bit(FLG_L1_ACTIV, &st->l2.flag); in isdnl2_l1l2()
1703 if (test_and_clear_bit(FLG_ESTAB_PEND, &st->l2.flag)) in isdnl2_l1l2()
1708 test_and_clear_bit(FLG_L1_ACTIV, &st->l2.flag); in isdnl2_l1l2()
1732 if (test_bit(FLG_L1_ACTIV, &st->l2.flag)) { in isdnl2_l3l2()
1733 if (test_bit(FLG_LAPD, &st->l2.flag) || in isdnl2_l3l2()
1734 test_bit(FLG_ORIG, &st->l2.flag)) { in isdnl2_l3l2()
1738 if (test_bit(FLG_LAPD, &st->l2.flag) || in isdnl2_l3l2()
1739 test_bit(FLG_ORIG, &st->l2.flag)) { in isdnl2_l3l2()
1740 test_and_set_bit(FLG_ESTAB_PEND, &st->l2.flag); in isdnl2_l3l2()
1746 if (test_bit(FLG_LAPB, &st->l2.flag)) { in isdnl2_l3l2()
1796 if (test_bit(FLG_LAPB, &st->l2.flag)) in setstack_isdnl2()