Lines Matching refs:result
1004 int result; in accept_from_sock() local
1016 result = kernel_accept(con->sock, &newsock, O_NONBLOCK); in accept_from_sock()
1017 if (result < 0) in accept_from_sock()
1024 result = -ECONNABORTED; in accept_from_sock()
1068 result = -ENOMEM; in accept_from_sock()
1084 result = -ENOMEM; in accept_from_sock()
1088 result = dlm_con_init(othercon, nodeid); in accept_from_sock()
1089 if (result < 0) { in accept_from_sock()
1137 if (result != -EAGAIN) in accept_from_sock()
1138 log_print("error accepting connection from node: %d", result); in accept_from_sock()
1139 return result; in accept_from_sock()
1167 int i, addr_len, result = 0; in sctp_bind_addrs() local
1174 result = kernel_bind(sock, addr, addr_len); in sctp_bind_addrs()
1176 result = sock_bind_add(sock->sk, addr, addr_len); in sctp_bind_addrs()
1178 if (result < 0) { in sctp_bind_addrs()
1180 port, i + 1, result); in sctp_bind_addrs()
1184 return result; in sctp_bind_addrs()
1545 int result, addr_len; in dlm_connect() local
1559 result = nodeid_to_addr(con->nodeid, &addr, NULL, in dlm_connect()
1561 if (result < 0) { in dlm_connect()
1567 result = sock_create_kern(&init_net, dlm_local_addr[0].ss_family, in dlm_connect()
1569 if (result < 0) in dlm_connect()
1577 result = dlm_proto_ops->bind(sock); in dlm_connect()
1578 if (result < 0) in dlm_connect()
1583 result = dlm_proto_ops->connect(con, sock, (struct sockaddr *)&addr, in dlm_connect()
1585 if (result < 0) in dlm_connect()
1598 if (result != -EHOSTUNREACH && in dlm_connect()
1599 result != -ENETUNREACH && in dlm_connect()
1600 result != -ENETDOWN && in dlm_connect()
1601 result != -EINVAL && in dlm_connect()
1602 result != -EPROTONOSUPPORT) { in dlm_connect()
1604 con->retries, result); in dlm_connect()
1785 int result; in dlm_listen_for_all() local
1790 result = dlm_proto_ops->listen_validate(); in dlm_listen_for_all()
1791 if (result < 0) in dlm_listen_for_all()
1792 return result; in dlm_listen_for_all()
1794 result = sock_create_kern(&init_net, dlm_local_addr[0].ss_family, in dlm_listen_for_all()
1796 if (result < 0) { in dlm_listen_for_all()
1797 log_print("Can't create comms socket: %d", result); in dlm_listen_for_all()
1798 return result; in dlm_listen_for_all()
1804 result = dlm_proto_ops->listen_bind(sock); in dlm_listen_for_all()
1805 if (result < 0) in dlm_listen_for_all()
1812 result = sock->ops->listen(sock, 5); in dlm_listen_for_all()
1813 if (result < 0) { in dlm_listen_for_all()
1815 return result; in dlm_listen_for_all()
1822 return result; in dlm_listen_for_all()
1828 int result, addr_len; in dlm_tcp_bind() local
1836 result = kernel_bind(sock, (struct sockaddr *)&src_addr, in dlm_tcp_bind()
1838 if (result < 0) { in dlm_tcp_bind()
1840 log_print("could not bind for connect: %d", result); in dlm_tcp_bind()