| /components/lwp/vdso/user/arch/aarch64/ |
| A D | vdso_sys.c | 33 __rt_vdso_getcoarse(struct timespec *ts, clockid_t clock, const struct vdso_data *vdns) in __rt_vdso_getcoarse() argument 58 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse() 59 ts->tv_nsec = ns; in __rt_vdso_getcoarse() 66 struct timespec *ts) in __vdso_clock_gettime_common() argument 75 return __rt_vdso_getcoarse(ts,CLOCK_REALTIME,vd); in __vdso_clock_gettime_common() 77 return __rt_vdso_getcoarse(ts,CLOCK_MONOTONIC,vd); in __vdso_clock_gettime_common() 84 struct timespec *ts) in rt_vdso_clock_gettime_data() argument 87 ret = __vdso_clock_gettime_common(vd, clock, ts); in rt_vdso_clock_gettime_data() 92 __kernel_clock_gettime(clockid_t clock, struct timespec *ts) in __kernel_clock_gettime() argument 94 return rt_vdso_clock_gettime_data(__arch_get_vdso_data(), clock, ts); in __kernel_clock_gettime()
|
| /components/lwp/vdso/user/arch/risc-v/ |
| A D | vdso_sys.c | 40 __rt_vdso_getcoarse(struct timespec *ts, clockid_t clock, const struct vdso_data *vdns) in __rt_vdso_getcoarse() argument 65 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse() 66 ts->tv_nsec = ns; in __rt_vdso_getcoarse() 73 struct timespec *ts) in __vdso_clock_gettime_common() argument 82 return __rt_vdso_getcoarse(ts, CLOCK_REALTIME, vd); in __vdso_clock_gettime_common() 84 return __rt_vdso_getcoarse(ts, CLOCK_MONOTONIC, vd); in __vdso_clock_gettime_common() 91 struct timespec *ts) in rt_vdso_clock_gettime_data() argument 94 ret = __vdso_clock_gettime_common(vd, clock, ts); in rt_vdso_clock_gettime_data() 98 int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime() argument 100 return rt_vdso_clock_gettime_data(__arch_get_vdso_data(), clock, ts); in __vdso_clock_gettime()
|
| /components/net/lwip/lwip-2.1.2/src/netif/ |
| A D | bridgeif_fdb.c | 57 u32_t ts; member 84 if (e->used && e->ts) { in bridgeif_fdb_update_src() 90 e->ts = BR_FDB_TIMEOUT_SEC; in bridgeif_fdb_update_src() 101 if (!e->used || !e->ts) { in bridgeif_fdb_update_src() 104 if (!e->used || !e->ts) { in bridgeif_fdb_update_src() 109 e->ts = BR_FDB_TIMEOUT_SEC; in bridgeif_fdb_update_src() 136 if (e->used && e->ts) { in bridgeif_fdb_get_dst_ports() 164 if (e->used && e->ts) { in bridgeif_fdb_age_one_second() 167 if (e->used && e->ts) { in bridgeif_fdb_age_one_second() 168 if (--e->ts == 0) { in bridgeif_fdb_age_one_second()
|
| /components/drivers/rtc/ |
| A D | dev_soft_rtc.c | 137 struct timespec *ts = (struct timespec *)args; in soft_rtc_control() local 139 ts->tv_sec = init_time + _ts.tv_sec; in soft_rtc_control() 140 ts->tv_nsec = init_ts.tv_nsec + _ts.tv_nsec; in soft_rtc_control() 146 struct timespec *ts = (struct timespec *)args; in soft_rtc_control() local 148 set_rtc_time(ts->tv_sec); in soft_rtc_control() 149 init_ts.tv_nsec = ts->tv_nsec - _ts.tv_nsec; in soft_rtc_control() 154 struct timespec *ts = (struct timespec *)args; in soft_rtc_control() local 155 ts->tv_sec = 0; in soft_rtc_control() 178 struct timespec *ts = (struct timespec *)args; in soft_rtc_control() local 179 ts->tv_sec = 0; in soft_rtc_control() [all …]
|
| /components/drivers/ktime/src/ |
| A D | boottime.c | 38 rt_weak rt_err_t rt_ktime_boottime_get_ns(struct timespec *ts) in rt_ktime_boottime_get_ns() argument 40 RT_ASSERT(ts != RT_NULL); in rt_ktime_boottime_get_ns() 44 ts->tv_sec = ns / (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_ns() 45 ts->tv_nsec = ns % (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_ns()
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | eap.c | 431 struct t_server *ts; in eap_figure_next_state() local 446 if (ts != NULL) { in eap_figure_next_state() 447 t_serverclose(ts); in eap_figure_next_state() 571 t_serverclose(ts); in eap_figure_next_state() 589 t_serverclose(ts); in eap_figure_next_state() 606 t_serverclose(ts); in eap_figure_next_state() 740 MEMCPY(outp, ts->s.data, ts->s.len); in eap_send_request() 743 if (ts->g.len == 1 && ts->g.data[0] == 2) { in eap_send_request() 747 MEMCPY(outp, ts->g.data, ts->g.len); in eap_send_request() 753 MEMCPY(outp, ts->n.data, ts->n.len); in eap_send_request() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | eap.c | 431 struct t_server *ts; in eap_figure_next_state() local 446 if (ts != NULL) { in eap_figure_next_state() 447 t_serverclose(ts); in eap_figure_next_state() 571 t_serverclose(ts); in eap_figure_next_state() 589 t_serverclose(ts); in eap_figure_next_state() 606 t_serverclose(ts); in eap_figure_next_state() 740 MEMCPY(outp, ts->s.data, ts->s.len); in eap_send_request() 743 if (ts->g.len == 1 && ts->g.data[0] == 2) { in eap_send_request() 747 MEMCPY(outp, ts->g.data, ts->g.len); in eap_send_request() 753 MEMCPY(outp, ts->n.data, ts->n.len); in eap_send_request() [all …]
|
| /components/libc/compilers/common/ |
| A D | ctime.c | 665 struct timespec ts = {0}; in clock_nanosleep() local 685 err = _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, &ts); in clock_nanosleep() 692 err = rt_ktime_boottime_get_ns(&ts); in clock_nanosleep() 703 int64_t ns = rqtp->tv_nsec - ts.tv_nsec + (rqtp->tv_sec - ts.tv_sec) * NANOSECOND_PER_SECOND; in clock_nanosleep() 709 ts.tv_nsec = ns % NANOSECOND_PER_SECOND; in clock_nanosleep() 710 ts.tv_sec = ns / NANOSECOND_PER_SECOND; in clock_nanosleep() 711 return nanosleep(&ts, rmtp); in clock_nanosleep() 1165 struct timespec ts = {0}; in timer_settime() local 1206 err = _control_rtc(RT_DEVICE_CTRL_RTC_GET_TIMESPEC, &ts); in timer_settime() 1215 err = rt_ktime_boottime_get_ns(&ts); in timer_settime() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_traps.c | 64 u32_t ts; member 193 MIB2_COPY_SYSUPTIME_TO(&trap_msg.ts); in snmp_send_trap() 313 snmp_asn1_enc_u32t_cnt(trap->ts, &len); in snmp_trap_header_sum() 440 snmp_asn1_enc_s32t_cnt(trap->ts, &tlv.value_len); in snmp_trap_header_enc() 442 snmp_asn1_enc_s32t(pbuf_stream, tlv.value_len, trap->ts); in snmp_trap_header_enc()
|
| A D | snmp_mib2_interfaces.c | 217 *value_u32 = netif->ts; in interfaces_Table_get_value()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_traps.c | 64 u32_t ts; member 202 MIB2_COPY_SYSUPTIME_TO(&trap_msg.ts); in snmp_send_trap() 322 snmp_asn1_enc_u32t_cnt(trap->ts, &len); in snmp_trap_header_sum() 451 snmp_asn1_enc_s32t_cnt(trap->ts, &tlv.value_len); in snmp_trap_header_enc() 453 BUILD_EXEC( snmp_asn1_enc_s32t(pbuf_stream, tlv.value_len, trap->ts) ); in snmp_trap_header_enc()
|
| A D | snmp_mib2_interfaces.c | 210 *value_u32 = netif->ts; in interfaces_Table_get_value()
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | netif.h | 211 u32_t ts; member 246 (netif)->ts = 0; \
|
| A D | snmp_msg.h | 276 u32_t ts; member
|
| /components/drivers/ktime/inc/ |
| A D | ktime.h | 59 rt_err_t rt_ktime_boottime_get_ns(struct timespec *ts);
|
| /components/drivers/pic/ |
| A D | pic.c | 547 struct timespec ts; in rt_pic_handle_isr() local 556 rt_ktime_boottime_get_ns(&ts); in rt_pic_handle_isr() 557 current_irq_begin = ts.tv_sec * (1000UL * 1000 * 1000) + ts.tv_nsec; in rt_pic_handle_isr() 617 rt_ktime_boottime_get_ns(&ts); in rt_pic_handle_isr() 618 irq_time_ns = ts.tv_sec * (1000UL * 1000 * 1000) + ts.tv_nsec - current_irq_begin; in rt_pic_handle_isr()
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | snmp.h | 122 (netif)->ts = 0; \
|
| A D | netif.h | 367 u32_t ts; member
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | snmp.h | 122 (netif)->ts = 0; \
|
| A D | netif.h | 324 u32_t ts; member
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | msg_out.c | 247 snmp_get_sysuptime(&trap_msg.ts); in snmp_send_trap() 367 snmp_asn1_enc_u32t_cnt(m_trap->ts, &thl->tslen); in snmp_trap_header_sum() 598 snmp_asn1_enc_u32t(p, ofs, m_trap->thl.tslen, m_trap->ts); in snmp_trap_header_enc()
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | netif.c | 481 snmp_get_sysuptime(&netif->ts); in netif_set_up() 522 snmp_get_sysuptime(&netif->ts); in netif_set_down()
|
| /components/lwp/ |
| A D | lwp_syscall.c | 8040 if (!lwp_user_accessable((void *)ts, size)) in sys_clock_settime() 8051 lwp_get_from_user(kts, (void *)ts, size); in sys_clock_settime() 8066 ret = clock_settime(clk, ts); in sys_clock_settime() 8094 sysret_t sys_clock_gettime(clockid_t clk, struct timespec *ts) in sys_clock_gettime() argument 8101 if (!lwp_user_accessable((void *)ts, size)) in sys_clock_gettime() 8114 lwp_put_to_user(ts, kts, size); in sys_clock_gettime() 8129 ret = clock_gettime(clk, ts); in sys_clock_gettime() 8221 sysret_t sys_clock_getres(clockid_t clk, struct timespec *ts) in sys_clock_getres() argument 8228 if (!lwp_user_accessable((void *)ts, size)) in sys_clock_getres() 8236 lwp_put_to_user(ts, &kts, size); in sys_clock_getres() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | netif.c | 651 MIB2_COPY_SYSUPTIME_TO(&netif->ts); in netif_set_up() 713 MIB2_COPY_SYSUPTIME_TO(&netif->ts); in netif_set_down()
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | netif.c | 878 MIB2_COPY_SYSUPTIME_TO(&netif->ts); in netif_set_up() 965 MIB2_COPY_SYSUPTIME_TO(&netif->ts); in netif_set_down()
|