Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 25 of 96) sorted by relevance

1234

/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)
96 (s)->tv_usec op (t)->tv_usec : (s)->tv_sec op (t)->tv_sec)
98 ((a)->tv_usec = (s)->tv_usec + (t)->tv_usec) >= 1000000 && \
99 ((a)->tv_usec -= 1000000, (a)->tv_sec++) )
101 ((a)->tv_usec = (s)->tv_usec - (t)->tv_usec) < 0 && \
102 ((a)->tv_usec += 1000000, (a)->tv_sec--) )
108 (ts)->tv_nsec = (tv)->tv_usec * 1000, \
112 (tv)->tv_usec = (ts)->tv_nsec / 1000, \
Dprocfs.h27 long tv_sec, tv_usec; member
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/demux/sw_demux/
Dswdemux_test.c205 if (tv_limits.tv_usec < targs.start_tv.tv_usec) { in thread_func()
207 (tv_limits.tv_usec + 1*1000*1000 - targs.start_tv.tv_usec) / 1000; in thread_func()
210 (tv_limits.tv_usec - targs.start_tv.tv_usec) / 1000; in thread_func()
219 if (tv.tv_usec < targs.start_tv.tv_usec) { in thread_func()
221 (tv.tv_usec + 1*1000*1000 - targs.start_tv.tv_usec) / 1000; in thread_func()
224 (tv.tv_usec - targs.start_tv.tv_usec) / 1000; in thread_func()
274 if (tv.tv_usec < start_tv.tv_usec) { in main()
276 (tv.tv_usec + 1*1000*1000 - start_tv.tv_usec) / 1000; in main()
279 (tv.tv_usec - start_tv.tv_usec) / 1000; in main()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
DOsWrapper.h33 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
34 if ((result)->tv_usec < 0) \
37 (result)->tv_usec += 1000000L; \
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/
Ddw9763.c242 mv_us = dev_vcm->start_move_tv.tv_usec + dev_vcm->move_us; in dw9763_set_ctrl()
246 dev_vcm->end_move_tv.tv_usec = mv_us - 1000000; in dw9763_set_ctrl()
250 dev_vcm->end_move_tv.tv_usec = mv_us; in dw9763_set_ctrl()
356 vcm_tim->vcm_start_t.tv_usec = in dw9763_ioctl()
357 dw9763_dev->start_move_tv.tv_usec; in dw9763_ioctl()
359 vcm_tim->vcm_end_t.tv_usec = dw9763_dev->end_move_tv.tv_usec; in dw9763_ioctl()
363 vcm_tim->vcm_start_t.tv_usec, in dw9763_ioctl()
365 vcm_tim->vcm_end_t.tv_usec); in dw9763_ioctl()
390 compat_vcm_tim.vcm_start_t.tv_usec = in dw9763_compat_ioctl32()
391 vcm_tim.vcm_start_t.tv_usec; in dw9763_compat_ioctl32()
[all …]
/device/soc/esp/esp32/components/newlib/
Dtime.c129 outdelta->tv_usec = s_adjtime_total_correction_us % 1000000L; in adjtime()
132 outdelta->tv_usec = 0; in adjtime()
138 int64_t usec = delta->tv_usec; in adjtime()
180 tv->tv_usec = microseconds % 1000000; in _gettimeofday_r()
195 uint64_t now = ((uint64_t) tv->tv_sec) * 1000000LL + tv->tv_usec; in settimeofday()
237 tv.tv_usec = tp->tv_nsec / 1000L; in clock_settime()
264 tp->tv_nsec = tv.tv_usec * 1000L; in clock_gettime()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_util.c217 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()
222 mac_addr[1] = (hi_u32)tv2.tv_usec & 0xff; in oal_random_ether_addr()
224 mac_addr[3] = ((hi_u32)tv2.tv_usec & 0xff0) >> 4; /* mac_addr[3]右移4 bit */ in oal_random_ether_addr()
226 mac_addr[5] = ((hi_u32)tv2.tv_usec & 0xff00) >> 8; /* mac_addr[5]右移8 bit */ in oal_random_ether_addr()
Doal_time.h190 curr_time = tv.tv_usec; in oal_get_time_stamp_from_timeval()
259 pst_usec->i_usec = tv.tv_usec; 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/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()
106 interval.tv_usec = 100; in read()
137 tv.tv_usec = timeout * 1000; // Not init'ing this can cause strange errors 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/soc/rockchip/rk3568/hardware/omx_il/osal/
DRockchip_OSAL_ETC.c166 if (stop->tv_usec >= start->tv_usec) { in MeasureTime()
167 usec = stop->tv_usec - start->tv_usec; in MeasureTime()
169 usec = stop->tv_usec + 1000000 - start->tv_usec; // 1000000:time shift in MeasureTime()
/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()
75 interval.tv_usec = 100; in linux_read()
124 interval.tv_usec = timeout_ms * 1000; // Not init'ing this can cause strange errors 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()
105 interval.tv_usec = 100; in read()
123 tv.tv_usec = timeout * 1000; // Not init'ing this can cause strange errors 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/board/isoftstone/zhiyuan/kernel/driver/drivers/video/sunxi/disp2/disp/de/
Ddisp_eink_manager.c522 (flush_start_timer.tv_usec - wb_end_timer.tv_usec); in eink_calculate_index_data()
525 (index_hard_timer.tv_usec - wb_end_timer.tv_usec); in eink_calculate_index_data()
528 (flush_start_timer.tv_usec - index_hard_timer.tv_usec); in eink_calculate_index_data()
551 (start_decode_timer.tv_usec - flush_start_timer.tv_usec); in start_decode()
619 (flush_end_timer.tv_usec - open_tcon_timer.tv_usec); in eink_display_one_frame()
724 (fi_decode[decode_task_t].tv_usec - in eink_decode_task()
725 en_decode[decode_task_t].tv_usec); in eink_decode_task()
764 (en_lcd.tv_usec - start_decode_timer.tv_usec); in eink_decode_task()
782 (dis_lcd.tv_usec - en_lcd.tv_usec); in eink_decode_task()
784 (dis_lcd.tv_usec - flush_start_timer.tv_usec); in eink_decode_task()
[all …]
/device/qemu/arm_mps3_an547/liteos_m/board/test/
Dmatrix_example.c71 …unsigned int)(end.tv_sec - start.tv_sec) * MS_PER_S + (unsigned int)(end.tv_usec - start.tv_usec) / in test_dsp()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/
Dosal_timer.c143 tv->tv_usec = t.tv_nsec; in osal_gettimeofday()
153 tv->tv_usec = t.tv_usec; in osal_gettimeofday()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/
Dosal_timer.c163 tv->tv_usec = osal_div_u64(osal_div64_u64_rem(ns, S_TO_NS), US_TO_NS); in osal_get_timeofday()
174 tv->tv_usec = t.tv_usec; in osal_get_timeofday()
/device/board/isoftstone/yangfan/kernel/src/driv/net/rockchip_wlan/rkwifi/bcmdhd/
Dlinux_osl.c1361 usec = (uint64)tv.tv_sec * 1000000ul + tv.tv_usec;
1414 tzusec += tv.tv_usec;
2123 ts->tv_usec = curtime.tv_nsec / 1000;
2127 ts->tv_usec = curtime.tv_nsec / 1000;
2130 ts->tv_usec = curtime.tv_usec;
2131 ts->tv_nsec = curtime.tv_usec * 1000;
2143 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE;
2144 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) : (old_ts->tv_usec - cur_ts->tv_usec);
2167 ts->tv_usec = curtime.tv_nsec / 1000;
/device/soc/esp/esp32/components/pthread/
Dpthread_cond_var.c109 abs_time.tv_usec = to->tv_nsec / 1000; in pthread_cond_timedwait()
118 timeout_msec = (diff_time.tv_sec * 1000) + (diff_time.tv_usec / 1000); in pthread_cond_timedwait()
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
Dlinux_osl.c1183 usec = (uint64)tv.tv_sec * 1000000ul + tv.tv_usec; in osl_sysuptime_us()
1219 tzusec += tv.tv_usec; in osl_systztime_us()
2079 ts->tv_usec = curtime.tv_nsec / 1000; in osl_do_gettimeofday()
2083 ts->tv_usec = curtime.tv_nsec / 1000; in osl_do_gettimeofday()
2086 ts->tv_usec = curtime.tv_usec; in osl_do_gettimeofday()
2087 ts->tv_nsec = curtime.tv_usec * 1000; in osl_do_gettimeofday()
2099 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE; in osl_do_gettimediff()
2100 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) : (old_ts->tv_usec - cur_ts->tv_usec); in osl_do_gettimediff()
2123 ts->tv_usec = curtime.tv_nsec / 1000; in osl_get_monotonic_boottime()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/
Dlinux_osl.c1180 usec = (uint64)tv.tv_sec * 1000000ul + tv.tv_usec; in osl_sysuptime_us()
1221 tzusec += tv.tv_usec; in osl_systztime_us()
2060 ts->tv_usec = curtime.tv_nsec / 0x3E8; in osl_do_gettimeofday()
2064 ts->tv_usec = curtime.tv_nsec / 0x3E8; in osl_do_gettimeofday()
2067 ts->tv_usec = curtime.tv_usec; in osl_do_gettimeofday()
2068 ts->tv_nsec = curtime.tv_usec * 0x3E8; in osl_do_gettimeofday()
2080 pgc_g = (cur_ts->tv_usec > old_ts->tv_usec) ? TRUE : FALSE; in osl_do_gettimediff()
2081 diff_us = pgc_g ? (cur_ts->tv_usec - old_ts->tv_usec) in osl_do_gettimediff()
2082 : (old_ts->tv_usec - cur_ts->tv_usec); in osl_do_gettimediff()
2106 ts->tv_usec = curtime.tv_nsec / 0x3E8; in osl_get_monotonic_boottime()
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/cc3200/
DMQTTCC3200.c62 timeVal.tv_usec = timeout_ms * 1000; in cc3200_read()
83 timeVal.tv_usec = timeout_ms * 1000; in cc3200_write()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/
Dqueue.c444 item->qdelay_timestamp = tmval.tv_usec; in xradio_queue_put()
544 item->mdelay_timestamp = tmval.tv_usec; in xradio_queue_get()
752 if (tmval.tv_usec > item->qdelay_timestamp)
753 queue_delay = tmval.tv_usec -
756 queue_delay = tmval.tv_usec +
759 if (tmval.tv_usec > item->mdelay_timestamp)
760 media_delay = tmval.tv_usec -
763 media_delay = tmval.tv_usec +
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/hw/include/
Dtime64.h52 int64_t tv_usec; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/app/demo/src/
Dapp_http_client.c62 receiving_timeout.tv_usec = 0; in http_clienti_get()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/osal/hisiv600/
Dhdmi_osal.c83 curr_us = ((hi_u64)current_time.tv_sec * HDMI_MILLION + current_time.tv_usec); in hdmi_osal_get_time_in_us()

1234