Home
last modified time | relevance | path

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

12345678910>>...19

/openbsd/sys/dev/pci/drm/include/linux/
H A Dinterrupt.h76 ts->func = func; in tasklet_init()
77 ts->data = data; in tasklet_init()
78 ts->state = 0; in tasklet_init()
81 task_set(&ts->task, tasklet_run, ts); in tasklet_init()
88 ts->callback = callback; in tasklet_setup()
89 ts->data = 0; in tasklet_setup()
90 ts->state = 0; in tasklet_setup()
92 ts->use_callback = true; in tasklet_setup()
93 task_set(&ts->task, tasklet_run, ts); in tasklet_setup()
134 atomic_inc(&ts->count); in tasklet_disable_nosync()
[all …]
H A Dktime.h31 struct timespec ts; in ktime_get() local
32 nanouptime(&ts); in ktime_get()
39 struct timespec ts; in ktime_get_raw() local
40 nanouptime(&ts); in ktime_get_raw()
77 struct timespec64 ts; in ktime_to_timespec64() local
80 if (ts.tv_nsec < 0) { in ktime_to_timespec64()
81 ts.tv_sec--; in ktime_to_timespec64()
84 return ts; in ktime_to_timespec64()
168 struct timespec ts; in ktime_set() local
169 ts.tv_sec = s; in ktime_set()
[all …]
/openbsd/regress/usr.bin/ssh/unittests/misc/
H A Dtest_ptimeout.c26 struct timespec pt, *ts; in test_ptimeout() local
38 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
39 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
48 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
49 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
58 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
59 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
69 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
70 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
80 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
[all …]
/openbsd/gnu/gcc/libgomp/
H A Dteam.c89 thr->ts = data->ts; in gomp_thread_start()
91 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; in gomp_thread_start()
112 team = thr->ts.team; in gomp_thread_start()
115 thr->ts.team = NULL; in gomp_thread_start()
117 thr->ts.team_id = 0; in gomp_thread_start()
195 team->prev_ts = thr->ts; in gomp_team_start()
197 thr->ts.team = team; in gomp_team_start()
199 thr->ts.team_id = 0; in gomp_team_start()
201 thr->ts.static_trip = 0; in gomp_team_start()
242 nthr->ts.team = team; in gomp_team_start()
[all …]
H A Dordered.c41 struct gomp_team *team = thr->ts.team; in gomp_ordered_first()
42 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_first()
52 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_first()
72 struct gomp_team *team = thr->ts.team; in gomp_ordered_last()
107 struct gomp_team *team = thr->ts.team; in gomp_ordered_next()
155 struct gomp_team *team = thr->ts.team; in gomp_ordered_static_init()
173 struct gomp_team *team = thr->ts.team; in gomp_ordered_static_next()
175 unsigned id = thr->ts.team_id; in gomp_ordered_static_next()
197 struct gomp_team *team = thr->ts.team; in gomp_ordered_sync()
215 if (ws->ordered_owner != thr->ts.team_id) in gomp_ordered_sync()
[all …]
H A Dwork.c75 struct gomp_team *team = thr->ts.team; in gomp_work_share_start()
83 thr->ts.work_share = ws; in gomp_work_share_start()
84 thr->ts.static_trip = 0; in gomp_work_share_start()
100 thr->ts.work_share = ws; in gomp_work_share_start()
101 thr->ts.static_trip = 0; in gomp_work_share_start()
131 thr->ts.work_share = ws; in gomp_work_share_start()
132 thr->ts.static_trip = 0; in gomp_work_share_start()
149 struct gomp_team *team = thr->ts.team; in gomp_work_share_end()
153 thr->ts.work_share = NULL; in gomp_work_share_end()
187 struct gomp_team *team = thr->ts.team; in gomp_work_share_end_nowait()
[all …]
H A Diter.c44 struct gomp_team *team = thr->ts.team; in gomp_iter_static_next()
48 if (thr->ts.static_trip == -1) in gomp_iter_static_next()
56 thr->ts.static_trip = -1; in gomp_iter_static_next()
69 if (thr->ts.static_trip > 0) in gomp_iter_static_next()
75 i = thr->ts.team_id; in gomp_iter_static_next()
89 thr->ts.static_trip = 1; in gomp_iter_static_next()
112 i = thr->ts.team_id; in gomp_iter_static_next()
134 thr->ts.static_trip = -1; in gomp_iter_static_next()
136 thr->ts.static_trip++; in gomp_iter_static_next()
237 struct gomp_team *team = thr->ts.team; in gomp_iter_guided_next_locked()
[all …]
H A Dloop.c74 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_static_start()
91 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_dynamic_start()
95 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_dynamic_start()
113 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_guided_start()
249 gomp_mutex_lock (&thr->ts.work_share->lock); in gomp_loop_dynamic_next()
266 gomp_mutex_lock (&thr->ts.work_share->lock); in gomp_loop_guided_next()
279 switch (thr->ts.work_share->sched) in GOMP_loop_runtime_next()
306 gomp_mutex_lock (&thr->ts.work_share->lock); in gomp_loop_ordered_static_next()
322 gomp_mutex_lock (&thr->ts.work_share->lock); in gomp_loop_ordered_dynamic_next()
340 gomp_mutex_lock (&thr->ts.work_share->lock); in gomp_loop_ordered_guided_next()
[all …]
/openbsd/regress/lib/libpthread/semaphore/sem_timedwait/
H A Dsem_timedwait.c37 struct timespec delay, ts, ts2; in main() local
42 ts.tv_sec += 3; in main()
43 CHECKn(sem_timedwait(&sem, &ts)); in main()
81 ts.tv_sec += 2; in main()
82 CHECKn(sem_timedwait(&sem, &ts)); in main()
87 ts.tv_sec, ts.tv_nsec, ts2.tv_sec, ts2.tv_nsec); in main()
100 timespecadd(&ts, &delay, &ts); in main()
102 ts2.tv_sec, ts2.tv_nsec, ts.tv_sec, ts.tv_nsec); in main()
114 struct timespec ts; in waiter() local
119 ts.tv_sec += 3; in waiter()
[all …]
/openbsd/regress/sys/kern/kqueue/
H A Dkqueue-timer.c55 ts.tv_nsec = 0; in do_timer()
71 ts.tv_nsec = 0; in do_timer()
89 ts.tv_nsec = 0; in do_timer()
135 ts.tv_nsec = 0; in do_timer()
141 timespecsub(&end, &start, &ts); in do_timer()
142 usecs = ts.tv_sec * 1000000 + ts.tv_nsec / 1000; in do_timer()
182 usecs = ts.tv_sec * 1000000 + ts.tv_nsec / 1000; in do_timer()
189 ts.tv_nsec = 0; in do_timer()
286 ts.tv_sec = 0; in do_reset_timer()
287 ts.tv_nsec = 0; in do_reset_timer()
[all …]
H A Dkqueue-pipe.c51 struct timespec ts; in do_pipe() local
73 ts.tv_sec = 0; in do_pipe()
74 ts.tv_nsec = 0; in do_pipe()
75 n = kevent(kq, NULL, 0, &ev, 1, &ts); in do_pipe()
80 ts.tv_sec = 0; in do_pipe()
81 ts.tv_nsec = 0; in do_pipe()
82 n = kevent(kq, NULL, 0, &ev, 1, &ts); in do_pipe()
/openbsd/gnu/gcc/libgomp/config/posix/
H A Dtime.c52 struct timespec ts; in omp_get_wtime() local
54 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtime()
56 clock_gettime (CLOCK_REALTIME, &ts); in omp_get_wtime()
57 return ts.tv_sec + ts.tv_nsec / 1e9; in omp_get_wtime()
69 struct timespec ts; in omp_get_wtick() local
71 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtick()
73 clock_getres (CLOCK_REALTIME, &ts); in omp_get_wtick()
74 return ts.tv_sec + ts.tv_nsec / 1e9; in omp_get_wtick()
/openbsd/usr.bin/rsync/
H A Dsession.c34 double tr, tw, ts; in stats_log() local
73 ts = tsize / (1024.0 * 1024.0 * 1024.0); in stats_log()
77 ts = tsize / (1024.0 * 1024.0); in stats_log()
81 ts = tsize / 1024.0; in stats_log()
85 ts = tsize; in stats_log()
91 tssz, ts, tsu); in stats_log()
103 uint64_t tw, tr, ts; in sess_stats_send() local
110 ts = sess->total_size; in sess_stats_send()
125 stats_log(sess, tr, tw, ts); in sess_stats_send()
139 uint64_t tr, tw, ts; in sess_stats_recv() local
[all …]
/openbsd/gnu/llvm/llvm/utils/lit/lit/
H A Ddiscovery.py44 ts, relative = search(parent)
45 return (ts, relative + (base,))
91 ts, relative = search(item)
92 return ts, tuple(relative + tuple(components))
98 parent = ts.config
119 key = (ts, path_in_suite)
131 if ts is None:
139 return ts, getTestsInSuite(ts, path_in_suite, litConfig,
154 test = Test.Test(ts, path_in_suite, lc)
217 file_execpath = ts.getExecPath(subpath)
[all …]
/openbsd/gnu/llvm/lldb/tools/debugserver/source/
H A DDNBTimer.h93 static void OffsetTimeOfDay(struct timespec *ts,
96 if (ts == NULL)
102 TIMEVAL_TO_TIMESPEC(&now, ts);
106 ts->tv_nsec += nsec_offset;
108 ts->tv_sec = ts->tv_sec + ts->tv_nsec / 1000000000 + sec_offset;
110 ts->tv_nsec = ts->tv_nsec % 1000000000;
113 static bool TimeOfDayLaterThan(struct timespec &ts) { in TimeOfDayLaterThan() argument
116 if (now.tv_sec > ts.tv_sec) in TimeOfDayLaterThan()
118 else if (now.tv_sec < ts.tv_sec) in TimeOfDayLaterThan()
121 if (now.tv_nsec > ts.tv_nsec) in TimeOfDayLaterThan()
/openbsd/games/bs/
H A Dbs.c1050 ts.x = x; ts.y = y; in cputurn()
1086 ts.x = x; ts.y = y; ts.dir = d*2; ts.hits++; in cputurn()
1093 x = ts.x + xincr[ts.dir]; in cputurn()
1099 ts.x = x; ts.y = y; ts.hits++; in cputurn()
1112 ts.x += (ts.hits-1) * xincr[ts.dir]; in cputurn()
1113 ts.y += (ts.hits-1) * yincr[ts.dir]; in cputurn()
1123 ts.x = x; ts.y = y; ts.hits++; in cputurn()
1188 ts.x = x; ts.y = y; ts.hits = 1; in cputurn()
1194 ts.x += xincr[d]; ts.y += yincr[d]; ts.hits++; in cputurn()
1196 if ((--ts.hits > 1) && (ONBOARD(ts.x, ts.y)) && in cputurn()
[all …]
/openbsd/games/tetris/
H A Dinput.c53 #define TS_POS(ts) \ argument
54 ((ts)->tv_sec > 0 || ((ts)->tv_sec == 0 && (ts)->tv_nsec > 0))
105 struct timespec ts; in tsleep() local
108 ts.tv_sec = 0; in tsleep()
109 ts.tv_nsec = fallrate; in tsleep()
110 while (TS_POS(&ts)) in tsleep()
111 if (rwait(&ts) && read(STDIN_FILENO, &c, 1) != 1) in tsleep()
/openbsd/lib/libssl/test/
H A Dtesttsa74 ../../util/shlib_wrap.sh ../../apps/openssl ts -query -in $1 -text
98 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $1 -text
104 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -section $3 -queryfile $1 -out $2
112 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -out $TOKEN_DER -token_out
114 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $TOKEN_DER -token_in -out $RESPONSE2
118 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -text -token_out
122 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -queryfile $1 -text -token_out
131 ../../util/shlib_wrap.sh ../../apps/openssl ts -verify -data $3 -in $2 -CAfile tsaca.pem \
139 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -out $2.token -token_out
141 ../../util/shlib_wrap.sh ../../apps/openssl ts -verify -queryfile $1 -in $2.token -token_in \
[all …]
/openbsd/regress/lib/libc/printf/
H A Dstring.c296 ts("<%s>", "text", "<text>"); in main()
297 ts("<%-s>", "text", "<text>"); in main()
298 ts("<%6s>", "text", "< text>"); in main()
299 ts("<%-6s>", "text", "<text >"); in main()
300 ts("<%.2s>", "text", "<te>"); in main()
301 ts("<%4.2s>", "text", "< te>"); in main()
302 ts("<%-4.2s>", "text", "<te >"); in main()
320 ts("<%#s>", "text", "<text>"); in main()
325 ts("<%hs>", "text", "<text>"); in main()
368 ts("<%lls>", "text", "<text>"); in main()
[all …]
/openbsd/regress/sys/kern/signal/sig-stop/
H A Dsig-stop.c19 struct timespec ts; in main() local
29 ts.tv_sec = 0; in main()
30 ts.tv_nsec = 1000; in main()
32 nanosleep(&ts, NULL); in main()
39 ts.tv_sec = 1; in main()
40 ts.tv_nsec = 0; in main()
41 nanosleep(&ts, NULL); in main()
/openbsd/regress/lib/libpthread/setsockopt/2/
H A Dsetsockopt2.c58 struct timespec ts; in sock_connect() local
75 TIMEVAL_TO_TIMESPEC(&to, &ts); in sock_connect()
81 TIMEVAL_TO_TIMESPEC(&to, &ts); in sock_connect()
83 check_timeout(s, 2, &ts); in sock_connect()
84 check_timeout(s2, 2, &ts); in sock_connect()
85 check_timeout(s3, 2, &ts); in sock_connect()
90 check_timeout(s, 2, &ts); in sock_connect()
91 check_timeout(s2, 2, &ts); in sock_connect()
92 check_timeout(s3, 2, &ts); in sock_connect()
95 check_timeout(s2, 2, &ts); in sock_connect()
[all …]
/openbsd/sys/sys/
H A Dtime.h64 (ts)->tv_sec = (tv)->tv_sec; \
65 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
68 (tv)->tv_sec = (ts)->tv_sec; \
69 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
245 ts->tv_sec = bt->sec; in BINTIME_TO_TIMESPEC()
246 ts->tv_nsec = FRAC_TO_NSEC(bt->frac); in BINTIME_TO_TIMESPEC()
252 bt->sec = ts->tv_sec; in TIMESPEC_TO_BINTIME()
401 ts->tv_sec = ns / 1000000000L; in NSEC_TO_TIMESPEC()
402 ts->tv_nsec = ns % 1000000000L; in NSEC_TO_TIMESPEC()
432 if (ts->tv_sec > (UINT64_MAX - ts->tv_nsec) / 1000000000ULL) in TIMESPEC_TO_NSEC()
[all …]
/openbsd/sys/kern/
H A Dtty_msts.c147 struct timespec ts; in mstsinput() local
153 nanotime(&ts); in mstsinput()
155 gap = (ts.tv_sec * 1000000000LL + ts.tv_nsec) - in mstsinput()
158 np->lts.tv_sec = ts.tv_sec; in mstsinput()
159 np->lts.tv_nsec = ts.tv_nsec; in mstsinput()
164 np->ts.tv_sec = ts.tv_sec; in mstsinput()
165 np->ts.tv_nsec = ts.tv_nsec; in mstsinput()
183 np->ts.tv_sec = tp->t_tv.tv_sec; in mstsinput()
184 np->ts.tv_nsec = tp->t_tv.tv_usec * in mstsinput()
274 np->ts.tv_nsec - msts_now; in msts_decode()
[all …]
/openbsd/lib/libfido2/src/
H A Dtime.c11 timespec_to_ms(const struct timespec *ts) in timespec_to_ms() argument
15 if (ts->tv_sec < 0 || ts->tv_nsec < 0 || in timespec_to_ms()
16 ts->tv_nsec >= 1000000000LL) in timespec_to_ms()
19 if ((uint64_t)ts->tv_sec >= INT64_MAX / 1000LL) in timespec_to_ms()
22 x = ts->tv_sec * 1000LL; in timespec_to_ms()
23 y = ts->tv_nsec / 1000000LL; in timespec_to_ms()
/openbsd/gnu/llvm/libcxx/src/
H A Dcondition_variable.cpp62 __libcpp_timespec_t ts; in __do_timed_wait() local
64 typedef decltype(ts.tv_sec) ts_sec; in __do_timed_wait()
68 ts.tv_sec = static_cast<ts_sec>(s.count()); in __do_timed_wait()
69 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((d - s).count()); in __do_timed_wait()
73 ts.tv_sec = ts_sec_max; in __do_timed_wait()
74 ts.tv_nsec = giga::num - 1; in __do_timed_wait()
76 int ec = __libcpp_condvar_timedwait(&__cv_, lk.mutex()->native_handle(), &ts); in __do_timed_wait()

12345678910>>...19