Lines Matching refs:parent
119 static void iucv_sock_cleanup_listen(struct sock *parent) in iucv_sock_cleanup_listen() argument
124 while ((sk = iucv_accept_dequeue(parent, NULL))) { in iucv_sock_cleanup_listen()
129 parent->sk_state = IUCV_CLOSED; in iucv_sock_cleanup_listen()
130 sock_set_flag(parent, SOCK_ZAPPED); in iucv_sock_cleanup_listen()
205 static void iucv_sock_init(struct sock *sk, struct sock *parent) in iucv_sock_init() argument
207 if (parent) in iucv_sock_init()
208 sk->sk_type = parent->sk_type; in iucv_sock_init()
277 void iucv_accept_enqueue(struct sock *parent, struct sock *sk) in iucv_accept_enqueue() argument
280 struct iucv_sock *par = iucv_sk(parent); in iucv_accept_enqueue()
286 iucv_sk(sk)->parent = parent; in iucv_accept_enqueue()
287 parent->sk_ack_backlog++; in iucv_accept_enqueue()
293 struct iucv_sock *par = iucv_sk(iucv_sk(sk)->parent); in iucv_accept_unlink()
298 iucv_sk(sk)->parent->sk_ack_backlog--; in iucv_accept_unlink()
299 iucv_sk(sk)->parent = NULL; in iucv_accept_unlink()
303 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock) in iucv_accept_dequeue() argument
308 list_for_each_entry_safe(isk, n, &iucv_sk(parent)->accept_q, accept_q) { in iucv_accept_dequeue()
869 static inline unsigned int iucv_accept_poll(struct sock *parent) in iucv_accept_poll() argument
874 list_for_each_entry_safe(isk, n, &iucv_sk(parent)->accept_q, accept_q) { in iucv_accept_poll()