Lines Matching refs:test_bit
122 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + in l2headersize()
123 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); in l2headersize()
129 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; in l2addrsize()
250 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { in ph_data_confirm()
317 if (test_bit(FLG_LAPD, &l2->flag) && in l2mgr()
318 !test_bit(FLG_FIXED_TEI, &l2->flag)) { in l2mgr()
383 if (test_bit(FLG_MOD128, &l2->flag)) in cansend()
387 return (p1 < l2->window) && !test_bit(FLG_PEER_BUSY, &l2->flag); in cansend()
405 if (test_bit(FLG_LAPD, &l2->flag)) { in sethdraddr()
406 if (test_bit(FLG_LAPD_NET, &l2->flag)) in sethdraddr()
412 if (test_bit(FLG_ORIG, &l2->flag)) in sethdraddr()
465 if (test_bit(FLG_MOD128, &l2->flag)) in IsRR()
476 if (!test_bit(FLG_MOD128, &l2->flag)) in IsSFrame()
486 return test_bit(FLG_MOD128, &l2->flag) ? d == SABME : d == SABM; in IsSABME()
492 return test_bit(FLG_MOD128, &l2->flag) ? in IsREJ()
505 return test_bit(FLG_MOD128, &l2->flag) ? in IsRNR()
515 i = l2addrsize(l2) + (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1); in iframe_error()
516 if (test_bit(FLG_ORIG, &l2->flag)) in iframe_error()
531 (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1)) in super_error()
540 if (test_bit(FLG_ORIG, &l2->flag)) in unnum_error()
553 if (test_bit(FLG_ORIG, &l2->flag)) in UI_error()
569 if (test_bit(FLG_ORIG, &l2->flag)) in FRMR_error()
573 if (test_bit(FLG_MOD128, &l2->flag)) { in FRMR_error()
594 if (test_bit(FLG_MOD128, &l2->flag)) in legalnr()
607 if (test_bit(FLG_MOD128, &l2->flag)) in setva()
700 if (test_bit(FLG_LAPB, &l2->flag)) in lapb_dl_release_l2l3()
713 cmd = (test_bit(FLG_MOD128, &l2->flag) ? SABME : SABM) | 0x10; in establishlink()
809 if (test_bit(FLG_LAPD_NET, &l2->flag)) in tx_ui()
1082 if (!test_bit(FLG_L3_INIT, &l2->flag)) in l2_st5_dm_release()
1084 if (test_bit(FLG_LAPB, &l2->flag)) in l2_st5_dm_release()
1117 if (test_bit(FLG_MOD128, &l2->flag)) { in enquiry_cr()
1135 if (test_bit(FLG_OWN_BUSY, &l2->flag)) in enquiry_response()
1145 if (test_bit(FLG_OWN_BUSY, &l2->flag)) in transmit_enquiry()
1172 if (test_bit(FLG_MOD128, &l2->flag)) { in invoke_retransmission()
1201 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st7_got_super()
1213 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st7_got_super()
1259 if (!test_bit(FLG_L3_INIT, &l2->flag)) in l2_feed_i_if_reest()
1293 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_got_iframe()
1302 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { in l2_got_iframe()
1309 if (test_bit(FLG_MOD128, &l2->flag)) in l2_got_iframe()
1333 if (!test_bit(FLG_PEER_BUSY, &l2->flag) && in l2_got_iframe()
1377 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st5_tout_200()
1378 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st5_tout_200()
1385 if (test_bit(FLG_LAPB, &l2->flag)) in l2_st5_tout_200()
1394 send_uframe(l2, NULL, (test_bit(FLG_MOD128, &l2->flag) ? in l2_st5_tout_200()
1404 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st6_tout_200()
1405 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st6_tout_200()
1427 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st7_tout_200()
1428 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st7_tout_200()
1444 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st8_tout_200()
1445 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st8_tout_200()
1465 if (test_bit(FLG_LAPD, &l2->flag) && in l2_st7_tout_203()
1466 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { in l2_st7_tout_203()
1490 if (test_bit(FLG_MOD128, &l2->flag)) in l2_pull_iqueue()
1502 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_pull_iqueue()
1548 if (test_bit(FLG_ORIG, &l2->flag)) in l2_st8_got_super()
1559 if (test_bit(FLG_MOD128, &l2->flag)) { in l2_st8_got_super()
1895 if (test_bit(FLG_LAPD, &l2->flag)) { /* Maybe not needed */ in ph_data_indication()
2017 if (test_bit(FLG_LAPB, &l2->flag)) in l2_send()
2019 if (test_bit(FLG_L1_ACTIV, &l2->flag)) { in l2_send()
2020 if (test_bit(FLG_LAPD, &l2->flag) || in l2_send()
2021 test_bit(FLG_ORIG, &l2->flag)) in l2_send()
2025 if (test_bit(FLG_LAPD, &l2->flag) || in l2_send()
2026 test_bit(FLG_ORIG, &l2->flag)) { in l2_send()
2035 if (test_bit(FLG_LAPB, &l2->flag)) in l2_send()
2096 if (test_bit(FLG_LAPD, &l2->flag)) { in release_l2()
2117 if (test_bit(FLG_LAPD, &l2->flag)) { in l2_ctrl()
2158 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2162 if (test_bit(OPTION_L2_PTP, &options)) in create_l2()
2164 if (test_bit(OPTION_L2_FIXEDTEI, &options)) in create_l2()
2170 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2183 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2187 if (test_bit(OPTION_L2_PTP, &options)) in create_l2()
2189 if (test_bit(OPTION_L2_FIXEDTEI, &options)) in create_l2()
2195 if (test_bit(OPTION_L2_PMX, &options)) in create_l2()
2224 if (test_bit(FLG_LAPB, &l2->flag) || in create_l2()
2225 test_bit(FLG_FIXED_TEI, &l2->flag) || in create_l2()
2226 test_bit(FLG_LAPD_NET, &l2->flag)) in create_l2()