Lines Matching refs:test_bit
113 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
114 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize()
120 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize()
241 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
308 if (test_bit(FLG_LAPD, &l2->flag) && in l2mgr()
309 !test_bit(FLG_FIXED_TEI, &l2->flag)) { in l2mgr()
374 if (test_bit(FLG_MOD128, &l2->flag)) in cansend()
378 return (p1 < l2->window) && !test_bit(FLG_PEER_BUSY, &l2->flag); in cansend()
396 if (test_bit(FLG_LAPD, &l2->flag)) { in sethdraddr()
397 if (test_bit(FLG_LAPD_NET, &l2->flag)) in sethdraddr()
403 if (test_bit(FLG_ORIG, &l2->flag)) in sethdraddr()
456 if (test_bit(FLG_MOD128, &l2->flag)) in IsRR()
467 if (!test_bit(FLG_MOD128, &l2->flag)) in IsSFrame()
477 return test_bit(FLG_MOD128, &l2->flag) ? d == SABME : d == SABM; in IsSABME()
483 return test_bit(FLG_MOD128, &l2->flag) ? in IsREJ()
496 return test_bit(FLG_MOD128, &l2->flag) ? in IsRNR()
506 i = l2addrsize(l2) + (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1); in iframe_error()
507 if (test_bit(FLG_ORIG, &l2->flag)) in iframe_error()
522 (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1)) in super_error()
531 if (test_bit(FLG_ORIG, &l2->flag)) in unnum_error()
544 if (test_bit(FLG_ORIG, &l2->flag)) in UI_error()
560 if (test_bit(FLG_ORIG, &l2->flag)) in FRMR_error()
564 if (test_bit(FLG_MOD128, &l2->flag)) { in FRMR_error()
585 if (test_bit(FLG_MOD128, &l2->flag)) in legalnr()
598 if (test_bit(FLG_MOD128, &l2->flag)) in setva()
691 if (test_bit(FLG_LAPB, &l2->flag)) in lapb_dl_release_l2l3()
704 cmd = (test_bit(FLG_MOD128, &l2->flag) ? SABME : SABM) | 0x10; in establishlink()
800 if (test_bit(FLG_LAPD_NET, &l2->flag)) in tx_ui()
1072 if (!test_bit(FLG_L3_INIT, &l2->flag)) in l2_st5_dm_release()
1074 if (test_bit(FLG_LAPB, &l2->flag)) in l2_st5_dm_release()
1107 if (test_bit(FLG_MOD128, &l2->flag)) { in enquiry_cr()
1125 if (test_bit(FLG_OWN_BUSY, &l2->flag)) in enquiry_response()
1135 if (test_bit(FLG_OWN_BUSY, &l2->flag)) in transmit_enquiry()
1162 if (test_bit(FLG_MOD128, &l2->flag)) { in invoke_retransmission()
1191 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st7_got_super()
1203 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st7_got_super()
1249 if (!test_bit(FLG_L3_INIT, &l2->flag)) in l2_feed_i_if_reest()
1283 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_got_iframe()
1292 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { in l2_got_iframe()
1299 if (test_bit(FLG_MOD128, &l2->flag)) in l2_got_iframe()
1323 if (!test_bit(FLG_PEER_BUSY, &l2->flag) && in l2_got_iframe()
1367 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st5_tout_200()
1368 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st5_tout_200()
1375 if (test_bit(FLG_LAPB, &l2->flag)) in l2_st5_tout_200()
1384 send_uframe(l2, NULL, (test_bit(FLG_MOD128, &l2->flag) ? in l2_st5_tout_200()
1394 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st6_tout_200()
1395 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st6_tout_200()
1417 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st7_tout_200()
1418 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st7_tout_200()
1434 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st8_tout_200()
1435 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st8_tout_200()
1455 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st7_tout_203()
1456 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st7_tout_203()
1480 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_pull_iqueue()
1492 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_pull_iqueue()
1524 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st8_got_super()
1535 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st8_got_super()
1869 if (test_bit(FLG_LAPD, &l2->flag)) { /* Maybe not needed */ in ph_data_indication()
1991 if (test_bit(FLG_LAPB, &l2->flag)) in l2_send()
1993 if (test_bit(FLG_L1_ACTIV, &l2->flag)) { in l2_send()
1994 if (test_bit(FLG_LAPD, &l2->flag) || in l2_send()
1995 test_bit(FLG_ORIG, &l2->flag)) in l2_send()
1999 if (test_bit(FLG_LAPD, &l2->flag) || in l2_send()
2000 test_bit(FLG_ORIG, &l2->flag)) { in l2_send()
2009 if (test_bit(FLG_LAPB, &l2->flag)) in l2_send()
2070 if (test_bit(FLG_LAPD, &l2->flag)) { in release_l2()
2091 if (test_bit(FLG_LAPD, &l2->flag)) { in l2_ctrl()
2132 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2136 if (test_bit(OPTION_L2_PTP, &options)) in create_l2()
2138 if (test_bit(OPTION_L2_FIXEDTEI, &options)) in create_l2()
2144 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2157 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2161 if (test_bit(OPTION_L2_PTP, &options)) in create_l2()
2163 if (test_bit(OPTION_L2_FIXEDTEI, &options)) in create_l2()
2169 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2198 if (test_bit(FLG_LAPB, &l2->flag) || in create_l2()
2199 test_bit(FLG_FIXED_TEI, &l2->flag) || in create_l2()
2200 test_bit(FLG_LAPD_NET, &l2->flag)) in create_l2()