Lines Matching refs:ctrl_sock
135 return hidp_send_message(session, session->ctrl_sock, in hidp_send_ctrl_message()
420 session->ctrl_sock->sk->sk_err = EUNATCH; in hidp_idle_timeout()
422 wake_up_interruptible(sk_sleep(session->ctrl_sock->sk)); in hidp_idle_timeout()
786 &l2cap_pi(session->ctrl_sock->sk)->chan->src); in hidp_setup_hid()
792 &l2cap_pi(session->ctrl_sock->sk)->chan->dst); in hidp_setup_hid()
912 struct socket *ctrl_sock, in hidp_session_new() argument
921 ctrl = bt_sk(ctrl_sock->sk); in hidp_session_new()
940 session->ctrl_sock = ctrl_sock; in hidp_session_new()
963 get_file(session->ctrl_sock->file); in hidp_session_new()
989 fput(session->ctrl_sock->file); in session_free()
1190 struct sock *ctrl_sk = session->ctrl_sock->sk; in hidp_session_run()
1236 session->ctrl_sock); in hidp_session_run()
1278 add_wait_queue(sk_sleep(session->ctrl_sock->sk), &ctrl_wait); in hidp_session_thread()
1312 static int hidp_verify_sockets(struct socket *ctrl_sock, in hidp_verify_sockets() argument
1319 if (!l2cap_is_socket(ctrl_sock) || !l2cap_is_socket(intr_sock)) in hidp_verify_sockets()
1322 ctrl_chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_verify_sockets()
1329 ctrl = bt_sk(ctrl_sock->sk); in hidp_verify_sockets()
1347 struct socket *ctrl_sock, in hidp_connection_add() argument
1357 ret = hidp_verify_sockets(ctrl_sock, intr_sock); in hidp_connection_add()
1364 chan = l2cap_pi(ctrl_sock->sk)->chan; in hidp_connection_add()
1374 ret = hidp_session_new(&session, &chan->dst, ctrl_sock, in hidp_connection_add()