Home
last modified time | relevance | path

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

/linux-6.15/arch/powerpc/perf/
H A Dhv-24x7.c690 size_t event_idx, in catalog_event_len_validate() argument
701 if (event_idx >= event_entry_count) { in catalog_event_len_validate()
709 event_idx); in catalog_event_len_validate()
717 event_idx, ev_len, event); in catalog_event_len_validate()
722 event_idx, ev_len, ev_end, end, in catalog_event_len_validate()
888 event_idx, nl, name); in create_events_from_catalog()
895 event_idx, nl, name, event->domain); in create_events_from_catalog()
903 event_idx_last = event_idx; in create_events_from_catalog()
930 event = event_data, event_idx = 0; in create_events_from_catalog()
931 event_idx < event_idx_last; in create_events_from_catalog()
[all …]
H A Dcore-book3s.c2222 .event_idx = power_pmu_event_idx,
/linux-6.15/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()
726 pmc->event_idx = eidx; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
801 pmc->event_idx = SBI_PMU_EVENT_IDX_INVALID; in kvm_riscv_vcpu_pmu_init()
839 pmc->event_idx = SBI_PMU_EVENT_IDX_INVALID; in kvm_riscv_vcpu_pmu_deinit()
/linux-6.15/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-6.15/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 Dmarvell_cn10k_tad_pmu.c92 u32 event_idx = event->attr.config; in tad_pmu_event_counter_start() local
108 reg_val = event_idx & 0xFF; in tad_pmu_event_counter_start()
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.c1316 cpu_pmu->pmu.event_idx = armv8pmu_user_event_idx; in armv8_pmu_init()
/linux-6.15/Documentation/devicetree/bindings/perf/
H A Driscv,pmu.yaml48 - description: event_idx, a 20-bit wide encoding of the event type and
64 - description: first event_idx of the range of events
65 - description: last event_idx of the range of events
/linux-6.15/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h39 unsigned long event_idx; member
/linux-6.15/include/net/
H A Damt.h369 u8 event_idx; member
H A Dcfg80211.h7967 int approxlen, int event_idx, gfp_t gfp) in cfg80211_vendor_event_alloc() argument
7971 0, event_idx, approxlen, gfp); in cfg80211_vendor_event_alloc()
8002 int event_idx, gfp_t gfp) in cfg80211_vendor_event_alloc_ucast() argument
8006 portid, event_idx, approxlen, gfp); in cfg80211_vendor_event_alloc_ucast()
/linux-6.15/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-6.15/arch/x86/events/intel/
H A Dp4.c732 static bool p4_event_match_cpu_model(unsigned int event_idx) in p4_event_match_cpu_model() argument
735 if (event_idx == P4_EVENT_INSTR_COMPLETED) { in p4_event_match_cpu_model()
/linux-6.15/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-6.15/drivers/nvme/host/
H A Dpci.c351 static inline int nvme_dbbuf_need_event(u16 event_idx, u16 new_idx, u16 old) in nvme_dbbuf_need_event() argument
353 return (u16)(new_idx - event_idx - 1) < (u16)(new_idx - old); in nvme_dbbuf_need_event()
361 u16 old_value, event_idx; in nvme_dbbuf_update_and_check_event() local
380 event_idx = le32_to_cpu(*dbbuf_ei); in nvme_dbbuf_update_and_check_event()
381 if (!nvme_dbbuf_need_event(event_idx, value, old_value)) in nvme_dbbuf_update_and_check_event()
/linux-6.15/include/linux/
H A Dperf_event.h491 int (*event_idx) (struct perf_event *event); /*optional */ member
/linux-6.15/arch/x86/events/
H A Dcore.c2707 .event_idx = x86_pmu_event_idx,
/linux-6.15/kernel/events/
H A Dcore.c6432 return event->pmu->event_idx(event); in perf_event_index()
12235 if (!pmu->event_idx) in DEFINE_FREE()
12236 pmu->event_idx = perf_event_idx_default; in DEFINE_FREE()