| /components/net/lwip/lwip-2.1.2/src/apps/sntp/ |
| A D | sntp.c | 177 u32_t sec; member 274 sntp_format_time(s32_t sec) in sntp_format_time() argument 288 s32_t sec; in sntp_process() local 291 sec = (s32_t)lwip_ntohl(timestamps->xmit.sec); in sntp_process() 306 step_sec = (dest_sec < sec) ? ((u32_t)sec - (u32_t)dest_sec) in sntp_process() 320 sec = (s32_t)((u64_t)t4 >> 32); 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() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/apps/ |
| A D | sntp_opts.h | 53 #define SNTP_SET_SYSTEM_TIME(sec) LWIP_UNUSED_ARG(sec) argument 146 #define SNTP_GET_SYSTEM_TIME(sec, us) do { (sec) = 0; (us) = 0; } while(0) argument
|
| /components/drivers/watchdog/ |
| A D | watchdog-dw.c | 50 rt_uint32_t sec; member 119 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top() 132 return dw_wdt->timeouts[idx].sec; in dw_wdt_find_best_top() 162 return dw_wdt->timeouts[idx].sec * dw_wdt->rmod; in dw_wdt_get_timeout() 276 rt_uint32_t val, sec; in dw_wdt_get_timeleft() local 279 sec = val / dw_wdt->rate; in dw_wdt_get_timeleft() 287 sec += dw_wdt->pretimeout; in dw_wdt_get_timeleft() 291 return sec; in dw_wdt_get_timeleft() 311 tout.sec = tops[val] / dw_wdt->rate; in dw_wdt_init_timeouts() 324 if (tout.sec > dst->sec || (tout.sec == dst->sec && tout.msec >= dst->msec)) in dw_wdt_init_timeouts() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/apps/ |
| A D | sntp_opts.h | 56 #define SNTP_SET_SYSTEM_TIME(sec) LWIP_UNUSED_ARG(sec) argument 175 #define SNTP_GET_SYSTEM_TIME(sec, us) do { (sec) = 0; (us) = 0; } while(0) argument
|
| /components/lwp/vdso/user/arch/aarch64/ |
| A D | vdso_sys.c | 38 uint64_t sec, last, ns, cycles; in __rt_vdso_getcoarse() local 55 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse() 58 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
|
| /components/lwp/vdso/user/arch/risc-v/ |
| A D | vdso_sys.c | 45 uint64_t sec, last, ns, cycles; in __rt_vdso_getcoarse() local 62 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse() 65 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
|
| /components/drivers/include/drivers/ |
| A D | dev_rtc.h | 113 rt_err_t (*get_secs)(time_t *sec); 114 rt_err_t (*set_secs)(time_t *sec);
|
| A D | hwtimer.h | 37 rt_int32_t sec; /* second */ member
|
| /components/libc/posix/io/timerfd/ |
| A D | timerfd.c | 345 static void timerfd_time_operation(time_t *sec, long *nsec) in timerfd_time_operation() argument 349 if (*sec > 0) in timerfd_time_operation() 351 *sec -= 1; in timerfd_time_operation() 356 if (*sec < 0 || *nsec < 0) in timerfd_time_operation() 358 *sec = 0; in timerfd_time_operation()
|
| /components/drivers/hwtimer/ |
| A D | hwtimer.c | 48 tv_sec = tv->sec + tv->usec/(float)1000000; in timeout_calc() 192 tv.sec = (rt_int32_t)t; in rt_hwtimer_read() 193 tv.usec = (rt_int32_t)((t - tv.sec) * 1000000); in rt_hwtimer_read()
|
| /components/drivers/rtc/ |
| A D | dev_alarm.c | 41 rt_uint32_t sec; in alarm_mkdaysec() local 43 sec = time->tm_sec; in alarm_mkdaysec() 44 sec += time->tm_min * 60; in alarm_mkdaysec() 45 sec += time->tm_hour * 3600; in alarm_mkdaysec() 47 return (sec); in alarm_mkdaysec()
|
| A D | dev_rtc.c | 372 MSH_CMD_EXPORT(date, get date and time or set (local timezone) [year month day hour min sec])
|
| /components/dfs/dfs_v1/filesystems/elmfat/ |
| A D | dfs_elm.c | 816 int year, mon, day, hour, min, sec; in dfs_elm_stat() local 827 sec = (tmp & 0x1F) * 2; /* bit[4:0] Second/2(0..29) */ in dfs_elm_stat() 839 tm_file.tm_sec = sec; /* Seconds: 0-59 */ in dfs_elm_stat()
|
| /components/dfs/dfs_v2/filesystems/elmfat/ |
| A D | dfs_elm.c | 906 int year, mon, day, hour, min, sec; in dfs_elm_stat() local 917 sec = (tmp & 0x1F) * 2; /* bit[4:0] Second/2(0..29) */ in dfs_elm_stat() 929 tm_file.tm_sec = sec; /* Seconds: 0-59 */ in dfs_elm_stat()
|
| /components/drivers/pci/ |
| A D | probe.c | 433 rt_uint8_t *sec, rt_uint8_t *sub) in pci_ea_fixed_busnrs() argument 454 *sec = ea_sec; in pci_ea_fixed_busnrs()
|
| /components/net/lwip/lwip-2.0.3/src/apps/sntp/ |
| A D | sntp.c | 84 #define SNTP_SET_SYSTEM_TIME_US(sec, us) argument
|