| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | btree_test.c | 90 verify_contents(avl_tree_t *avl, zfs_btree_t *bt) in verify_contents() argument 100 ASSERT3U(avl_numnodes(avl), ==, zfs_btree_numnodes(bt)); in verify_contents() 103 data = zfs_btree_first(bt, &bt_idx); in verify_contents() 106 data = zfs_btree_last(bt, &bt_idx); in verify_contents() 112 data = zfs_btree_next(bt, &bt_idx, &bt_idx); in verify_contents() 115 data = zfs_btree_prev(bt, &bt_idx, &bt_idx); in verify_contents() 122 verify_node(avl_tree_t *avl, zfs_btree_t *bt, int_node_t *node) in verify_node() argument 130 ASSERT3U(avl_numnodes(avl), ==, zfs_btree_numnodes(bt)); in verify_node() 131 ASSERT3P((rv = (uint64_t *)zfs_btree_find(bt, &data, &bt_idx)), !=, in verify_node() 134 ASSERT3P(zfs_btree_get(bt, &bt_idx), !=, NULL); in verify_node() [all …]
|
| /freebsd/sys/kern/ |
| H A D | kern_ffclock.c | 68 ffclock_abstime(ffcounter *ffcount, struct bintime *bt, in ffclock_abstime() argument 78 ffclock_last_tick(&ffc, bt, flags); in ffclock_abstime() 81 ffclock_convert_abs(ffc, bt, flags); in ffclock_abstime() 96 bt->sec -= cest.leapsec_total; in ffclock_abstime() 98 bt->sec -= cest.leapsec; in ffclock_abstime() 103 bintime_sub(bt, &ffclock_boottime); in ffclock_abstime() 129 ffclock_difftime(ffcounter ffdelta, struct bintime *bt, in ffclock_difftime() argument 135 ffclock_convert_diff(ffdelta, bt); in ffclock_difftime() 246 ffclock_bintime(struct bintime *bt) in ffclock_bintime() argument 249 ffclock_abstime(NULL, bt, NULL, FFCLOCK_LERP | FFCLOCK_LEAPSEC); in ffclock_bintime() [all …]
|
| H A D | subr_vmem.c | 226 #define BT_ISSPAN_P(bt) ((bt)->bt_type <= BT_TYPE_SPAN_STATIC) argument 228 #define BT_END(bt) ((bt)->bt_start + (bt)->bt_size - 1) argument 327 bt_isbusy(bt_t *bt) in bt_isbusy() argument 329 return (bt->bt_type == BT_TYPE_BUSY); in bt_isbusy() 333 bt_isfree(bt_t *bt) in bt_isfree() argument 335 return (bt->bt_type == BT_TYPE_FREE); in bt_isfree() 346 bt_t *bt; in _bt_fill() local 368 bt = uma_zalloc(vmem_bt_zone, in _bt_fill() 371 bt = malloc(sizeof(struct vmem_btag)); in _bt_fill() 373 if (bt == NULL) { in _bt_fill() [all …]
|
| H A D | kern_tc.c | 217 bintime_add_tc_delta(struct bintime *bt, uint64_t scale, in bintime_add_tc_delta() argument 225 bt->sec += x >> 32; in bintime_add_tc_delta() 226 bintime_addx(bt, x << 32); in bintime_add_tc_delta() 227 bintime_addx(bt, (scale & 0xffffffff) * delta); in bintime_add_tc_delta() 229 bintime_addx(bt, scale * delta); in bintime_add_tc_delta() 240 bintime_off(struct bintime *bt, u_int off) in bintime_off() argument 251 *bt = *btp; in bintime_off() 258 bintime_add_tc_delta(bt, scale, large_delta, delta); in bintime_off() 293 fbclock_binuptime(struct bintime *bt) in fbclock_binuptime() argument 296 GETTHBINTIME(bt, th_offset); in fbclock_binuptime() [all …]
|
| H A D | kern_boottrace.c | 79 static struct bt_table bt; variable 161 CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &bt.size, 0, 309 boottrace_display(NULL, &bt, 0); in boottrace_dump_console() 399 btp = &bt; in boottrace() 478 boottrace_display(sbuf, &bt, 0); in sysctl_log() 499 return (_boottrace_sysctl(bootdone ? &rt : &bt, oidp, req)); in sysctl_boottrace() 589 bt.size = BT_TABLE_DEFSIZE; in boottrace_init() 590 TUNABLE_INT_FETCH("kern.boottrace.table_size", &bt.size); in boottrace_init() 591 bt.size = max(bt.size, BT_TABLE_MINSIZE); in boottrace_init() 592 bt.table = malloc(bt.size * sizeof(struct bt_event), M_BOOTTRACE, in boottrace_init() [all …]
|
| /freebsd/sys/sys/ |
| H A D | timeffc.h | 153 int sysclock_snap2bintime(struct sysclock_snap *cs, struct bintime *bt, 170 void ffclock_last_tick(ffcounter *ffcount, struct bintime *bt, uint32_t flags); 177 void ffclock_convert_abs(ffcounter ffcount, struct bintime *bt, uint32_t flags); 178 void ffclock_convert_diff(ffcounter ffdelta, struct bintime *bt); 198 void ffclock_abstime(ffcounter *ffcount, struct bintime *bt, 200 void ffclock_difftime(ffcounter ffdelta, struct bintime *bt, 208 void ffclock_bintime(struct bintime *bt); 212 void ffclock_getbintime(struct bintime *bt); 216 void ffclock_binuptime(struct bintime *bt); 220 void ffclock_getbinuptime(struct bintime *bt); [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_beacon.c | 46 ar5416SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5416SetBeaconTimers() argument 51 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bt->bt_nexttbtt)); in ar5416SetBeaconTimers() 52 OS_REG_WRITE(ah, AR_NEXT_DBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextdba)); in ar5416SetBeaconTimers() 53 OS_REG_WRITE(ah, AR_NEXT_SWBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextswba)); in ar5416SetBeaconTimers() 54 OS_REG_WRITE(ah, AR_NEXT_NDP, TU_TO_USEC(bt->bt_nextatim)); in ar5416SetBeaconTimers() 56 bperiod = TU_TO_USEC(bt->bt_intval & HAL_BEACON_PERIOD); in ar5416SetBeaconTimers() 57 ahp->ah_beaconInterval = bt->bt_intval & HAL_BEACON_PERIOD; in ar5416SetBeaconTimers() 66 if (bt->bt_intval & AR_BEACON_RESET_TSF) in ar5416SetBeaconTimers() 72 bt->bt_flags != 0 ? bt->bt_flags : in ar5416SetBeaconTimers() 85 HAL_BEACON_TIMERS bt; in ar5416BeaconInit() local [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | bptree.c | 65 bptree_phys_t *bt; in bptree_alloc() local 77 bt = db->db_data; in bptree_alloc() 78 bt->bt_begin = 0; in bptree_alloc() 79 bt->bt_end = 0; in bptree_alloc() 80 bt->bt_bytes = 0; in bptree_alloc() 81 bt->bt_comp = 0; in bptree_alloc() 82 bt->bt_uncomp = 0; in bptree_alloc() 92 bptree_phys_t *bt; in bptree_free() local 95 bt = db->db_data; in bptree_free() 96 ASSERT3U(bt->bt_begin, ==, bt->bt_end); in bptree_free() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5210/ |
| H A D | ar5210_beacon.c | 44 ar5210SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5210SetBeaconTimers() argument 47 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); in ar5210SetBeaconTimers() 48 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); in ar5210SetBeaconTimers() 49 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba); in ar5210SetBeaconTimers() 50 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim); in ar5210SetBeaconTimers() 54 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5210SetBeaconTimers() 64 HAL_BEACON_TIMERS bt; in ar5210BeaconInit() local 66 bt.bt_nexttbtt = next_beacon; in ar5210BeaconInit() 69 bt.bt_nextdba = (next_beacon - in ar5210BeaconInit() 71 bt.bt_nextswba = (next_beacon - in ar5210BeaconInit() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5211/ |
| H A D | ar5211_beacon.c | 47 ar5211SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5211SetBeaconTimers() argument 50 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); in ar5211SetBeaconTimers() 51 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); in ar5211SetBeaconTimers() 52 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba); in ar5211SetBeaconTimers() 53 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim); in ar5211SetBeaconTimers() 57 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5211SetBeaconTimers() 67 HAL_BEACON_TIMERS bt; in ar5211BeaconInit() local 69 bt.bt_nexttbtt = next_beacon; in ar5211BeaconInit() 79 bt.bt_nextdba = 0xffff; in ar5211BeaconInit() 80 bt.bt_nextswba = 0x7ffff; in ar5211BeaconInit() [all …]
|
| /freebsd/lib/libsys/ |
| H A D | __vdso_gettimeofday.c | 60 binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) in binuptime() argument 75 *bt = th->th_offset; in binuptime() 90 bt->sec += x >> 32; in binuptime() 91 bintime_addx(bt, x << 32); in binuptime() 93 bintime_addx(bt, scale * delta); in binuptime() 95 bintime_add(bt, &th->th_boottime); in binuptime() 107 getnanouptime(struct bintime *bt, struct vdso_timekeep *tk) in getnanouptime() argument 119 *bt = th->th_offset; in getnanouptime() 136 struct bintime bt; in __vdso_gettimeofday() local 148 error = binuptime(&bt, tk, true); in __vdso_gettimeofday() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5212/ |
| H A D | ar5212_beacon.c | 45 ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5212SetBeaconTimers() argument 57 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt & 0xffff); in ar5212SetBeaconTimers() 58 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba & 0x7ffff); in ar5212SetBeaconTimers() 59 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba & 0x1ffffff); in ar5212SetBeaconTimers() 61 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim & 0xffff); in ar5212SetBeaconTimers() 65 if (bt->bt_intval & AR_BEACON_RESET_TSF) { in ar5212SetBeaconTimers() 77 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5212SetBeaconTimers() 78 ahp->ah_beaconInterval = (bt->bt_intval & HAL_BEACON_PERIOD); in ar5212SetBeaconTimers() 91 HAL_BEACON_TIMERS bt; in ar5212BeaconInit() local 93 bt.bt_nexttbtt = next_beacon; in ar5212BeaconInit() [all …]
|
| /freebsd/tools/regression/sockets/unix_cmsg/ |
| H A D | uc_check_time.c | 39 struct timespec bt; in uc_check_bintime() local 41 bintime2timespec(mt, &bt); in uc_check_bintime() 42 return (uc_check_timespec_real(&bt)); in uc_check_bintime() 46 uc_check_timeval(const struct timeval *bt) in uc_check_timeval() argument 52 timersub(&ct, bt, &dt); in uc_check_timeval() 60 uc_check_timespec_real(const struct timespec *bt) in uc_check_timespec_real() argument 66 timespecsub(&ct, bt, &ct); in uc_check_timespec_real() 74 uc_check_timespec_mono(const struct timespec *bt) in uc_check_timespec_mono() argument 80 timespecsub(&ct, bt, &ct); in uc_check_timespec_mono()
|
| H A D | uc_check_time.h | 31 int uc_check_bintime(const struct bintime *bt); 32 int uc_check_timeval(const struct timeval *bt); 33 int uc_check_timespec_real(const struct timespec *bt); 34 int uc_check_timespec_mono(const struct timespec *bt);
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_barrier.cpp | 210 void __kmp_dist_barrier_wakeup(enum barrier_type bt, kmp_team_t *team, in __kmp_dist_barrier_wakeup() argument 214 if (bt == bs_forkjoin_barrier && TCR_4(__kmp_global.g.g_done)) in __kmp_dist_barrier_wakeup() 227 enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid, in __kmp_dist_barrier_gather() argument 247 gtid, team->t.t_id, tid, bt)); in __kmp_dist_barrier_gather() 372 gtid, team->t.t_id, tid, bt)); in __kmp_dist_barrier_gather() 376 enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid, in __kmp_dist_barrier_release() argument 387 gtid, tid, bt)); in __kmp_dist_barrier_release() 389 thr_bar = &this_thr->th.th_bar[bt].bb; in __kmp_dist_barrier_release() 414 if (bt == bs_forkjoin_barrier && TCR_4(__kmp_global.g.g_done)) in __kmp_dist_barrier_release() 423 if (bt == bs_forkjoin_barrier && TCR_4(__kmp_global.g.g_done)) in __kmp_dist_barrier_release() [all …]
|
| /freebsd/sys/dev/ath/ |
| H A D | if_ath_tdma.c | 137 HAL_BEACON_TIMERS bt; in ath_tdma_settimers() local 139 bt.bt_intval = bintval | HAL_BEACON_ENA; in ath_tdma_settimers() 140 bt.bt_nexttbtt = nexttbtt; in ath_tdma_settimers() 141 bt.bt_nextdba = (nexttbtt<<3) - sc->sc_tdmadbaprep; in ath_tdma_settimers() 142 bt.bt_nextswba = (nexttbtt<<3) - sc->sc_tdmaswbaprep; in ath_tdma_settimers() 143 bt.bt_nextatim = nexttbtt+1; in ath_tdma_settimers() 145 bt.bt_flags = 0; in ath_tdma_settimers() 150 bt.bt_intval, in ath_tdma_settimers() 151 bt.bt_intval, in ath_tdma_settimers() 152 bt.bt_nexttbtt, in ath_tdma_settimers() [all …]
|
| /freebsd/contrib/sendmail/src/ |
| H A D | helpfile | 106 -bt Help for test mode: 107 -bt ? :this help message. 108 -bt .Dmvalue :define macro `m' to `value'. 109 -bt .Ccvalue :add `value' to class `c'. 110 -bt =Sruleset :dump the contents of the indicated ruleset. 111 -bt =M :display the known mailers. 112 -bt -ddebug-spec :equivalent to the command-line -d debug flag. 113 -bt $$m :print the value of macro $$m. 114 -bt $$=c :print the contents of class $$=c. 115 -bt /mx host :returns the MX records for `host'. [all …]
|
| H A D | mime.c | 112 int bt; local 326 bt = MBT_FINAL; 330 bt = mimeboundary(buf, boundaries); 331 if (bt != MBT_NOTSEP) 340 bt = MBT_FINAL; 341 while (bt != MBT_FINAL) 357 bt = mime8to7(mci, hdr, e, boundaries, flags, 359 if (bt == SM_IO_EOF) 374 bt = mimeboundary(buf, boundaries); 375 if (bt != MBT_NOTSEP) [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/net/ |
| H A D | qualcomm-bluetooth.txt | 12 * "qcom,qca6174-bt" 13 * "qcom,qca9377-bt" 14 * "qcom,wcn3990-bt" 15 * "qcom,wcn3991-bt" 16 * "qcom,wcn3998-bt" 17 * "qcom,qca6390-bt" 19 Optional properties for compatible string qcom,qca6174-bt: 25 Optional properties for compatible string qcom,qca9377-bt: 29 Required properties for compatible string qcom,wcn399x-bt: 36 Optional properties for compatible string qcom,wcn399x-bt: [all …]
|
| H A D | broadcom-bluetooth.txt | 14 * "brcm,bcm4329-bt" 15 * "brcm,bcm4330-bt" 16 * "brcm,bcm43438-bt" 18 * "brcm,bcm43540-bt" 36 - brcm,bt-pcm-int-params: configure PCM parameters via a 5-byte array 52 compatible = "brcm,bcm43438-bt"; 54 brcm,bt-pcm-int-params = [01 02 00 01 01];
|
| /freebsd/contrib/unifdef/ |
| H A D | unifdef.c | 890 static Linetype op_strict(long *p, long v, Linetype at, Linetype bt) { in op_strict() argument 891 if(at == LT_IF || bt == LT_IF) return (LT_IF); in op_strict() 894 static Linetype op_lt(long *p, Linetype at, long a, Linetype bt, long b) { in op_lt() argument 895 return op_strict(p, a < b, at, bt); in op_lt() 897 static Linetype op_gt(long *p, Linetype at, long a, Linetype bt, long b) { in op_gt() argument 898 return op_strict(p, a > b, at, bt); in op_gt() 900 static Linetype op_le(long *p, Linetype at, long a, Linetype bt, long b) { in op_le() argument 901 return op_strict(p, a <= b, at, bt); in op_le() 903 static Linetype op_ge(long *p, Linetype at, long a, Linetype bt, long b) { in op_ge() argument 904 return op_strict(p, a >= b, at, bt); in op_ge() [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | x86cpuid.pl | 33 &bt ("ecx",21); 82 &bt ("edx",28); 116 &bt ("edx",28); # test hyper-threading bit 164 &bt ("ebp",27); # check OSXSAVE bit 194 &bt (&DWP(0,"ecx"),4); 206 &bt (&DWP(0,"ecx"),4); 215 &bt ("eax",9); 246 &bt ("eax",9); 276 &bt (&DWP(0,"ecx"),1); 385 &bt (&DWP(0,"edx"),4); [all …]
|
| /freebsd/contrib/jemalloc/src/ |
| H A D | prof.c | 193 prof_bt_t bt; 194 bt_init(&bt, tdata->vec); 195 prof_backtrace(tsd, &bt); 196 return prof_lookup(tsd, &bt); 115 prof_bt_t bt; global() member 365 prof_log_bt_index(tsd_t * tsd,prof_bt_t * bt) prof_log_bt_index() argument 488 prof_bt_t bt; prof_try_log() local 540 bt_init(prof_bt_t * bt,void ** vec) bt_init() argument 588 prof_backtrace(prof_bt_t * bt) prof_backtrace() argument 630 prof_backtrace(prof_bt_t * bt) prof_backtrace() argument 639 prof_backtrace(prof_bt_t * bt) prof_backtrace() argument 802 prof_backtrace(prof_bt_t * bt) prof_backtrace() argument 821 prof_gctx_create(tsdn_t * tsdn,prof_bt_t * bt) prof_gctx_create() argument 988 prof_lookup_global(tsd_t * tsd,prof_bt_t * bt,prof_tdata_t * tdata,void ** p_btkey,prof_gctx_t ** p_gctx,bool * p_new_gctx) prof_lookup_global() argument 1053 prof_lookup(tsd_t * tsd,prof_bt_t * bt) prof_lookup() argument 1619 prof_dump_gctx(tsdn_t * tsdn,bool propagate_err,prof_gctx_t * gctx,const prof_bt_t * bt,prof_gctx_tree_t * gctxs) prof_dump_gctx() argument 2141 prof_bt_t *bt = (prof_bt_t *)key; prof_bt_hash() local
|
| /freebsd/usr.sbin/moused/moused/ |
| H A D | moused.c | 514 static bool r_installmap(char *arg, struct btstate *bt); 515 static char * r_installzmap(char **argv, int argc, int* idx, struct btstate *bt); 517 struct btstate *bt); 518 static void r_timestamp(mousestatus_t *act, struct btstate *bt, 522 static void r_click(mousestatus_t *act, struct btstate *bt); 1582 r_init_buttons(struct quirks *q, struct btstate *bt, struct e3bstate *e3b) in r_init_buttons() argument 1587 *bt = (struct btstate) { in r_init_buttons() 1592 memcpy(bt->p2l, default_p2l, sizeof(bt->p2l)); in r_init_buttons() 1596 bt->p2l[i] = opt_btstate.p2l[i]; in r_init_buttons() 1599 bt->mstate[i] = bt->bstate + j; in r_init_buttons() [all …]
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_vdso_gtod.inc | 174 freebsd_binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) 189 *bt = th->th_offset; 204 bt->sec += x >> 32; 205 bintime_addx(bt, x << 32); 207 bintime_addx(bt, scale * delta); 209 bintime_add(bt, &th->th_boottime); 221 freebsd_getnanouptime(struct bintime *bt, struct vdso_timekeep *tk) 233 *bt = th->th_offset; 248 struct bintime bt; 258 error = freebsd_binuptime(&bt, tk, true); [all …]
|