Lines Matching refs:res
15 int res; in sntp_simple_helper() local
21 res = sntp_init(&sntp_ctx, addr, addr_len); in sntp_simple_helper()
22 if (res < 0) { in sntp_simple_helper()
23 return res; in sntp_simple_helper()
37 res = sntp_query(&sntp_ctx, iter_timeout, ts); in sntp_simple_helper()
39 if (res != -ETIMEDOUT) { in sntp_simple_helper()
40 if (false == first_iter && -ERANGE == res) { in sntp_simple_helper()
41 while (-ERANGE == res) { in sntp_simple_helper()
48 res = sntp_recv_response(&sntp_ctx, iter_timeout, ts); in sntp_simple_helper()
51 if (res != ETIMEDOUT) { in sntp_simple_helper()
71 return res; in sntp_simple_helper()
78 int res = net_port_set_default(addr, 123); in sntp_simple_addr() local
80 if (res < 0) { in sntp_simple_addr()
81 return res; in sntp_simple_addr()
89 int res; in sntp_simple() local
97 res = net_getaddrinfo_addr_str(server, "123", &hints, &addr); in sntp_simple()
98 if (res < 0) { in sntp_simple()
103 return res; in sntp_simple()
105 res = sntp_simple_helper(addr->ai_addr, addr->ai_addrlen, timeout, ts); in sntp_simple()
109 return res; in sntp_simple()