Lines Matching refs:txseq

304 		if (bt_cb(skb)->l2cap.txseq == seq)
1018 control->txseq = 0;
1023 control->txseq = (enh & L2CAP_CTRL_TXSEQ) >> L2CAP_CTRL_TXSEQ_SHIFT;
1042 control->txseq = 0;
1047 control->txseq = (ext & L2CAP_EXT_CTRL_TXSEQ) >> L2CAP_EXT_CTRL_TXSEQ_SHIFT;
1081 packed |= control->txseq << L2CAP_EXT_CTRL_TXSEQ_SHIFT;
1100 packed |= control->txseq << L2CAP_CTRL_TXSEQ_SHIFT;
1942 control->txseq = chan->next_tx_seq;
1953 BT_DBG("Sent txseq %u", control->txseq);
1988 control->txseq = chan->next_tx_seq;
2018 BT_DBG("Sent txseq %u", control->txseq);
2099 BT_DBG("Resent txseq %d", control.txseq);
2131 if (bt_cb(skb)->l2cap.txseq == control->reqseq ||
2141 bt_cb(skb)->l2cap.txseq);
2658 static void l2cap_send_srej(struct l2cap_chan *chan, u16 txseq)
2663 BT_DBG("chan %p, txseq %u", chan, txseq);
2669 for (seq = chan->expected_tx_seq; seq != txseq;
2678 chan->expected_tx_seq = __next_seq(chan, txseq);
2697 static void l2cap_send_srej_list(struct l2cap_chan *chan, u16 txseq)
2703 BT_DBG("chan %p, txseq %u", chan, txseq);
2714 if (seq == txseq || seq == L2CAP_SEQ_LIST_CLEAR)
5762 BT_DBG("Searching for skb with txseq %d (queue len %d)",
5880 static u8 l2cap_classify_txseq(struct l2cap_chan *chan, u16 txseq)
5882 BT_DBG("chan %p, txseq %d", chan, txseq);
5888 if (__seq_offset(chan, txseq, chan->last_acked_seq) >=
5902 if (chan->srej_list.head == txseq) {
5907 if (l2cap_ertm_seq_in_queue(&chan->srej_q, txseq)) {
5908 BT_DBG("Duplicate SREJ - txseq already stored");
5912 if (l2cap_seq_list_contains(&chan->srej_list, txseq)) {
5918 if (chan->expected_tx_seq == txseq) {
5919 if (__seq_offset(chan, txseq, chan->last_acked_seq) >=
5921 BT_DBG("Invalid - txseq outside tx window");
5929 if (__seq_offset(chan, txseq, chan->last_acked_seq) <
5931 BT_DBG("Duplicate - expected_tx_seq later than txseq");
5935 if (__seq_offset(chan, txseq, chan->last_acked_seq) >= chan->tx_win) {
5954 BT_DBG("Invalid/Ignore - txseq outside tx window");
5957 BT_DBG("Invalid - txseq outside tx window");
5961 BT_DBG("Unexpected - txseq indicates missing frames");
5979 switch (l2cap_classify_txseq(chan, control->txseq)) {
5985 control->txseq);
5990 control->txseq);
6037 control->txseq);
6052 l2cap_send_srej(chan, control->txseq);
6123 u16 txseq = control->txseq;
6131 switch (l2cap_classify_txseq(chan, txseq)) {
6140 chan->expected_tx_seq = __next_seq(chan, txseq);
6167 l2cap_send_srej(chan, control->txseq);
6181 l2cap_send_srej_list(chan, control->txseq);
6393 * the txseq field in advance to use it after l2cap_reassemble_sdu
6407 u16 txseq = control->txseq;
6412 if (l2cap_classify_txseq(chan, txseq) == L2CAP_TXSEQ_EXPECTED) {
6435 chan->last_acked_seq = txseq;
6436 chan->expected_tx_seq = __next_seq(chan, txseq);
6478 BT_DBG("iframe sar %d, reqseq %d, final %d, txseq %d",
6480 control->txseq);