• Home
  • Raw
  • Download

Lines Matching refs:flags

53 	if (test_bit(ATM_VF_REGIS, &vcc->flags)) {  in svc_disconnect()
57 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) in svc_disconnect()
71 clear_bit(ATM_VF_REGIS, &vcc->flags); in svc_disconnect()
83 clear_bit(ATM_VF_READY, &vcc->flags); in svc_release()
121 clear_bit(ATM_VF_BOUND, &vcc->flags); in svc_bind()
124 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { in svc_bind()
129 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_bind()
133 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) in svc_bind()
138 clear_bit(ATM_VF_REGIS, &vcc->flags); /* doesn't count */ in svc_bind()
144 set_bit(ATM_VF_BOUND, &vcc->flags); in svc_bind()
152 int sockaddr_len, int flags) in svc_connect() argument
175 if (test_bit(ATM_VF_WAITING, &vcc->flags)) { in svc_connect()
191 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { in svc_connect()
206 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_connect()
208 if (flags & O_NONBLOCK) { in svc_connect()
215 while (test_bit(ATM_VF_WAITING, &vcc->flags) && sigd) { in svc_connect()
236 while (test_bit(ATM_VF_WAITING, &vcc->flags) && sigd) { in svc_connect()
242 while (!test_bit(ATM_VF_RELEASED, &vcc->flags) && in svc_connect()
248 clear_bit(ATM_VF_REGIS, &vcc->flags); in svc_connect()
249 clear_bit(ATM_VF_RELEASED, &vcc->flags); in svc_connect()
250 clear_bit(ATM_VF_CLOSE, &vcc->flags); in svc_connect()
292 if (test_bit(ATM_VF_SESSION, &vcc->flags)) { in svc_listen()
296 if (test_bit(ATM_VF_LISTEN, &vcc->flags)) { in svc_listen()
300 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_listen()
304 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) in svc_listen()
313 set_bit(ATM_VF_LISTEN, &vcc->flags); in svc_listen()
322 static int svc_accept(struct socket *sock, struct socket *newsock, int flags, in svc_accept() argument
347 if (test_bit(ATM_VF_RELEASED, &old_vcc->flags)) in svc_accept()
349 if (test_bit(ATM_VF_CLOSE, &old_vcc->flags)) { in svc_accept()
353 if (flags & O_NONBLOCK) { in svc_accept()
376 set_bit(ATM_VF_HASQOS, &new_vcc->flags); in svc_accept()
392 set_bit(ATM_VF_WAITING, &new_vcc->flags); in svc_accept()
397 if (!test_bit(ATM_VF_WAITING, &new_vcc->flags) || !sigd) in svc_accept()
437 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_change_qos()
441 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || in svc_change_qos()
442 test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) { in svc_change_qos()
471 set_bit(ATM_VF_HASSAP, &vcc->flags); in svc_setsockopt()
483 set_bit(ATM_VF_SESSION, &vcc->flags); in svc_setsockopt()
485 clear_bit(ATM_VF_SESSION, &vcc->flags); in svc_setsockopt()
527 int sockaddr_len, int flags) in svc_addparty() argument
535 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_addparty()
538 if (flags & O_NONBLOCK) { in svc_addparty()
545 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) in svc_addparty()
564 set_bit(ATM_VF_WAITING, &vcc->flags); in svc_dropparty()
568 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) in svc_dropparty()
591 if (!test_bit(ATM_VF_SESSION, &vcc->flags)) in svc_ioctl()
599 if (!test_bit(ATM_VF_SESSION, &vcc->flags)) in svc_ioctl()