Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 206) sorted by relevance

123456789

/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
Dtime.h93 #define timerisset(t) ((t)->tv_sec || (t)->tv_usec)
94 #define timerclear(t) ((t)->tv_sec = (t)->tv_usec = 0)
95 #define timercmp(s,t,op) ((s)->tv_sec == (t)->tv_sec ? \
96 (s)->tv_usec op (t)->tv_usec : (s)->tv_sec op (t)->tv_sec)
97 #define timeradd(s,t,a) (void) ( (a)->tv_sec = (s)->tv_sec + (t)->tv_sec, \
99 ((a)->tv_usec -= 1000000, (a)->tv_sec++) )
100 #define timersub(s,t,a) (void) ( (a)->tv_sec = (s)->tv_sec - (t)->tv_sec, \
102 ((a)->tv_usec += 1000000, (a)->tv_sec--) )
107 (ts)->tv_sec = (tv)->tv_sec, \
111 (tv)->tv_sec = (ts)->tv_sec, \
Dstat.h33 #define st_atime st_atim.tv_sec
34 #define st_mtime st_mtim.tv_sec
35 #define st_ctime st_ctim.tv_sec
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
Dmali_kbase_trace_timeline.h53 …trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, (int)kctx->timeline.owner_tgid, count);…
61 …trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, CTX_FLOW_ATOM_READY, (int)kctx->timeline.owner_tgi…
75 …trace_mali_timeline_gpu_slot_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_SLOT_ACTIVE, …
84 …trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_SLOT_NEXT, …
93 …trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_SLOT_HEAD, …
102 …trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_SLOT_STOPPING, …
111 …trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_POWER_ACTIVE, active); …
119 …trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_POWER_TILER_ACTIVE, hweight…
127 …trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_POWER_SHADER_ACTIVE, …
136 …trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, SW_SET_GPU_POWER_L2_ACTIVE, hweight64(…
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
Dmali_kbase_trace_timeline.h54 trace_mali_timeline_atoms_in_flight(ts.tv_sec, ts.tv_nsec, \
64 trace_mali_timeline_atom(ts.tv_sec, ts.tv_nsec, \
81 trace_mali_timeline_gpu_slot_active(ts.tv_sec, ts.tv_nsec, \
93 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \
104 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \
115 trace_mali_timeline_gpu_slot_action(ts.tv_sec, ts.tv_nsec, \
128 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \
137 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \
147 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \
157 trace_mali_timeline_gpu_power_active(ts.tv_sec, ts.tv_nsec, \
[all …]
/device/soc/esp/esp32/components/newlib/
Dtime.c128 outdelta->tv_sec = s_adjtime_total_correction_us / 1000000L; in adjtime()
131 outdelta->tv_sec = 0; in adjtime()
137 int64_t sec = delta->tv_sec; in adjtime()
169 return (clock_t) tv.tv_sec; in _times_r()
179 tv->tv_sec = microseconds / 1000000; in _gettimeofday_r()
195 uint64_t now = ((uint64_t) tv->tv_sec) * 1000000LL + tv->tv_usec; in settimeofday()
236 tv.tv_sec = tp->tv_sec; in clock_settime()
263 tp->tv_sec = tv.tv_sec; in clock_gettime()
268 tp->tv_sec = monotonic_time_us / 1000000LL; in clock_gettime()
290 res->tv_sec = 0; in clock_getres()
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/platform/
Dsystem_profiler.c35 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in time_diff()
38 temp.tv_sec = end.tv_sec - start.tv_sec; in time_diff()
41 return (uint64_t)temp.tv_sec * 1000000000 + temp.tv_nsec; in time_diff()
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/linux/
Dlinux.cpp103 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in read()
105 interval.tv_sec = 0; in read()
136 tv.tv_sec = 0; /* 30 Secs Timeout */ in write()
178 return res.tv_sec < 0 || (res.tv_sec == 0 && res.tv_usec <= 0); in expired()
207 return (res.tv_sec < 0) ? 0 : res.tv_sec * 1000 + res.tv_usec / 1000; in left_ms()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/demux/sw_demux/
Dswdemux_test.c206 diff_time = (tv_limits.tv_sec - 1 - targs.start_tv.tv_sec) * 1000 + in thread_func()
209 diff_time = (tv_limits.tv_sec - targs.start_tv.tv_sec) * 1000 + in thread_func()
220 diff_time = (tv.tv_sec - 1 - targs.start_tv.tv_sec) * 1000 + in thread_func()
223 diff_time = (tv.tv_sec - targs.start_tv.tv_sec) * 1000 + in thread_func()
275 diff_time = (tv.tv_sec - 1 - start_tv.tv_sec) * 1000 + in main()
278 diff_time = (tv.tv_sec - start_tv.tv_sec) * 1000 + in main()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_util.c215 tv1.tv_sec += 2; /* 加2 */ in oal_random_ether_addr()
217 tv2.tv_sec = (hi_u32)((hi_u32)((hi_u64)tv1.tv_sec * tv1.tv_sec) * (hi_u64)tv1.tv_usec); in oal_random_ether_addr()
218 tv2.tv_usec = (hi_u32)((hi_u32)((hi_u64)tv1.tv_sec * tv1.tv_usec) * (hi_u64)tv1.tv_usec); in oal_random_ether_addr()
221 mac_addr[0] = ((hi_u32)tv2.tv_sec & 0xff) & 0xfe; in oal_random_ether_addr()
223 mac_addr[2] = ((hi_u32)tv2.tv_sec & 0xff0) >> 4; /* mac_addr[2]右移4 bit */ in oal_random_ether_addr()
225 mac_addr[4] = ((hi_u32)tv2.tv_sec & 0xff00) >> 8; /* mac_addr[4]右移8 bit */ in oal_random_ether_addr()
Dhi_time.c53 return (hi_u32)(tp.tv_sec); in hi_get_seconds()
64 return (hi_u64)(hi_u32)tp.tv_sec * SEC_TO_US + (hi_u32)tp.tv_nsec / US_TO_NSEC; in hi_get_us()
75 return (hi_u32)(tp.tv_sec); in hi_get_real_time()
86 tp.tv_sec = (int)sec; in hi_set_real_time()
Doal_time.h151 pst_usec->i_sec = ts.tv_sec; in oal_time_get_stamp_us()
192 curr_time = curr_time + tv.tv_sec * 1000; /* mul 1000 */ in oal_get_time_stamp_from_timeval()
258 pst_usec->i_sec = tv.tv_sec; in oal_time_get_stamp_us()
298 return ((hi_u64)tv.tv_usec / 1000 + (hi_u64)tv.tv_sec * 1000); /* div/mul 1000 */ in oal_get_time_stamp_from_timeval()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
DOsWrapper.h32 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
36 --(result)->tv_sec; \
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/
Ddw9763.c244 dev_vcm->end_move_tv.tv_sec = in dw9763_set_ctrl()
245 dev_vcm->start_move_tv.tv_sec + 1; in dw9763_set_ctrl()
248 dev_vcm->end_move_tv.tv_sec = in dw9763_set_ctrl()
249 dev_vcm->start_move_tv.tv_sec; in dw9763_set_ctrl()
355 vcm_tim->vcm_start_t.tv_sec = dw9763_dev->start_move_tv.tv_sec; in dw9763_ioctl()
358 vcm_tim->vcm_end_t.tv_sec = dw9763_dev->end_move_tv.tv_sec; in dw9763_ioctl()
362 vcm_tim->vcm_start_t.tv_sec, in dw9763_ioctl()
364 vcm_tim->vcm_end_t.tv_sec, in dw9763_ioctl()
389 compat_vcm_tim.vcm_start_t.tv_sec = vcm_tim.vcm_start_t.tv_sec; in dw9763_compat_ioctl32()
392 compat_vcm_tim.vcm_end_t.tv_sec = vcm_tim.vcm_end_t.tv_sec; in dw9763_compat_ioctl32()
[all …]
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/linux/
DMQTTLinux.c30 return res.tv_sec < 0 || (res.tv_sec == 0 && res.tv_usec <= 0); in TimerIsExpired()
65 return (res.tv_sec < 0) ? 0 : res.tv_sec * 1000 + res.tv_usec / 1000; in TimerLeftMS()
72 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in linux_read()
74 interval.tv_sec = 0; in linux_read()
123 interval.tv_sec = 0; /* 30 Secs Timeout */ in linux_write()
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/samples/linux/
Dmain.cpp102 if (interval.tv_sec < 0 || (interval.tv_sec == 0 && interval.tv_usec <= 0)) in read()
104 interval.tv_sec = 0; in read()
122 tv.tv_sec = 0; /* 30 Secs Timeout */ in write()
165 return res.tv_sec < 0 || (res.tv_sec == 0 && res.tv_usec <= 0); in expired()
194 return (res.tv_sec < 0) ? 0 : res.tv_sec * 1000 + res.tv_usec / 1000; in left_ms()
/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
Dtime.c65 if ((tp->tv_nsec < 0) || (tp->tv_nsec >= OS_SYS_NS_PER_SECOND) || (tp->tv_sec < 0)) { in ValidTimeSpec()
76 ns = (UINT64)tp->tv_sec * OS_SYS_NS_PER_SECOND + tp->tv_nsec; in OsTimeSpec2Tick()
88 tp->tv_sec = (time_t)(ns / OS_SYS_NS_PER_SECOND); in OsTick2TimeSpec()
104 nseconds = (UINT64)rqtp->tv_sec * OS_SYS_NS_PER_SECOND + rqtp->tv_nsec; in nanosleep()
117 rmtp->tv_sec = rmtp->tv_nsec = 0; in nanosleep()
220 if ((value->it_value.tv_sec == 0) && (value->it_value.tv_nsec == 0)) { in timer_settime()
/device/board/unionman/unionpi_tiger/hardware/bt/src/
Drtk_poll.c115 ts.it_value.tv_sec = 0; in poll_timer_stop()
117 ts.it_interval.tv_sec = 0; in poll_timer_stop()
235 ts.it_value.tv_sec = bt_poll_cb.timeout_ms / 1000L; in poll_timer_flush()
237 ts.it_interval.tv_sec = 0; in poll_timer_flush()
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/
Drtk_poll.c126 ts.it_value.tv_sec = 0; in poll_timer_stop()
128 ts.it_interval.tv_sec = 0; in poll_timer_stop()
253 ts.it_value.tv_sec = bt_poll_cb.timeout_ms / 1000; in poll_timer_flush()
255 ts.it_interval.tv_sec = 0; in poll_timer_flush()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/higv/include/
Dhi_condition.h74 ts.tv_sec = 0; in waitRelative()
77 ts.tv_sec += reltime / SEC_TO_NSEC; in waitRelative()
81 ts.tv_sec += 1; in waitRelative()
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/hw/include/
Dtime64.h51 int64_t tv_sec; member
56 int64_t tv_sec; member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/
Ddisp_eink_manager.c521 t2 = (flush_start_timer.tv_sec - wb_end_timer.tv_sec) * 1000000 + in eink_calculate_index_data()
524 (index_hard_timer.tv_sec - wb_end_timer.tv_sec) * 1000000 + in eink_calculate_index_data()
527 (flush_start_timer.tv_sec - index_hard_timer.tv_sec) * 1000000 + in eink_calculate_index_data()
549 (start_decode_timer.tv_sec - in start_decode()
550 flush_start_timer.tv_sec) * 1000000 + in start_decode()
617 t4 = (flush_end_timer.tv_sec - in eink_display_one_frame()
618 open_tcon_timer.tv_sec) * 1000000 + in eink_display_one_frame()
722 (fi_decode[decode_task_t].tv_sec - in eink_decode_task()
723 en_decode[decode_task_t].tv_sec) * 1000000 + in eink_decode_task()
763 (en_lcd.tv_sec - start_decode_timer.tv_sec) * 1000000 + in eink_decode_task()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
Dosal_timer.c142 tv->tv_sec = t.tv_sec; in osal_gettimeofday()
152 tv->tv_sec = t.tv_sec; in osal_gettimeofday()
/device/soc/esp/esp32/components/pthread/
Dpthread_cond_var.c108 abs_time.tv_sec = to->tv_sec; in pthread_cond_timedwait()
118 timeout_msec = (diff_time.tv_sec * 1000) + (diff_time.tv_usec / 1000); in pthread_cond_timedwait()
/device/soc/winnermicro/wm800/board/
Dtask_demo.c50 UINT32 tv_sec = nowNsec / OS_SYS_NS_PER_SECOND; in TaskSampleEntry2() local
52 printf("TaskSampleEntry2 running... tv_sec %d, tv_nsec %d\n", tv_sec, tv_nsec); in TaskSampleEntry2()
/device/qemu/arm_mps3_an547/liteos_m/board/test/
Dmatrix_example.c71 …timeCost = (unsigned int)(end.tv_sec - start.tv_sec) * MS_PER_S + (unsigned int)(end.tv_usec - sta… in test_dsp()

123456789