Lines Matching refs:int64_t
48 static int64_t q16_16_s_to_ll_us(uint32_t t) in q16_16_s_to_ll_us()
50 return (int64_t)(t >> 16) * (int64_t)USEC_PER_SEC + in q16_16_s_to_ll_us()
51 (((int64_t)(t & 0xFFFF) * (int64_t)USEC_PER_SEC) >> 16); in q16_16_s_to_ll_us()
54 static int64_t q32_32_s_to_ll_us(uint32_t t_s, uint32_t t_f) in q32_32_s_to_ll_us()
97 int64_t dest_ts_us = k_ticks_to_us_near64(k_uptime_ticks()); in parse_response()
98 int64_t orig_ts_us = in parse_response()
101 int64_t rx_ts_us = q32_32_s_to_ll_us(ntohl(pkt->rx_tm_s), ntohl(pkt->rx_tm_f)); in parse_response()
102 int64_t tx_ts_us = q32_32_s_to_ll_us(ntohl(pkt->tx_tm_s), ntohl(pkt->tx_tm_f)); in parse_response()
109 int64_t d_us = (dest_ts_us - orig_ts_us) - (tx_ts_us - rx_ts_us); in parse_response()
110 int64_t clk_offset_us = ((rx_ts_us - orig_ts_us) + (tx_ts_us - dest_ts_us)) / 2; in parse_response()
111 int64_t root_dispersion_us = q16_16_s_to_ll_us(ntohl(pkt->root_dispersion)); in parse_response()
112 int64_t root_delay_us = q16_16_s_to_ll_us(ntohl(pkt->root_delay)); in parse_response()
188 int64_t ts_us = 0; in sntp_query()