| /freebsd-13.1/contrib/ntp/lib/isc/ |
| H A D | timer.c | 246 else if (isc_time_compare(&timer->idle, &timer->expires) < 0) in schedule() 377 timer, in destroy() 390 isc_mem_put(manager->mctx, timer, sizeof(*timer)); in destroy() 440 timer = isc_mem_get(manager->mctx, sizeof(*timer)); in isc__timer_create() 450 isc_mem_put(manager->mctx, timer, sizeof(*timer)); in isc__timer_create() 477 isc_mem_put(manager->mctx, timer, sizeof(*timer)); in isc__timer_create() 506 isc_mem_put(manager->mctx, timer, sizeof(*timer)); in isc__timer_create() 563 timer, in isc__timer_reset() 629 result = isc_time_add(&now, &timer->interval, &timer->idle); in isc__timer_touch() 742 timer); in dispatch() [all …]
|
| H A D | timer_api.c | 111 isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) { in isc_timer_attach() argument 112 REQUIRE(ISCAPI_TIMER_VALID(timer)); in isc_timer_attach() 115 timer->methods->attach(timer, timerp); in isc_timer_attach() 117 ENSURE(*timerp == timer); in isc_timer_attach() 130 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, in isc_timer_reset() argument 134 REQUIRE(ISCAPI_TIMER_VALID(timer)); in isc_timer_reset() 136 return (timer->methods->reset(timer, type, expires, interval, purge)); in isc_timer_reset() 140 isc_timer_touch(isc_timer_t *timer) { in isc_timer_touch() argument 141 REQUIRE(ISCAPI_TIMER_VALID(timer)); in isc_timer_touch() 143 return (timer->methods->touch(timer)); in isc_timer_touch()
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/timer/ |
| H A D | rockchip,rk-timer.txt | 1 Rockchip rk timer 5 "rockchip,rv1108-timer", "rockchip,rk3288-timer": for Rockchip RV1108 6 "rockchip,rk3036-timer", "rockchip,rk3288-timer": for Rockchip RK3036 7 "rockchip,rk3066-timer", "rockchip,rk3288-timer": for Rockchip RK3066 8 "rockchip,rk3188-timer", "rockchip,rk3288-timer": for Rockchip RK3188 9 "rockchip,rk3228-timer", "rockchip,rk3288-timer": for Rockchip RK3228 10 "rockchip,rk3229-timer", "rockchip,rk3288-timer": for Rockchip RK3229 12 "rockchip,rk3368-timer", "rockchip,rk3288-timer": for Rockchip RK3368 18 "timer", "pclk" 21 timer: timer@ff810000 { [all …]
|
| H A D | ti,timer.txt | 5 OMAP44xx devices have timer instances that are 100% 8 So for OMAP44xx devices timer instances may use 23 - ti,hwmods: Name of the hwmod associated to the timer, "timer<X>", 28 - ti,timer-alwon: Indicates the timer is in an alway-on power domain. 29 - ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in 31 - ti,timer-pwm: Indicates the timer can generate a PWM output. 32 - ti,timer-secure: Indicates the timer is reserved on a secure OMAP device 37 timer12: timer@48304000 { 38 compatible = "ti,omap3430-timer"; 42 ti,timer-alwon; [all …]
|
| H A D | mediatek,mtk-timer.txt | 8 The proper timer will be selected automatically by driver. 13 * "mediatek,mt2701-timer" for MT2701 compatible timers (GPT) 14 * "mediatek,mt6580-timer" for MT6580 compatible timers (GPT) 15 * "mediatek,mt6589-timer" for MT6589 compatible timers (GPT) 16 * "mediatek,mt7623-timer" for MT7623 compatible timers (GPT) 17 * "mediatek,mt8127-timer" for MT8127 compatible timers (GPT) 18 * "mediatek,mt8135-timer" for MT8135 compatible timers (GPT) 19 * "mediatek,mt8173-timer" for MT8173 compatible timers (GPT) 20 * "mediatek,mt8516-timer" for MT8516 compatible timers (GPT) 33 timer@10008000 { [all …]
|
| H A D | snps,dw-apb-timer.yaml | 4 $id: http://devicetree.org/schemas/timer/snps,dw-apb-timer.yaml# 15 - const: snps,dw-apb-timer 17 - snps,dw-apb-timer-sp 18 - snps,dw-apb-timer-osc 36 - const: timer 66 timer@ffe00000 { 67 compatible = "snps,dw-apb-timer"; 71 clock-names = "timer", "pclk"; 74 timer@ffe00000 { 79 clock-names = "timer"; [all …]
|
| H A D | cirrus,clps711x-timer.txt | 4 - compatible: Shall contain "cirrus,ep7209-timer". 6 - interrupts: The interrupt number of the timer. 7 - clocks : phandle of timer reference clock. 9 Note: Each timer should have an alias correctly numbered in "aliases" node. 17 timer1: timer@80000300 { 18 compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer"; 24 timer2: timer@80000340 { 25 compatible = "cirrus,ep7312-timer", "cirrus,ep7209-timer";
|
| H A D | allwinner,sun4i-a10-timer.yaml | 4 $id: http://devicetree.org/schemas/timer/allwinner,sun4i-a10-timer.yaml# 16 - allwinner,sun4i-a10-timer 17 - allwinner,sun8i-a23-timer 18 - allwinner,sun8i-v3s-timer 19 - allwinner,suniv-f1c100s-timer 36 const: allwinner,sun4i-a10-timer 48 const: allwinner,sun8i-a23-timer 60 const: allwinner,sun8i-v3s-timer 72 const: allwinner,suniv-f1c100s-timer 90 timer@1c20c00 { [all …]
|
| H A D | qcom,msm-timer.txt | 5 - compatible : Should at least contain "qcom,msm-timer". More specific 8 "qcom,kpss-timer" - krait subsystem 9 "qcom,scss-timer" - scorpion subsystem 11 - interrupts : Interrupts for the debug timer, the first general purpose 12 timer, and optionally a second general purpose timer, and 15 - reg : Specifies the base address of the timer registers. 23 - clock-frequency : The frequency of the debug timer and the general purpose 24 timer(s) in Hz in that order. 28 - cpu-offset : per-cpu offset used when the timer is accessed without the 34 timer@200a000 { [all …]
|
| H A D | lsi,zevio-timer.txt | 1 TI-NSPIRE timer 5 - compatible : should be "lsi,zevio-timer". 6 - reg : The physical base address and size of the timer (always first). 11 - interrupts : The interrupt number of the first timer. 13 (always after timer base address) 15 If any of the optional properties are not given, the timer is added as a 20 timer { 21 compatible = "lsi,zevio-timer"; 29 timer { 30 compatible = "lsi,zevio-timer";
|
| H A D | arm,arch_timer.yaml | 7 title: ARM architected timer 26 - arm,cortex-a15-timer 28 - arm,armv7-timer 31 - arm,armv7-timer 34 - arm,armv8-timer 38 - description: secure timer irq 39 - description: non-secure timer irq 40 - description: virtual timer irq 41 - description: hypervisor timer irq 101 timer { [all …]
|
| H A D | faraday,fttmr010.txt | 1 Faraday Technology timer 3 This timer is a generic IP block from Faraday Technology, embedded in the 10 "cortina,gemini-timer", "faraday,fttmr010" 11 "moxa,moxart-timer", "faraday,fttmr010" 12 "aspeed,ast2400-timer" 13 "aspeed,ast2500-timer" 14 "aspeed,ast2600-timer" 17 - interrupts : Should contain the three timer interrupts usually with 23 - clock-names : should be "EXTCLK" and "PCLK" for the external tick timer 26 type is "cortina,gemini-timer" [all …]
|
| H A D | nuvoton,npcm7xx-timer.txt | 1 Nuvoton NPCM7xx timer 3 Nuvoton NPCM7xx have three timer modules, each timer module provides five 24-bit 4 timer counters. 7 - compatible : "nuvoton,npcm750-timer" for Poleg NPCM750. 9 - interrupts : Contain the timer interrupt with flags for 11 - clocks : phandle of timer reference clock (usually a 25 MHz clock). 15 timer@f0008000 { 16 compatible = "nuvoton,npcm750-timer";
|
| /freebsd-13.1/sys/dev/isci/ |
| H A D | isci_timer.c | 43 struct ISCI_TIMER *timer = (struct ISCI_TIMER *)arg; in isci_timer_timeout() local 53 if (timer->is_started == TRUE) in isci_timer_timeout() 54 timer->callback(timer->cookie); in isci_timer_timeout() 85 isci_timer_timeout, timer, 0); in scif_cb_timer_start() 102 isci_log_message(3, "TIMER", "stop %p\n", timer); in scif_cb_timer_stop() 133 struct ISCI_TIMER *timer; in scif_cb_timer_create() local 135 sci_pool_get(isci_controller->timer_pool, timer); in scif_cb_timer_create() 139 timer->callback = timer_callback; in scif_cb_timer_create() 140 timer->cookie = cookie; in scif_cb_timer_create() 141 timer->is_started = FALSE; in scif_cb_timer_create() [all …]
|
| /freebsd-13.1/contrib/kyua/utils/signals/ |
| H A D | timer.cpp | 122 add_to_all_timers(signals::timer* timer) in add_to_all_timers() argument 126 timers.insert(timer); in add_to_all_timers() 136 remove_from_all_timers(signals::timer* timer) in remove_from_all_timers() argument 141 timer->when()); in remove_from_all_timers() 242 global_state(signals::timer* timer, const datetime::timestamp& now) : in global_state() argument 293 program_new(signals::timer* timer, const datetime::timestamp& now) in program_new() argument 311 unprogram(signals::timer* timer) in unprogram() argument 371 utils::signals::detail::invoke_do_fired(timer* timer) in invoke_do_fired() argument 373 timer->do_fired(); in invoke_do_fired() 421 signals::timer::timer(const datetime::delta& delta) in timer() function in signals::timer [all …]
|
| H A D | timer_test.cpp | 104 const signals::timer* timer = *iter; in wait_timers() local 127 signals::timer timer(datetime::delta(1, 0)); in ATF_TEST_CASE_BODY() local 129 while (!timer.fired()) in ATF_TEST_CASE_BODY() 141 signals::timer timer(datetime::delta(0, 500000)); in ATF_TEST_CASE_BODY() local 143 while (!timer.fired()) in ATF_TEST_CASE_BODY() 323 delete timer; in ATF_TEST_CASE_BODY() 367 signals::timer timer(datetime::delta(0, 500000)); in ATF_TEST_CASE_BODY() local 368 timer.unprogram(); in ATF_TEST_CASE_BODY() 390 signals::timer timer(datetime::delta(0, 1)); in ATF_TEST_CASE_BODY() local 404 if (timer.fired()) in ATF_TEST_CASE_BODY() [all …]
|
| /freebsd-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | timer.h | 59 (timer)->function_415 = (func); \ 60 (timer)->data = (unsigned long)(timer); \ 65 (timer)->function = (func); \ 66 (timer)->data = (dat); \ 67 callout_init(&(timer)->callout, 1); \ 72 setup_timer(timer, func, dat); \ 75 #define init_timer(timer) do { \ argument 76 (timer)->function = NULL; \ 77 (timer)->data = 0; \ 78 callout_init(&(timer)->callout, 1); \ [all …]
|
| /freebsd-13.1/sys/amd64/vmm/io/ |
| H A D | vhpet.c | 96 } timer[VHPET_NUM_TIMERS]; member 262 compval = vhpet->timer[n].compval; in vhpet_adjust_compval() 263 comprate = vhpet->timer[n].comprate; in vhpet_adjust_compval() 278 vhpet->timer[n].compval = compnext; in vhpet_adjust_compval() 294 callout = &vhpet->timer[n].callout; in vhpet_handler() 345 if (vhpet->timer[n].comprate != 0) in vhpet_start_timer() 359 callout_reset_sbt(&vhpet->timer[n].callout, vhpet->timer[n].callout_sbt, in vhpet_start_timer() 440 vhpet->timer[n].comprate = 0; in vhpet_timer_update_config() 682 data = vhpet->timer[i].compval; in vhpet_mmio_read() 688 data = vhpet->timer[i].msireg; in vhpet_mmio_read() [all …]
|
| /freebsd-13.1/contrib/libevent/test/ |
| H A D | test-changelist.c | 65 start_cpu_usage_timer(struct cpu_usage_timer *timer) in start_cpu_usage_timer() argument 70 timer->thread = GetCurrentThread(); in start_cpu_usage_timer() 71 r = GetThreadTimes(timer->thread, &createtime, &exittime, in start_cpu_usage_timer() 72 &timer->usertimeBegin, &timer->kerneltimeBegin); in start_cpu_usage_timer() 75 timer->ticksBegin = clock(); in start_cpu_usage_timer() 78 evutil_gettimeofday(&timer->timeBegin, NULL); in start_cpu_usage_timer() 118 r = GetThreadTimes(timer->thread, &createtime, &exittime, in get_cpu_usage() 129 evutil_timersub(&timeEnd, &timer->timeBegin, &timeDiff); in get_cpu_usage() 170 struct cpu_usage_timer timer; in main() local 201 start_cpu_usage_timer(&timer); in main() [all …]
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/test/ |
| H A D | test-changelist.c | 65 start_cpu_usage_timer(struct cpu_usage_timer *timer) in start_cpu_usage_timer() argument 70 timer->thread = GetCurrentThread(); in start_cpu_usage_timer() 71 r = GetThreadTimes(timer->thread, &createtime, &exittime, in start_cpu_usage_timer() 72 &timer->usertimeBegin, &timer->kerneltimeBegin); in start_cpu_usage_timer() 75 timer->ticksBegin = clock(); in start_cpu_usage_timer() 78 evutil_gettimeofday(&timer->timeBegin, NULL); in start_cpu_usage_timer() 118 r = GetThreadTimes(timer->thread, &createtime, &exittime, in get_cpu_usage() 129 evutil_timersub(&timeEnd, &timer->timeBegin, &timeDiff); in get_cpu_usage() 170 struct cpu_usage_timer timer; in main() local 201 start_cpu_usage_timer(&timer); in main() [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/src/arm/ |
| H A D | omap2.dtsi | 225 timer2: timer@0 { 232 timer3: timer@48078000 { 239 timer4: timer@4807a000 { 251 ti,timer-dsp; 259 ti,timer-dsp; 267 ti,timer-dsp; 275 ti,timer-dsp; 283 ti,timer-pwm; 291 ti,timer-pwm; 299 ti,timer-pwm; [all …]
|
| /freebsd-13.1/contrib/ntp/scripts/deprecated/ |
| H A D | freq_adj.in | 16 chop($timer = `sysctl -n kern.timecounter.hardware 2> /dev/null`); 18 $timer =~ tr/\U/\L/; 20 if ($timer eq '') { 25 $timer = $1; 32 $opt_t = $timer if !defined($opt_t); 34 if ($timer ne '') { # $timer found... 36 if ($timer ne $opt_t) { # - - and they differ 37 warn "You specified a $opt_t timer but I detected a $timer timer.\n"; 48 $timer = $opt_t; # - - so use it. 76 $sysctl = "machdep.".$timer."_freq"; [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/soc/microchip/ |
| H A D | atmel,at91rm9200-tcb.yaml | 54 "^timer@[0-2]$": 61 - atmel,tcb-timer 122 tcb0: timer@fff7c000 { 131 timer@0 { 136 timer@2 { 143 tcb1: timer@fffdc000 { 152 timer@0 { 157 timer@1 { 163 timer@f800c000 { 172 timer@0 { [all …]
|
| /freebsd-13.1/lib/librt/ |
| H A D | timer.c | 84 struct __timer *timer; in __timer_create() local 90 if (timer == NULL) in __timer_create() 97 free(timer); in __timer_create() 101 timer->node = NULL; in __timer_create() 102 *timerid = timer; in __timer_create() 107 free(timer); in __timer_create() 114 free(timer); in __timer_create() 124 free(timer); in __timer_create() 130 sn->sn_id = timer->oshandle; in __timer_create() 131 timer->node = sn; in __timer_create() [all …]
|
| /freebsd-13.1/sys/contrib/device-tree/Bindings/powerpc/fsl/ |
| H A D | mpic-timer.txt | 4 - compatible: "fsl,mpic-global-timer" 6 - reg : Contains two regions. The first is the main timer register bank 7 (GTCCRxx, GTBCRxx, GTVPRxx, GTDRxx). The second is the timer control 11 timer interrupts can be used. This property is optional; without this, 14 - interrupts: one interrupt per timer in the group, in order, starting 15 with timer zero. If timer-available-ranges is present, only the 20 timer0: timer@41100 { 21 compatible = "fsl,mpic-global-timer"; 31 timer1: timer@42100 { 32 compatible = "fsl,mpic-global-timer";
|