Home
last modified time | relevance | path

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

1234567891011

/f-stack/freebsd/kern/
H A Dsubr_turnstile.c183 if (ts != top) in propagate_unlock_ts()
367 td->td_tid, ts->ts_lockobj, ts->ts_lockobj->lo_name); in turnstile_adjust_thread()
503 ts = mem; in turnstile_dtor()
519 ts = mem; in turnstile_init()
533 ts = mem; in turnstile_fini()
589 return (ts); in turnstile_trywait()
838 MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL); in turnstile_signal()
867 ts = LIST_FIRST(&ts->ts_free); in turnstile_signal()
889 MPASS(ts->ts_owner == curthread || ts->ts_owner == NULL); in turnstile_broadcast()
912 ts1 = ts; in turnstile_broadcast()
[all …]
H A Dsched_4bsd.c117 ((ts)->ts_runq != 0 && (ts)->ts_runq != &runq)
468 struct td_sched *ts; in schedcpu() local
505 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu()
550 ts->ts_estcpu = decay_cpu(loadfac, ts->ts_estcpu); in schedcpu()
588 ts->ts_estcpu = 0; in updatepri()
722 ts->ts_cpticks++; in sched_clock_tick()
723 ts->ts_estcpu = ESTCPULIM(ts->ts_estcpu + 1); in sched_clock_tick()
799 bzero(ts, sizeof(*ts)); in sched_fork_thread()
803 ts->ts_slice = 1; in sched_fork_thread()
1123 ts->ts_slptime = 0; in sched_wakeup()
[all …]
H A Dsubr_rtc.c139 struct timespec ts; in settime_task_func() local
145 getnanotime(&ts); in settime_task_func()
148 timespecadd(&ts, &rtc->resadj, &ts); in settime_task_func()
151 ts.tv_sec = 0; in settime_task_func()
152 ts.tv_nsec = 0; in settime_task_func()
302 if (ts->tv_sec < 0 || ts->tv_nsec < 0) { in read_clocks()
307 timespecadd(ts, &rtc->resadj, ts); in read_clocks()
336 struct timespec ts; in inittodr() local
360 ts.tv_nsec = 0; in inittodr()
363 if (ts.tv_sec >= 0) { in inittodr()
[all …]
H A Dsched_ule.c150 #define SCHED_TICK_TOTAL(ts) (max((ts)->ts_ltick - (ts)->ts_ftick, hz)) argument
1544 ts->ts_runtime >= ts->ts_slptime) in sched_interact_score()
1547 if (ts->ts_runtime > ts->ts_slptime) { in sched_interact_score()
1552 if (ts->ts_slptime > ts->ts_runtime) { in sched_interact_score()
1630 sum = ts->ts_runtime + ts->ts_slptime; in sched_interact_update()
1639 if (ts->ts_runtime > ts->ts_slptime) { in sched_interact_update()
1658 ts->ts_runtime = (ts->ts_runtime / 5) * 4; in sched_interact_update()
1659 ts->ts_slptime = (ts->ts_slptime / 5) * 4; in sched_interact_update()
1676 sum = ts->ts_runtime + ts->ts_slptime; in sched_interact_fork()
1734 ts->ts_ticks = (ts->ts_ticks / (ts->ts_ltick - ts->ts_ftick)) * in sched_pctcpu_update()
[all …]
H A Dsubr_fattime.c266 struct timespec ts; in main() local
275 ts.tv_sec = random(); in main()
279 printf("%10d.%03ld -- ", ts.tv_sec, ts.tv_nsec / 1000000); in main()
281 gmtime_r(&ts.tv_sec, &tm); in main()
285 a = ts.tv_sec + ts.tv_nsec * 1e-9; in main()
287 timet2fattime(&ts, &d, &t, &p); in main()
297 ts.tv_sec = ts.tv_nsec = 0; in main()
298 fattime2timet(d, t, p, &ts); in main()
299 printf("%10d.%03ld == ", ts.tv_sec, ts.tv_nsec / 1000000); in main()
300 gmtime_r(&ts.tv_sec, &tm); in main()
[all …]
H A Dsubr_clock.c139 clock_ct_to_ts(const struct clocktime *ct, struct timespec *ts) in clock_ct_to_ts() argument
191 ts->tv_nsec = ct->nsec; in clock_ct_to_ts()
194 printf(" = %jd.%09ld\n", (intmax_t)ts->tv_sec, ts->tv_nsec); in clock_ct_to_ts()
244 return (clock_ct_to_ts(&ct, ts)); in clock_bcd_to_ts()
248 clock_ts_to_ct(const struct timespec *ts, struct clocktime *ct) in clock_ts_to_ct() argument
254 secs = ts->tv_sec; in clock_ts_to_ct()
285 ct->nsec = ts->tv_nsec; in clock_ts_to_ct()
288 (intmax_t)ts->tv_sec, ts->tv_nsec); in clock_ts_to_ct()
313 clock_ts_to_ct(ts, &ct); in clock_ts_to_bcd()
373 clock_print_ts(const struct timespec *ts, int nsdigits) in clock_print_ts() argument
[all …]
/f-stack/freebsd/net80211/
H A Dieee80211_tdma.c160 if (ts == NULL) { in ieee80211_tdma_vattach()
197 vap->iv_tdma = ts; in ieee80211_tdma_vattach()
205 if (ts == NULL) { in tdma_vdetach()
287 ((ts->tdma_slotcnt * ts->tdma_slotlen) / 1024)); in tdma_newstate()
426 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
436 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
445 if (ppsratecheck(&ts->tdma_lastprint, &ts->tdma_fails, 1)) in tdma_update()
496 __func__, ts->tdma_slot, ts->tdma_slotcnt, in tdma_update()
497 ts->tdma_slotlen, ts->tdma_bintval); in tdma_update()
739 ts->tdma_inuse[0] = ts->tdma_active[0]; in ieee80211_tdma_update_beacon()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Dlatency.c105 ts = zmalloc(sizeof(*ts)); in latencyAddSample()
106 ts->idx = 0; in latencyAddSample()
107 ts->max = 0; in latencyAddSample()
108 memset(ts->samples,0,sizeof(ts->samples)); in latencyAddSample()
112 if (latency > ts->max) ts->max = latency; in latencyAddSample()
123 ts->samples[ts->idx].time = time(NULL); in latencyAddSample()
124 ts->samples[ts->idx].latency = latency; in latencyAddSample()
126 ts->idx++; in latencyAddSample()
127 if (ts->idx == LATENCY_TS_LEN) ts->idx = 0; in latencyAddSample()
165 ls->all_time_high = ts ? ts->max : 0; in analyzeLatencyForEvent()
[all …]
/f-stack/freebsd/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 …]
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dtime.h56 #define TIMESPEC_OVERFLOW(ts) \ argument
57 ((ts)->tv_sec < INT32_MIN || (ts)->tv_sec > INT32_MAX)
59 #define TIMESPEC_OVERFLOW(ts) \ argument
60 ((ts)->tv_sec < INT64_MIN || (ts)->tv_sec > INT64_MAX)
69 struct timespec ts; in gethrtime() local
72 nanouptime(&ts); in gethrtime()
73 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime()
78 #define gethrestime(ts) getnanotime(ts) argument
92 struct timespec ts; in gethrtime() local
93 clock_gettime(CLOCK_UPTIME, &ts); in gethrtime()
[all …]
/f-stack/freebsd/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 …]
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlstring.c52 TString *ts; in newlstr() local
57 ts->tsv.len = l; in newlstr()
58 ts->tsv.hash = h; in newlstr()
59 ts->tsv.marked = luaC_white(G(L)); in newlstr()
60 ts->tsv.tt = LUA_TSTRING; in newlstr()
61 ts->tsv.reserved = 0; in newlstr()
67 tb->hash[h] = obj2gco(ts); in newlstr()
71 return ts; in newlstr()
85 TString *ts = rawgco2ts(o); in luaS_newlstr() local
86 if (ts->tsv.len == l && (memcmp(str, getstr(ts), l) == 0)) { in luaS_newlstr()
[all …]
/f-stack/freebsd/contrib/device-tree/src/arm/
H A Dsocfpga_cyclone5_mcvevk.dts61 compatible = "st,stmpe-ts";
62 ts,sample-time = <4>;
63 ts,mod-12b = <1>;
64 ts,ref-sel = <0>;
65 ts,adc-freq = <1>;
66 ts,ave-ctrl = <1>;
67 ts,touch-det-delay = <3>;
68 ts,settling = <4>;
69 ts,fraction-z = <7>;
70 ts,i-drive = <1>;
/f-stack/freebsd/crypto/skein/
H A Dskein_block.c46 #define DebugSaveTweak(ctx) { ctx->h.T[0] = ts[0]; ctx->h.T[1] = ts[1]; }
90 ts[0] = ctx->h.T[0]; in Skein_256_Process_Block()
91 ts[1] = ctx->h.T[1]; in Skein_256_Process_Block()
103 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block()
146 ts[r + (R)+2 ] = ts[r+(R)-1]; \ in Skein_256_Process_Block()
225 ctx->h.T[0] = ts[0]; in Skein_256_Process_Block()
226 ctx->h.T[1] = ts[1]; in Skein_256_Process_Block()
295 ts[2] = ts[0] ^ ts[1]; in Skein_512_Process_Block()
350 ts[r + (R)+2] = ts[r+(R)-1]; \ in Skein_512_Process_Block()
517 ts[2] = ts[0] ^ ts[1]; in Skein1024_Process_Block()
[all …]
/f-stack/freebsd/contrib/openzfs/module/icp/algs/skein/
H A Dskein_block.c98 ts[0] = ctx->h.T[0]; in Skein_256_Process_Block()
99 ts[1] = ctx->h.T[1]; in Skein_256_Process_Block()
114 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block()
159 ts[r + (R) + 2] = ts[r + (R) - 1]; \ in Skein_256_Process_Block()
242 ctx->h.T[0] = ts[0]; in Skein_256_Process_Block()
243 ctx->h.T[1] = ts[1]; in Skein_256_Process_Block()
307 ts[0] = ctx->h.T[0]; in Skein_512_Process_Block()
328 ts[2] = ts[0] ^ ts[1]; in Skein_512_Process_Block()
385 ts[r + (R)+2] = ts[r + (R) - 1]; \ in Skein_512_Process_Block()
579 ts[2] = ts[0] ^ ts[1]; in Skein1024_Process_Block()
[all …]
/f-stack/freebsd/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 …]
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_time.h79 rte_timespec_to_ns(const struct timespec *ts) in rte_timespec_to_ns() argument
81 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in rte_timespec_to_ns()
90 struct timespec ts = {0, 0}; in rte_ns_to_timespec() local
93 return ts; in rte_ns_to_timespec()
95 ts.tv_sec = nsec / NSEC_PER_SEC; in rte_ns_to_timespec()
96 ts.tv_nsec = nsec % NSEC_PER_SEC; in rte_ns_to_timespec()
98 return ts; in rte_ns_to_timespec()
/f-stack/freebsd/sys/
H A Dtimespec.h43 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument
45 (ts)->tv_sec = (tv)->tv_sec; \
46 (ts)->tv_nsec = (tv)->tv_usec * 1000; \
48 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument
50 (tv)->tv_sec = (ts)->tv_sec; \
51 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
/f-stack/freebsd/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_xmit_ds.c210 switch (ts->ts_finaltsi) { in ar9300_get_tx_rate_code()
306 ts->ts_tstamp = ads->status4; in ar9300_proc_tx_desc()
307 ts->ts_status = 0; in ar9300_proc_tx_desc()
308 ts->ts_flags = 0; in ar9300_proc_tx_desc()
338 ts->ts_flags |= HAL_TX_BA; in ar9300_proc_tx_desc()
339 ts->ts_ba_low = ads->status5; in ar9300_proc_tx_desc()
340 ts->ts_ba_high = ads->status6; in ar9300_proc_tx_desc()
343 ts->ts_flags |= HAL_TX_FAST_TS; in ar9300_proc_tx_desc()
361 ts->ts_antenna = 0; in ar9300_proc_tx_desc()
393 finalindex_tries = ts->ts_longretry + (ts->ts_flags & HAL_TX_BA)? 1 : 0; in ar9300_calc_tx_airtime()
[all …]
/f-stack/freebsd/contrib/openzfs/lib/libspl/include/sys/
H A Dtime.h83 gethrestime(inode_timespec_t *ts) in gethrestime() argument
87 ts->tv_sec = tv.tv_sec; in gethrestime()
88 ts->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in gethrestime()
102 struct timespec ts; in gethrtime() local
103 (void) clock_gettime(CLOCK_MONOTONIC, &ts); in gethrtime()
104 return ((((u_int64_t)ts.tv_sec) * NANOSEC) + ts.tv_nsec); in gethrtime()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table_value.c340 ch = ts->ch; in rollback_table_values()
345 get_value_ptrs(ch, ts->tc, ts->vshared, &pval, &vi); in rollback_table_values()
348 ptei = &ts->tei[i]; in rollback_table_values()
379 ts->opstate.func(ts->tc, &ts->opstate); in alloc_table_vidx()
384 vlimit = ts->ta->vlimit; in alloc_table_vidx()
487 get_value_ptrs(ch, ts->tc, ts->vshared, &pval, &vi); in ipfw_link_table_values()
493 tc = ts->tc; in ipfw_link_table_values()
494 tei = ts->tei; in ipfw_link_table_values()
495 count = ts->count; in ipfw_link_table_values()
576 ts->opstate.func(ts->tc, &ts->opstate); in ipfw_link_table_values()
[all …]
/f-stack/freebsd/contrib/openzfs/config/
H A Dkernel-inode-times.m410 struct timespec64 ts;
13 memset(&ts, 0, sizeof(ts));
14 ts = timestamp_truncate(ts, &ip);
25 struct timespec ts;
28 ts = ip.i_mtime;
/f-stack/freebsd/mips/cavium/
H A Docteon_rtc.c50 static int octeon_rtc_settime(device_t dev, struct timespec *ts);
51 static int octeon_rtc_gettime(device_t dev, struct timespec *ts);
102 octeon_rtc_settime(device_t dev, struct timespec *ts) in octeon_rtc_settime() argument
111 status = cvmx_rtc_write(ts->tv_sec); in octeon_rtc_settime()
119 octeon_rtc_gettime(device_t dev, struct timespec *ts) in octeon_rtc_gettime() argument
127 ts->tv_sec = secs; in octeon_rtc_gettime()
128 ts->tv_nsec = 0; in octeon_rtc_gettime()
/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dlstring.c99 TString *ts; in createstrobj() local
103 ts = &luaC_newobj(L, tag, totalsize, list, 0)->ts; in createstrobj()
104 ts->tsv.len = l; in createstrobj()
105 ts->tsv.hash = h; in createstrobj()
106 ts->tsv.extra = 0; in createstrobj()
107 sbuf = (char *)(TString *)(ts + 1); in createstrobj()
110 return ts; in createstrobj()
141 TString *ts = rawgco2ts(o); in internshrstr() local
142 if (h == ts->tsv.hash && in internshrstr()
143 l == ts->tsv.len && in internshrstr()
[all …]
/f-stack/freebsd/arm/mv/
H A Drtc.c72 static int mv_rtc_gettime(device_t dev, struct timespec *ts);
73 static int mv_rtc_settime(device_t dev, struct timespec *ts);
131 mv_rtc_gettime(device_t dev, struct timespec *ts) in mv_rtc_gettime() argument
153 return (clock_ct_to_ts(&ct, ts)); in mv_rtc_gettime()
157 mv_rtc_settime(device_t dev, struct timespec *ts) in mv_rtc_settime() argument
166 if (ts->tv_nsec >= 500000000) in mv_rtc_settime()
167 ts->tv_sec++; in mv_rtc_settime()
168 ts->tv_nsec = 0; in mv_rtc_settime()
169 clock_ts_to_ct(ts, &ct); in mv_rtc_settime()

1234567891011