• Home
  • Raw
  • Download

Lines Matching refs:rc

344 	int rc, confirm_rx;  in qrtr_node_enqueue()  local
368 rc = skb_put_padto(skb, ALIGN(len, 4) + sizeof(*hdr)); in qrtr_node_enqueue()
370 if (!rc) { in qrtr_node_enqueue()
372 rc = -ENODEV; in qrtr_node_enqueue()
374 rc = node->ep->xmit(node->ep, skb); in qrtr_node_enqueue()
381 if (rc && confirm_rx) in qrtr_node_enqueue()
384 return rc; in qrtr_node_enqueue()
731 int rc; in qrtr_port_assign() local
734 rc = xa_alloc(&qrtr_ports, port, ipc, QRTR_EPH_PORT_RANGE, in qrtr_port_assign()
737 rc = -EACCES; in qrtr_port_assign()
739 rc = xa_insert(&qrtr_ports, 0, ipc, GFP_KERNEL); in qrtr_port_assign()
741 rc = xa_insert(&qrtr_ports, *port, ipc, GFP_KERNEL); in qrtr_port_assign()
744 if (rc == -EBUSY) in qrtr_port_assign()
746 else if (rc < 0) in qrtr_port_assign()
747 return rc; in qrtr_port_assign()
780 int rc; in __qrtr_bind() local
787 rc = qrtr_port_assign(ipc, &port); in __qrtr_bind()
788 if (rc) in __qrtr_bind()
789 return rc; in __qrtr_bind()
827 int rc; in qrtr_bind() local
836 rc = __qrtr_bind(sock, addr, sock_flag(sk, SOCK_ZAPPED)); in qrtr_bind()
839 return rc; in qrtr_bind()
907 int rc; in qrtr_sendmsg() local
928 rc = qrtr_autobind(sock); in qrtr_sendmsg()
929 if (rc) { in qrtr_sendmsg()
931 return rc; in qrtr_sendmsg()
961 msg->msg_flags & MSG_DONTWAIT, &rc); in qrtr_sendmsg()
963 rc = -ENOMEM; in qrtr_sendmsg()
969 rc = memcpy_from_msg(skb_put(skb, len), msg, len); in qrtr_sendmsg()
970 if (rc) { in qrtr_sendmsg()
977 rc = -EINVAL; in qrtr_sendmsg()
987 rc = enqueue_fn(node, skb, type, &ipc->us, addr); in qrtr_sendmsg()
988 if (rc >= 0) in qrtr_sendmsg()
989 rc = len; in qrtr_sendmsg()
995 return rc; in qrtr_sendmsg()
1033 int copied, rc; in qrtr_recvmsg() local
1043 flags & MSG_DONTWAIT, &rc); in qrtr_recvmsg()
1046 return rc; in qrtr_recvmsg()
1056 rc = skb_copy_datagram_msg(skb, 0, msg, copied); in qrtr_recvmsg()
1057 if (rc < 0) in qrtr_recvmsg()
1059 rc = copied; in qrtr_recvmsg()
1080 return rc; in qrtr_recvmsg()
1089 int rc; in qrtr_connect() local
1099 rc = qrtr_autobind(sock); in qrtr_connect()
1100 if (rc) { in qrtr_connect()
1102 return rc; in qrtr_connect()
1150 int rc = 0; in qrtr_ioctl() local
1159 rc = put_user(len, (int __user *)argp); in qrtr_ioctl()
1165 rc = put_user(len, (int __user *)argp); in qrtr_ioctl()
1169 rc = -EFAULT; in qrtr_ioctl()
1176 rc = -EFAULT; in qrtr_ioctl()
1189 rc = -EINVAL; in qrtr_ioctl()
1192 rc = -ENOIOCTLCMD; in qrtr_ioctl()
1198 return rc; in qrtr_ioctl()
1291 int rc; in qrtr_proto_init() local
1293 rc = proto_register(&qrtr_proto, 1); in qrtr_proto_init()
1294 if (rc) in qrtr_proto_init()
1295 return rc; in qrtr_proto_init()
1297 rc = sock_register(&qrtr_family); in qrtr_proto_init()
1298 if (rc) in qrtr_proto_init()
1301 rc = qrtr_ns_init(); in qrtr_proto_init()
1302 if (rc) in qrtr_proto_init()
1311 return rc; in qrtr_proto_init()