/freebsd/sys/kern/ |
H A D | 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 …]
|
H A D | sched_4bsd.c | 117 #define SKE_RUNQ_PCPU(ts) \ argument 118 ((ts)->ts_runq != 0 && (ts)->ts_runq != &runq) 469 struct td_sched *ts; in schedcpu() local 481 ts = td_get_sched(td); in schedcpu() 506 ts->ts_pctcpu = (ts->ts_pctcpu * ccpu) >> FSHIFT; in schedcpu() 512 if (ts->ts_cpticks != 0) { in schedcpu() 514 ts->ts_pctcpu += (realstathz == 100) in schedcpu() 515 ? ((fixpt_t) ts->ts_cpticks) << in schedcpu() 517 100 * (((fixpt_t) ts->ts_cpticks) in schedcpu() 520 ts->ts_pctcpu += ((FSCALE - ccpu) * in schedcpu() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_tasklet.c | 42 #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 D | linux_current.c | 60 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() 101 atomic_set(&ts->kthread_flags, 0); in linux_alloc_current() 102 ts->task_thread = td; in linux_alloc_current() 103 ts->comm = td->td_name; in linux_alloc_current() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ktime.h | 173 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 D | time.h | 76 #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/crypto/openssh/regress/misc/fuzz-harness/ |
H A D | 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/contrib/bmake/unit-tests/ |
H A D | varmod-to-separator.mk | 3 # Tests for the :ts variable modifier, which joins the words of the variable 9 .if ${WORDS:ts } != "one two three four five six" 14 .if ${WORDS:ts,} != "one,two,three,four,five,six" 18 # After the :ts modifier, other modifiers can follow. 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" 36 # Applying the :tu modifier first and then the :ts modifier does not change 44 .if ${WORDS:tu:ts} != "ONETWOTHREEFOURFIVESIX" 51 .if ${WORDS:tu:ts/} != "ONE/TWO/THREE/FOUR/FIVE/SIX" [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211_tdma.c | 147 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/contrib/pam-krb5/tests/ |
H A D | runtests.c | 211 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/contrib/llvm-project/clang/include/clang/AST/ |
H A D | NonTrivialTypeVisitor.h | 22 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit() 24 std::forward<Ts>(Args)...); in visit() 27 template <class... Ts> 29 Ts &&... Args) { in visitWithKind() 32 return asDerived().visitARCStrong(FT, std::forward<Ts>(Args)...); in visitWithKind() 34 return asDerived().visitStruct(FT, std::forward<Ts>(Args)...); in visitWithKind() 36 return asDerived().visitTrivial(FT, std::forward<Ts>(Args)...); in visitWithKind() 38 return asDerived().visitCXXDestructor(FT, std::forward<Ts>(Args)...); in visitWithKind() 40 return asDerived().visitARCWeak(FT, std::forward<Ts>(Args)...); in visitWithKind() 51 template <class... Ts> RetTy visit(QualType FT, Ts &&... Args) { in visit() [all …]
|
/freebsd/crypto/openssh/regress/unittests/misc/ |
H A D | 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/contrib/lua/src/ |
H A D | 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/sys/contrib/device-tree/Bindings/pinctrl/ |
H A 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 …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printf/ |
H A D | 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/contrib/netbsd-tests/lib/librt/ |
H A D | 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/sys/contrib/device-tree/Bindings/bus/ |
H A D | ts-nbus.txt | 4 Systems FPGA on the TS-4600 SoM. 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 [all …]
|
/freebsd/contrib/ntp/sntp/scripts/ |
H A D | cvo.sh | 13 TS="$*" 138 case "$TS" in 144 TS=`echo $TS | sed -e s/@cvo@/$CVO/g` 146 TS=`echo $TS | sed -e s/@cpu@/$CVO_CPU/g` 148 TS=`echo $TS | sed -e s/@kosver@/$CVO_KOSVER/g` 150 TS=`echo $TS | se [all...] |
/freebsd/contrib/ntp/libntp/ |
H A D | prettydate.c | 68 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/freebsd/spl/sys/ |
H A D | time.h | 55 #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 gethrtime() local 71 nanouptime(&ts); in gethrtime() 72 nsec = ((hrtime_t)ts.tv_sec * NANOSEC) + ts.tv_nsec; in gethrtime() 77 #define gethrestime(ts) getnanotime(ts) argument 91 struct timespec ts; in gethrtime() local 92 clock_gettime(CLOCK_UPTIME, &ts); in gethrtime() [all …]
|
/freebsd/sys/contrib/dev/athk/ |
H A D | dfs_pri_detector.c | 37 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/contrib/netbsd-tests/lib/libc/sys/ |
H A D | 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/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | time.h | 60 #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 struct timespec64 ts; in gethrtime() local 86 ktime_get_raw_ts64(&ts); in gethrtime() 87 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in gethrtime()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | dp_tx.c | 325 struct ath11k_dp_htt_wbm_tx_status *ts) in ath11k_dp_tx_htt_tx_complete_buf() argument 335 msdu = idr_remove(&tx_ring->txbuf_idr, ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf() 340 ts->msdu_id); in ath11k_dp_tx_htt_tx_complete_buf() 361 if (ts->acked) { in ath11k_dp_tx_htt_tx_complete_buf() 365 ts->ack_rssi; in ath11k_dp_tx_htt_tx_complete_buf() 374 peer = ath11k_peer_find_by_id(ab, ts->peer_id); in ath11k_dp_tx_htt_tx_complete_buf() 378 ts->peer_id); in ath11k_dp_tx_htt_tx_complete_buf() 402 struct ath11k_dp_htt_wbm_tx_status ts = {0}; in ath11k_dp_tx_process_htt_tx_complete() local 417 ts.acked = (wbm_status == HAL_WBM_REL_HTT_TX_COMP_STATUS_OK); in ath11k_dp_tx_process_htt_tx_complete() 418 ts.msdu_id = msdu_id; in ath11k_dp_tx_process_htt_tx_complete() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | zpl.h | 128 #define zpl_inode_timestamp_truncate(ts, ip) timestamp_truncate(ts, ip) argument 130 #define zpl_inode_timestamp_truncate(ts, ip) \ argument 131 timespec64_trunc(ts, (ip)->i_sb->s_time_gran) 160 #define zpl_inode_set_ctime_to_ts(ip, ts) inode_set_ctime_to_ts(ip, ts) argument 162 #define zpl_inode_set_ctime_to_ts(ip, ts) (ip->i_ctime = ts) argument 170 #define zpl_inode_set_atime_to_ts(ip, ts) inode_set_atime_to_ts(ip, ts) argument 172 #define zpl_inode_set_atime_to_ts(ip, ts) (ip->i_atime = ts) argument 180 #define zpl_inode_set_mtime_to_ts(ip, ts) inode_set_mtime_to_ts(ip, ts) argument 182 #define zpl_inode_set_mtime_to_ts(ip, ts) (ip->i_mtime = ts) argument
|