| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | hw_channel.c | 9 static int mana_hwc_get_msg_index(struct hw_channel_context *hwc, u16 *msg_id) in mana_hwc_get_msg_index() 31 static void mana_hwc_put_msg_index(struct hw_channel_context *hwc, u16 msg_id) in mana_hwc_put_msg_index() 79 static void mana_hwc_handle_resp(struct hw_channel_context *hwc, u32 resp_len, in mana_hwc_handle_resp() 115 struct hw_channel_context *hwc = ctx; in mana_hwc_init_event_handler() local 243 struct hw_channel_context *hwc = ctx; in mana_hwc_rx_event_handler() local 298 struct hw_channel_context *hwc = ctx; in mana_hwc_tx_event_handler() local 304 static int mana_hwc_create_gdma_wq(struct hw_channel_context *hwc, in mana_hwc_create_gdma_wq() 320 static int mana_hwc_create_gdma_cq(struct hw_channel_context *hwc, in mana_hwc_create_gdma_cq() 338 static int mana_hwc_create_gdma_eq(struct hw_channel_context *hwc, in mana_hwc_create_gdma_eq() 398 static int mana_hwc_create_cq(struct hw_channel_context *hwc, u16 q_depth, in mana_hwc_create_cq() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | hw_table.c | 35 struct mlx5_sf_hwc_table *hwc; member 55 struct mlx5_sf_hwc_table *hwc; in mlx5_sf_sw_to_hw_id() local 61 static u16 mlx5_sf_hw_to_sw_id(struct mlx5_sf_hwc_table *hwc, u16 hw_id) in mlx5_sf_hw_to_sw_id() 85 struct mlx5_sf_hwc_table *hwc; in mlx5_sf_hw_table_id_alloc() local 115 struct mlx5_sf_hwc_table *hwc; in mlx5_sf_hw_table_id_free() local 183 struct mlx5_sf_hwc_table *hwc, int idx) in mlx5_sf_hw_table_hwc_sf_free() 195 struct mlx5_sf_hwc_table *hwc; in mlx5_sf_hw_table_sf_deferred_free() local 219 struct mlx5_sf_hwc_table *hwc) in mlx5_sf_hw_table_hwc_dealloc_all() 238 static int mlx5_sf_hw_table_hwc_init(struct mlx5_sf_hwc_table *hwc, u16 max_fn, u16 base_id) in mlx5_sf_hw_table_hwc_init() 255 static void mlx5_sf_hw_table_hwc_cleanup(struct mlx5_sf_hwc_table *hwc) in mlx5_sf_hw_table_hwc_cleanup() [all …]
|
| /linux/drivers/perf/ |
| H A D | riscv_pmu.c | 149 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_ctr_get_width_mask() local 163 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_event_update() local 189 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_stop() local 204 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_event_set_period() local 242 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_start() local 261 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_add() local 285 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_del() local 306 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_event_init() local
|
| H A D | thunderx2_pmu.c | 325 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_l3c() local 341 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_dmc() local 357 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_ccpi2() local 370 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_l3c() local 391 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_dmc() local 416 struct hw_perf_event *hwc = &event->hw; in uncore_stop_event_dmc() local 433 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_ccpi2() local 457 struct hw_perf_event *hwc = &event->hw; in uncore_stop_event_ccpi2() local 466 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_update() local 569 struct hw_perf_event *hwc = &event->hw; in tx2_uncore_event_init() local [all …]
|
| H A D | starfive_starlink_pmu.c | 157 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_set_event_period() local 177 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_counter_start() local 214 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_counter_stop() local 234 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_update() local 260 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_start() local 279 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_stop() local 294 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_add() local 334 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_del() local 370 struct hw_perf_event *hwc = &event->hw; in starlink_pmu_event_init() local
|
| H A D | marvell_pem_pmu.c | 192 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_init() local 237 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_update() local 251 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_start() local 266 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_add() local 281 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_stop() local 291 struct hw_perf_event *hwc = &event->hw; in pem_perf_event_del() local
|
| H A D | qcom_l2_pmu.c | 299 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_update() local 320 struct hw_perf_event *hwc) in l2_cache_cluster_set_period() 342 struct hw_perf_event *hwc = &event->hw; in l2_cache_get_event_idx() local 377 struct hw_perf_event *hwc = &event->hw; in l2_cache_clear_event_idx() local 398 struct hw_perf_event *hwc; in l2_cache_handle_irq() local 440 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_init() local 544 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_start() local 574 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_stop() local 590 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_add() local 617 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_del() local
|
| H A D | marvell_cn10k_tad_pmu.c | 54 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_read() local 72 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_stop() local 91 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_start() local 117 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_del() local 128 struct hw_perf_event *hwc = &event->hw; in tad_pmu_event_counter_add() local
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_uncore_pmu.c | 206 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_event_init() local 265 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_enable_event() local 283 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_disable_event() local 295 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_set_event_period() local 315 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_event_update() local 336 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_start() local 358 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_stop() local 376 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_add() local 399 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_del() local
|
| H A D | hisi_uncore_uc_pmu.c | 261 struct hw_perf_event *hwc) in hisi_uc_pmu_enable_counter() 272 struct hw_perf_event *hwc) in hisi_uc_pmu_disable_counter() 283 struct hw_perf_event *hwc) in hisi_uc_pmu_read_counter() 297 struct hw_perf_event *hwc, u64 val) in hisi_uc_pmu_write_counter_normal() 303 struct hw_perf_event *hwc, u64 val) in hisi_uc_pmu_write_counter_quirk_v2() 311 struct hw_perf_event *hwc, u64 val) in hisi_uc_pmu_write_counter() 335 struct hw_perf_event *hwc) in hisi_uc_pmu_enable_counter_int() 345 struct hw_perf_event *hwc) in hisi_uc_pmu_disable_counter_int()
|
| H A D | hisi_uncore_ddrc_pmu.c | 68 #define GET_DDRC_EVENTID(hwc) (hwc->config_base & 0x7) argument 87 struct hw_perf_event *hwc) in hisi_ddrc_pmu_read_counter() 98 struct hw_perf_event *hwc, u64 val) in hisi_ddrc_pmu_write_counter() 128 struct hw_perf_event *hwc = &event->hw; in hisi_ddrc_pmu_v1_get_event_idx() local 172 struct hw_perf_event *hwc) in hisi_ddrc_pmu_enable_counter() 183 struct hw_perf_event *hwc) in hisi_ddrc_pmu_disable_counter() 194 struct hw_perf_event *hwc) in hisi_ddrc_pmu_enable_counter_int() 205 struct hw_perf_event *hwc) in hisi_ddrc_pmu_disable_counter_int()
|
| H A D | hisi_uncore_noc_pmu.c | 92 struct hw_perf_event *hwc) in hisi_noc_pmu_read_counter() 100 struct hw_perf_event *hwc, u64 val) in hisi_noc_pmu_write_counter() 108 struct hw_perf_event *hwc) in hisi_noc_pmu_enable_counter() 119 struct hw_perf_event *hwc) in hisi_noc_pmu_disable_counter() 130 struct hw_perf_event *hwc) in hisi_noc_pmu_enable_counter_int() 136 struct hw_perf_event *hwc) in hisi_noc_pmu_disable_counter_int() 181 struct hw_perf_event *hwc = &event->hw; in hisi_noc_pmu_enable_filter() local
|
| H A D | hisi_pcie_pmu.c | 268 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_config_event_ctrl() local 277 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_clear_event_ctrl() local 384 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_event_init() local 448 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_event_update() local 469 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_set_period() local 491 static void hisi_pcie_pmu_enable_counter(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) in hisi_pcie_pmu_enable_counter() 501 static void hisi_pcie_pmu_disable_counter(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) in hisi_pcie_pmu_disable_counter() 511 static void hisi_pcie_pmu_enable_int(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) in hisi_pcie_pmu_enable_int() 518 static void hisi_pcie_pmu_disable_int(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) in hisi_pcie_pmu_disable_int() 534 struct hw_perf_event *hwc = &event->hw; in hisi_pcie_pmu_start() local [all …]
|
| H A D | hisi_uncore_mn_pmu.c | 73 struct hw_perf_event *hwc) in hisi_mn_pmu_read_counter() 81 struct hw_perf_event *hwc, u64 val) in hisi_mn_pmu_write_counter() 127 struct hw_perf_event *hwc) in hisi_mn_pmu_enable_counter() 138 struct hw_perf_event *hwc) in hisi_mn_pmu_disable_counter() 149 struct hw_perf_event *hwc) in hisi_mn_pmu_enable_counter_int() 160 struct hw_perf_event *hwc) in hisi_mn_pmu_disable_counter_int()
|
| H A D | hisi_uncore_hha_pmu.c | 169 struct hw_perf_event *hwc) in hisi_hha_pmu_read_counter() 176 struct hw_perf_event *hwc, u64 val) in hisi_hha_pmu_write_counter() 232 struct hw_perf_event *hwc) in hisi_hha_pmu_enable_counter() 243 struct hw_perf_event *hwc) in hisi_hha_pmu_disable_counter() 254 struct hw_perf_event *hwc) in hisi_hha_pmu_enable_counter_int() 265 struct hw_perf_event *hwc) in hisi_hha_pmu_disable_counter_int()
|
| H A D | hisi_uncore_pa_pmu.c | 157 struct hw_perf_event *hwc) in hisi_pa_pmu_read_counter() 163 struct hw_perf_event *hwc, u64 val) in hisi_pa_pmu_write_counter() 210 struct hw_perf_event *hwc) in hisi_pa_pmu_enable_counter() 221 struct hw_perf_event *hwc) in hisi_pa_pmu_disable_counter() 232 struct hw_perf_event *hwc) in hisi_pa_pmu_enable_counter_int() 244 struct hw_perf_event *hwc) in hisi_pa_pmu_disable_counter_int()
|
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_sf.c | 33 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) argument 34 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) argument 35 #define TEAR_REG(hwc) ((hwc)->last_tag) argument 36 #define SAMPL_RATE(hwc) ((hwc)->event_base) argument 37 #define SAMPL_FLAGS(hwc) ((hwc)->config_base) argument 38 #define SAMPL_DIAG_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_DIAG_MODE) argument 39 #define SAMPL_FREQ_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FREQ_MODE) argument 361 static unsigned long sfb_max_limit(struct hw_perf_event *hwc) in sfb_max_limit() 368 struct hw_perf_event *hwc) in sfb_pending_allocs() 377 static void sfb_account_allocs(unsigned long num, struct hw_perf_event *hwc) in sfb_account_allocs() [all …]
|
| /linux/arch/loongarch/kernel/ |
| H A D | perf_event.c | 253 static int loongarch_pmu_alloc_counter(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc) in loongarch_pmu_alloc_counter() 300 struct hw_perf_event *hwc, in loongarch_pmu_event_set_period() 336 struct hw_perf_event *hwc, in loongarch_pmu_event_update() 358 struct hw_perf_event *hwc = &event->hw; in loongarch_pmu_start() local 374 struct hw_perf_event *hwc = &event->hw; in loongarch_pmu_stop() local 389 struct hw_perf_event *hwc = &event->hw; in loongarch_pmu_add() local 423 struct hw_perf_event *hwc = &event->hw; in loongarch_pmu_del() local 437 struct hw_perf_event *hwc = &event->hw; in loongarch_pmu_read() local 475 struct hw_perf_event *hwc = &event->hw; in handle_associated_event() local 754 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
|
| /linux/arch/x86/events/amd/ |
| H A D | iommu.c | 210 struct hw_perf_event *hwc = &event->hw; in perf_iommu_event_init() local 242 struct hw_perf_event *hwc = &ev->hw; in perf_iommu_enable_event() local 272 struct hw_perf_event *hwc = &event->hw; in perf_iommu_disable_event() local 281 struct hw_perf_event *hwc = &event->hw; in perf_iommu_start() local 314 struct hw_perf_event *hwc = &event->hw; in perf_iommu_read() local 333 struct hw_perf_event *hwc = &event->hw; in perf_iommu_stop() local 369 struct hw_perf_event *hwc = &event->hw; in perf_iommu_del() local
|
| H A D | uncore.c | 138 struct hw_perf_event *hwc = &event->hw; in amd_uncore_read() local 168 struct hw_perf_event *hwc = &event->hw; in amd_uncore_start() local 186 struct hw_perf_event *hwc = &event->hw; in amd_uncore_stop() local 207 struct hw_perf_event *hwc = &event->hw; in amd_uncore_add() local 254 struct hw_perf_event *hwc = &event->hw; in amd_uncore_del() local 295 struct hw_perf_event *hwc = &event->hw; in amd_uncore_event_init() local 688 struct hw_perf_event *hwc = &event->hw; in amd_uncore_df_event_init() local 701 struct hw_perf_event *hwc = &event->hw; in amd_uncore_df_add() local 824 struct hw_perf_event *hwc = &event->hw; in amd_uncore_l3_event_init() local 959 struct hw_perf_event *hwc = &event->hw; in amd_uncore_umc_event_init() local [all …]
|
| H A D | core.c | 350 static inline unsigned int amd_get_event_code(struct hw_perf_event *hwc) in amd_get_event_code() 355 static inline bool amd_is_pair_event_code(struct hw_perf_event *hwc) in amd_is_pair_event_code() 392 static inline int amd_is_nb_event(struct hw_perf_event *hwc) in amd_is_nb_event() 487 struct hw_perf_event *hwc = &event->hw; in __amd_get_nb_event_constraints() local 784 struct hw_perf_event *hwc = &event->hw; in amd_pmu_v2_enable_event() local 962 struct hw_perf_event *hwc; in amd_pmu_v2_handle_irq() local 1166 struct hw_perf_event *hwc = &event->hw; in amd_get_event_constraints_f15h() local 1241 struct hw_perf_event *hwc = &event->hw; in amd_get_event_constraints_f17h() local 1252 struct hw_perf_event *hwc = &event->hw; in amd_put_event_constraints_f17h() local 1282 struct hw_perf_event *hwc = &event->hw; in amd_get_event_constraints_f19h() local
|
| H A D | power.c | 49 struct hw_perf_event *hwc = &event->hw; in event_update() local 93 struct hw_perf_event *hwc = &event->hw; in pmu_event_stop() local 112 struct hw_perf_event *hwc = &event->hw; in pmu_event_add() local
|
| /linux/arch/sh/kernel/ |
| H A D | perf_event.c | 103 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local 159 struct hw_perf_event *hwc, int idx) in sh_perf_event_update() 202 struct hw_perf_event *hwc = &event->hw; in sh_pmu_stop() local 220 struct hw_perf_event *hwc = &event->hw; in sh_pmu_start() local 247 struct hw_perf_event *hwc = &event->hw; in sh_pmu_add() local
|
| /linux/drivers/dma/idxd/ |
| H A D | perfmon.c | 97 struct hw_perf_event *hwc = &event->hw; in perfmon_assign_hw_event() local 201 struct hw_perf_event *hwc = &event->hw; in perfmon_pmu_read_counter() local 215 struct hw_perf_event *hwc = &event->hw; in perfmon_pmu_event_update() local 293 struct hw_perf_event *hwc = &event->hw; in perfmon_pmu_event_start() local 343 struct hw_perf_event *hwc = &event->hw; in perfmon_pmu_event_stop() local 381 struct hw_perf_event *hwc = &event->hw; in perfmon_pmu_event_add() local
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_pmu.c | 211 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_event_init() local 227 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_start() local 269 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_read() local 299 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_stop() local 334 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_add() local 385 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_del() local
|