Lines Matching refs:sec
170 SNTP_SEC_FRAC_TO_S64(lwip_ntohl((t).sec), lwip_ntohl((t).frac))
177 u32_t sec; member
274 sntp_format_time(s32_t sec) in sntp_format_time() argument
277 ut = (u32_t)((u32_t)sec + DIFF_SEC_1970_2036); in sntp_format_time()
288 s32_t sec; in sntp_process() local
291 sec = (s32_t)lwip_ntohl(timestamps->xmit.sec); in sntp_process()
296 if (timestamps->recv.sec != 0 || timestamps->recv.frac != 0) in sntp_process()
306 step_sec = (dest_sec < sec) ? ((u32_t)sec - (u32_t)dest_sec) in sntp_process()
307 : ((u32_t)dest_sec - (u32_t)sec); in sntp_process()
314 t3 = SNTP_SEC_FRAC_TO_S64(sec, frac); in sntp_process()
320 sec = (s32_t)((u64_t)t4 >> 32); in sntp_process()
326 SNTP_SET_SYSTEM_TIME_NTP(sec, frac); in sntp_process()
329 sntp_format_time(sec), SNTP_FRAC_TO_US(frac))); in sntp_process()
344 u32_t sec, frac; in sntp_initialize_request() local
347 sec = lwip_htonl((u32_t)secs); in sntp_initialize_request()
351 sntp_last_timestamp_sent.sec = sec; in sntp_initialize_request()
354 req->transmit_timestamp[0] = sec; in sntp_initialize_request()
472 if (timestamps.orig.sec != sntp_last_timestamp_sent.sec || in sntp_recv()