Home
last modified time | relevance | path

Searched defs:hwc (Results 1 – 25 of 70) sorted by relevance

123

/Linux-v5.4/arch/s390/include/asm/
Dperf_event.h67 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) argument
68 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) argument
69 #define TEAR_REG(hwc) ((hwc)->last_tag) argument
70 #define SAMPL_RATE(hwc) ((hwc)->event_base) argument
71 #define SAMPL_FLAGS(hwc) ((hwc)->config_base) argument
72 #define SAMPL_DIAG_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_DIAG_MODE) argument
73 #define SDB_FULL_BLOCKS(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FULL_BLOCKS) argument
74 #define SAMPLE_FREQ_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FREQ_MODE) argument
/Linux-v5.4/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c128 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_event_init() local
183 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_enable_event() local
198 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_disable_event() local
207 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_set_event_period() local
226 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_event_update() local
246 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_start() local
267 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_stop() local
284 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_add() local
306 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_del() local
Dhisi_uncore_ddrc_pmu.c47 #define GET_DDRC_EVENTID(hwc) (hwc->config_base & 0x7) argument
65 struct hw_perf_event *hwc) in hisi_ddrc_pmu_read_counter()
79 struct hw_perf_event *hwc, u64 val) in hisi_ddrc_pmu_write_counter()
122 struct hw_perf_event *hwc) in hisi_ddrc_pmu_enable_counter()
133 struct hw_perf_event *hwc) in hisi_ddrc_pmu_disable_counter()
147 struct hw_perf_event *hwc = &event->hw; in hisi_ddrc_pmu_get_event_idx() local
160 struct hw_perf_event *hwc) in hisi_ddrc_pmu_enable_counter_int()
171 struct hw_perf_event *hwc) in hisi_ddrc_pmu_disable_counter_int()
Dhisi_uncore_hha_pmu.c51 struct hw_perf_event *hwc) in hisi_hha_pmu_read_counter()
65 struct hw_perf_event *hwc, u64 val) in hisi_hha_pmu_write_counter()
128 struct hw_perf_event *hwc) in hisi_hha_pmu_enable_counter()
139 struct hw_perf_event *hwc) in hisi_hha_pmu_disable_counter()
150 struct hw_perf_event *hwc) in hisi_hha_pmu_enable_counter_int()
161 struct hw_perf_event *hwc) in hisi_hha_pmu_disable_counter_int()
Dhisi_uncore_l3c_pmu.c50 struct hw_perf_event *hwc) in hisi_l3c_pmu_read_counter()
64 struct hw_perf_event *hwc, u64 val) in hisi_l3c_pmu_write_counter()
127 struct hw_perf_event *hwc) in hisi_l3c_pmu_enable_counter()
138 struct hw_perf_event *hwc) in hisi_l3c_pmu_disable_counter()
149 struct hw_perf_event *hwc) in hisi_l3c_pmu_enable_counter_int()
160 struct hw_perf_event *hwc) in hisi_l3c_pmu_disable_counter_int()
/Linux-v5.4/drivers/iio/buffer/
Dindustrialio-hw-consumer.c53 struct iio_hw_consumer *hwc, struct iio_dev *indio_dev) in iio_hw_consumer_get_buffer()
86 struct iio_hw_consumer *hwc; in iio_hw_consumer_alloc() local
129 void iio_hw_consumer_free(struct iio_hw_consumer *hwc) in iio_hw_consumer_free()
196 void devm_iio_hw_consumer_free(struct device *dev, struct iio_hw_consumer *hwc) in devm_iio_hw_consumer_free()
212 int iio_hw_consumer_enable(struct iio_hw_consumer *hwc) in iio_hw_consumer_enable()
236 void iio_hw_consumer_disable(struct iio_hw_consumer *hwc) in iio_hw_consumer_disable()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c48 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_event_init() local
63 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_start() local
92 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_read() local
119 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_stop() local
148 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_add() local
178 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_del() local
/Linux-v5.4/arch/riscv/kernel/
Dperf_event.c216 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_read() local
253 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_stop() local
269 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_start() local
300 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_add() local
331 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_del() local
387 struct hw_perf_event *hwc = &event->hw; in riscv_event_init() local
/Linux-v5.4/arch/alpha/kernel/
Dperf_event.c253 struct hw_perf_event *hwc, int idx) in alpha_perf_event_set_period()
308 struct hw_perf_event *hwc, int idx, long ovf) in alpha_perf_event_update()
413 struct hw_perf_event *hwc = &pe->hw; in maybe_change_configuration() local
436 struct hw_perf_event *hwc = &event->hw; in alpha_pmu_add() local
488 struct hw_perf_event *hwc = &event->hw; in alpha_pmu_del() local
526 struct hw_perf_event *hwc = &event->hw; in alpha_pmu_read() local
534 struct hw_perf_event *hwc = &event->hw; in alpha_pmu_stop() local
554 struct hw_perf_event *hwc = &event->hw; in alpha_pmu_start() local
605 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
810 struct hw_perf_event *hwc; in alpha_perf_event_irq_handler() local
/Linux-v5.4/arch/arm/kernel/
Dperf_event_xscale.c175 struct hw_perf_event *hwc; in xscale1pmu_handle_irq() local
208 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_enable_event() local
244 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_disable_event() local
278 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_get_event_idx() local
327 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_read_counter() local
348 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_write_counter() local
521 struct hw_perf_event *hwc; in xscale2pmu_handle_irq() local
554 struct hw_perf_event *hwc = &event->hw; in xscale2pmu_enable_event() local
600 struct hw_perf_event *hwc = &event->hw; in xscale2pmu_disable_event() local
690 struct hw_perf_event *hwc = &event->hw; in xscale2pmu_read_counter() local
[all …]
Dperf_event_v6.c238 struct hw_perf_event *hwc = &event->hw; in armv6pmu_read_counter() local
256 struct hw_perf_event *hwc = &event->hw; in armv6pmu_write_counter() local
273 struct hw_perf_event *hwc = &event->hw; in armv6pmu_enable_event() local
328 struct hw_perf_event *hwc; in armv6pmu_handle_irq() local
391 struct hw_perf_event *hwc = &event->hw; in armv6pmu_get_event_idx() local
424 struct hw_perf_event *hwc = &event->hw; in armv6pmu_disable_event() local
459 struct hw_perf_event *hwc = &event->hw; in armv6mpcore_pmu_disable_event() local
Dperf_event_v7.c749 struct hw_perf_event *hwc = &event->hw; in armv7pmu_read_counter() local
769 struct hw_perf_event *hwc = &event->hw; in armv7pmu_write_counter() local
874 struct hw_perf_event *hwc = &event->hw; in armv7pmu_enable_event() local
920 struct hw_perf_event *hwc = &event->hw; in armv7pmu_disable_event() local
975 struct hw_perf_event *hwc; in armv7pmu_handle_irq() local
1037 struct hw_perf_event *hwc = &event->hw; in armv7pmu_get_event_idx() local
1496 struct hw_perf_event *hwc = &event->hw; in krait_pmu_disable_event() local
1522 struct hw_perf_event *hwc = &event->hw; in krait_pmu_enable_event() local
1584 struct hw_perf_event *hwc = &event->hw; in krait_event_to_bit() local
1611 struct hw_perf_event *hwc = &event->hw; in krait_pmu_get_event_idx() local
[all …]
/Linux-v5.4/arch/nds32/kernel/
Dperf_event_cpu.c186 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_event_set_period() local
252 struct hw_perf_event *hwc; in nds32_pmu_handle_irq() local
416 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_enable_event() local
467 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_disable_event() local
498 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_read_counter() local
527 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_write_counter() local
555 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_get_event_idx() local
799 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
891 struct hw_perf_event *hwc = &event->hw; in nds32_start() local
910 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_add() local
[all …]
/Linux-v5.4/arch/sh/kernel/
Dperf_event.c121 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
177 struct hw_perf_event *hwc, int idx) in sh_perf_event_update()
220 struct hw_perf_event *hwc = &event->hw; in sh_pmu_stop() local
238 struct hw_perf_event *hwc = &event->hw; in sh_pmu_start() local
265 struct hw_perf_event *hwc = &event->hw; in sh_pmu_add() local
/Linux-v5.4/arch/x86/events/amd/
Diommu.c209 struct hw_perf_event *hwc = &event->hw; in perf_iommu_event_init() local
241 struct hw_perf_event *hwc = &ev->hw; in perf_iommu_enable_event() local
271 struct hw_perf_event *hwc = &event->hw; in perf_iommu_disable_event() local
280 struct hw_perf_event *hwc = &event->hw; in perf_iommu_start() local
304 struct hw_perf_event *hwc = &event->hw; in perf_iommu_read() local
326 struct hw_perf_event *hwc = &event->hw; in perf_iommu_stop() local
361 struct hw_perf_event *hwc = &event->hw; in perf_iommu_del() local
Dibs.c111 perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_period) in perf_event_set_period()
156 struct hw_perf_event *hwc = &event->hw; in perf_event_try_update() local
258 struct hw_perf_event *hwc = &event->hw; in perf_ibs_init() local
317 struct hw_perf_event *hwc, u64 *period) in perf_ibs_set_period()
364 struct hw_perf_event *hwc, u64 config) in perf_ibs_enable_event()
377 struct hw_perf_event *hwc, u64 config) in perf_ibs_disable_event()
394 struct hw_perf_event *hwc = &event->hw; in perf_ibs_start() local
419 struct hw_perf_event *hwc = &event->hw; in perf_ibs_stop() local
573 struct hw_perf_event *hwc; in perf_ibs_handle_irq() local
Duncore.c84 struct hw_perf_event *hwc = &event->hw; in amd_uncore_read() local
103 struct hw_perf_event *hwc = &event->hw; in amd_uncore_start() local
115 struct hw_perf_event *hwc = &event->hw; in amd_uncore_stop() local
130 struct hw_perf_event *hwc = &event->hw; in amd_uncore_add() local
171 struct hw_perf_event *hwc = &event->hw; in amd_uncore_del() local
186 struct hw_perf_event *hwc = &event->hw; in amd_uncore_event_init() local
/Linux-v5.4/arch/s390/kernel/
Dperf_cpum_cf.c37 static int validate_ctr_version(const struct hw_perf_event *hwc) in validate_ctr_version()
95 static int validate_ctr_auth(const struct hw_perf_event *hwc) in validate_ctr_auth()
205 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
366 struct hw_perf_event *hwc = &event->hw; in cpumf_pmu_start() local
397 struct hw_perf_event *hwc = &event->hw; in cpumf_pmu_stop() local
Dperf_cpum_sf.c316 static unsigned long sfb_max_limit(struct hw_perf_event *hwc) in sfb_max_limit()
323 struct hw_perf_event *hwc) in sfb_pending_allocs()
333 struct hw_perf_event *hwc) in sfb_has_pending_allocs()
338 static void sfb_account_allocs(unsigned long num, struct hw_perf_event *hwc) in sfb_account_allocs()
346 static void sfb_init_allocs(unsigned long num, struct hw_perf_event *hwc) in sfb_init_allocs()
358 static int allocate_buffers(struct cpu_hw_sf *cpuhw, struct hw_perf_event *hwc) in allocate_buffers()
446 struct hw_perf_event *hwc) in sfb_account_overflows()
485 struct hw_perf_event *hwc) in extend_sampling_buffer()
594 static void hw_init_period(struct hw_perf_event *hwc, u64 period) in hw_init_period()
601 static void hw_reset_registers(struct hw_perf_event *hwc, in hw_reset_registers()
[all …]
/Linux-v5.4/arch/xtensa/kernel/
Dperf_event.c137 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_update()
155 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_set_period()
242 struct hw_perf_event *hwc = &event->hw; in xtensa_pmu_start() local
260 struct hw_perf_event *hwc = &event->hw; in xtensa_pmu_stop() local
284 struct hw_perf_event *hwc = &event->hw; in xtensa_pmu_add() local
370 struct hw_perf_event *hwc = &event->hw; in xtensa_pmu_irq_handler() local
/Linux-v5.4/drivers/perf/
Dthunderx2_pmu.c247 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_l3c() local
259 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_dmc() local
271 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_l3c() local
288 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_dmc() local
306 struct hw_perf_event *hwc = &event->hw; in uncore_stop_event_dmc() local
318 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_update() local
412 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_init() local
450 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_start() local
470 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_stop() local
488 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_add() local
[all …]
Dqcom_l2_pmu.c341 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_update() local
362 struct hw_perf_event *hwc) in l2_cache_cluster_set_period()
384 struct hw_perf_event *hwc = &event->hw; in l2_cache_get_event_idx() local
419 struct hw_perf_event *hwc = &event->hw; in l2_cache_clear_event_idx() local
440 struct hw_perf_event *hwc; in l2_cache_handle_irq() local
482 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_init() local
586 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_start() local
616 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_stop() local
632 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_add() local
659 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_del() local
/Linux-v5.4/arch/arc/kernel/
Dperf_event.c119 struct hw_perf_event *hwc, int idx) in arc_perf_event_update()
169 struct hw_perf_event *hwc = &event->hw; in arc_pmu_event_init() local
245 struct hw_perf_event *hwc = &event->hw; in arc_pmu_event_set_period() local
291 struct hw_perf_event *hwc = &event->hw; in arc_pmu_start() local
316 struct hw_perf_event *hwc = &event->hw; in arc_pmu_stop() local
363 struct hw_perf_event *hwc = &event->hw; in arc_pmu_add() local
418 struct hw_perf_event *hwc; in arc_pmu_intr() local
/Linux-v5.4/arch/x86/events/intel/
Dp4.c855 static inline int p4_pmu_clear_cccr_ovf(struct hw_perf_event *hwc) in p4_pmu_clear_cccr_ovf()
905 struct hw_perf_event *hwc = &event->hw; in p4_pmu_disable_event() local
951 struct hw_perf_event *hwc = &event->hw; in p4_pmu_enable_event() local
1003 struct hw_perf_event *hwc; in p4_pmu_handle_irq() local
1066 static void p4_pmu_swap_config_ts(struct hw_perf_event *hwc, int cpu) in p4_pmu_swap_config_ts()
1211 struct hw_perf_event *hwc; in p4_pmu_schedule_events() local
Duncore_nhmex.c247 struct hw_perf_event *hwc = &event->hw; in nhmex_uncore_msr_enable_event() local
352 struct hw_perf_event *hwc = &event->hw; in nhmex_bbox_hw_config() local
379 struct hw_perf_event *hwc = &event->hw; in nhmex_bbox_msr_enable_event() local
443 struct hw_perf_event *hwc = &event->hw; in nhmex_sbox_hw_config() local
464 struct hw_perf_event *hwc = &event->hw; in nhmex_sbox_msr_enable_event() local
631 struct hw_perf_event *hwc = &event->hw; in nhmex_mbox_alter_er() local
837 struct hw_perf_event *hwc = &event->hw; in nhmex_mbox_msr_enable_event() local
946 struct hw_perf_event *hwc = &event->hw; in nhmex_rbox_alter_er() local
980 struct hw_perf_event *hwc = &event->hw; in nhmex_rbox_get_constraint() local
1088 struct hw_perf_event *hwc = &event->hw; in nhmex_rbox_hw_config() local
[all …]

123