Home
last modified time | relevance | path

Searched refs:tick (Results 1 – 25 of 162) sorted by relevance

1234567

/netbsd/src/crypto/external/bsd/openssl/dist/crypto/
Dppccpuid.pl210 my ($tick,$lasttick)=("r6","r7");
223 lwarx $tick,0,$out # load and lock
224 add $tick,$tick,$diff
225 stwcx. $tick,0,$out
226 stwx $tick,0,$out
228 Loop: mftb $tick
229 sub $diff,$tick,$lasttick
230 mr $lasttick,$tick
232 lwarx $tick,0,$out # load and lock
233 add $tick,$tick,$diff
[all …]
Dalphacpuid.pl167 my ($tick,$lasttick)=("\$19","\$20");
183 ldl_l $tick,0($out)
184 addl $diff,$tick,$tick
185 mov $tick,$diff
186 stl_c $tick,0($out)
189 .Loop: rpcc $tick
190 subq $tick,$lasttick,$diff
191 mov $tick,$lasttick
194 ldl_l $tick,0($out)
195 addl $diff,$tick,$tick
[all …]
Dpariscid.pl176 my ($tick,$lasttick)=("%r23","%r22");
187 mfctl %cr16,$tick
188 copy $tick,$lasttick
192 ldw 0($out),$tick
193 add $diff,$tick,$tick
194 stw $tick,0($out)
196 mfctl %cr16,$tick
197 sub $tick,$lasttick,$diff
198 copy $tick,$lasttick
201 ldw 0($out),$tick
[all …]
Dsparccpuid.S239 .word 0x91410000 !rd %tick,%o0
277 ! a lot of %tick-s, couple of thousand on Linux...
283 .word 0x91410000 !rd %tick,%o0
286 .word 0x93410000 !rd %tick,%o1
289 .word 0x95410000 !rd %tick,%o2
292 .word 0x97410000 !rd %tick,%o3
295 .word 0x99410000 !rd %tick,%o4
491 .word 0x99410000 !rd %tick,%o4 ! tick
492 mov %o4,%o5 ! lasttick = tick
504 .Loop: .word 0x99410000 !rd %tick,%o4
[all …]
/netbsd/src/crypto/dist/ipsec-tools/src/racoon/
Dschedule.c133 sched_schedule(struct sched *sc, time_t tick, void (*func)(struct sched *)) in sched_schedule() argument
143 sc->tick.tv_sec = tick; in sched_schedule()
144 sc->tick.tv_usec = 0; in sched_schedule()
146 timeradd(&now, &sc->tick, &sc->xtime); in sched_schedule()
204 timersub(&p->xtime, &p->tick, &created); in sched_dump()
208 dst->tick = p->tick.tv_sec; in sched_dump()
235 test(int *tick) in test() argument
237 printf("execute %d\n", *tick); in test()
238 racoon_free(tick); in test()
244 int *tick; in getstdin() local
[all …]
Dschedule.h73 struct timeval tick; /* relative timeout */ member
84 time_t tick; member
/netbsd/src/external/bsd/ntp/dist/scripts/calc_tickadj/
Dcalc_tickadj.in18 my $tick = $opts->{'tick'};
20 if (!$tick) {
22 if (defined $fl && $fl =~ /(?:KERNEL|PRESET)?\s*tick\s+=\s+(\d+)/) {
23 $tick = $1;
31 my $cvt = (2 ** 20) / $tick;
43 $tick--;
48 $tick++;
52 printf "%d usec; %d nsec\n", $tick, ($tick + ($drift/$cvt)) * 1000;
Dinvoke-calc_tickadj.texi4 @cindex Calculates "optimal" value for tick given ntp drift file.
15 tick value. Generally, ntpd can do better job if the drift value is the
27 means the following. If tick on that box is 10,000, by making the value 9999
32 If 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
35 @code{calc_tickadj} tries to determine the the tick value by using
37 current tick manually on command line.
46 * calc_tickadj tick:: tick option (-t)
66 calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.8p15
70 -t, --tick=num Tick value of this host
86 @node calc_tickadj tick
[all …]
Dcalc_tickadj-opts.def7 prog-title = 'Calculates "optimal" value for tick given ntp drift file.';
24 name = tick;
28 doc = 'The current tick which to adjustment will be calculated';
36 tick value. Generally, ntpd can do better job if the drift value is the
48 means the following. If tick on that box is 10,000, by making the value 9999
53 If 'tick' on that box is 10,000,000 then by setting it to 9999779 the drift
56 @code{calc_tickadj} tries to determine the the tick value by using
58 current tick manually on command line.
Dcalc_tickadj-opts33 'tick' => '',
38 'drift-file|d=s', 'tick|t=i',
42 calc_tickadj - Calculates "optimal" value for tick given ntp drift file. - Ver. 4.2.8p15
46 -t, --tick=num Tick value of this host
/netbsd/src/external/bsd/ntp/dist/util/
Dtickadj.c125 if ( (txc.tick = atoi(argv[1])) < 1 ) in main()
163 printf("tick = %ld\n", txc.tick); in main()
255 int tick, ktick; /* HMS: Why isn't this u_long? */ in main() local
370 readvar(fd, tick_offset, &tick); in main()
373 (void) printf("KERNEL %s = %d nsec\n", K_TICK_NAME, tick); in main()
377 tick /= 1000; in main()
382 tick = 0; in main()
442 ktick = tick; in main()
444 tick = PRESET_TICK; in main()
470 (void) printf("PRESET tick = %d usec\n", tick); in main()
[all …]
Dkern.c42 int tick; /* timer interrupt period (us) */ variable
77 tick = 1000000 / HZ; in main()
83 printf("tick %d us, fixtick %d us\n", tick, fixtick); in main()
159 time_update = tick; /* computed by adjtime() */ in hardclock()
/netbsd/src/sys/kern/
Dsubr_time_arith.c88 extern int tick;
144 ticks = (((sec * 1000000) + (unsigned long)usec + (tick - 1)) in tvtohz()
145 / tick) + 1; in tvtohz()
148 (((unsigned long)usec + (tick - 1)) / tick) + 1; in tvtohz()
174 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < tick) in itimerfix()
175 tv->tv_usec = tick; in itimerfix()
187 if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < tick * 1000) in itimespecfix()
188 ts->tv_nsec = tick * 1000; in itimespecfix()
/netbsd/src/usr.sbin/btpand/
Dchannel.c126 chan->tick = 0; in channel_close()
285 chan->tick = 0; in channel_timeout()
287 chan->tick = (channel_tick + to) % 60; in channel_timeout()
300 int tick; in channel_watchdog() local
302 tick = (channel_tick % 60) + 1; in channel_watchdog()
309 if (chan->tick == tick) in channel_watchdog()
311 else if (chan->tick != 0) in channel_watchdog()
312 channel_tick = tick; in channel_watchdog()
/netbsd/src/external/bsd/ntp/dist/sntp/libevent/
Dbufferevent_ratelim.c120 unsigned tick; in bufferevent_update_buckets() local
122 tick = ev_token_bucket_get_tick_(&now, bev->rate_limiting->cfg); in bufferevent_update_buckets()
123 if (tick != bev->rate_limiting->limit.last_updated) in bufferevent_update_buckets()
125 bev->rate_limiting->cfg, tick); in bufferevent_update_buckets()
398 unsigned tick; in bev_refill_callback_() local
410 tick = ev_token_bucket_get_tick_(&now, in bev_refill_callback_()
414 tick); in bev_refill_callback_()
534 unsigned tick; in bev_group_refill_callback_() local
541 tick = ev_token_bucket_get_tick_(&now, &g->rate_limit_cfg); in bev_group_refill_callback_()
542 ev_token_bucket_update_(&g->rate_limit, &g->rate_limit_cfg, tick); in bev_group_refill_callback_()
[all …]
/netbsd/src/external/bsd/libevent/dist/
Dbufferevent_ratelim.c120 unsigned tick; in bufferevent_update_buckets() local
122 tick = ev_token_bucket_get_tick_(&now, bev->rate_limiting->cfg); in bufferevent_update_buckets()
123 if (tick != bev->rate_limiting->limit.last_updated) in bufferevent_update_buckets()
125 bev->rate_limiting->cfg, tick); in bufferevent_update_buckets()
398 unsigned tick; in bev_refill_callback_() local
410 tick = ev_token_bucket_get_tick_(&now, in bev_refill_callback_()
414 tick); in bev_refill_callback_()
534 unsigned tick; in bev_group_refill_callback_() local
541 tick = ev_token_bucket_get_tick_(&now, &g->rate_limit_cfg); in bev_group_refill_callback_()
542 ev_token_bucket_update_(&g->rate_limit, &g->rate_limit_cfg, tick); in bev_group_refill_callback_()
[all …]
/netbsd/src/sys/arch/luna68k/stand/boot/
Dawaitkey.c65 otick = tick; in awaitkey()
71 if (tick - otick >= hz) { in awaitkey()
72 otick = tick; in awaitkey()
/netbsd/src/external/bsd/ntp/dist/html/hints/
Dsgi1 adjtime, tick and tickadj:
5 in nominal mode (ftimer off), so the value for tick is 10000 usec.
29 have used a value of 150usec/tick for the tickadj value.
35 the clock tick at 1kHz rather than 100Hz. With the fast clock off, I
42 seem to compromise the above choices for tick and tickadj.
/netbsd/src/sys/compat/common/
Dkern_uipc_socket_50.c137 otv.tv_usec = (optval % hz) * tick; in uipc_socket_50_getopt1()
176 if (tv.tv_sec > (INT_MAX - tv.tv_usec / tick) / hz) { in uipc_socket_50_setopt1()
181 optval = tv.tv_sec * hz + tv.tv_usec / tick; in uipc_socket_50_setopt1()
/netbsd/src/sbin/fsck_v7fs/
Dmain.c201 if (Progress.tick) { in progress()
213 if (!Progress.tick) in progress()
215 if (++Progress.cnt > Progress.tick) { in progress()
/netbsd/src/sys/arch/mips/sibyte/dev/
Dsbtimer.c156 tick = 1000000 / hz; in sbtimer_clock_init()
163 WRITE_REG(sc->sc_addr_icnt, (tick/100) - 1); /* XXX */ in sbtimer_clock_init()
165 WRITE_REG(sc->sc_addr_icnt, tick - 1); /* XXX */ in sbtimer_clock_init()
/netbsd/src/sys/arch/mvme68k/mvme68k/
Dclock.c111 tick = 1000000 / hz; in cpu_initclocks()
129 (*clock_args->ca_initfunc)(clock_args->ca_arg, tick, statint); in cpu_initclocks()
/netbsd/src/common/lib/libx86emu/
Dx86emu_i8254.c63 uint64_t tick; in x86emu_i8254_gettick() local
67 tick = (curtime.tv_sec - sc->base_time.tv_sec) * I8254_FREQ; in x86emu_i8254_gettick()
68 tick += (uint64_t)(curtime.tv_nsec - sc->base_time.tv_nsec) * I8254_FREQ / 1000000000; in x86emu_i8254_gettick()
70 return tick; in x86emu_i8254_gettick()
/netbsd/src/sys/arch/vax/vax/
Dclock.c75 return counter + getticks() * tick; in vax_diag_get_counter()
88 counter = mfpr(PR_ICR) + tick; in vax_mfpr_get_counter()
108 return counter + cur_hardclock * tick; in vax_mfpr_get_counter()
/netbsd/src/crypto/external/bsd/openssl/dist/ssl/
Dssl_asn1.c174 if (in->ext.tick) { in i2d_SSL_SESSION()
176 in->ext.tick, in->ext.ticklen); in i2d_SSL_SESSION()
338 OPENSSL_free(ret->ext.tick); in d2i_SSL_SESSION()
340 ret->ext.tick = as->tlsext_tick->data; in d2i_SSL_SESSION()
344 ret->ext.tick = NULL; in d2i_SSL_SESSION()

1234567