Lines Matching refs:channel
108 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src)
113 if (rfcomm_pi(sk)->channel != channel)
126 /* Find socket with channel and source bdaddr.
129 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src)
139 if (rfcomm_pi(sk)->channel == channel) {
366 rfcomm_pi(sk)->channel = chan;
404 rfcomm_pi(sk)->channel = sa->rc_channel;
439 if (!rfcomm_pi(sk)->channel) {
441 u8 channel;
447 for (channel = 1; channel < 31; channel++)
448 if (!__rfcomm_get_listen_sock_by_addr(channel, src)) {
449 rfcomm_pi(sk)->channel = channel;
543 sa->rc_channel = rfcomm_pi(sk)->channel;
950 int rfcomm_connect_ind(struct rfcomm_session *s, u8 channel, struct rfcomm_dlc **d)
956 BT_DBG("session %p channel %d", s, channel);
960 /* Check if we have socket listening on channel */
961 parent = rfcomm_get_sock_by_channel(BT_LISTEN, channel, &src);
982 rfcomm_pi(sk)->channel = channel;
1009 sk->sk_state, rfcomm_pi(sk)->channel);