Lines Matching refs:rx_control
3966 static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u32 rx_control, struct sk_buff… in l2cap_data_channel_iframe() argument
3968 u16 tx_seq = __get_txseq(chan, rx_control); in l2cap_data_channel_iframe()
3969 u16 req_seq = __get_reqseq(chan, rx_control); in l2cap_data_channel_iframe()
3970 u8 sar = __get_ctrl_sar(chan, rx_control); in l2cap_data_channel_iframe()
3976 tx_seq, rx_control); in l2cap_data_channel_iframe()
3978 if (__is_ctrl_final(chan, rx_control) && in l2cap_data_channel_iframe()
4084 err = l2cap_reassemble_sdu(chan, skb, rx_control); in l2cap_data_channel_iframe()
4092 if (__is_ctrl_final(chan, rx_control)) { in l2cap_data_channel_iframe()
4111 static inline void l2cap_data_channel_rrframe(struct l2cap_chan *chan, u32 rx_control) in l2cap_data_channel_rrframe() argument
4114 __get_reqseq(chan, rx_control), rx_control); in l2cap_data_channel_rrframe()
4116 chan->expected_ack_seq = __get_reqseq(chan, rx_control); in l2cap_data_channel_rrframe()
4119 if (__is_ctrl_poll(chan, rx_control)) { in l2cap_data_channel_rrframe()
4132 } else if (__is_ctrl_final(chan, rx_control)) { in l2cap_data_channel_rrframe()
4151 static inline void l2cap_data_channel_rejframe(struct l2cap_chan *chan, u32 rx_control) in l2cap_data_channel_rejframe() argument
4153 u16 tx_seq = __get_reqseq(chan, rx_control); in l2cap_data_channel_rejframe()
4155 BT_DBG("chan %p, req_seq %d ctrl 0x%8.8x", chan, tx_seq, rx_control); in l2cap_data_channel_rejframe()
4162 if (__is_ctrl_final(chan, rx_control)) { in l2cap_data_channel_rejframe()
4172 static inline void l2cap_data_channel_srejframe(struct l2cap_chan *chan, u32 rx_control) in l2cap_data_channel_srejframe() argument
4174 u16 tx_seq = __get_reqseq(chan, rx_control); in l2cap_data_channel_srejframe()
4176 BT_DBG("chan %p, req_seq %d ctrl 0x%8.8x", chan, tx_seq, rx_control); in l2cap_data_channel_srejframe()
4180 if (__is_ctrl_poll(chan, rx_control)) { in l2cap_data_channel_srejframe()
4193 } else if (__is_ctrl_final(chan, rx_control)) { in l2cap_data_channel_srejframe()
4208 static inline void l2cap_data_channel_rnrframe(struct l2cap_chan *chan, u32 rx_control) in l2cap_data_channel_rnrframe() argument
4210 u16 tx_seq = __get_reqseq(chan, rx_control); in l2cap_data_channel_rnrframe()
4212 BT_DBG("chan %p, req_seq %d ctrl 0x%8.8x", chan, tx_seq, rx_control); in l2cap_data_channel_rnrframe()
4218 if (__is_ctrl_poll(chan, rx_control)) in l2cap_data_channel_rnrframe()
4223 if (__is_ctrl_poll(chan, rx_control)) in l2cap_data_channel_rnrframe()
4228 if (__is_ctrl_poll(chan, rx_control)) { in l2cap_data_channel_rnrframe()
4231 rx_control = __set_ctrl_super(chan, L2CAP_SUPER_RR); in l2cap_data_channel_rnrframe()
4232 l2cap_send_sframe(chan, rx_control); in l2cap_data_channel_rnrframe()
4236 static inline int l2cap_data_channel_sframe(struct l2cap_chan *chan, u32 rx_control, struct sk_buff… in l2cap_data_channel_sframe() argument
4238 BT_DBG("chan %p rx_control 0x%8.8x len %d", chan, rx_control, skb->len); in l2cap_data_channel_sframe()
4240 if (__is_ctrl_final(chan, rx_control) && in l2cap_data_channel_sframe()
4248 switch (__get_ctrl_super(chan, rx_control)) { in l2cap_data_channel_sframe()
4250 l2cap_data_channel_rrframe(chan, rx_control); in l2cap_data_channel_sframe()
4254 l2cap_data_channel_rejframe(chan, rx_control); in l2cap_data_channel_sframe()
4258 l2cap_data_channel_srejframe(chan, rx_control); in l2cap_data_channel_sframe()
4262 l2cap_data_channel_rnrframe(chan, rx_control); in l2cap_data_channel_sframe()