Lines Matching refs:channel
106 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr() argument
111 if (rfcomm_pi(sk)->channel != channel) in __rfcomm_get_listen_sock_by_addr()
127 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel() argument
137 if (rfcomm_pi(sk)->channel == channel) { in rfcomm_get_sock_by_channel()
370 rfcomm_pi(sk)->channel = sa.rc_channel; in rfcomm_sock_bind()
408 rfcomm_pi(sk)->channel = sa->rc_channel; in rfcomm_sock_connect()
443 if (!rfcomm_pi(sk)->channel) { in rfcomm_sock_listen()
445 u8 channel; in rfcomm_sock_listen() local
451 for (channel = 1; channel < 31; channel++) in rfcomm_sock_listen()
452 if (!__rfcomm_get_listen_sock_by_addr(channel, src)) { in rfcomm_sock_listen()
453 rfcomm_pi(sk)->channel = channel; in rfcomm_sock_listen()
547 sa->rc_channel = rfcomm_pi(sk)->channel; in rfcomm_sock_getname()
936 int rfcomm_connect_ind(struct rfcomm_session *s, u8 channel, struct rfcomm_dlc **d) in rfcomm_connect_ind() argument
942 BT_DBG("session %p channel %d", s, channel); in rfcomm_connect_ind()
947 parent = rfcomm_get_sock_by_channel(BT_LISTEN, channel, &src); in rfcomm_connect_ind()
968 rfcomm_pi(sk)->channel = channel; in rfcomm_connect_ind()
995 sk->sk_state, rfcomm_pi(sk)->channel); in rfcomm_sock_debugfs_show()