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