| /freebsd-13-stable/sys/kern/ |
| HD | subr_turnstile.c | 162 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 …]
|
| HD | sched_4bsd.c | 114 #define SKE_RUNQ_PCPU(ts) \ argument 115 ((ts)->ts_runq != 0 && (ts)->ts_runq != &runq) 466 struct td_sched *ts; in schedcpu() local 478 ts = td_get_sched(td); in schedcpu() 503 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu() 509 if (ts->ts_cpticks != 0) { in schedcpu() 511 ts->ts_pctcpu += (realstathz == 100) in schedcpu() 512 ? ((fixpt_t) ts->ts_cpticks) << in schedcpu() 514 100 * (((fixpt_t) ts->ts_cpticks) in schedcpu() 517 ts->ts_pctcpu += ((FSCALE - ccpu) * in schedcpu() [all …]
|
| HD | subr_rtc.c | 137 struct timespec ts; in settime_task_func() local 143 getnanotime(&ts); in settime_task_func() 145 ts.tv_sec -= utc_offset(); in settime_task_func() 146 timespecadd(&ts, &rtc->resadj, &ts); in settime_task_func() 149 ts.tv_sec = 0; in settime_task_func() 150 ts.tv_nsec = 0; in settime_task_func() 152 error = CLOCK_SETTIME(rtc->clockdev, &ts); in settime_task_func() 201 clock_dbgprint_ts(device_t dev, int rw, const struct timespec *ts) in clock_dbgprint_ts() argument 206 clock_print_ts(ts, 9); in clock_dbgprint_ts() 290 read_clocks(struct timespec *ts, bool debug_read) in read_clocks() argument [all …]
|
| HD | sched_ule.c | 147 #define SCHED_TICK_HZ(ts) ((ts)->ts_ticks >> SCHED_TICK_SHIFT) argument 148 #define SCHED_TICK_TOTAL(ts) (max((ts)->ts_ltick - (ts)->ts_ftick, hz)) argument 167 #define SCHED_PRI_TICKS(ts) \ argument 168 (SCHED_TICK_HZ((ts)) / \ 169 (roundup(SCHED_TICK_TOTAL((ts)), SCHED_PRI_RANGE) / SCHED_PRI_RANGE)) 283 #define SCHED_AFFINITY(ts, t) ((ts)->ts_rltick > ticks - ((t) * affinity)) argument 480 struct td_sched *ts; in tdq_runq_add() local 487 ts = td_get_sched(td); in tdq_runq_add() 491 ts->ts_flags |= TSF_XFERABLE; in tdq_runq_add() 494 ts->ts_runq = &tdq->tdq_realtime; in tdq_runq_add() [all …]
|
| /freebsd-13-stable/sys/compat/linuxkpi/common/src/ |
| HD | linux_tasklet.c | 43 #define TASKLET_ST_CMPSET(ts, old, new) \ argument 44 atomic_cmpset_int((volatile u_int *)&(ts)->tasklet_state, old, new) 46 #define TASKLET_ST_SET(ts, new) \ argument 47 WRITE_ONCE(*(volatile u_int *)&(ts)->tasklet_state, new) 49 #define TASKLET_ST_GET(ts) \ argument 50 READ_ONCE(*(volatile u_int *)&(ts)->tasklet_state) 67 struct tasklet_struct *ts; in tasklet_handler() local 75 ts = TAILQ_FIRST(&tw->head); in tasklet_handler() 76 if (ts == NULL) in tasklet_handler() 78 TAILQ_REMOVE(&tw->head, ts, entry); in tasklet_handler() [all …]
|
| HD | linux_current.c | 54 struct task_struct *ts; in find_other_mm() local 59 ts = td->td_lkpi_task; in find_other_mm() 60 if (ts == NULL) in find_other_mm() 62 mm = ts->mm; in find_other_mm() 76 struct task_struct *ts; in linux_alloc_current() local 86 ts = uma_zalloc(linux_current_zone, flags | M_ZERO); in linux_alloc_current() 87 if (ts == NULL) { in linux_alloc_current() 95 atomic_set(&ts->kthread_flags, 0); in linux_alloc_current() 96 ts->task_thread = td; in linux_alloc_current() 97 ts->comm = td->td_name; in linux_alloc_current() [all …]
|
| /freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
| HD | ktime.h | 167 timespec_to_ktime(struct timespec ts) in timespec_to_ktime() argument 169 return (ktime_set(ts.tv_sec, ts.tv_nsec)); in timespec_to_ktime() 179 timespec64_to_ns(struct timespec64 *ts) in timespec64_to_ns() argument 181 return (timespec_to_ns(ts)); in timespec64_to_ns() 188 #define ktime_get_ts(ts) getnanouptime(ts) argument 189 #define ktime_get_ts64(ts) getnanouptime(ts) argument 190 #define ktime_get_raw_ts64(ts) getnanouptime(ts) argument 191 #define ktime_get_real_ts64(ts) getnanotime(ts) argument 192 #define getrawmonotonic64(ts) getnanouptime(ts) argument 197 struct timespec ts; in ktime_get_ns() local [all …]
|
| HD | time.h | 72 #define getrawmonotonic(ts) nanouptime(ts) argument 77 struct timespec ts; in timespec_sub() local 79 timespecsub(&lhs, &rhs, &ts); in timespec_sub() 81 return ts; in timespec_sub() 85 set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec) in set_normalized_timespec() argument 88 ts->tv_sec = sec; in set_normalized_timespec() 89 ts->tv_nsec = nsec; in set_normalized_timespec() 93 timespec_to_ns(const struct timespec *ts) in timespec_to_ns() argument 95 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns() 101 struct timespec ts; in ns_to_timespec() local [all …]
|
| /freebsd-13-stable/sys/net80211/ |
| HD | ieee80211_tdma.c | 151 struct ieee80211_tdma_state *ts; in ieee80211_tdma_vattach() local 156 ts = (struct ieee80211_tdma_state *) IEEE80211_MALLOC( in ieee80211_tdma_vattach() 159 if (ts == NULL) { in ieee80211_tdma_vattach() 166 ts->tdma_version = TDMA_VERSION; in ieee80211_tdma_vattach() 167 ts->tdma_slotlen = TDMA_SLOTLEN_DEFAULT; in ieee80211_tdma_vattach() 168 ts->tdma_slotcnt = TDMA_SLOTCNT_DEFAULT; in ieee80211_tdma_vattach() 169 ts->tdma_bintval = TDMA_BINTVAL_DEFAULT; in ieee80211_tdma_vattach() 170 ts->tdma_slot = 1; /* passive operation */ in ieee80211_tdma_vattach() 188 ts->tdma_opdetach = vap->iv_opdetach; in ieee80211_tdma_vattach() 190 ts->tdma_newstate = vap->iv_newstate; in ieee80211_tdma_vattach() [all …]
|
| /freebsd-13-stable/crypto/openssh/regress/misc/fuzz-harness/ |
| HD | kex_fuzz.cc | 76 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-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printf/ |
| HD | tst.printcont.d | 39 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-13-stable/contrib/netbsd-tests/lib/librt/ |
| HD | t_sem.c | 207 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-13-stable/crypto/openssh/regress/unittests/misc/ |
| HD | test_ptimeout.c | 32 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-13-stable/contrib/lua/src/ |
| HD | lstring.c | 51 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(getstr(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-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/ |
| HD | time.h | 59 #define TIMESPEC_OVERFLOW(ts) \ argument 60 ((ts)->tv_sec < TIME_MIN || (ts)->tv_sec > TIME_MAX) 72 gethrestime(inode_timespec_t *ts) in gethrestime() argument 77 ktime_get_coarse_real_ts64(ts); in gethrestime() 79 *ts = current_kernel_time64(); in gethrestime() 83 *ts = current_kernel_time(); in gethrestime() 92 inode_timespec_t ts; in gethrestime_sec() local 93 ktime_get_coarse_real_ts64(&ts); in gethrestime_sec() 95 inode_timespec_t ts = current_kernel_time64(); in gethrestime_sec() 99 inode_timespec_t ts = current_kernel_time(); in gethrestime_sec() [all …]
|
| /freebsd-13-stable/contrib/ntp/libntp/ |
| HD | prettydate.c | 68 time_t ts; in get_struct_tm() local 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() 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 >= (time_t)SOLAR_CYCLE_SECS) { in get_struct_tm() 138 ts -= SOLAR_CYCLE_SECS; in get_struct_tm() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| HD | time.h | 56 #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 …]
|
| /freebsd-13-stable/contrib/bmake/unit-tests/ |
| HD | varmod-to-separator.mk | 9 .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-13-stable/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_nanosleep.c | 114 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-13-stable/sys/contrib/device-tree/Bindings/bus/ |
| HD | ts-nbus.txt | 7 - 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-13-stable/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| HD | zpl.h | 181 #define zpl_inode_timestamp_truncate(ts, ip) timestamp_truncate(ts, ip) argument 183 #define zpl_inode_timestamp_truncate(ts, ip) \ argument 184 timespec64_trunc(ts, (ip)->i_sb->s_time_gran) 186 #define zpl_inode_timestamp_truncate(ts, ip) \ argument 187 timespec_trunc(ts, (ip)->i_sb->s_time_gran) 216 #define zpl_inode_set_ctime_to_ts(ip, ts) inode_set_ctime_to_ts(ip, ts) argument 218 #define zpl_inode_set_ctime_to_ts(ip, ts) (ip->i_ctime = ts) argument 226 #define zpl_inode_set_atime_to_ts(ip, ts) inode_set_atime_to_ts(ip, ts) argument 228 #define zpl_inode_set_atime_to_ts(ip, ts) (ip->i_atime = ts) argument 236 #define zpl_inode_set_mtime_to_ts(ip, ts) inode_set_mtime_to_ts(ip, ts) argument [all …]
|
| /freebsd-13-stable/libexec/tftpd/ |
| HD | tftp-utils.c | 293 stats_init(struct tftp_stats *ts) in stats_init() argument 296 ts->amount = 0; in stats_init() 297 ts->rollovers = 0; in stats_init() 298 ts->retries = 0; in stats_init() 299 ts->blocks = 0; in stats_init() 300 ts->amount = 0; in stats_init() 301 gettimeofday(&(ts->tstart), NULL); in stats_init() 305 printstats(const char *direction, int verbose, struct tftp_stats *ts) in printstats() argument 309 delta = ((ts->tstop.tv_sec*10.)+(ts->tstop.tv_usec/100000)) - in printstats() 310 ((ts->tstart.tv_sec*10.)+(ts->tstart.tv_usec/100000)); in printstats() [all …]
|
| /freebsd-13-stable/sys/crypto/skein/ |
| HD | skein_block.c | 41 #define ts (kw + KW_TWK_BASE) macro 44 #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() 92 ts[0] += byteCntAdd; /* update processed length */ in Skein_256_Process_Block() 101 ts[2] = ts[0] ^ ts[1]; in Skein_256_Process_Block() 105 Skein_Show_Block(BLK_BITS,&ctx->h,ctx->X,blkPtr,w,ks,ts); in Skein_256_Process_Block() 108 X1 = w[1] + ks[1] + ts[0]; in Skein_256_Process_Block() 109 X2 = w[2] + ks[2] + ts[1]; in Skein_256_Process_Block() 129 X1 += ks[((R)+2) % 5] + ts[((R)+1) % 3]; \ in Skein_256_Process_Block() [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/lib/libc/string/ |
| HD | t_bm.c | 74 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-13-stable/sys/contrib/device-tree/Bindings/pinctrl/ |
| D | marvell,kirkwood-pinctrl.txt | 130 mpp20 20 gpio, ge1(txd0), ts(mp0), tdm(tx0ql), audio(spdifi), 132 mpp21 21 gpio, ge1(txd1), sata0(act), ts(mp1), tdm(rx0ql), 134 mpp22 22 gpio, ge1(txd2), ts(mp2), tdm(tx2ql), audio(rmclk), 136 mpp23 23 gpio, ge1(txd3), sata0(prsnt), ts(mp3), tdm(rx2ql), 138 mpp24 24 gpio, ge1(rxd0), ts(mp4), tdm(spi-cs0), audio(sdo) 139 mpp25 25 gpio, ge1(rxd1), ts(mp5), tdm(spi-sck), audio(lrclk) 140 mpp26 26 gpio, ge1(rxd2), ts(mp6), tdm(spi-miso), audio(mclk) 141 mpp27 27 gpio, ge1(rxd3), ts(mp7), tdm(spi-mosi), audio(sdi) 142 mpp28 28 gpio, ge1(col), ts(mp8), tdm(int), audio(extclk) 143 mpp29 29 gpio, ge1(txclk), ts(mp9), tdm(rst) [all …]
|