Lines Matching refs:channel
109 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr() argument
114 if (rfcomm_pi(sk)->channel != channel) in __rfcomm_get_listen_sock_by_addr()
130 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel() argument
140 if (rfcomm_pi(sk)->channel == channel) { in rfcomm_get_sock_by_channel()
373 rfcomm_pi(sk)->channel = sa.rc_channel; in rfcomm_sock_bind()
411 rfcomm_pi(sk)->channel = sa->rc_channel; in rfcomm_sock_connect()
446 if (!rfcomm_pi(sk)->channel) { in rfcomm_sock_listen()
448 u8 channel; in rfcomm_sock_listen() local
454 for (channel = 1; channel < 31; channel++) in rfcomm_sock_listen()
455 if (!__rfcomm_get_listen_sock_by_addr(channel, src)) { in rfcomm_sock_listen()
456 rfcomm_pi(sk)->channel = channel; in rfcomm_sock_listen()
550 sa->rc_channel = rfcomm_pi(sk)->channel; in rfcomm_sock_getname()
956 int rfcomm_connect_ind(struct rfcomm_session *s, u8 channel, struct rfcomm_dlc **d) in rfcomm_connect_ind() argument
962 BT_DBG("session %p channel %d", s, channel); in rfcomm_connect_ind()
967 parent = rfcomm_get_sock_by_channel(BT_LISTEN, channel, &src); in rfcomm_connect_ind()
988 rfcomm_pi(sk)->channel = channel; in rfcomm_connect_ind()
1015 sk->sk_state, rfcomm_pi(sk)->channel); in rfcomm_sock_debugfs_show()