/linux-master/include/linux/iio/ |
H A D | hw-consumer.h | 15 void iio_hw_consumer_free(struct iio_hw_consumer *hwc); 17 int iio_hw_consumer_enable(struct iio_hw_consumer *hwc); 18 void iio_hw_consumer_disable(struct iio_hw_consumer *hwc);
|
/linux-master/arch/s390/include/asm/ |
H A D | perf_event.h | 67 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) 68 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) 69 #define TEAR_REG(hwc) ((hwc)->last_tag) 70 #define SAMPL_RATE(hwc) ((hwc)->event_base) 71 #define SAMPL_FLAGS(hwc) ((hwc) [all...] |
/linux-master/drivers/iio/buffer/ |
H A D | industrialio-hw-consumer.c | 53 struct iio_hw_consumer *hwc, struct iio_dev *indio_dev) 57 list_for_each_entry(buf, &hwc->buffers, head) { 72 list_add_tail(&buf->head, &hwc->buffers); 86 struct iio_hw_consumer *hwc; local 90 hwc = kzalloc(sizeof(*hwc), GFP_KERNEL); 91 if (!hwc) 94 INIT_LIST_HEAD(&hwc->buffers); 96 hwc->channels = iio_channel_get_all(dev); 97 if (IS_ERR(hwc 52 iio_hw_consumer_get_buffer( struct iio_hw_consumer *hwc, struct iio_dev *indio_dev) argument 129 iio_hw_consumer_free(struct iio_hw_consumer *hwc) argument 178 iio_hw_consumer_enable(struct iio_hw_consumer *hwc) argument 202 iio_hw_consumer_disable(struct iio_hw_consumer *hwc) argument [all...] |
/linux-master/drivers/net/ethernet/microsoft/mana/ |
H A D | hw_channel.c | 7 static int mana_hwc_get_msg_index(struct hw_channel_context *hwc, u16 *msg_id) argument 9 struct gdma_resource *r = &hwc->inflight_msg_res; 13 down(&hwc->sema); 17 index = find_first_zero_bit(hwc->inflight_msg_res.map, 18 hwc->inflight_msg_res.size); 20 bitmap_set(hwc->inflight_msg_res.map, index, 1); 29 static void mana_hwc_put_msg_index(struct hw_channel_context *hwc, u16 msg_id) argument 31 struct gdma_resource *r = &hwc->inflight_msg_res; 35 bitmap_clear(hwc->inflight_msg_res.map, msg_id, 1); 38 up(&hwc 54 mana_hwc_handle_resp(struct hw_channel_context *hwc, u32 resp_len, const struct gdma_resp_hdr *resp_msg) argument 106 struct hw_channel_context *hwc = ctx; local 204 struct hw_channel_context *hwc = ctx; local 250 struct hw_channel_context *hwc = ctx; local 256 mana_hwc_create_gdma_wq(struct hw_channel_context *hwc, enum gdma_queue_type type, u64 queue_size, struct gdma_queue **queue) argument 272 mana_hwc_create_gdma_cq(struct hw_channel_context *hwc, u64 queue_size, void *ctx, gdma_cq_callback *cb, struct gdma_queue *parent_eq, struct gdma_queue **queue) argument 290 mana_hwc_create_gdma_eq(struct hw_channel_context *hwc, u64 queue_size, void *ctx, gdma_eq_callback *cb, struct gdma_queue **queue) argument 350 mana_hwc_create_cq(struct hw_channel_context *hwc, u16 q_depth, gdma_eq_callback *callback, void *ctx, hwc_rx_event_handler_t *rx_ev_hdlr, void *rx_ev_ctx, hwc_tx_event_handler_t *tx_ev_hdlr, void *tx_ev_ctx, struct hwc_cq **hwc_cq_ptr) argument 411 mana_hwc_alloc_dma_buf(struct hw_channel_context *hwc, u16 q_depth, u32 max_msg_size, struct hwc_dma_buf **dma_buf_ptr) argument 459 mana_hwc_dealloc_dma_buf(struct hw_channel_context *hwc, struct hwc_dma_buf *dma_buf) argument 470 mana_hwc_destroy_wq(struct hw_channel_context *hwc, struct hwc_wq *hwc_wq) argument 482 mana_hwc_create_wq(struct hw_channel_context *hwc, enum gdma_queue_type q_type, u16 q_depth, u32 max_msg_size, struct hwc_cq *hwc_cq, struct hwc_wq **hwc_wq_ptr) argument 573 mana_hwc_init_inflight_msg(struct hw_channel_context *hwc, u16 num_msg) argument 586 mana_hwc_test_channel(struct hw_channel_context *hwc, u16 q_depth, u32 max_req_msg_size, u32 max_resp_msg_size) argument 620 struct hw_channel_context *hwc = gc->hwc.driver_data; local 658 mana_hwc_init_queues(struct hw_channel_context *hwc, u16 q_depth, u32 max_req_msg_size, u32 max_resp_msg_size) argument 706 struct hw_channel_context *hwc; local 761 struct hw_channel_context *hwc = gc->hwc.driver_data; local 803 mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, const void *req, u32 resp_len, void *resp) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | hw_table.c | 36 struct mlx5_sf_hwc_table hwc[MLX5_SF_HWC_MAX]; member in struct:mlx5_sf_hw_table 44 return &dev->priv.sf_hw_table->hwc[idx]; 49 struct mlx5_sf_hwc_table *hwc; local 51 hwc = mlx5_sf_controller_to_hwc(dev, controller); 52 return hwc->start_fn_id + sw_id; 55 static u16 mlx5_sf_hw_to_sw_id(struct mlx5_sf_hwc_table *hwc, u16 hw_id) argument 57 return hw_id - hwc->start_fn_id; 65 for (i = 0; i < ARRAY_SIZE(table->hwc); i++) { 66 if (table->hwc[i].max_fn && 67 fn_id >= table->hwc[ 77 struct mlx5_sf_hwc_table *hwc; local 105 struct mlx5_sf_hwc_table *hwc; local 172 mlx5_sf_hw_table_hwc_sf_free(struct mlx5_core_dev *dev, struct mlx5_sf_hwc_table *hwc, int idx) argument 185 struct mlx5_sf_hwc_table *hwc; local 208 mlx5_sf_hw_table_hwc_dealloc_all(struct mlx5_core_dev *dev, struct mlx5_sf_hwc_table *hwc) argument 225 mlx5_sf_hw_table_hwc_init(struct mlx5_sf_hwc_table *hwc, u16 max_fn, u16 base_id) argument 242 mlx5_sf_hw_table_hwc_cleanup(struct mlx5_sf_hwc_table *hwc) argument 349 struct mlx5_sf_hwc_table *hwc; local [all...] |
/linux-master/arch/alpha/kernel/ |
H A D | perf_event.c | 253 struct hw_perf_event *hwc, int idx) 255 long left = local64_read(&hwc->period_left); 256 long period = hwc->sample_period; 261 local64_set(&hwc->period_left, left); 262 hwc->last_period = period; 268 local64_set(&hwc->period_left, left); 269 hwc->last_period = period; 283 local64_set(&hwc->prev_count, (unsigned long)(-left)); 308 struct hw_perf_event *hwc, int idx, long ovf) 314 prev_raw_count = local64_read(&hwc 252 alpha_perf_event_set_period(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 307 alpha_perf_event_update(struct perf_event *event, struct hw_perf_event *hwc, int idx, long ovf) argument 413 struct hw_perf_event *hwc = &pe->hw; local 436 struct hw_perf_event *hwc = &event->hw; local 488 struct hw_perf_event *hwc = &event->hw; local 526 struct hw_perf_event *hwc = &event->hw; local 534 struct hw_perf_event *hwc = &event->hw; local 554 struct hw_perf_event *hwc = &event->hw; local 605 struct hw_perf_event *hwc = &event->hw; local 806 struct hw_perf_event *hwc; local [all...] |
/linux-master/drivers/perf/ |
H A D | riscv_pmu.c | 151 struct hw_perf_event *hwc = &event->hw; local 153 if (hwc->idx == -1) 157 cwidth = rvpmu->ctr_get_width(hwc->idx); 165 struct hw_perf_event *hwc = &event->hw; local 176 prev_raw_count = local64_read(&hwc->prev_count); 178 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, 184 local64_sub(delta, &hwc->period_left); 191 struct hw_perf_event *hwc = &event->hw; local 194 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); 196 if (!(hwc 208 struct hw_perf_event *hwc = &event->hw; local 246 struct hw_perf_event *hwc = &event->hw; local 265 struct hw_perf_event *hwc = &event->hw; local 289 struct hw_perf_event *hwc = &event->hw; local 310 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | arm_pmu.c | 203 struct hw_perf_event *hwc = &event->hw; local 204 s64 left = local64_read(&hwc->period_left); 205 s64 period = hwc->sample_period; 212 local64_set(&hwc->period_left, left); 213 hwc->last_period = period; 219 local64_set(&hwc->period_left, left); 220 hwc->last_period = period; 233 local64_set(&hwc->prev_count, (u64)-left); 245 struct hw_perf_event *hwc = &event->hw; local 250 prev_raw_count = local64_read(&hwc 275 struct hw_perf_event *hwc = &event->hw; local 291 struct hw_perf_event *hwc = &event->hw; local 317 struct hw_perf_event *hwc = &event->hw; local 333 struct hw_perf_event *hwc = &event->hw; local 447 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | thunderx2_pmu.c | 325 struct hw_perf_event *hwc = &event->hw; local 332 hwc->config_base = (unsigned long)tx2_pmu->base 334 hwc->event_base = (unsigned long)tx2_pmu->base 341 struct hw_perf_event *hwc = &event->hw; local 347 hwc->config_base = (unsigned long)tx2_pmu->base 350 hwc->event_base = (unsigned long)tx2_pmu->base 357 struct hw_perf_event *hwc = &event->hw; local 362 hwc->config_base = (unsigned long)tx2_pmu->base 364 hwc->event_base = (unsigned long)tx2_pmu->base; 370 struct hw_perf_event *hwc local 391 struct hw_perf_event *hwc = &event->hw; local 416 struct hw_perf_event *hwc = &event->hw; local 433 struct hw_perf_event *hwc = &event->hw; local 457 struct hw_perf_event *hwc = &event->hw; local 466 struct hw_perf_event *hwc = &event->hw; local 574 struct hw_perf_event *hwc = &event->hw; local 612 struct hw_perf_event *hwc = &event->hw; local 636 struct hw_perf_event *hwc = &event->hw; local 654 struct hw_perf_event *hwc = &event->hw; local 678 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | starfive_starlink_pmu.c | 158 struct hw_perf_event *hwc = &event->hw; local 167 local64_set(&hwc->prev_count, val); 168 if (hwc->config == STARLINK_CYCLES) 178 struct hw_perf_event *hwc = &event->hw; local 193 if (hwc->config == STARLINK_CYCLES) { 215 struct hw_perf_event *hwc = &event->hw; local 224 if (hwc->config == STARLINK_CYCLES) 235 struct hw_perf_event *hwc = &event->hw; local 236 int idx = hwc->idx; 242 prev_raw_count = local64_read(&hwc 261 struct hw_perf_event *hwc = &event->hw; local 280 struct hw_perf_event *hwc = &event->hw; local 295 struct hw_perf_event *hwc = &event->hw; local 335 struct hw_perf_event *hwc = &event->hw; local 371 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | marvell_cn10k_ddr_pmu.c | 326 struct hw_perf_event *hwc = &event->hw; local 350 hwc->idx = -1; 409 struct hw_perf_event *hwc = &event->hw; local 413 prev_count = local64_read(&hwc->prev_count); 414 new_count = cn10k_ddr_perf_read_counter(pmu, hwc->idx); 415 } while (local64_xchg(&hwc->prev_count, new_count) != prev_count); 425 struct hw_perf_event *hwc = &event->hw; local 426 int counter = hwc->idx; 428 local64_set(&hwc->prev_count, 0); 432 hwc 438 struct hw_perf_event *hwc = &event->hw; local 484 struct hw_perf_event *hwc = &event->hw; local 498 struct hw_perf_event *hwc = &event->hw; local 530 struct hw_perf_event *hwc; local 553 struct hw_perf_event *hwc; local [all...] |
/linux-master/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) argument 300 struct hw_perf_event *hwc, 304 u64 left = local64_read(&hwc->period_left); 305 u64 period = hwc->sample_period; 310 local64_set(&hwc->period_left, left); 311 hwc->last_period = period; 316 local64_set(&hwc->period_left, left); 317 hwc->last_period = period; 323 local64_set(&hwc->period_left, left); 326 local64_set(&hwc 299 loongarch_pmu_event_set_period(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 335 loongarch_pmu_event_update(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 358 struct hw_perf_event *hwc = &event->hw; local 374 struct hw_perf_event *hwc = &event->hw; local 389 struct hw_perf_event *hwc = &event->hw; local 423 struct hw_perf_event *hwc = &event->hw; local 437 struct hw_perf_event *hwc = &event->hw; local 485 struct hw_perf_event *hwc = &event->hw; local 750 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/arch/x86/events/amd/ |
H A D | iommu.c | 208 struct hw_perf_event *hwc = &event->hw; local 226 hwc->conf = event->attr.config; 227 hwc->conf1 = event->attr.config1; 240 struct hw_perf_event *hwc = &ev->hw; local 241 u8 bank = hwc->iommu_bank; 242 u8 cntr = hwc->iommu_cntr; 245 reg = GET_CSOURCE(hwc); 248 reg = GET_DEVID_MASK(hwc); 249 reg = GET_DEVID(hwc) | (reg << 32); 254 reg = GET_PASID_MASK(hwc); 270 struct hw_perf_event *hwc = &event->hw; local 279 struct hw_perf_event *hwc = &event->hw; local 312 struct hw_perf_event *hwc = &event->hw; local 331 struct hw_perf_event *hwc = &event->hw; local 367 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | uncore.c | 93 struct hw_perf_event *hwc = &event->hw; local 102 prev = local64_read(&hwc->prev_count); 108 if (hwc->event_base_rdpmc < 0) 109 rdmsrl(hwc->event_base, new); 111 rdpmcl(hwc->event_base_rdpmc, new); 113 local64_set(&hwc->prev_count, new); 121 struct hw_perf_event *hwc = &event->hw; local 124 wrmsrl(hwc->event_base, (u64)local64_read(&hwc->prev_count)); 126 hwc 133 struct hw_perf_event *hwc = &event->hw; local 149 struct hw_perf_event *hwc = &event->hw; local 194 struct hw_perf_event *hwc = &event->hw; local 210 struct hw_perf_event *hwc = &event->hw; local 592 struct hw_perf_event *hwc = &event->hw; local 608 struct hw_perf_event *hwc = &event->hw; local 728 struct hw_perf_event *hwc = &event->hw; local 860 struct hw_perf_event *hwc = &event->hw; local 873 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | ibs.c | 101 perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_period) argument 103 s64 left = local64_read(&hwc->period_left); 104 s64 period = hwc->sample_period; 112 local64_set(&hwc->period_left, left); 113 hwc->last_period = period; 119 local64_set(&hwc->period_left, left); 120 hwc->last_period = period; 146 struct hw_perf_event *hwc = &event->hw; local 158 prev_raw_count = local64_read(&hwc->prev_count); 159 if (!local64_try_cmpxchg(&hwc 273 struct hw_perf_event *hwc = &event->hw; local 334 perf_ibs_set_period(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 *period) argument 391 perf_ibs_enable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) argument 409 perf_ibs_disable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) argument 427 struct hw_perf_event *hwc = &event->hw; local 458 struct hw_perf_event *hwc = &event->hw; local 1026 struct hw_perf_event *hwc; local [all...] |
/linux-master/drivers/perf/hisilicon/ |
H A D | hisi_uncore_pmu.c | 186 struct hw_perf_event *hwc = &event->hw; local 225 hwc->idx = -1; 226 hwc->config_base = event->attr.config; 245 struct hw_perf_event *hwc = &event->hw; local 247 hisi_pmu->ops->write_evtype(hisi_pmu, hwc->idx, 253 hisi_pmu->ops->enable_counter_int(hisi_pmu, hwc); 254 hisi_pmu->ops->enable_counter(hisi_pmu, hwc); 263 struct hw_perf_event *hwc = &event->hw; local 265 hisi_pmu->ops->disable_counter(hisi_pmu, hwc); 266 hisi_pmu->ops->disable_counter_int(hisi_pmu, hwc); 275 struct hw_perf_event *hwc = &event->hw; local 295 struct hw_perf_event *hwc = &event->hw; local 316 struct hw_perf_event *hwc = &event->hw; local 338 struct hw_perf_event *hwc = &event->hw; local 356 struct hw_perf_event *hwc = &event->hw; local 379 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | hisi_uncore_ddrc_pmu.c | 59 #define GET_DDRC_EVENTID(hwc) (hwc->config_base & 0x7) 82 struct hw_perf_event *hwc) 85 hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx)); 89 struct hw_perf_event *hwc, u64 val) 92 ddrc_pmu->base + hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx)); 96 struct hw_perf_event *hwc) 99 hisi_ddrc_pmu_v2_get_counter_offset(hwc->idx)); 103 struct hw_perf_event *hwc, u64 val) 106 ddrc_pmu->base + hisi_ddrc_pmu_v2_get_counter_offset(hwc 81 hisi_ddrc_pmu_v1_read_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 88 hisi_ddrc_pmu_v1_write_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc, u64 val) argument 95 hisi_ddrc_pmu_v2_read_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 102 hisi_ddrc_pmu_v2_write_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc, u64 val) argument 145 hisi_ddrc_pmu_v1_enable_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 156 hisi_ddrc_pmu_v1_disable_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 171 struct hw_perf_event *hwc = &event->hw; local 206 hisi_ddrc_pmu_v2_enable_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 216 hisi_ddrc_pmu_v2_disable_counter(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 226 hisi_ddrc_pmu_v1_enable_counter_int(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 237 hisi_ddrc_pmu_v1_disable_counter_int(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 248 hisi_ddrc_pmu_v2_enable_counter_int(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument 258 hisi_ddrc_pmu_v2_disable_counter_int(struct hisi_pmu *ddrc_pmu, struct hw_perf_event *hwc) argument [all...] |
H A D | hisi_pcie_pmu.c | 263 struct hw_perf_event *hwc = &event->hw; local 266 hisi_pcie_pmu_writeq(pcie_pmu, HISI_PCIE_EVENT_CTRL, hwc->idx, reg); 272 struct hw_perf_event *hwc = &event->hw; local 274 hisi_pcie_pmu_writeq(pcie_pmu, HISI_PCIE_EVENT_CTRL, hwc->idx, HISI_PCIE_INIT_SET); 367 struct hw_perf_event *hwc = &event->hw; local 374 hwc->event_base = HISI_PCIE_EXT_CNT; 376 hwc->event_base = HISI_PCIE_CNT; 431 struct hw_perf_event *hwc = &event->hw; local 435 prev_cnt = local64_read(&hwc->prev_count); 437 } while (local64_cmpxchg(&hwc 452 struct hw_perf_event *hwc = &event->hw; local 460 hisi_pcie_pmu_enable_counter(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) argument 470 hisi_pcie_pmu_disable_counter(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) argument 480 hisi_pcie_pmu_enable_int(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) argument 487 hisi_pcie_pmu_disable_int(struct hisi_pcie_pmu *pcie_pmu, struct hw_perf_event *hwc) argument 503 struct hw_perf_event *hwc = &event->hw; local 529 struct hw_perf_event *hwc = &event->hw; local 547 struct hw_perf_event *hwc = &event->hw; local 573 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/arch/arc/kernel/ |
H A D | perf_event.c | 281 struct hw_perf_event *hwc, int idx) 283 u64 prev_raw_count = local64_read(&hwc->prev_count); 288 * We aren't afraid of hwc->prev_count changing beneath our feet 291 local64_set(&hwc->prev_count, new_raw_count); 293 local64_sub(delta, &hwc->period_left); 331 struct hw_perf_event *hwc = &event->hw; local 335 hwc->sample_period = arc_pmu->max_period; 336 hwc->last_period = hwc->sample_period; 337 local64_set(&hwc 280 arc_perf_event_update(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 407 struct hw_perf_event *hwc = &event->hw; local 453 struct hw_perf_event *hwc = &event->hw; local 478 struct hw_perf_event *hwc = &event->hw; local 525 struct hw_perf_event *hwc = &event->hw; local 580 struct hw_perf_event *hwc; local [all...] |
/linux-master/arch/xtensa/kernel/ |
H A D | perf_event.c | 146 struct hw_perf_event *hwc, int idx) 152 prev_raw_count = local64_read(&hwc->prev_count); 154 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, 160 local64_sub(delta, &hwc->period_left); 164 struct hw_perf_event *hwc, int idx) 172 s64 period = hwc->sample_period; 174 left = local64_read(&hwc->period_left); 177 local64_set(&hwc->period_left, left); 178 hwc->last_period = period; 182 local64_set(&hwc 145 xtensa_perf_event_update(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 163 xtensa_perf_event_set_period(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 251 struct hw_perf_event *hwc = &event->hw; local 269 struct hw_perf_event *hwc = &event->hw; local 293 struct hw_perf_event *hwc = &event->hw; local 377 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/arch/sh/kernel/ |
H A D | perf_event.c | 103 struct hw_perf_event *hwc = &event->hw; local 153 hwc->config |= config; 159 struct hw_perf_event *hwc, int idx) 178 prev_raw_count = local64_read(&hwc->prev_count); 181 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, 202 struct hw_perf_event *hwc = &event->hw; local 203 int idx = hwc->idx; 206 sh_pmu->disable(hwc, idx); 220 struct hw_perf_event *hwc = &event->hw; local 221 int idx = hwc 158 sh_perf_event_update(struct perf_event *event, struct hw_perf_event *hwc, int idx) argument 247 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_pmu.c | 211 struct hw_perf_event *hwc = &event->hw; local 218 hwc->config = event->attr.config; 219 hwc->config_base = AMDGPU_PMU_PERF_TYPE_NONE; 227 struct hw_perf_event *hwc = &event->hw; local 233 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) 240 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); 241 hwc->state = 0; 243 switch (hwc->config_base) { 248 hwc->config, 0 /* unused */, 253 hwc 269 struct hw_perf_event *hwc = &event->hw; local 299 struct hw_perf_event *hwc = &event->hw; local 334 struct hw_perf_event *hwc = &event->hw; local 385 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/arch/arm/kernel/ |
H A D | perf_event_xscale.c | 175 struct hw_perf_event *hwc; local 183 hwc = &event->hw; 185 perf_sample_data_init(&data, 0, hwc->last_period); 207 struct hw_perf_event *hwc = &event->hw; local 208 int idx = hwc->idx; 217 evt = (hwc->config_base << XSCALE1_COUNT0_EVT_SHFT) | 222 evt = (hwc->config_base << XSCALE1_COUNT1_EVT_SHFT) | 239 struct hw_perf_event *hwc = &event->hw; local 240 int idx = hwc->idx; 270 struct hw_perf_event *hwc local 313 struct hw_perf_event *hwc = &event->hw; local 334 struct hw_perf_event *hwc = &event->hw; local 507 struct hw_perf_event *hwc; local 539 struct hw_perf_event *hwc = &event->hw; local 581 struct hw_perf_event *hwc = &event->hw; local 662 struct hw_perf_event *hwc = &event->hw; local 689 struct hw_perf_event *hwc = &event->hw; local [all...] |
H A D | perf_event_v6.c | 175 struct hw_perf_event *hwc = &event->hw; local 176 int counter = hwc->idx; 193 struct hw_perf_event *hwc = &event->hw; local 194 int counter = hwc->idx; 209 struct hw_perf_event *hwc = &event->hw; local 210 int idx = hwc->idx; 217 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT0_SHIFT) | 221 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT1_SHIFT) | 261 struct hw_perf_event *hwc; local 274 hwc 318 struct hw_perf_event *hwc = &event->hw; local 350 struct hw_perf_event *hwc = &event->hw; local [all...] |
/linux-master/arch/x86/events/intel/ |
H A D | uncore_nhmex.c | 247 struct hw_perf_event *hwc = &event->hw; local 249 if (hwc->idx == UNCORE_PMC_IDX_FIXED) 250 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); 252 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); 254 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); 352 struct hw_perf_event *hwc = &event->hw; local 353 struct hw_perf_event_extra *reg1 = &hwc->extra_reg; 354 struct hw_perf_event_extra *reg2 = &hwc 379 struct hw_perf_event *hwc = &event->hw; local 443 struct hw_perf_event *hwc = &event->hw; local 464 struct hw_perf_event *hwc = &event->hw; local 631 struct hw_perf_event *hwc = &event->hw; local 837 struct hw_perf_event *hwc = &event->hw; local 946 struct hw_perf_event *hwc = &event->hw; local 980 struct hw_perf_event *hwc = &event->hw; local 1088 struct hw_perf_event *hwc = &event->hw; local 1113 struct hw_perf_event *hwc = &event->hw; local [all...] |