| /freebsd-12-stable/sys/dev/buslogic/ |
| D | bt.c | 74 static __inline void btnextinbox(struct bt_softc *bt); 75 static __inline void btnextoutbox(struct bt_softc *bt); 78 btnextinbox(struct bt_softc *bt) in btnextinbox() argument 80 if (bt->cur_inbox == bt->last_inbox) in btnextinbox() 81 bt->cur_inbox = bt->in_boxes; in btnextinbox() 83 bt->cur_inbox++; in btnextinbox() 87 btnextoutbox(struct bt_softc *bt) in btnextoutbox() argument 89 if (bt->cur_outbox == bt->last_outbox) in btnextoutbox() 90 bt->cur_outbox = bt->out_boxes; in btnextoutbox() 92 bt->cur_outbox++; in btnextoutbox() [all …]
|
| D | bt_isa.c | 105 struct bt_softc *bt = device_get_softc(dev); in bt_isa_release_resources() local 107 if (bt->port) in bt_isa_release_resources() 108 bus_release_resource(dev, SYS_RES_IOPORT, 0, bt->port); in bt_isa_release_resources() 109 if (bt->irq) in bt_isa_release_resources() 110 bus_release_resource(dev, SYS_RES_IRQ, 0, bt->irq); in bt_isa_release_resources() 111 if (bt->drq) in bt_isa_release_resources() 112 bus_release_resource(dev, SYS_RES_DRQ, 0, bt->drq); in bt_isa_release_resources() 193 struct bt_softc *bt = device_get_softc(dev); in bt_isa_attach() local 214 if (bt->model[0] == '4') { in bt_isa_attach() 227 if (bt->bios_addr != 0 in bt_isa_attach() [all …]
|
| D | bt_pci.c | 95 struct bt_softc *bt = device_get_softc(dev); in bt_pci_release_resources() local 97 if (bt->port) in bt_pci_release_resources() 100 BT_PCI_IOADDR, bt->port); in bt_pci_release_resources() 101 if (bt->irq) in bt_pci_release_resources() 102 bus_release_resource(dev, SYS_RES_IRQ, 0, bt->irq); in bt_pci_release_resources() 113 struct bt_softc *bt = device_get_softc(dev); in bt_pci_probe() local 127 error = bt_cmd(bt, BOP_INQUIRE_PCI_INFO, in bt_pci_probe() 134 if (rman_get_start(bt->port) != in bt_pci_probe() 139 bt_cmd(bt, BOP_MODIFY_IO_ADDR, in bt_pci_probe() 160 struct bt_softc *bt = device_get_softc(dev); in bt_pci_attach() local [all …]
|
| /freebsd-12-stable/sys/kern/ |
| D | subr_vmem.c | 181 #define BT_ISSPAN_P(bt) ((bt)->bt_type <= BT_TYPE_SPAN_STATIC) argument 183 #define BT_END(bt) ((bt)->bt_start + (bt)->bt_size - 1) argument 263 bt_t *bt; in _bt_fill() local 282 bt = uma_zalloc(vmem_bt_zone, in _bt_fill() 284 if (bt == NULL) { in _bt_fill() 286 bt = uma_zalloc(vmem_bt_zone, flags); in _bt_fill() 288 if (bt == NULL) in _bt_fill() 291 LIST_INSERT_HEAD(&vm->vm_freetags, bt, bt_freelist); in _bt_fill() 315 bt_t *bt; in bt_alloc() local 318 bt = LIST_FIRST(&vm->vm_freetags); in bt_alloc() [all …]
|
| D | kern_ffclock.c | 71 ffclock_abstime(ffcounter *ffcount, struct bintime *bt, in ffclock_abstime() argument 81 ffclock_last_tick(&ffc, bt, flags); in ffclock_abstime() 84 ffclock_convert_abs(ffc, bt, flags); in ffclock_abstime() 99 bt->sec -= cest.leapsec_total; in ffclock_abstime() 101 bt->sec -= cest.leapsec; in ffclock_abstime() 106 bintime_sub(bt, &ffclock_boottime); in ffclock_abstime() 132 ffclock_difftime(ffcounter ffdelta, struct bintime *bt, in ffclock_difftime() argument 138 ffclock_convert_diff(ffdelta, bt); in ffclock_difftime() 247 ffclock_bintime(struct bintime *bt) in ffclock_bintime() argument 250 ffclock_abstime(NULL, bt, NULL, FFCLOCK_LERP | FFCLOCK_LEAPSEC); in ffclock_bintime() [all …]
|
| D | kern_tc.c | 202 bintime_add_tc_delta(struct bintime *bt, uint64_t scale, in bintime_add_tc_delta() argument 210 bt->sec += x >> 32; in bintime_add_tc_delta() 211 bintime_addx(bt, x << 32); in bintime_add_tc_delta() 212 bintime_addx(bt, (scale & 0xffffffff) * delta); in bintime_add_tc_delta() 214 bintime_addx(bt, scale * delta); in bintime_add_tc_delta() 225 bintime_off(struct bintime *bt, u_int off) in bintime_off() argument 236 *bt = *btp; in bintime_off() 243 bintime_add_tc_delta(bt, scale, large_delta, delta); in bintime_off() 282 fbclock_binuptime(struct bintime *bt) in fbclock_binuptime() argument 285 GETTHBINTIME(bt, th_offset); in fbclock_binuptime() [all …]
|
| D | kern_lockstat.c | 80 struct bintime bt; in lockstat_nsecs() local 88 binuptime(&bt); in lockstat_nsecs() 89 ns = bt.sec * (uint64_t)1000000000; in lockstat_nsecs() 90 ns += ((uint64_t)1000000000 * (uint32_t)(bt.frac >> 32)) >> 32; in lockstat_nsecs()
|
| /freebsd-12-stable/sys/sys/ |
| 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-12-stable/sys/i386/ibcs2/ |
| D | ibcs2_ioctl.c | 121 stios2btios(st, bt) in stios2btios() argument 123 struct termios *bt; 141 bt->c_iflag = r; 147 bt->c_oflag = r; 162 bt->c_cflag = r; 164 bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f]; 175 bt->c_lflag = r; 177 bt->c_cc[VINTR] = 179 bt->c_cc[VQUIT] = 181 bt->c_cc[VERASE] = [all …]
|
| /freebsd-12-stable/sys/dev/ath/ath_hal/ar5416/ |
| D | ar5416_beacon.c | 48 ar5416SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5416SetBeaconTimers() argument 53 OS_REG_WRITE(ah, AR_NEXT_TBTT, TU_TO_USEC(bt->bt_nexttbtt)); in ar5416SetBeaconTimers() 54 OS_REG_WRITE(ah, AR_NEXT_DBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextdba)); in ar5416SetBeaconTimers() 55 OS_REG_WRITE(ah, AR_NEXT_SWBA, ONE_EIGHTH_TU_TO_USEC(bt->bt_nextswba)); in ar5416SetBeaconTimers() 56 OS_REG_WRITE(ah, AR_NEXT_NDP, TU_TO_USEC(bt->bt_nextatim)); in ar5416SetBeaconTimers() 58 bperiod = TU_TO_USEC(bt->bt_intval & HAL_BEACON_PERIOD); in ar5416SetBeaconTimers() 59 ahp->ah_beaconInterval = bt->bt_intval & HAL_BEACON_PERIOD; in ar5416SetBeaconTimers() 68 if (bt->bt_intval & AR_BEACON_RESET_TSF) in ar5416SetBeaconTimers() 74 bt->bt_flags != 0 ? bt->bt_flags : in ar5416SetBeaconTimers() 87 HAL_BEACON_TIMERS bt; in ar5416BeaconInit() local [all …]
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | bptree.c | 66 bptree_phys_t *bt; in bptree_alloc() local 78 bt = db->db_data; in bptree_alloc() 79 bt->bt_begin = 0; in bptree_alloc() 80 bt->bt_end = 0; in bptree_alloc() 81 bt->bt_bytes = 0; in bptree_alloc() 82 bt->bt_comp = 0; in bptree_alloc() 83 bt->bt_uncomp = 0; in bptree_alloc() 93 bptree_phys_t *bt; in bptree_free() local 96 bt = db->db_data; in bptree_free() 97 ASSERT3U(bt->bt_begin, ==, bt->bt_end); in bptree_free() [all …]
|
| /freebsd-12-stable/sys/dev/ath/ath_hal/ar5210/ |
| D | ar5210_beacon.c | 46 ar5210SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5210SetBeaconTimers() argument 49 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); in ar5210SetBeaconTimers() 50 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); in ar5210SetBeaconTimers() 51 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba); in ar5210SetBeaconTimers() 52 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim); in ar5210SetBeaconTimers() 56 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5210SetBeaconTimers() 66 HAL_BEACON_TIMERS bt; in ar5210BeaconInit() local 68 bt.bt_nexttbtt = next_beacon; in ar5210BeaconInit() 71 bt.bt_nextdba = (next_beacon - in ar5210BeaconInit() 73 bt.bt_nextswba = (next_beacon - in ar5210BeaconInit() [all …]
|
| /freebsd-12-stable/sys/dev/ath/ath_hal/ar5211/ |
| D | ar5211_beacon.c | 49 ar5211SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5211SetBeaconTimers() argument 52 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt); in ar5211SetBeaconTimers() 53 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba); in ar5211SetBeaconTimers() 54 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba); in ar5211SetBeaconTimers() 55 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim); in ar5211SetBeaconTimers() 59 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5211SetBeaconTimers() 69 HAL_BEACON_TIMERS bt; in ar5211BeaconInit() local 71 bt.bt_nexttbtt = next_beacon; in ar5211BeaconInit() 81 bt.bt_nextdba = 0xffff; in ar5211BeaconInit() 82 bt.bt_nextswba = 0x7ffff; in ar5211BeaconInit() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/ |
| D | kmp_barrier.cpp | 45 enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid, in __kmp_linear_barrier_gather_template() argument 49 kmp_bstate_t *thr_bar = &this_thr->th.th_bar[bt].bb; in __kmp_linear_barrier_gather_template() 55 gtid, team->t.t_id, tid, bt)); in __kmp_linear_barrier_gather_template() 81 kmp_balign_team_t *team_bar = &team->t.t_bar[bt]; in __kmp_linear_barrier_gather_template() 92 KMP_CACHE_PREFETCH(&other_threads[i + 1]->th.th_bar[bt].bb.b_arrived); in __kmp_linear_barrier_gather_template() 98 &other_threads[i]->th.th_bar[bt].bb.b_arrived, new_state)); in __kmp_linear_barrier_gather_template() 103 &other_threads[i]->th.th_bar[bt].bb.b_arrived, new_state); in __kmp_linear_barrier_gather_template() 107 kmp_flag_64<> flag(&other_threads[i]->th.th_bar[bt].bb.b_arrived, in __kmp_linear_barrier_gather_template() 141 gtid, team->t.t_id, tid, bt)); in __kmp_linear_barrier_gather_template() 147 enum barrier_type bt, kmp_info_t *this_thr, int gtid, int tid, in __kmp_linear_barrier_release_template() argument [all …]
|
| /freebsd-12-stable/sys/dev/ath/ath_hal/ar5212/ |
| D | ar5212_beacon.c | 47 ar5212SetBeaconTimers(struct ath_hal *ah, const HAL_BEACON_TIMERS *bt) in ar5212SetBeaconTimers() argument 59 OS_REG_WRITE(ah, AR_TIMER0, bt->bt_nexttbtt & 0xffff); in ar5212SetBeaconTimers() 60 OS_REG_WRITE(ah, AR_TIMER1, bt->bt_nextdba & 0x7ffff); in ar5212SetBeaconTimers() 61 OS_REG_WRITE(ah, AR_TIMER2, bt->bt_nextswba & 0x1ffffff); in ar5212SetBeaconTimers() 63 OS_REG_WRITE(ah, AR_TIMER3, bt->bt_nextatim & 0xffff); in ar5212SetBeaconTimers() 67 if (bt->bt_intval & AR_BEACON_RESET_TSF) { in ar5212SetBeaconTimers() 79 OS_REG_WRITE(ah, AR_BEACON, bt->bt_intval); in ar5212SetBeaconTimers() 80 ahp->ah_beaconInterval = (bt->bt_intval & HAL_BEACON_PERIOD); in ar5212SetBeaconTimers() 93 HAL_BEACON_TIMERS bt; in ar5212BeaconInit() local 95 bt.bt_nexttbtt = next_beacon; in ar5212BeaconInit() [all …]
|
| /freebsd-12-stable/sys/contrib/ngatm/netnatm/msg/ |
| D | traffic.c | 78 u_int ft, bt, be, ftag, btag; in uni_classify_traffic() local 193 bt = traffic->h.present & bmask; in uni_classify_traffic() 233 if (bt != UNI_TRAFFIC_BPCR1_P) in uni_classify_traffic() 252 if (bt == UNI_TRAFFIC_BPCR0_P) { in uni_classify_traffic() 255 } else if (bt == bcbr3) { in uni_classify_traffic() 270 if (bt != bvbr16) in uni_classify_traffic() 288 if (bt == bvbr23) { in uni_classify_traffic() 293 } else if (bt == bvbr16) { in uni_classify_traffic() 317 if (bt == bvbr23) { in uni_classify_traffic() 322 } else if (bt == bvbr4) { in uni_classify_traffic() [all …]
|
| /freebsd-12-stable/tools/regression/sockets/unix_cmsg/ |
| D | uc_check_time.c | 41 struct timespec bt; in uc_check_bintime() local 43 bintime2timespec(mt, &bt); in uc_check_bintime() 44 return (uc_check_timespec_real(&bt)); in uc_check_bintime() 48 uc_check_timeval(const struct timeval *bt) in uc_check_timeval() argument 54 timersub(&ct, bt, &dt); in uc_check_timeval() 62 uc_check_timespec_real(const struct timespec *bt) in uc_check_timespec_real() argument 68 timespecsub(&ct, bt, &ct); in uc_check_timespec_real() 76 uc_check_timespec_mono(const struct timespec *bt) in uc_check_timespec_mono() argument 82 timespecsub(&ct, bt, &ct); in uc_check_timespec_mono()
|
| D | uc_check_time.h | 33 int uc_check_bintime(const struct bintime *bt); 34 int uc_check_timeval(const struct timeval *bt); 35 int uc_check_timespec_real(const struct timespec *bt); 36 int uc_check_timespec_mono(const struct timespec *bt);
|
| /freebsd-12-stable/sys/dev/ath/ |
| D | if_ath_tdma.c | 139 HAL_BEACON_TIMERS bt; in ath_tdma_settimers() local 141 bt.bt_intval = bintval | HAL_BEACON_ENA; in ath_tdma_settimers() 142 bt.bt_nexttbtt = nexttbtt; in ath_tdma_settimers() 143 bt.bt_nextdba = (nexttbtt<<3) - sc->sc_tdmadbaprep; in ath_tdma_settimers() 144 bt.bt_nextswba = (nexttbtt<<3) - sc->sc_tdmaswbaprep; in ath_tdma_settimers() 145 bt.bt_nextatim = nexttbtt+1; in ath_tdma_settimers() 147 bt.bt_flags = 0; in ath_tdma_settimers() 152 bt.bt_intval, in ath_tdma_settimers() 153 bt.bt_intval, in ath_tdma_settimers() 154 bt.bt_nexttbtt, in ath_tdma_settimers() [all …]
|
| /freebsd-12-stable/lib/libc/sys/ |
| D | __vdso_gettimeofday.c | 62 binuptime(struct bintime *bt, struct vdso_timekeep *tk, int abs) in binuptime() argument 77 *bt = th->th_offset; in binuptime() 92 bt->sec += x >> 32; in binuptime() 93 bintime_addx(bt, x << 32); in binuptime() 95 bintime_addx(bt, scale * delta); in binuptime() 97 bintime_add(bt, &th->th_boottime); in binuptime() 114 struct bintime bt; in __vdso_gettimeofday() local 126 error = binuptime(&bt, tk, 1); in __vdso_gettimeofday() 129 bintime2timeval(&bt, tv); in __vdso_gettimeofday() 137 struct bintime bt; in __vdso_clock_gettime() local [all …]
|
| /freebsd-12-stable/contrib/sendmail/src/ |
| D | helpfile | 108 -bt Help for test mode: 109 -bt ? :this help message. 110 -bt .Dmvalue :define macro `m' to `value'. 111 -bt .Ccvalue :add `value' to class `c'. 112 -bt =Sruleset :dump the contents of the indicated ruleset. 113 -bt =M :display the known mailers. 114 -bt -ddebug-spec :equivalent to the command-line -d debug flag. 115 -bt $$m :print the value of macro $$m. 116 -bt $$=c :print the contents of class $$=c. 117 -bt /mx host :returns the MX records for `host'. [all …]
|
| 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-12-stable/usr.bin/unifdef/ |
| D | unifdef.c | 876 static Linetype op_strict(long *p, long v, Linetype at, Linetype bt) { in op_strict() argument 877 if(at == LT_IF || bt == LT_IF) return (LT_IF); in op_strict() 880 static Linetype op_lt(long *p, Linetype at, long a, Linetype bt, long b) { in op_lt() argument 881 return op_strict(p, a < b, at, bt); in op_lt() 883 static Linetype op_gt(long *p, Linetype at, long a, Linetype bt, long b) { in op_gt() argument 884 return op_strict(p, a > b, at, bt); in op_gt() 886 static Linetype op_le(long *p, Linetype at, long a, Linetype bt, long b) { in op_le() argument 887 return op_strict(p, a <= b, at, bt); in op_le() 889 static Linetype op_ge(long *p, Linetype at, long a, Linetype bt, long b) { in op_ge() argument 890 return op_strict(p, a >= b, at, bt); in op_ge() [all …]
|
| /freebsd-12-stable/crypto/openssl/crypto/ |
| D | x86cpuid.pl | 35 &bt ("ecx",21); 84 &bt ("edx",28); 118 &bt ("edx",28); # test hyper-threading bit 145 &bt ("ebp",27); # check OSXSAVE bit 172 &bt (&DWP(0,"ecx"),4); 184 &bt (&DWP(0,"ecx"),4); 193 &bt ("eax",9); 224 &bt ("eax",9); 254 &bt (&DWP(0,"ecx"),1); 363 &bt (&DWP(0,"edx"),4); [all …]
|
| /freebsd-12-stable/contrib/jemalloc/src/ |
| D | prof.c | 176 unsigned a_len = a->bt.len; in rb_gen() 177 unsigned b_len = b->bt.len; in rb_gen() 179 int ret = memcmp(a->bt.vec, b->bt.vec, comp_len * sizeof(void *)); in rb_gen() 272 bt_init(prof_bt_t *bt, void **vec) { in bt_init() argument 275 bt->vec = vec; in bt_init() 276 bt->len = 0; in bt_init() 320 prof_backtrace(prof_bt_t *bt) { in prof_backtrace() argument 324 assert(bt->len == 0); in prof_backtrace() 325 assert(bt->vec != NULL); in prof_backtrace() 327 nframes = unw_backtrace(bt->vec, PROF_BT_MAX); in prof_backtrace() [all …]
|