Home
last modified time | relevance | path

Searched refs:timer_index (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/hw/timer/
H A Dslavio_timer.c76 unsigned int timer_index; /* 0 for system, 1 ... MAX_CPUS for CPU timers */ member
100 unsigned int timer_index = tc->timer_index; in slavio_timer_is_user() local
102 return timer_index != 0 && (s->cputimer_mode & (1 << (timer_index - 1))); in slavio_timer_is_user()
128 CPUTimerState *t = &s->cputimer[tc->timer_index]; in slavio_timer_irq()
148 unsigned int timer_index = tc->timer_index; in slavio_timer_mem_readl() local
149 CPUTimerState *t = &s->cputimer[timer_index]; in slavio_timer_mem_readl()
182 if (timer_index > 0) { in slavio_timer_mem_readl()
208 unsigned int timer_index = tc->timer_index; in slavio_timer_mem_writel() local
209 CPUTimerState *t = &s->cputimer[timer_index]; in slavio_timer_mem_writel()
224 trace_slavio_timer_mem_writel_limit(timer_index, count); in slavio_timer_mem_writel()
[all …]
H A Dtrace-events9 slavio_timer_mem_writel_limit(unsigned int timer_index, uint64_t count) "processor %d user timer se…
11 slavio_timer_mem_writel_status_start(unsigned int timer_index) "processor %d user timer started"
12 slavio_timer_mem_writel_status_stop(unsigned int timer_index) "processor %d user timer stopped"
13 slavio_timer_mem_writel_mode_user(unsigned int timer_index) "processor %d changed from counter to u…
14 slavio_timer_mem_writel_mode_counter(unsigned int timer_index) "processor %d changed from user time…
/openbmc/linux/arch/x86/kvm/
H A Dtrace.h1207 TP_PROTO(int vcpu_id, int timer_index, u64 config, bool host),
1208 TP_ARGS(vcpu_id, timer_index, config, host),
1212 __field(int, timer_index)
1219 __entry->timer_index = timer_index;
1225 __entry->vcpu_id, __entry->timer_index, __entry->config,
1233 TP_PROTO(int vcpu_id, int timer_index, u64 count, bool host),
1234 TP_ARGS(vcpu_id, timer_index, count, host),
1238 __field(int, timer_index)
1245 __entry->timer_index = timer_index;
1251 __entry->vcpu_id, __entry->timer_index, __entry->count,
[all …]
H A Dhyperv.h114 int timer_index) in to_hv_stimer() argument
116 return &to_hv_vcpu(vcpu)->stimer[timer_index]; in to_hv_stimer()
H A Dhyperv.c946 payload->timer_index = stimer->index; in stimer_prepare_msg()
951 static void stimer_init(struct kvm_vcpu_hv_stimer *stimer, int timer_index) in stimer_init() argument
954 stimer->index = timer_index; in stimer_init()
1552 int timer_index = (msr - HV_X64_MSR_STIMER0_CONFIG)/2; in kvm_hv_set_msr() local
1554 return stimer_set_config(to_hv_stimer(vcpu, timer_index), in kvm_hv_set_msr()
1561 int timer_index = (msr - HV_X64_MSR_STIMER0_COUNT)/2; in kvm_hv_set_msr() local
1563 return stimer_set_count(to_hv_stimer(vcpu, timer_index), in kvm_hv_set_msr()
1672 int timer_index = (msr - HV_X64_MSR_STIMER0_CONFIG)/2; in kvm_hv_get_msr() local
1674 return stimer_get_config(to_hv_stimer(vcpu, timer_index), in kvm_hv_get_msr()
1681 int timer_index = (msr - HV_X64_MSR_STIMER0_COUNT)/2; in kvm_hv_get_msr() local
[all …]
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_timer-test.c109 static int timer_index(const Timer *t) in timer_index() function
121 return td->tim->irq_base + timer_index(td->timer); in tim_timer_irq()
171 return BIT(timer_index(td->timer)); in tim_timer_bit()
518 timer_index(td->timer), name); in tim_add_test()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dhw.c3128 u8 timer_index) in ath_gen_timer_alloc() argument
3133 if ((timer_index < AR_FIRST_NDP_TIMER) || in ath_gen_timer_alloc()
3134 (timer_index >= ATH_MAX_GEN_TIMER)) in ath_gen_timer_alloc()
3137 if ((timer_index > AR_FIRST_NDP_TIMER) && in ath_gen_timer_alloc()
3146 timer_table->timers[timer_index] = timer; in ath_gen_timer_alloc()
3147 timer->index = timer_index; in ath_gen_timer_alloc()
3152 if ((timer_index > AR_FIRST_NDP_TIMER) && !timer_table->tsf2_enabled) { in ath_gen_timer_alloc()
H A Dhw.h1087 u8 timer_index);
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c3997 int timer_index; in napi_rx_handler() local
4000 timer_index = QINTR_TIMER_IDX_G(q->next_intr_params); in napi_rx_handler()
4003 if (work_done > max(timer_pkt_quota[timer_index], in napi_rx_handler()
4005 timer_index = (timer_index + 1); in napi_rx_handler()
4007 timer_index = timer_index - 1; in napi_rx_handler()
4009 timer_index = clamp(timer_index, 0, SGE_TIMERREGS - 1); in napi_rx_handler()
4011 QINTR_TIMER_IDX_V(timer_index) | in napi_rx_handler()
/openbmc/linux/include/asm-generic/
H A Dhyperv-tlfs.h336 __u32 timer_index; member
/openbmc/qemu/linux-user/
H A Dsyscall.c13496 int timer_index = next_free_host_timer(); in _syscall2() local
13498 if (timer_index < 0) { in _syscall2()
13501 timer_t *phtimer = g_posix_timers + timer_index; in _syscall2()
13507 free_host_timer_slot(timer_index); in _syscall2()
13514 free_host_timer_slot(timer_index); in _syscall2()
13516 if (put_user(TIMER_MAGIC | timer_index, arg3, target_timer_t)) { in _syscall2()
13518 free_host_timer_slot(timer_index); in _syscall2()