Lines Matching refs:test_bit

167 	if (test_bit(FLG_MOD128, &st->l2.flag))  in cansend()
171 return ((p1 < st->l2.window) && !test_bit(FLG_PEER_BUSY, &st->l2.flag)); in cansend()
186 return (((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
187 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1)); in l2headersize()
193 return (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2addrsize()
202 if (test_bit(FLG_LAPD, &l2->flag)) { in sethdraddr()
207 if (test_bit(FLG_ORIG, &l2->flag)) in sethdraddr()
221 if (test_bit(FLG_LAPB, &st->l2.flag)) in enqueue_super()
257 if (!test_bit(FLG_MOD128, &st->l2.flag)) in IsSFrame()
267 return (test_bit(FLG_MOD128, &st->l2.flag) ? d == SABME : d == SABM); in IsSABME()
273 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == REJ : (data[0] & 0xf) == REJ); in IsREJ()
285 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == RNR : (data[0] & 0xf) == RNR); in IsRNR()
291 int i = l2addrsize(&st->l2) + (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1); in iframe_error()
294 if (test_bit(FLG_ORIG, &st->l2.flag)) in iframe_error()
315 (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1)) in super_error()
325 if (test_bit(FLG_ORIG, &st->l2.flag)) in unnum_error()
341 if (test_bit(FLG_ORIG, &st->l2.flag)) in UI_error()
360 if (test_bit(FLG_ORIG, &st->l2.flag)) in FRMR_error()
366 if (test_bit(FLG_MOD128, &st->l2.flag)) { in FRMR_error()
389 if (test_bit(FLG_MOD128, &l2->flag)) in legalnr()
405 if (test_bit(FLG_MOD128, &l2->flag)) in setva()
416 if (test_bit(FLG_LLI_L2WAKEUP, &st->lli.flag) && (len >= 0)) in setva()
493 if (test_bit(FLG_LAPB, &st->l2.flag)) in lapb_dl_release_l2l3()
506 cmd = (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) | 0x10; in establishlink()
856 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) in l2_st5_dm_release()
858 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_st5_dm_release()
888 if (test_bit(FLG_MOD128, &l2->flag)) { in enquiry_cr()
904 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) in enquiry_response()
914 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) in transmit_enquiry()
944 if (test_bit(FLG_MOD128, &l2->flag)) { in invoke_retransmission()
952 if (test_bit(FLG_LAPB, &l2->flag)) in invoke_retransmission()
974 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st7_got_super()
986 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st7_got_super()
1031 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_i_if_reest()
1033 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) in l2_feed_i_if_reest()
1045 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_i_pull()
1057 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_feed_iqueue()
1072 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_got_iframe()
1081 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { in l2_got_iframe()
1086 if (test_bit(FLG_MOD128, &l2->flag)) in l2_got_iframe()
1111 if (!test_bit(FLG_PEER_BUSY, &st->l2.flag) && (fi->state == ST_L2_7)) { in l2_got_iframe()
1152 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st5_tout_200()
1153 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st5_tout_200()
1160 if (test_bit(FLG_LAPB, &st->l2.flag)) in l2_st5_tout_200()
1166 send_uframe(st, (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) in l2_st5_tout_200()
1176 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st6_tout_200()
1177 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st6_tout_200()
1197 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st7_tout_200()
1198 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st7_tout_200()
1215 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st8_tout_200()
1216 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { in l2_st8_tout_200()
1236 if (test_bit(FLG_LAPD, &st->l2.flag) && in l2_st7_tout_203()
1237 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()
1315 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st8_got_super()
1326 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st8_got_super()
1718 if (test_bit(FLG_L1_ACTIV, &st->l2.flag)) { in isdnl2_l3l2()
1719 if (test_bit(FLG_LAPD, &st->l2.flag) || in isdnl2_l3l2()
1720 test_bit(FLG_ORIG, &st->l2.flag)) { in isdnl2_l3l2()
1724 if (test_bit(FLG_LAPD, &st->l2.flag) || in isdnl2_l3l2()
1725 test_bit(FLG_ORIG, &st->l2.flag)) { in isdnl2_l3l2()
1732 if (test_bit(FLG_LAPB, &st->l2.flag)) { in isdnl2_l3l2()
1783 if (test_bit(FLG_LAPB, &st->l2.flag)) in setstack_isdnl2()