• Home
  • Raw
  • Download

Lines Matching refs:txseq

328 		if (bt_cb(skb)->l2cap.txseq == seq)  in l2cap_ertm_seq_in_queue()
1032 control->txseq = 0; in __unpack_enhanced_control()
1037 control->txseq = (enh & L2CAP_CTRL_TXSEQ) >> L2CAP_CTRL_TXSEQ_SHIFT; in __unpack_enhanced_control()
1056 control->txseq = 0; in __unpack_extended_control()
1061 control->txseq = (ext & L2CAP_EXT_CTRL_TXSEQ) >> L2CAP_EXT_CTRL_TXSEQ_SHIFT; in __unpack_extended_control()
1095 packed |= control->txseq << L2CAP_EXT_CTRL_TXSEQ_SHIFT; in __pack_extended_control()
1114 packed |= control->txseq << L2CAP_CTRL_TXSEQ_SHIFT; in __pack_enhanced_control()
2080 control->txseq = chan->next_tx_seq; in l2cap_streaming_send()
2091 BT_DBG("Sent txseq %u", control->txseq); in l2cap_streaming_send()
2129 control->txseq = chan->next_tx_seq; in l2cap_ertm_send()
2159 BT_DBG("Sent txseq %u", control->txseq); in l2cap_ertm_send()
2243 BT_DBG("Resent txseq %d", control.txseq); in l2cap_ertm_resend()
2275 if (bt_cb(skb)->l2cap.txseq == control->reqseq || in l2cap_retransmit_all()
2285 bt_cb(skb)->l2cap.txseq); in l2cap_retransmit_all()
2768 static void l2cap_send_srej(struct l2cap_chan *chan, u16 txseq) in l2cap_send_srej() argument
2773 BT_DBG("chan %p, txseq %u", chan, txseq); in l2cap_send_srej()
2779 for (seq = chan->expected_tx_seq; seq != txseq; in l2cap_send_srej()
2788 chan->expected_tx_seq = __next_seq(chan, txseq); in l2cap_send_srej()
2807 static void l2cap_send_srej_list(struct l2cap_chan *chan, u16 txseq) in l2cap_send_srej_list() argument
2813 BT_DBG("chan %p, txseq %u", chan, txseq); in l2cap_send_srej_list()
2824 if (seq == txseq || seq == L2CAP_SEQ_LIST_CLEAR) in l2cap_send_srej_list()
6858 static u8 l2cap_classify_txseq(struct l2cap_chan *chan, u16 txseq) in l2cap_classify_txseq() argument
6860 BT_DBG("chan %p, txseq %d", chan, txseq); in l2cap_classify_txseq()
6866 if (__seq_offset(chan, txseq, chan->last_acked_seq) >= in l2cap_classify_txseq()
6880 if (chan->srej_list.head == txseq) { in l2cap_classify_txseq()
6885 if (l2cap_ertm_seq_in_queue(&chan->srej_q, txseq)) { in l2cap_classify_txseq()
6890 if (l2cap_seq_list_contains(&chan->srej_list, txseq)) { in l2cap_classify_txseq()
6896 if (chan->expected_tx_seq == txseq) { in l2cap_classify_txseq()
6897 if (__seq_offset(chan, txseq, chan->last_acked_seq) >= in l2cap_classify_txseq()
6907 if (__seq_offset(chan, txseq, chan->last_acked_seq) < in l2cap_classify_txseq()
6913 if (__seq_offset(chan, txseq, chan->last_acked_seq) >= chan->tx_win) { in l2cap_classify_txseq()
6957 switch (l2cap_classify_txseq(chan, control->txseq)) { in l2cap_rx_state_recv()
6963 control->txseq); in l2cap_rx_state_recv()
6968 control->txseq); in l2cap_rx_state_recv()
7015 control->txseq); in l2cap_rx_state_recv()
7030 l2cap_send_srej(chan, control->txseq); in l2cap_rx_state_recv()
7101 u16 txseq = control->txseq; in l2cap_rx_state_srej_sent() local
7109 switch (l2cap_classify_txseq(chan, txseq)) { in l2cap_rx_state_srej_sent()
7118 chan->expected_tx_seq = __next_seq(chan, txseq); in l2cap_rx_state_srej_sent()
7145 l2cap_send_srej(chan, control->txseq); in l2cap_rx_state_srej_sent()
7159 l2cap_send_srej_list(chan, control->txseq); in l2cap_rx_state_srej_sent()
7393 u16 txseq = control->txseq; in l2cap_stream_rx() local
7398 if (l2cap_classify_txseq(chan, txseq) == L2CAP_TXSEQ_EXPECTED) { in l2cap_stream_rx()
7421 chan->last_acked_seq = txseq; in l2cap_stream_rx()
7422 chan->expected_tx_seq = __next_seq(chan, txseq); in l2cap_stream_rx()
7466 control->txseq); in l2cap_data_rcv()