Home
last modified time | relevance | path

Searched refs:event_idx (Results 1 – 16 of 16) sorted by relevance

/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c222 fevent_code = get_event_code(pmc->event_idx); in pmu_fw_ctr_read_hi()
246 fevent_code = get_event_code(pmc->event_idx); in pmu_ctr_read()
523 fevent_code = get_event_code(pmc->event_idx); in kvm_riscv_vcpu_pmu_ctr_start()
585 fevent_code = get_event_code(pmc->event_idx); in kvm_riscv_vcpu_pmu_ctr_stop()
629 pmc->event_idx = SBI_PMU_EVENT_IDX_INVALID; in kvm_riscv_vcpu_pmu_ctr_stop()
725 pmc->event_idx = eidx; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
800 pmc->event_idx = SBI_PMU_EVENT_IDX_INVALID; in kvm_riscv_vcpu_pmu_init()
838 pmc->event_idx = SBI_PMU_EVENT_IDX_INVALID; in kvm_riscv_vcpu_pmu_deinit()
/linux/include/uapi/linux/
H A Dvirtio_ring.h222 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument
229 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
/linux/drivers/perf/
H A Dcxl_pmu.c89 int event_idx; /* configurable counters */ member
203 pmu_ev->event_idx = j; in cxl_pmu_parse_caps()
518 int *event_idx) in cxl_pmu_get_event_idx() argument
735 int event_idx = 0; in cxl_pmu_event_add() local
739 rc = cxl_pmu_get_event_idx(event, &idx, &event_idx); in cxl_pmu_event_add()
746 hwc->event_base = event_idx; in cxl_pmu_event_add()
H A Driscv_pmu_sbi.c118 uint32_t event_idx; member
306 0, cmask, 0, edata->event_idx, 0, 0); in pmu_sbi_check_event()
312 edata->event_idx = -ENOENT; in pmu_sbi_check_event()
490 ret = pmu_cache_event_map[cache_type][cache_op][cache_result].event_idx; in pmu_event_find_cache()
522 ret = pmu_hw_event_map[event->attr.config].event_idx; in pmu_sbi_event_map()
H A Driscv_pmu.c413 .event_idx = riscv_pmu_event_idx, in riscv_pmu_alloc()
H A Darm_pmuv3.c1321 cpu_pmu->pmu.event_idx = armv8pmu_user_event_idx; in armv8_pmu_init()
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h39 unsigned long event_idx; member
/linux/drivers/net/
H A Damt.c904 index = (amt->event_idx + amt->nr_events) % AMT_MAX_EVENTS; in amt_queue_event()
908 amt->event_idx %= AMT_MAX_EVENTS; in amt_queue_event()
2877 event = amt->events[amt->event_idx].event; in amt_event_work()
2878 skb = amt->events[amt->event_idx].skb; in amt_event_work()
2879 amt->events[amt->event_idx].event = AMT_EVENT_NONE; in amt_event_work()
2880 amt->events[amt->event_idx].skb = NULL; in amt_event_work()
2882 amt->event_idx++; in amt_event_work()
2883 amt->event_idx %= AMT_MAX_EVENTS; in amt_event_work()
2990 amt->event_idx = 0; in amt_dev_open()
/linux/include/net/
H A Damt.h369 u8 event_idx; member
H A Dcfg80211.h7905 int approxlen, int event_idx, gfp_t gfp) in cfg80211_vendor_event_alloc() argument
7909 0, event_idx, approxlen, gfp); in cfg80211_vendor_event_alloc()
7940 int event_idx, gfp_t gfp) in cfg80211_vendor_event_alloc_ucast() argument
7944 portid, event_idx, approxlen, gfp); in cfg80211_vendor_event_alloc_ucast()
/linux/arch/x86/events/intel/
H A Dp4.c731 static bool p4_event_match_cpu_model(unsigned int event_idx) in p4_event_match_cpu_model() argument
734 if (event_idx == P4_EVENT_INSTR_COMPLETED) { in p4_event_match_cpu_model()
/linux/drivers/virtio/
H A Dvirtio_ring.c1606 u16 new, old, off_wrap, flags, wrap_counter, event_idx; in virtqueue_kick_prepare_packed() local
1642 event_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_kick_prepare_packed()
1644 event_idx -= vq->packed.vring.num; in virtqueue_kick_prepare_packed()
1646 needs_kick = vring_need_event(event_idx, new, old); in virtqueue_kick_prepare_packed()
/linux/drivers/nvme/host/
H A Dpci.c352 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument
354 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()
362 u16 old_value, event_idx; in nvme_dbbuf_update_and_check_event() local
381 event_idx = le32_to_cpu(*dbbuf_ei); in nvme_dbbuf_update_and_check_event()
382 if (!nvme_dbbuf_need_event(event_idx, value, old_value)) in nvme_dbbuf_update_and_check_event()
/linux/include/linux/
H A Dperf_event.h492 int (*event_idx) (struct perf_event *event); /*optional */ member
/linux/arch/x86/events/
H A Dcore.c2702 .event_idx = x86_pmu_event_idx,
/linux/kernel/events/
H A Dcore.c6194 return event->pmu->event_idx(event); in perf_event_index()
11859 if (!pmu->event_idx) in perf_pmu_register()
11860 pmu->event_idx = perf_event_idx_default; in perf_pmu_register()