• Home
  • Raw
  • Download

Lines Matching refs:err

100 	int err = 0;  in bt_sock_register()  local
108 err = -EEXIST; in bt_sock_register()
114 return err; in bt_sock_register()
120 int err = 0; in bt_sock_unregister() local
128 err = -ENOENT; in bt_sock_unregister()
134 return err; in bt_sock_unregister()
162 int err; in bt_sock_create() local
180 err = -EPROTONOSUPPORT; in bt_sock_create()
185 err = bt_proto[proto]->create(net, sock, proto); in bt_sock_create()
192 return err; in bt_sock_create()
274 int err; in bt_sock_recvmsg() local
281 if (!(skb = skb_recv_datagram(sk, flags, noblock, &err))) { in bt_sock_recvmsg()
284 return err; in bt_sock_recvmsg()
296 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in bt_sock_recvmsg()
297 if (err == 0) in bt_sock_recvmsg()
302 return err ? : copied; in bt_sock_recvmsg()
369 int err; in bt_sock_ioctl() local
381 err = put_user(amount, (int __user *) arg); in bt_sock_ioctl()
392 err = put_user(amount, (int __user *) arg); in bt_sock_ioctl()
396 err = sock_get_timestamp(sk, (struct timeval __user *) arg); in bt_sock_ioctl()
400 err = sock_get_timestampns(sk, (struct timespec __user *) arg); in bt_sock_ioctl()
404 err = -ENOIOCTLCMD; in bt_sock_ioctl()
408 return err; in bt_sock_ioctl()
415 int err = 0; in bt_sock_wait_state() local
424 err = -EINPROGRESS; in bt_sock_wait_state()
429 err = sock_intr_errno(timeo); in bt_sock_wait_state()
437 err = sock_error(sk); in bt_sock_wait_state()
438 if (err) in bt_sock_wait_state()
443 return err; in bt_sock_wait_state()
455 int err; in bt_init() local
459 err = bt_sysfs_init(); in bt_init()
460 if (err < 0) in bt_init()
461 return err; in bt_init()
463 err = sock_register(&bt_sock_family_ops); in bt_init()
464 if (err < 0) { in bt_init()
466 return err; in bt_init()