Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 36) sorted by relevance

12

/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-sched.c49 void xf_sched_put(xf_sched_t *sched, xf_task_t *t, u32 ts) in xf_sched_put() argument
57 xf_task_timestamp_set(t, ts); in xf_sched_put()
66 if (xf_timestamp_before(ts, _ts)) in xf_sched_put()
101 TRACE(DEBUG, _b("in: %x:[%p] (ts:%x)"), ts, node, xf_sched_timestamp(sched)); in xf_sched_put()
109 u32 ts; in xf_sched_get() local
123 ts = xf_task_timestamp((xf_task_t *)n_idx); in xf_sched_get()
126 xf_sched_timestamp_set(sched, ts); in xf_sched_get()
128 TRACE(DEBUG, _b("out: %x:[%p]"), ts, n_idx); in xf_sched_get()
/device/generic/goldfish/network/netmgr/
Dpoller.cpp33 struct timespec* ts) { in calculateTimeout() argument
38 ts->tv_sec = 0; in calculateTimeout()
39 ts->tv_nsec = 0; in calculateTimeout()
40 return ts; in calculateTimeout()
49 ts->tv_sec = seconds.count(); in calculateTimeout()
50 ts->tv_nsec = nanos.count(); in calculateTimeout()
52 return ts; in calculateTimeout()
102 struct timespec ts = { 0, 0 }; in run() local
103 struct timespec* tsPtr = calculateTimeout(deadline, &ts); in run()
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp33 struct timespec* ts) { in calculateTimeout() argument
37 ts->tv_sec = 0; in calculateTimeout()
38 ts->tv_nsec = 0; in calculateTimeout()
39 return ts; in calculateTimeout()
48 ts->tv_sec = seconds.count(); in calculateTimeout()
49 ts->tv_nsec = nanos.count(); in calculateTimeout()
51 return ts; in calculateTimeout()
101 struct timespec ts = { 0, 0 }; in run() local
102 struct timespec* tsPtr = calculateTimeout(deadline, &ts); in run()
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-sched.h55 static inline u32 xf_task_timestamp_set(xf_task_t *t, u32 ts) in xf_task_timestamp_set() argument
58 return (((rb_node_t *)t)->color = ts); in xf_task_timestamp_set()
76 static inline u32 xf_sched_timestamp_set(xf_sched_t *sched, u32 ts) in xf_sched_timestamp_set() argument
79 return (((rb_tree_t *)sched)->root.color = ts & ~0x1); in xf_sched_timestamp_set()
87 extern void xf_sched_put(xf_sched_t *sched, xf_task_t *t, u32 ts);
Dxf-msg.h179 extern void xf_msg_schedule(xf_message_t *m, u32 ts);
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/
Dxf-osal.h108 struct timespec ts; in __xf_wait() local
123 ts.tv_sec = tv.tv_sec + timeout / 1000; in __xf_wait()
124 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000; in __xf_wait()
125 (ts.tv_nsec >= 1000000000 ? ts.tv_sec++, ts.tv_nsec -= 1000000000 : 0); in __xf_wait()
128 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts); in __xf_wait()
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/
Dxf-osal.h102 struct timespec ts;
117 ts.tv_sec = tv.tv_sec + timeout / 1000;
118 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000;
119 (ts.tv_nsec >= 1000000000 ? ts.tv_sec++, ts.tv_nsec -= 1000000000 : 0);
122 r = -pthread_cond_timedwait(&w->wait, &w->mutex, &ts);
/device/generic/goldfish/gnss/
Dgnss_hw_listener.cpp77 const ahg20::ElapsedRealtime ts = util::makeElapsedRealtime(util::nowNanos()); in consume() local
79 if (parse(m_buffer.data() + 1, m_buffer.data() + m_buffer.size() - 2, ts)) { in consume()
80 m_sink->gnssNmea(ts.timestampNs / 1000000, in consume()
95 const ahg20::ElapsedRealtime& ts) { in parse() argument
97 return parseGPRMC(fields, end, ts); in parse()
99 return parseGPGGA(fields, end, ts); in parse()
121 const ahg20::ElapsedRealtime& ts) { in parseGPRMC() argument
158 loc20.elapsedRealtime = ts; in parseGPRMC()
169 loc10.timestamp = ts.timestampNs / 1000000; in parseGPRMC()
Dutil.cpp29 ahg20::ElapsedRealtime ts = { in makeElapsedRealtime() local
36 return ts; in makeElapsedRealtime()
/device/generic/goldfish/audio/
Dutil.cpp153 TimeSpec ts; in nsecs2TimeSpec() local
154 ts.tvSec = ns2s(ns); in nsecs2TimeSpec()
155 ts.tvNSec = ns - s2ns(ts.tvSec); in nsecs2TimeSpec()
156 return ts; in nsecs2TimeSpec()
Ddevice_port_sink.cpp63 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
70 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition()
219 Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) override { in getPresentationPosition()
222 ts = util::nsecs2TimeSpec(mTimestamp); in getPresentationPosition()
Ddevice_port_sink.h34 virtual Result getPresentationPosition(uint64_t &frames, TimeSpec &ts) = 0;
/device/linaro/hikey/power/
Dpower_hikey.c150 struct timespec ts; in gettime_ns() local
152 clock_gettime(CLOCK_MONOTONIC, &ts); in gettime_ns()
153 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in gettime_ns()
158 struct timespec ts; in nanosleep_ns() local
159 ts.tv_sec = ns/NSEC_PER_SEC; in nanosleep_ns()
160 ts.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_ns()
161 nanosleep(&ts, NULL); in nanosleep_ns()
/device/google/cuttlefish/common/libs/time/
Dmonotonic_time.h122 struct timespec ts; in Now() local
132 clock_gettime(CLOCK_MONOTONIC, &ts); in Now()
134 clock_gettime(CLOCK_MONOTONIC, &ts); in Now()
136 return MonotonicTimePoint(ts); in Now()
144 explicit MonotonicTimePoint(const struct timespec& ts) { in MonotonicTimePoint() argument
145 ts_ = ts; in MonotonicTimePoint()
/device/generic/goldfish/radio/ril/
Datchannel.c108 struct timespec ts; in sleepMsec() local
111 ts.tv_sec = (msec / 1000); in sleepMsec()
112 ts.tv_nsec = (msec % 1000) * 1000 * 1000; in sleepMsec()
115 err = nanosleep (&ts, &ts); in sleepMsec()
678 struct timespec ts; in at_send_command_full_nolock() local
697 setTimespecRelative(&ts, timeoutMsec); in at_send_command_full_nolock()
702 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock()
/device/google/cuttlefish/guest/hals/ril/reference-ril/
Datchannel.c107 struct timespec ts; in sleepMsec() local
110 ts.tv_sec = (msec / 1000); in sleepMsec()
111 ts.tv_nsec = (msec % 1000) * 1000 * 1000; in sleepMsec()
114 err = nanosleep (&ts, &ts); in sleepMsec()
677 struct timespec ts; in at_send_command_full_nolock() local
696 setTimespecRelative(&ts, timeoutMsec); in at_send_command_full_nolock()
701 err = pthread_cond_timedwait(&s_commandcond, &s_commandmutex, &ts); in at_send_command_full_nolock()
/device/google/contexthub/util/stm32_flash/
Dflash.c93 struct timespec ts; in main() local
171 ts.tv_sec = 0; in main()
172 ts.tv_nsec = 200000000; in main()
173 nanosleep(&ts, NULL); in main()
/device/generic/goldfish/dhcp/client/
Ddhcpclient.cpp225 struct timespec ts; in waitAndReceive() local
226 ts.tv_sec = timeout / 1000; in waitAndReceive()
227 ts.tv_nsec = (timeout - ts.tv_sec * 1000) * 1000000; in waitAndReceive()
232 int res = ::ppoll(&fds, 1, &ts, &pollSignalMask); in waitAndReceive()
/device/generic/goldfish/radio/libril/
Dril_event.cpp98 struct timespec ts; in getNow() local
99 clock_gettime(CLOCK_MONOTONIC, &ts); in getNow()
100 tv->tv_sec = ts.tv_sec; in getNow()
101 tv->tv_usec = ts.tv_nsec/1000; in getNow()
/device/google/cuttlefish/guest/hals/ril/libril/
Dril_event.cpp98 struct timespec ts; in getNow() local
99 clock_gettime(CLOCK_MONOTONIC, &ts); in getNow()
100 tv->tv_sec = ts.tv_sec; in getNow()
101 tv->tv_usec = ts.tv_nsec/1000; in getNow()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
Dril_event.cpp98 struct timespec ts; in getNow() local
99 clock_gettime(CLOCK_MONOTONIC, &ts); in getNow()
100 tv->tv_sec = ts.tv_sec; in getNow()
101 tv->tv_usec = ts.tv_nsec/1000; in getNow()
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dstats_keeper.cpp58 void TimeDifferenceToTimeSpec(const TimeDifference& td, timespec* ts) { in TimeDifferenceToTimeSpec() argument
59 ts->tv_sec = td.seconds(); in TimeDifferenceToTimeSpec()
60 ts->tv_nsec = td.subseconds_in_ns(); in TimeDifferenceToTimeSpec()
/device/google/coral-kernel/sm8150/kernel-headers/linux/mfd/adnc/
Diaxxx-tunnel-intf.h31 uint64_t ts; member
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/mfd/adnc/
Diaxxx-tunnel-intf.h30 uint64_t ts; member
/device/amlogic/yukawa/hal/audio/
Daudio_hw.c68 static void timestamp_adjust(struct timespec* ts, ssize_t frames, uint32_t sampling_rate) { in timestamp_adjust() argument
73 ts->tv_nsec += adj_nsec; in timestamp_adjust()
74 while (ts->tv_nsec > 1E9L) { in timestamp_adjust()
75 ts->tv_sec++; in timestamp_adjust()
76 ts->tv_nsec -= 1E9L; in timestamp_adjust()
78 if (ts->tv_nsec < 0) { in timestamp_adjust()
79 ts->tv_sec--; in timestamp_adjust()
80 ts->tv_nsec += 1E9L; in timestamp_adjust()

12