Home
last modified time | relevance | path

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

12345678910>>...19

/openbsd-src/sys/dev/pci/drm/include/linux/
H A Dinterrupt.h73 tasklet_init(struct tasklet_struct *ts, void (*func)(unsigned long), in tasklet_init() argument
76 ts->func = func; in tasklet_init()
77 ts->data = data; in tasklet_init()
78 ts->state = 0; in tasklet_init()
79 atomic_set(&ts->count, 0); in tasklet_init()
80 ts->use_callback = false; in tasklet_init()
81 task_set(&ts->task, tasklet_run, ts); in tasklet_init()
85 tasklet_setup(struct tasklet_struct *ts, in tasklet_setup() argument
88 ts->callback = callback; in tasklet_setup()
89 ts->data = 0; in tasklet_setup()
[all …]
H A Dktime.h31 struct timespec ts; in ktime_get() local
32 nanouptime(&ts); in ktime_get()
33 return TIMESPEC_TO_NSEC(&ts); in ktime_get()
39 struct timespec ts; in ktime_get_raw() local
40 nanouptime(&ts); in ktime_get_raw()
41 return TIMESPEC_TO_NSEC(&ts); in ktime_get_raw()
77 struct timespec64 ts; in ktime_to_timespec64() local
78 ts.tv_sec = k / NSEC_PER_SEC; in ktime_to_timespec64()
79 ts.tv_nsec = k % NSEC_PER_SEC; in ktime_to_timespec64()
80 if (ts.tv_nsec < 0) { in ktime_to_timespec64()
[all …]
/openbsd-src/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()
40 ASSERT_LONG_EQ(ts->tv_nsec, 0); in test_ptimeout()
41 ASSERT_LONG_EQ(ts->tv_sec, 100); in test_ptimeout()
48 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
49 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
50 ASSERT_LONG_EQ(ts->tv_nsec, 123 * 1000000); in test_ptimeout()
51 ASSERT_LONG_EQ(ts->tv_sec, 50); in test_ptimeout()
58 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
[all …]
/openbsd-src/gnu/gcc/libgomp/
H A Dteam.c59 struct gomp_team_state ts; member
89 thr->ts = data->ts; in gomp_thread_start()
91 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; in gomp_thread_start()
95 gomp_barrier_wait (&thr->ts.team->barrier); in gomp_thread_start()
97 gomp_barrier_wait (&thr->ts.team->barrier); in gomp_thread_start()
101 gomp_threads[thr->ts.team_id] = thr; in gomp_thread_start()
112 team = thr->ts.team; in gomp_thread_start()
115 thr->ts.team = NULL; in gomp_thread_start()
116 thr->ts.work_share = NULL; in gomp_thread_start()
117 thr->ts.team_id = 0; in gomp_thread_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()
58 gomp_sem_post (team->ordered_release[thr->ts.team_id]); in gomp_ordered_first()
72 struct gomp_team *team = thr->ts.team; in gomp_ordered_last()
73 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_last()
107 struct gomp_team *team = thr->ts.team; in gomp_ordered_next()
108 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_next()
123 gomp_sem_post (team->ordered_release[thr->ts.team_id]); in gomp_ordered_next()
135 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_next()
[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()
92 ws_gen = ++thr->ts.work_share_generation; 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()
150 struct gomp_work_share *ws = thr->ts.work_share; in gomp_work_share_end()
[all …]
H A Diter.c44 struct gomp_team *team = thr->ts.team; in gomp_iter_static_next()
45 struct gomp_work_share *ws = thr->ts.work_share; 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()
99 thr->ts.static_trip = (e0 == n ? -1 : 1); in gomp_iter_static_next()
112 i = thr->ts.team_id; in gomp_iter_static_next()
117 s0 = (thr->ts.static_trip * nthreads + i) * c; in gomp_iter_static_next()
[all …]
H A Dloop.c72 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_static_start()
74 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_static_start()
87 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_dynamic_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()
109 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_guided_start()
113 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_guided_start()
117 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_guided_start()
154 gomp_loop_init (thr->ts.work_share, start, end, incr, in gomp_loop_ordered_static_start()
158 gomp_mutex_unlock (&thr->ts.work_share->lock); in gomp_loop_ordered_static_start()
[all …]
/openbsd-src/regress/lib/libpthread/semaphore/sem_timedwait/
H A Dsem_timedwait.c37 struct timespec delay, ts, ts2; in main() local
41 CHECKr(clock_gettime(CLOCK_REALTIME, &ts)); in main()
42 ts.tv_sec += 3; in main()
43 CHECKn(sem_timedwait(&sem, &ts)); in main()
80 CHECKr(clock_gettime(CLOCK_REALTIME, &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()
90 ASSERT(timespeccmp(&ts, &ts2, <=)); in main()
100 timespecadd(&ts, &delay, &ts); in main()
[all …]
/openbsd-src/regress/sys/kern/kqueue/
H A Dkqueue-timer.c39 struct timespec ts, start, end, now; in do_timer() local
54 ts.tv_sec = 2; /* wait 2s for kqueue timeout */ in do_timer()
55 ts.tv_nsec = 0; in do_timer()
57 n = kevent(kq, NULL, 0, &ev, 1, &ts); in do_timer()
70 ts.tv_sec = 2; /* wait 2s for kqueue timeout */ in do_timer()
71 ts.tv_nsec = 0; in do_timer()
73 n = kevent(kq, NULL, 0, &ev, 1, &ts); in do_timer()
88 ts.tv_sec = 2; /* wait 2s for kqueue timeout */ in do_timer()
89 ts.tv_nsec = 0; in do_timer()
91 n = kevent(kq, NULL, 0, &ev, 1, &ts); in do_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-src/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-src/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()
119 } else if (!io_write_ulong(sess, fd, ts)) { in sess_stats_send()
125 stats_log(sess, tr, tw, ts); in sess_stats_send()
[all …]
/openbsd-src/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))
94 def getLocalConfig(ts, path_in_suite, litConfig, cache): argument
98 parent = ts.config
103 source_path = ts.getSourcePath(path_in_suite)
119 key = (ts, path_in_suite)
130 ts,path_in_suite = getTestSuite(path, litConfig, testSuiteCache)
131 if ts is None:
[all …]
/openbsd-src/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-src/games/bs/
H A Dbs.c1037 static ship_t ts; in cputurn() local
1050 ts.x = x; ts.y = y; in cputurn()
1051 ts.hits = 1; in cputurn()
1057 used[E/2] = used[W/2] = (!(cpushipcanfit(ts.x,ts.y,cpushortest,E))); in cputurn()
1058 used[S/2] = used[N/2] = (!(cpushipcanfit(ts.x,ts.y,cpushortest,S))); in cputurn()
1064 x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2]; in cputurn()
1079 x = ts.x + xincr[d*2]; in cputurn()
1080 y = ts.y + yincr[d*2]; 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()
[all …]
/openbsd-src/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-src/lib/libssl/test/
H A Dtesttsa74 ../../util/shlib_wrap.sh ../../apps/openssl ts -query -in $1 -text
79 …../../util/shlib_wrap.sh ../../apps/openssl ts -query -data ../testtsa -policy tsa_policy1 -cert -…
85 …../../util/shlib_wrap.sh ../../apps/openssl ts -query -data ../testtsa -policy tsa_policy2 -no_non…
92 ../../util/shlib_wrap.sh ../../apps/openssl ts -query -data ../CAtsa.cnf -no_nonce -out req3.tsq
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
120 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $TOKEN_DER -token_in -text -token_out
[all …]
/openbsd-src/regress/lib/libc/printf/
H A Dstring.c33 void ts(const char *, const char *, const char *);
152 ts(const char *fmt, const char *s, const char *want) in ts() function
296 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()
[all …]
/openbsd-src/sys/sys/
H A Dtime.h63 #define TIMEVAL_TO_TIMESPEC(tv, ts) do { \ argument
64 (ts)->tv_sec = (tv)->tv_sec; \
65 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
67 #define TIMESPEC_TO_TIMEVAL(tv, ts) do { \ argument
68 (tv)->tv_sec = (ts)->tv_sec; \
69 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
243 BINTIME_TO_TIMESPEC(const struct bintime *bt, struct timespec *ts) in BINTIME_TO_TIMESPEC() argument
245 ts->tv_sec = bt->sec; in BINTIME_TO_TIMESPEC()
246 ts->tv_nsec = FRAC_TO_NSEC(bt->frac); in BINTIME_TO_TIMESPEC()
250 TIMESPEC_TO_BINTIME(const struct timespec *ts, struct bintime *bt) in TIMESPEC_TO_BINTIME() argument
[all …]
/openbsd-src/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()
89 ts.tv_sec = 1; /* the fd timeout was changed in the child */ 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()
[all …]
/openbsd-src/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-src/sys/kern/
H A Dtty_msts.c57 struct timespec ts; /* current timestamp */ member
147 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()
178 tmax = lmax(np->ts.tv_sec, tp->t_tv.tv_sec); in mstsinput()
179 tmin = lmin(np->ts.tv_sec, tp->t_tv.tv_sec); in mstsinput()
[all …]
/openbsd-src/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-src/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