Home
last modified time | relevance | path

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

12345678910>>...43

/freebsd/sys/kern/
H A Dsubr_turnstile.c162 static int turnstile_adjust_thread(struct turnstile *ts,
164 static struct thread *turnstile_first_waiter(struct turnstile *ts);
165 static void turnstile_setowner(struct turnstile *ts, struct thread *owner);
178 propagate_unlock_ts(struct turnstile *top, struct turnstile *ts) in propagate_unlock_ts() argument
181 if (ts != top) in propagate_unlock_ts()
182 mtx_unlock_spin(&ts->ts_lock); in propagate_unlock_ts()
201 struct turnstile *ts, *top; in propagate_priority() local
206 top = ts = td->td_blocked; in propagate_priority()
207 THREAD_LOCKPTR_ASSERT(td, &ts->ts_lock); in propagate_priority()
215 td = ts->ts_owner; in propagate_priority()
[all …]
H A Dsched_4bsd.c116 #define SKE_RUNQ_PCPU(ts) \ argument
117 ((ts)->ts_runq != 0 && (ts)->ts_runq != &runq)
457 struct td_sched *ts; in schedcpu() local
469 ts = td_get_sched(td); in schedcpu()
494 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu()
500 if (ts->ts_cpticks != 0) { in schedcpu()
502 ts->ts_pctcpu += (realstathz == 100) in schedcpu()
503 ? ((fixpt_t) ts->ts_cpticks) << in schedcpu()
505 100 * (((fixpt_t) ts->ts_cpticks) in schedcpu()
508 ts->ts_pctcpu += ((FSCALE - ccpu) * in schedcpu()
[all …]
H A Dsubr_rtc.c136 struct timespec ts; in settime_task_func() local
142 getnanotime(&ts); in settime_task_func()
144 ts.tv_sec -= utc_offset(); in settime_task_func()
145 timespecadd(&ts, &rtc->resadj, &ts); in settime_task_func()
148 ts.tv_sec = 0; in settime_task_func()
149 ts.tv_nsec = 0; in settime_task_func()
151 error = CLOCK_SETTIME(rtc->clockdev, &ts); in settime_task_func()
200 clock_dbgprint_ts(device_t dev, int rw, const struct timespec *ts) in clock_dbgprint_ts() argument
205 clock_print_ts(ts, 9); in clock_dbgprint_ts()
289 read_clocks(struct timespec *ts, bool debug_read) in read_clocks() argument
[all …]
H A Dsched_ule.c187 #define SCHED_TICK_RUN_SHIFTED(ts) ((ts)->ts_ticks) argument
188 #define SCHED_TICK_LENGTH(ts) (max((ts)->ts_ltick - (ts)->ts_ftick, 1)) argument
313 #define SCHED_AFFINITY(ts, t) ((u_int)ticks - (ts)->ts_rltick < (t) * affinity) argument
495 struct td_sched *ts; in tdq_runq_add() local
502 ts = td_get_sched(td); in tdq_runq_add()
506 ts->ts_flags |= TSF_XFERABLE; in tdq_runq_add()
575 struct td_sched *ts; in tdq_runq_rem() local
578 ts = td_get_sched(td); in tdq_runq_rem()
581 if (ts->ts_flags & TSF_XFERABLE) { in tdq_runq_rem()
583 ts->ts_flags &= ~TSF_XFERABLE; in tdq_runq_rem()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_tasklet.c42 #define TASKLET_ST_CMPSET(ts, old, new) \ argument
43 atomic_cmpset_int((volatile u_int *)&(ts)->tasklet_state, old, new)
45 #define TASKLET_ST_SET(ts, new) \ argument
46 WRITE_ONCE(*(volatile u_int *)&(ts)->tasklet_state, new)
48 #define TASKLET_ST_GET(ts) \ argument
49 READ_ONCE(*(volatile u_int *)&(ts)->tasklet_state)
66 struct tasklet_struct *ts; in tasklet_handler() local
74 ts = TAILQ_FIRST(&tw->head); in tasklet_handler()
75 if (ts == NULL) in tasklet_handler()
77 TAILQ_REMOVE(&tw->head, ts, entry); in tasklet_handler()
[all …]
H A Dlinux_current.c60 struct task_struct *ts; in find_other_mm() local
65 ts = td->td_lkpi_task; in find_other_mm()
66 if (ts == NULL) in find_other_mm()
68 mm = ts->mm; in find_other_mm()
82 struct task_struct *ts; in linux_alloc_current() local
92 ts = uma_zalloc(linux_current_zone, flags | M_ZERO); in linux_alloc_current()
93 if (ts == NULL) in linux_alloc_current()
98 atomic_set(&ts->kthread_flags, 0); in linux_alloc_current()
99 ts->task_thread = td; in linux_alloc_current()
100 ts->comm = td->td_name; in linux_alloc_current()
[all …]
/freebsd/contrib/pam-krb5/tests/
H A Druntests.c211 struct testset *ts; member
643 test_backspace(struct testset *ts) in test_backspace() argument
649 for (i = 0; i < ts->length; i++) in test_backspace()
651 for (i = 0; i < ts->length; i++) in test_backspace()
653 for (i = 0; i < ts->length; i++) in test_backspace()
655 ts->length = 0; in test_backspace()
664 resize_results(struct testset *ts, unsigned long n) in resize_results() argument
670 if (n <= ts->allocated) in resize_results()
678 if (ts->allocated == 0) { in resize_results()
680 ts->results = xcalloc(s, enum test_status); in resize_results()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dktime.h173 timespec_to_ktime(struct timespec ts) in timespec_to_ktime() argument
175 return (ktime_set(ts.tv_sec, ts.tv_nsec)); in timespec_to_ktime()
185 timespec64_to_ns(struct timespec64 *ts) in timespec64_to_ns() argument
187 return (timespec_to_ns(ts)); in timespec64_to_ns()
194 #define ktime_get_ts(ts) getnanouptime(ts) argument
195 #define ktime_get_ts64(ts) getnanouptime(ts) argument
196 #define ktime_get_raw_ts64(ts) getnanouptime(ts) argument
197 #define ktime_get_real_ts64(ts) getnanotime(ts) argument
198 #define getrawmonotonic64(ts) getnanouptime(ts) argument
203 struct timespec ts; in ktime_get_ns() local
[all …]
H A Dtime.h76 #define getrawmonotonic(ts) nanouptime(ts)
81 struct timespec ts; in timespec_sub()
83 timespecsub(&lhs, &rhs, &ts); in timespec_sub()
85 return ts;
89 set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec) in set_normalized_timespec()
92 ts->tv_sec = sec; in set_normalized_timespec()
93 ts->tv_nsec = nsec;
97 timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
99 return ((ts in timespec_to_ns()
74 getrawmonotonic(ts) global() argument
79 struct timespec ts; timespec_sub() local
87 set_normalized_timespec(struct timespec * ts,time_t sec,int64_t nsec) set_normalized_timespec() argument
95 timespec_to_ns(const struct timespec * ts) timespec_to_ns() argument
103 struct timespec ts; ns_to_timespec() local
125 timespec_valid(const struct timespec * ts) timespec_valid() argument
[all...]
/freebsd/sys/net80211/
H A Dieee80211_tdma.c147 struct ieee80211_tdma_state *ts; in ieee80211_tdma_vattach() local
152 ts = (struct ieee80211_tdma_state *) IEEE80211_MALLOC( in ieee80211_tdma_vattach()
155 if (ts == NULL) { in ieee80211_tdma_vattach()
163 ts->tdma_version = TDMA_VERSION; in ieee80211_tdma_vattach()
164 ts->tdma_slotlen = TDMA_SLOTLEN_DEFAULT; in ieee80211_tdma_vattach()
165 ts->tdma_slotcnt = TDMA_SLOTCNT_DEFAULT; in ieee80211_tdma_vattach()
166 ts->tdma_bintval = TDMA_BINTVAL_DEFAULT; in ieee80211_tdma_vattach()
167 ts->tdma_slot = 1; /* passive operation */ in ieee80211_tdma_vattach()
185 ts->tdma_opdetach = vap->iv_opdetach; in ieee80211_tdma_vattach()
187 ts->tdma_newstate = vap->iv_newstate; in ieee80211_tdma_vattach()
[all …]
/freebsd/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc76 run_kex(struct test_state *ts, struct ssh *client, struct ssh *server) in run_kex() argument
82 if (ts->sin != NULL) { in run_kex()
83 if ((r = ssh_input_append(server, sshbuf_ptr(ts->sin), in run_kex()
84 sshbuf_len(ts->sin))) != 0) { in run_kex()
88 sshbuf_reset(ts->sin); in run_kex()
90 if (ts->cin != NULL) { in run_kex()
91 if ((r = ssh_input_append(client, sshbuf_ptr(ts->cin), in run_kex()
92 sshbuf_len(ts->cin))) != 0) { in run_kex()
96 sshbuf_reset(ts->cin); in run_kex()
102 ts->smsgs, ts->cin != NULL, &sn)) != 0) { in run_kex()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-to-separator.mk9 .if ${WORDS:ts } != "one two three four five six"
14 .if ${WORDS:ts,} != "one,two,three,four,five,six"
19 .if ${WORDS:ts/:tu} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
25 .if ${WORDS:ts::tu} != "ONE:TWO:THREE:FOUR:FIVE:SIX"
32 .if ${WORDS:ts:tu} != "ONETWOTHREEFOURFIVESIX"
44 .if ${WORDS:tu:ts} != "ONETWOTHREEFOURFIVESIX"
51 .if ${WORDS:tu:ts/} != "ONE/TWO/THREE/FOUR/FIVE/SIX"
58 .if ${WORDS:ts:} != "one:two:three:four:five:six"
63 .if ${WORDS:ts} != "onetwothreefourfivesix"
68 .if ${WORDS:ts:S/two/2/} != "one2threefourfivesix"
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printf/
H A Dtst.printcont.d39 uint64_t ts; variable
43 ts = 53114233149441;
44 printf("%u\n", ts);
45 printf("%u\n", ts);
46 printf("%u\n", ts);
47 printf("%u\n", ts);
48 printf("%u\n", ts);
49 printf("%u\n", ts);
50 printf("%u\n", ts);
51 printf("%u\n", ts);
[all …]
/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c207 timespec_add_ms(struct timespec *ts, int ms) in timespec_add_ms() argument
209 ts->tv_nsec += ms * 1000*1000; in timespec_add_ms()
210 if (ts->tv_nsec > 1000*1000*1000) { in timespec_add_ms()
211 ts->tv_sec++; in timespec_add_ms()
212 ts->tv_nsec -= 1000*1000*1000; in timespec_add_ms()
249 struct timespec ts; in ATF_TC_BODY() local
254 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY()
256 timespec_add_ms(&ts, 100); in ATF_TC_BODY()
257 SEM_REQUIRE(sem_timedwait(&sem, &ts)); in ATF_TC_BODY()
258 ATF_REQUIRE_ERRNO(ETIMEDOUT, sem_timedwait(&sem, &ts)); in ATF_TC_BODY()
[all …]
/freebsd/crypto/openssh/regress/unittests/misc/
H A Dtest_ptimeout.c32 struct timespec pt, *ts; in test_ptimeout() local
44 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
45 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
46 ASSERT_LONG_EQ(ts->tv_nsec, 0); in test_ptimeout()
47 ASSERT_LONG_EQ(ts->tv_sec, 100); in test_ptimeout()
54 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
55 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
56 ASSERT_LONG_EQ(ts->tv_nsec, 123 * 1000000); in test_ptimeout()
57 ASSERT_LONG_EQ(ts->tv_sec, 50); in test_ptimeout()
64 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
[all …]
/freebsd/contrib/lua/src/
H A Dlstring.c51 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr() argument
52 lua_assert(ts->tt == LUA_VLNGSTR); in luaS_hashlongstr()
53 if (ts->extra == 0) { /* no hash? */ in luaS_hashlongstr()
54 size_t len = ts->u.lnglen; in luaS_hashlongstr()
55 ts->hash = luaS_hash(getlngstr(ts), len, ts->hash); in luaS_hashlongstr()
56 ts->extra = 1; /* now it has its hash */ in luaS_hashlongstr()
58 return ts->hash; in luaS_hashlongstr()
144 TString *ts; in createstrobj() local
149 ts = gco2ts(o); in createstrobj()
150 ts->hash = h; in createstrobj()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dtime.h55 #define TIMESPEC_OVERFLOW(ts) \ argument
56 ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
58 #define TIMESPEC_OVERFLOW(ts) \ argument
59 ((ts)->tv_sec < INT64_MIN || (ts)->tv_sec > INT64_MAX)
68 struct timespec ts; in getlrtime() local
71 getnanouptime(&ts); in getlrtime()
72 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in getlrtime()
79 struct timespec ts; in gethrtime() local
82 nanouptime(&ts); in gethrtime()
83 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dprettydate.c68 time_t ts; in get_struct_tm()
73 ts = tl = stamp->q_s; in get_struct_tm()
79 while (ts != tl) { /* truncation? */ in get_struct_tm()
89 ts = tl; /* next try... */ in get_struct_tm()
113 ts = (int32)lo; in get_struct_tm()
118 * 'ts' should be a suitable value by now. Just go ahead, but in get_struct_tm()
130 while ((tm = (*(local ? localtime : gmtime))(&ts)) == NULL) in get_struct_tm()
131 if (ts < 0) { in get_struct_tm()
134 ts += SOLAR_CYCLE_SECS; in get_struct_tm()
135 } else if (ts > in get_struct_tm()
69 time_t ts; get_struct_tm() local
156 common_prettydate(l_fp * ts,int local) common_prettydate() argument
211 prettydate(l_fp * ts) prettydate() argument
220 gmprettydate(l_fp * ts) gmprettydate() argument
[all...]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dtime.h60 #define TIMESPEC_OVERFLOW(ts) \ argument
61 ((ts)->tv_sec < TIME_MIN || (ts)->tv_sec > TIME_MAX)
69 gethrestime(inode_timespec_t *ts) in gethrestime() argument
71 ktime_get_coarse_real_ts64(ts); in gethrestime()
77 inode_timespec_t ts; in gethrestime_sec() local
78 ktime_get_coarse_real_ts64(&ts); in gethrestime_sec()
79 return (ts.tv_sec); in gethrestime_sec()
85 inode_timespec_t ts; in getlrtime() local
86 ktime_get_coarse_ts64(&ts); in getlrtime()
87 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in getlrtime()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_nanosleep.c114 struct timespec ts; in ATF_TC_BODY() local
116 ts.tv_sec = 1; in ATF_TC_BODY()
117 ts.tv_nsec = -1; in ATF_TC_BODY()
119 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1); in ATF_TC_BODY()
121 ts.tv_sec = 1; in ATF_TC_BODY()
122 ts.tv_nsec = 1000000000; in ATF_TC_BODY()
124 ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1); in ATF_TC_BODY()
126 ts.tv_sec = -1; in ATF_TC_BODY()
127 ts.tv_nsec = 0; in ATF_TC_BODY()
129 ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0); in ATF_TC_BODY()
[all …]
/freebsd/sys/contrib/dev/athk/
H A Ddfs_pri_detector.c37 u64 ts; member
195 if (p->ts >= min_valid_ts) in pulse_queue_check_window()
201 static bool pulse_queue_enqueue(struct pri_detector *pde, u64 ts) in pulse_queue_enqueue() argument
214 p->ts = ts; in pulse_queue_enqueue()
217 pde->last_ts = ts; in pulse_queue_enqueue()
225 u64 ts, u32 min_count) in pseq_handler_create_sequences() argument
233 u32 delta_ts = ts - p->ts; in pseq_handler_create_sequences()
246 ps.first_ts = p->ts; in pseq_handler_create_sequences()
247 ps.last_ts = ts; in pseq_handler_create_sequences()
249 pde->rs->pri_max, ts - p->ts); in pseq_handler_create_sequences()
[all …]
/freebsd/sys/contrib/openzfs/lib/libspl/
H A Dcondvar.c75 struct timespec ts; in cv_timedwait() local
84 ts.tv_sec = tv.tv_sec + delta / hz; in cv_timedwait()
85 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % hz) * (NANOSEC / hz); in cv_timedwait()
86 if (ts.tv_nsec >= NANOSEC) { in cv_timedwait()
87 ts.tv_sec++; in cv_timedwait()
88 ts.tv_nsec -= NANOSEC; in cv_timedwait()
92 error = pthread_cond_timedwait(cv, &mp->m_lock, &ts); in cv_timedwait()
110 struct timespec ts; in cv_timedwait_hires() local
124 ts.tv_sec = tv.tv_sec + delta / NANOSEC; in cv_timedwait_hires()
125 ts.tv_nsec = tv.tv_usec * NSEC_PER_USEC + (delta % NANOSEC); in cv_timedwait_hires()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/bus/
H A Dts-nbus.txt7 - compatible : "technologic,ts-nbus"
11 - ts,data-gpios : The 8 GPIO pins connected to the data lines on the FPGA
12 - ts,csn-gpios : The GPIO pin connected to the csn line on the FPGA
13 - ts,txrx-gpios : The GPIO pin connected to the txrx line on the FPGA
14 - ts,strobe-gpios : The GPIO pin connected to the stobe line on the FPGA
15 - ts,ale-gpios : The GPIO pin connected to the ale line on the FPGA
16 - ts,rdy-gpios : The GPIO pin connected to the rdy line on the FPGA
26 compatible = "technologic,ts-nbus";
31 ts,data-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH
39 ts,csn-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
[all …]
/freebsd/libexec/tftpd/
H A Dtftp-utils.c298 stats_init(struct tftp_stats *ts) in stats_init() argument
301 ts->amount = 0; in stats_init()
302 ts->rollovers = 0; in stats_init()
303 ts->retries = 0; in stats_init()
304 ts->blocks = 0; in stats_init()
305 ts->amount = 0; in stats_init()
306 gettimeofday(&(ts->tstart), NULL); in stats_init()
310 printstats(const char *direction, int verbose, struct tftp_stats *ts) in printstats() argument
314 delta = ((ts->tstop.tv_sec*10.)+(ts->tstop.tv_usec/100000)) - in printstats()
315 ((ts->tstart.tv_sec*10.)+(ts->tstart.tv_usec/100000)); in printstats()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzpl.h129 #define zpl_inode_timestamp_truncate(ts, ip) timestamp_truncate(ts, ip) argument
131 #define zpl_inode_timestamp_truncate(ts, ip) \ argument
132 timespec64_trunc(ts, (ip)->i_sb->s_time_gran)
161 #define zpl_inode_set_ctime_to_ts(ip, ts) inode_set_ctime_to_ts(ip, ts) argument
163 #define zpl_inode_set_ctime_to_ts(ip, ts) (ip->i_ctime = ts) argument
171 #define zpl_inode_set_atime_to_ts(ip, ts) inode_set_atime_to_ts(ip, ts) argument
173 #define zpl_inode_set_atime_to_ts(ip, ts) (ip->i_atime = ts) argument
181 #define zpl_inode_set_mtime_to_ts(ip, ts) inode_set_mtime_to_ts(ip, ts) argument
183 #define zpl_inode_set_mtime_to_ts(ip, ts) (ip->i_mtime = ts) argument

12345678910>>...43