Home
last modified time | relevance | path

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

12345678910>>...40

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_tasklet.c75 if (ts == NULL) in tasklet_handler()
85 if (ts->use_callback) in tasklet_handler()
86 ts->callback(ts); in tasklet_handler()
88 ts->func(ts->data); in tasklet_handler()
96 if (ts == last) in tasklet_handler()
151 ts->func = func; in tasklet_init()
152 ts->callback = NULL; in tasklet_init()
153 ts->data = data; in tasklet_init()
164 ts->func = NULL; in tasklet_setup()
165 ts->callback = c; in tasklet_setup()
[all …]
H A Dlinux_current.c66 if (ts == NULL) in find_other_mm()
68 mm = ts->mm; in find_other_mm()
93 if (ts == NULL) { in linux_alloc_current()
105 ts->group_leader = ts; in linux_alloc_current()
136 ts->mm = mm; in linux_alloc_current()
140 ts->mm = mm_other; in linux_alloc_current()
143 ts->mm = mm_other; in linux_alloc_current()
178 mmput(ts->mm); in linux_free_current()
188 if (ts == NULL) in linuxkpi_thread_dtor()
210 return (ts); in linux_get_pid_task_int()
[all …]
/freebsd/sys/kern/
H A Dsubr_turnstile.c181 if (ts != top) in propagate_unlock_ts()
365 td->td_tid, ts->ts_lockobj, ts->ts_lockobj->lo_name); in turnstile_adjust_thread()
501 ts = mem; in turnstile_dtor()
517 ts = mem; in turnstile_init()
531 ts = mem; in turnstile_fini()
587 return (ts); in turnstile_trywait()
836 MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL); in turnstile_signal()
865 ts = LIST_FIRST(&ts->ts_free); in turnstile_signal()
887 MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL); in turnstile_broadcast()
910 ts1 = ts; in turnstile_broadcast()
[all …]
H A Dsched_4bsd.c115 ((ts)->ts_runq != 0 && (ts)->ts_runq != &runq)
466 struct td_sched *ts; in schedcpu() local
503 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu()
548 ts->ts_estcpu = decay_cpu(loadfac, ts->ts_estcpu); in schedcpu()
586 ts->ts_estcpu = 0; in updatepri()
731 ts->ts_cpticks++; in sched_clock_tick()
732 ts->ts_estcpu = ESTCPULIM(ts->ts_estcpu + 1); in sched_clock_tick()
823 bzero(ts, sizeof(*ts)); in sched_fork_thread()
827 ts->ts_slice = 1; in sched_fork_thread()
1146 ts->ts_slptime = 0; in sched_wakeup()
[all …]
H A Dsubr_rtc.c136 struct timespec ts; in settime_task_func() local
142 getnanotime(&ts); 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()
299 if (ts->tv_sec < 0 || ts->tv_nsec < 0) { in read_clocks()
304 timespecadd(ts, &rtc->resadj, ts); in read_clocks()
333 struct timespec ts; in inittodr() local
357 ts.tv_nsec = 0; in inittodr()
360 if (ts.tv_sec >= 0) { in inittodr()
[all …]
H A Dsched_ule.c148 #define SCHED_TICK_TOTAL(ts) (max((ts)->ts_ltick - (ts)->ts_ftick, hz)) argument
1626 ts->ts_runtime >= ts->ts_slptime) in sched_interact_score()
1629 if (ts->ts_runtime > ts->ts_slptime) { in sched_interact_score()
1634 if (ts->ts_slptime > ts->ts_runtime) { in sched_interact_score()
1711 sum = ts->ts_runtime + ts->ts_slptime; in sched_interact_update()
1720 if (ts->ts_runtime > ts->ts_slptime) { in sched_interact_update()
1739 ts->ts_runtime = (ts->ts_runtime / 5) * 4; in sched_interact_update()
1740 ts->ts_slptime = (ts->ts_slptime / 5) * 4; in sched_interact_update()
1757 sum = ts->ts_runtime + ts->ts_slptime; in sched_interact_fork()
1835 ts->ts_ticks = (ts->ts_ticks / (ts->ts_ltick - ts->ts_ftick)) * in sched_pctcpu_update()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dktime.h175 return (ktime_set(ts.tv_sec, ts.tv_nsec)); in timespec_to_ktime()
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
224 nanouptime(&ts); in ktime_get_boottime()
240 nanotime(&ts); in ktime_get_real()
249 nanotime(&ts); in ktime_get_real_seconds()
258 nanouptime(&ts); in ktime_get_raw()
[all …]
H A Dtime.h74 #define getrawmonotonic(ts) nanouptime(ts) argument
83 return ts; in timespec_sub()
90 ts->tv_sec = sec; in set_normalized_timespec()
97 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns()
107 ts.tv_sec = 0; in ns_to_timespec()
108 ts.tv_nsec = 0; in ns_to_timespec()
109 return (ts); in ns_to_timespec()
115 ts.tv_sec--; in ns_to_timespec()
119 return (ts); in ns_to_timespec()
127 if (ts->tv_sec < 0 || ts->tv_sec > 100000000 || in timespec_valid()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_tdma.c155 if (ts == NULL) { in ieee80211_tdma_vattach()
192 vap->iv_tdma = ts; in ieee80211_tdma_vattach()
200 if (ts == NULL) { in tdma_vdetach()
282 ((ts->tdma_slotcnt * ts->tdma_slotlen) / 1024)); in tdma_newstate()
421 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
431 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
440 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
491 __func__, ts->tdma_slot, ts->tdma_slotcnt, in tdma_update()
492 ts->tdma_slotlen, ts->tdma_bintval); in tdma_update()
734 ts->tdma_inuse[0] = ts->tdma_active[0]; in ieee80211_tdma_update_beacon()
[all …]
/freebsd/crypto/openssh/regress/misc/fuzz-harness/
H A Dkex_fuzz.cc102 ts->smsgs, ts->cin != NULL, &sn)) != 0) { in run_kex()
108 ts->cmsgs, ts->sin != NULL, &cn)) != 0) { in run_kex()
186 ts->cin = ts->sin = NULL; in do_kex_with_key()
188 (ts->cin = sshbuf_fromb(ts->c_template)) == NULL) in do_kex_with_key()
191 (ts->sin = sshbuf_fromb(ts->s_template)) == NULL) in do_kex_with_key()
350 ts = (struct test_state *)xcalloc(1, sizeof(*ts)); in main()
378 free(ts); in main()
437 ts = (struct test_state *)xcalloc(1, sizeof(*ts)); in LLVMFuzzerTestOneInput()
445 free(ts); in LLVMFuzzerTestOneInput()
447 ts = (struct test_state *)xcalloc(1, sizeof(*ts)); in LLVMFuzzerTestOneInput()
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printf/
H A Dtst.printcont.d39 uint64_t ts; variable
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);
52 printf("%u\n", ts);
[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()
54 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
55 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
64 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
65 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
75 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
76 ASSERT_PTR_NE(ts, NULL); in test_ptimeout()
86 ts = ptimeout_get_tsp(&pt); in test_ptimeout()
[all …]
/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c211 ts->tv_sec++; in timespec_add_ms()
249 struct timespec ts; in ATF_TC_BODY() local
259 ts.tv_sec--; in ATF_TC_BODY()
267 ts.tv_nsec = -1; in ATF_TC_BODY()
272 ts.tv_sec++; in ATF_TC_BODY()
275 ts.tv_nsec = -1; in ATF_TC_BODY()
306 struct timespec ts; in ATF_TC_BODY() local
316 &ts, NULL)); in ATF_TC_BODY()
336 ts.tv_sec = 0; in ATF_TC_BODY()
339 &ts, NULL)); in ATF_TC_BODY()
[all …]
/freebsd/contrib/lua/src/
H A Dlstring.c55 ts->hash = luaS_hash(getstr(ts), len, ts->hash); in luaS_hashlongstr()
58 return ts->hash; in luaS_hashlongstr()
144 TString *ts; in createstrobj() local
150 ts->hash = h; in createstrobj()
153 return ts; in createstrobj()
160 return ts; in luaS_createlngstrobj()
189 TString *ts; in internshrstr() local
195 for (ts = *list; ts != NULL; ts = ts->u.hnext) { in internshrstr()
212 *list = ts; in internshrstr()
214 return ts; in internshrstr()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dtime.h59 #define TIMESPEC_OVERFLOW(ts) \ argument
60 ((ts)->tv_sec < TIME_MIN || (ts)->tv_sec > TIME_MAX)
79 *ts = current_kernel_time64(); in gethrestime()
83 *ts = current_kernel_time(); in gethrestime()
92 inode_timespec_t ts; in gethrestime_sec() local
101 return (ts.tv_sec); in gethrestime_sec()
108 struct timespec64 ts; in gethrtime() local
109 ktime_get_raw_ts64(&ts); in gethrtime()
111 struct timespec ts; in gethrtime()
112 getrawmonotonic(&ts); in gethrtime()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dprettydate.c69 time_t ts; in get_struct_tm() local
74 ts = tl = stamp->q_s; in get_struct_tm()
114 ts = (int32)lo; in get_struct_tm()
132 if (ts < 0) { in get_struct_tm()
156 l_fp *ts, in common_prettydate() argument
173 if (ts->l_ui == 0 && ts->l_uf == 0) { in common_prettydate()
179 ntps = ts->l_ui; in common_prettydate()
195 (u_long)ts->l_ui, (u_long)ts->l_uf, in common_prettydate()
201 (u_long)ts->l_ui, (u_long)ts->l_uf, in common_prettydate()
211 l_fp *ts in prettydate() argument
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dtime.h54 #define TIMESPEC_OVERFLOW(ts) \ argument
55 ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
57 #define TIMESPEC_OVERFLOW(ts) \ argument
58 ((ts)->tv_sec < INT64_MIN || (ts)->tv_sec > INT64_MAX)
67 struct timespec ts; in gethrtime() local
70 nanouptime(&ts); in gethrtime()
71 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime()
76 #define gethrestime(ts) getnanotime(ts) argument
90 struct timespec ts; in gethrtime() local
91 clock_gettime(CLOCK_UPTIME, &ts); in gethrtime()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-to-separator.mk9 .if ${WORDS:ts } != "one two three four five six"
32 .if ${WORDS:ts:tu} != "ONETWOTHREEFOURFIVESIX"
63 .if ${WORDS:ts} != "onetwothreefourfivesix"
155 .if ${WORDS:[1..3]:ts\400:tu}
171 .if ${WORDS:[1..3]:ts\x100:tu}
179 .if ${WORDS:[1..3]:ts\-300:tu}
188 .if ${1 2 3:L:ts\8:tu}
196 .if ${1 2 3:L:ts\100L}
204 .if ${1 2 3:L:ts\x40g}
223 .if ${WORDS:ts\X}
[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()
121 ts.tv_sec = 1; in ATF_TC_BODY()
122 ts.tv_nsec = 1000000000; in ATF_TC_BODY()
126 ts.tv_sec = -1; in ATF_TC_BODY()
127 ts.tv_nsec = 0; in ATF_TC_BODY()
198 struct timespec tso, ts; in ATF_TC_BODY() local
220 ts.tv_sec = tso.tv_sec; in ATF_TC_BODY()
224 while (nanosleep(&ts, &ts) != 0) { in ATF_TC_BODY()
[all …]
/freebsd/sys/contrib/dev/athk/
H A Ddfs_pri_detector.c37 u64 ts; member
214 p->ts = ts; in pulse_queue_enqueue()
217 pde->last_ts = ts; in pulse_queue_enqueue()
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()
323 ps->last_ts = ts; in pseq_handler_add_to_existing_seqs()
371 pde->last_ts = ts; in pri_detector_reset()
386 u64 ts = event->ts; in pri_detector_add_pulse() local
[all …]
/freebsd/sys/contrib/device-tree/Bindings/bus/
H A Dts-nbus.txt7 - compatible : "technologic,ts-nbus"
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
15 - ts,ale-gpios : The GPIO pin connected to the ale 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>;
40 ts,txrx-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
41 ts,strobe-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
42 ts,ale-gpios = <&gpio0 26 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()
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()
319 direction, ts->amount, delta, ts->blocks); in printstats()
321 if (ts->rollovers != 0) in printstats()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/string/
H A Dt_bm.c74 size_t ts; in ATF_TC_BODY() local
79 for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) { in ATF_TC_BODY()
80 ATF_CHECK(pattern = bm_comp((const u_char *)testcases[ts].pattern, in ATF_TC_BODY()
81 strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq)); in ATF_TC_BODY()
83 ATF_REQUIRE(text = strdup(testcases[ts].text)); in ATF_TC_BODY()
86 if (testcases[ts].match == -1) in ATF_TC_BODY()
89 ATF_CHECK_EQ(testcases[ts].match, in ATF_TC_BODY()
/freebsd/sys/crypto/skein/
H A Dskein_block.c44 #define DebugSaveTweak(ctx) { ctx->h.T[0] = ts[0]; ctx->h.T[1] = ts[1]; }
88 ts[0] = ctx->h.T[0]; in Skein_256_Process_Block()
89 ts[1] = ctx->h.T[1]; in Skein_256_Process_Block()
101 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block()
144 ts[r + (R)+2 ] = ts[r+(R)-1]; \ in Skein_256_Process_Block()
223 ctx->h.T[0] = ts[0]; in Skein_256_Process_Block()
224 ctx->h.T[1] = ts[1]; in Skein_256_Process_Block()
293 ts[2] = ts[0] ^ ts[1]; in Skein_512_Process_Block()
348 ts[r + (R)+2] = ts[r+(R)-1]; \ in Skein_512_Process_Block()
515 ts[2] = ts[0] ^ ts[1]; in Skein1024_Process_Block()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/
H A Dmarvell,kirkwood-pinctrl.txt143 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst)
145 mpp31 31 gpio, ge1(rxclk), ts(mp11), tdm(fs)
192 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst)
194 mpp31 31 gpio, ge1(rxclk), ts(mp11), tdm(fs)
206 mpp43 43 gpio, ts(mp7), tdm(int), audio(sdi)
208 mpp45 45 gpio, ts(mp9), tdm(pclk)
209 mpp46 46 gpio, ts(mp10), tdm(fs)
210 mpp47 47 gpio, ts(mp11), tdm(drx)
211 mpp48 48 gpio, ts(mp12), tdm(dtx)
278 mpp45 45 gpio, ts(mp9), tdm(pclk), lcd(e)
[all …]

12345678910>>...40