Lines Matching refs:reqseq

1023 	control->reqseq = (enh & L2CAP_CTRL_REQSEQ) >> L2CAP_CTRL_REQSEQ_SHIFT;  in __unpack_enhanced_control()
1047 control->reqseq = (ext & L2CAP_EXT_CTRL_REQSEQ) >> L2CAP_EXT_CTRL_REQSEQ_SHIFT; in __unpack_extended_control()
1087 packed = control->reqseq << L2CAP_EXT_CTRL_REQSEQ_SHIFT; in __pack_extended_control()
1106 packed = control->reqseq << L2CAP_CTRL_REQSEQ_SHIFT; in __pack_enhanced_control()
1199 chan->last_acked_seq = control->reqseq; in l2cap_send_sframe()
1203 BT_DBG("reqseq %d, final %d, poll %d, super %d", control->reqseq, in l2cap_send_sframe()
1231 control.reqseq = chan->buffer_seq; in l2cap_send_rr_or_rnr()
2086 control->reqseq = 0; in l2cap_streaming_send()
2134 control->reqseq = chan->buffer_seq; in l2cap_ertm_send()
2211 control.reqseq = chan->buffer_seq; in l2cap_ertm_resend()
2261 l2cap_seq_list_append(&chan->retrans_list, control->reqseq); in l2cap_retransmit()
2282 if (bt_cb(skb)->l2cap.txseq == control->reqseq || in l2cap_retransmit_all()
2316 control.reqseq = chan->buffer_seq; in l2cap_send_ack()
2339 control.reqseq = chan->buffer_seq; in l2cap_send_ack()
2813 control.reqseq = seq; in l2cap_send_srej()
2834 control.reqseq = chan->srej_list.tail; in l2cap_send_srej_tail()
2858 control.reqseq = seq; in l2cap_send_srej_list()
2864 static void l2cap_process_reqseq(struct l2cap_chan *chan, u16 reqseq) in l2cap_process_reqseq() argument
2869 BT_DBG("chan %p, reqseq %u", chan, reqseq); in l2cap_process_reqseq()
2871 if (chan->unacked_frames == 0 || reqseq == chan->expected_ack_seq) in l2cap_process_reqseq()
2877 for (ackseq = chan->expected_ack_seq; ackseq != reqseq; in l2cap_process_reqseq()
2888 chan->expected_ack_seq = reqseq; in l2cap_process_reqseq()
2946 local_control.reqseq = chan->buffer_seq; in l2cap_tx_state_xmit()
2955 l2cap_process_reqseq(chan, control->reqseq); in l2cap_tx_state_xmit()
3016 local_control.reqseq = chan->buffer_seq; in l2cap_tx_state_wait_f()
3025 l2cap_process_reqseq(chan, control->reqseq); in l2cap_tx_state_wait_f()
6550 control.reqseq = chan->buffer_seq; in l2cap_send_i_or_rr_or_rnr()
6737 if (control->reqseq == chan->next_tx_seq) { in l2cap_handle_srej()
6738 BT_DBG("Invalid reqseq %d, disconnecting", control->reqseq); in l2cap_handle_srej()
6743 skb = l2cap_ertm_seq_in_queue(&chan->tx_q, control->reqseq); in l2cap_handle_srej()
6747 control->reqseq); in l2cap_handle_srej()
6768 chan->srej_save_reqseq = control->reqseq; in l2cap_handle_srej()
6774 if (chan->srej_save_reqseq != control->reqseq || in l2cap_handle_srej()
6782 chan->srej_save_reqseq = control->reqseq; in l2cap_handle_srej()
6795 if (control->reqseq == chan->next_tx_seq) { in l2cap_handle_rej()
6796 BT_DBG("Invalid reqseq %d, disconnecting", control->reqseq); in l2cap_handle_rej()
6801 skb = l2cap_ertm_seq_in_queue(&chan->tx_q, control->reqseq); in l2cap_handle_rej()
7185 rr_control.reqseq = chan->buffer_seq; in l2cap_rx_state_srej_sent()
7232 l2cap_process_reqseq(chan, control->reqseq); in l2cap_rx_state_wait_p()
7242 chan->next_tx_seq = control->reqseq; in l2cap_rx_state_wait_p()
7270 l2cap_process_reqseq(chan, control->reqseq); in l2cap_rx_state_wait_f()
7280 chan->next_tx_seq = control->reqseq; in l2cap_rx_state_wait_f()
7296 static bool __valid_reqseq(struct l2cap_chan *chan, u16 reqseq) in __valid_reqseq() argument
7302 return __seq_offset(chan, chan->next_tx_seq, reqseq) <= unacked; in __valid_reqseq()
7313 if (__valid_reqseq(chan, control->reqseq)) { in l2cap_rx()
7334 control->reqseq, chan->next_tx_seq, in l2cap_rx()
7432 control->sar, control->reqseq, control->final, in l2cap_data_rcv()
7461 control->reqseq, control->final, control->poll, in l2cap_data_rcv()