• Home
  • Raw
  • Download

Lines Matching refs:parent

61 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent);
161 static inline int sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in sco_chan_add() argument
169 __sco_chan_add(conn, sk, parent); in sco_chan_add()
330 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen() argument
334 BT_DBG("parent %p", parent); in sco_sock_cleanup_listen()
337 while ((sk = bt_accept_dequeue(parent, NULL))) { in sco_sock_cleanup_listen()
342 parent->sk_state = BT_CLOSED; in sco_sock_cleanup_listen()
343 sock_set_flag(parent, SOCK_ZAPPED); in sco_sock_cleanup_listen()
399 static void sco_sock_init(struct sock *sk, struct sock *parent) in sco_sock_init() argument
403 if (parent) in sco_sock_init()
404 sk->sk_type = parent->sk_type; in sco_sock_init()
774 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent) in __sco_chan_add() argument
781 if (parent) in __sco_chan_add()
782 bt_accept_enqueue(parent, sk); in __sco_chan_add()
812 struct sock *parent, *sk; in sco_conn_ready() local
825 parent = sco_get_sock_listen(conn->src); in sco_conn_ready()
826 if (!parent) in sco_conn_ready()
829 bh_lock_sock(parent); in sco_conn_ready()
831 sk = sco_sock_alloc(sock_net(parent), NULL, BTPROTO_SCO, GFP_ATOMIC); in sco_conn_ready()
833 bh_unlock_sock(parent); in sco_conn_ready()
837 sco_sock_init(sk, parent); in sco_conn_ready()
843 __sco_chan_add(conn, sk, parent); in sco_conn_ready()
848 parent->sk_data_ready(parent, 1); in sco_conn_ready()
850 bh_unlock_sock(parent); in sco_conn_ready()