Home
last modified time | relevance | path

Searched refs:hwc (Results 1 – 25 of 91) sorted by relevance

1234

/Linux-v5.15/drivers/net/ethernet/microsoft/mana/
Dhw_channel.c7 static int mana_hwc_get_msg_index(struct hw_channel_context *hwc, u16 *msg_id) in mana_hwc_get_msg_index() argument
9 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_get_msg_index()
13 down(&hwc->sema); in mana_hwc_get_msg_index()
17 index = find_first_zero_bit(hwc->inflight_msg_res.map, in mana_hwc_get_msg_index()
18 hwc->inflight_msg_res.size); in mana_hwc_get_msg_index()
20 bitmap_set(hwc->inflight_msg_res.map, index, 1); in mana_hwc_get_msg_index()
29 static void mana_hwc_put_msg_index(struct hw_channel_context *hwc, u16 msg_id) in mana_hwc_put_msg_index() argument
31 struct gdma_resource *r = &hwc->inflight_msg_res; in mana_hwc_put_msg_index()
35 bitmap_clear(hwc->inflight_msg_res.map, msg_id, 1); in mana_hwc_put_msg_index()
38 up(&hwc->sema); in mana_hwc_put_msg_index()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dhw_table.c34 struct mlx5_sf_hwc_table hwc[MLX5_SF_HWC_MAX]; member
42 return &dev->priv.sf_hw_table->hwc[idx]; in mlx5_sf_controller_to_hwc()
47 struct mlx5_sf_hwc_table *hwc; in mlx5_sf_sw_to_hw_id() local
49 hwc = mlx5_sf_controller_to_hwc(dev, controller); in mlx5_sf_sw_to_hw_id()
50 return hwc->start_fn_id + sw_id; in mlx5_sf_sw_to_hw_id()
53 static u16 mlx5_sf_hw_to_sw_id(struct mlx5_sf_hwc_table *hwc, u16 hw_id) in mlx5_sf_hw_to_sw_id() argument
55 return hw_id - hwc->start_fn_id; in mlx5_sf_hw_to_sw_id()
63 for (i = 0; i < ARRAY_SIZE(table->hwc); i++) { in mlx5_sf_table_fn_to_hwc()
64 if (table->hwc[i].max_fn && in mlx5_sf_table_fn_to_hwc()
65 fn_id >= table->hwc[i].start_fn_id && in mlx5_sf_table_fn_to_hwc()
[all …]
/Linux-v5.15/drivers/iio/buffer/
Dindustrialio-hw-consumer.c53 struct iio_hw_consumer *hwc, struct iio_dev *indio_dev) in iio_hw_consumer_get_buffer() argument
58 list_for_each_entry(buf, &hwc->buffers, head) { in iio_hw_consumer_get_buffer()
72 list_add_tail(&buf->head, &hwc->buffers); in iio_hw_consumer_get_buffer()
86 struct iio_hw_consumer *hwc; in iio_hw_consumer_alloc() local
90 hwc = kzalloc(sizeof(*hwc), GFP_KERNEL); in iio_hw_consumer_alloc()
91 if (!hwc) in iio_hw_consumer_alloc()
94 INIT_LIST_HEAD(&hwc->buffers); in iio_hw_consumer_alloc()
96 hwc->channels = iio_channel_get_all(dev); in iio_hw_consumer_alloc()
97 if (IS_ERR(hwc->channels)) { in iio_hw_consumer_alloc()
98 ret = PTR_ERR(hwc->channels); in iio_hw_consumer_alloc()
[all …]
/Linux-v5.15/arch/alpha/kernel/
Dperf_event.c253 struct hw_perf_event *hwc, int idx) in alpha_perf_event_set_period() argument
255 long left = local64_read(&hwc->period_left); in alpha_perf_event_set_period()
256 long period = hwc->sample_period; in alpha_perf_event_set_period()
261 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
262 hwc->last_period = period; in alpha_perf_event_set_period()
268 local64_set(&hwc->period_left, left); in alpha_perf_event_set_period()
269 hwc->last_period = period; in alpha_perf_event_set_period()
283 local64_set(&hwc->prev_count, (unsigned long)(-left)); in alpha_perf_event_set_period()
308 struct hw_perf_event *hwc, int idx, long ovf) in alpha_perf_event_update() argument
314 prev_raw_count = local64_read(&hwc->prev_count); in alpha_perf_event_update()
[all …]
/Linux-v5.15/arch/s390/include/asm/
Dperf_event.h68 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) argument
69 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) argument
70 #define TEAR_REG(hwc) ((hwc)->last_tag) argument
71 #define SAMPL_RATE(hwc) ((hwc)->event_base) argument
72 #define SAMPL_FLAGS(hwc) ((hwc)->config_base) argument
73 #define SAMPL_DIAG_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_DIAG_MODE) argument
74 #define SDB_FULL_BLOCKS(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FULL_BLOCKS) argument
75 #define SAMPLE_FREQ_MODE(hwc) (SAMPL_FLAGS(hwc) & PERF_CPUM_SF_FREQ_MODE) argument
/Linux-v5.15/arch/x86/events/amd/
Dibs.c105 perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_period) in perf_event_set_period() argument
107 s64 left = local64_read(&hwc->period_left); in perf_event_set_period()
108 s64 period = hwc->sample_period; in perf_event_set_period()
116 local64_set(&hwc->period_left, left); in perf_event_set_period()
117 hwc->last_period = period; in perf_event_set_period()
123 local64_set(&hwc->period_left, left); in perf_event_set_period()
124 hwc->last_period = period; in perf_event_set_period()
150 struct hw_perf_event *hwc = &event->hw; in perf_event_try_update() local
162 prev_raw_count = local64_read(&hwc->prev_count); in perf_event_try_update()
163 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in perf_event_try_update()
[all …]
Diommu.c208 struct hw_perf_event *hwc = &event->hw; in perf_iommu_event_init() local
226 hwc->conf = event->attr.config; in perf_iommu_event_init()
227 hwc->conf1 = event->attr.config1; in perf_iommu_event_init()
240 struct hw_perf_event *hwc = &ev->hw; in perf_iommu_enable_event() local
241 u8 bank = hwc->iommu_bank; in perf_iommu_enable_event()
242 u8 cntr = hwc->iommu_cntr; in perf_iommu_enable_event()
245 reg = GET_CSOURCE(hwc); in perf_iommu_enable_event()
248 reg = GET_DEVID_MASK(hwc); in perf_iommu_enable_event()
249 reg = GET_DEVID(hwc) | (reg << 32); in perf_iommu_enable_event()
254 reg = GET_PASID_MASK(hwc); in perf_iommu_enable_event()
[all …]
Duncore.c84 struct hw_perf_event *hwc = &event->hw; in amd_uncore_read() local
93 prev = local64_read(&hwc->prev_count); in amd_uncore_read()
94 rdpmcl(hwc->event_base_rdpmc, new); in amd_uncore_read()
95 local64_set(&hwc->prev_count, new); in amd_uncore_read()
103 struct hw_perf_event *hwc = &event->hw; in amd_uncore_start() local
106 wrmsrl(hwc->event_base, (u64)local64_read(&hwc->prev_count)); in amd_uncore_start()
108 hwc->state = 0; in amd_uncore_start()
109 wrmsrl(hwc->config_base, (hwc->config | ARCH_PERFMON_EVENTSEL_ENABLE)); in amd_uncore_start()
115 struct hw_perf_event *hwc = &event->hw; in amd_uncore_stop() local
117 wrmsrl(hwc->config_base, hwc->config); in amd_uncore_stop()
[all …]
Dpower.c45 struct hw_perf_event *hwc = &event->hw; in event_update() local
49 prev_pwr_acc = hwc->pwr_acc; in event_update()
50 prev_ptsc = hwc->ptsc; in event_update()
89 struct hw_perf_event *hwc = &event->hw; in pmu_event_stop() local
92 if (!(hwc->state & PERF_HES_STOPPED)) in pmu_event_stop()
93 hwc->state |= PERF_HES_STOPPED; in pmu_event_stop()
96 if ((mode & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in pmu_event_stop()
102 hwc->state |= PERF_HES_UPTODATE; in pmu_event_stop()
108 struct hw_perf_event *hwc = &event->hw; in pmu_event_add() local
110 hwc->state = PERF_HES_UPTODATE | PERF_HES_STOPPED; in pmu_event_add()
/Linux-v5.15/arch/arc/kernel/
Dperf_event.c119 struct hw_perf_event *hwc, int idx) in arc_perf_event_update() argument
121 u64 prev_raw_count = local64_read(&hwc->prev_count); in arc_perf_event_update()
129 local64_set(&hwc->prev_count, new_raw_count); in arc_perf_event_update()
131 local64_sub(delta, &hwc->period_left); in arc_perf_event_update()
169 struct hw_perf_event *hwc = &event->hw; in arc_pmu_event_init() local
173 hwc->sample_period = arc_pmu->max_period; in arc_pmu_event_init()
174 hwc->last_period = hwc->sample_period; in arc_pmu_event_init()
175 local64_set(&hwc->period_left, hwc->sample_period); in arc_pmu_event_init()
178 hwc->config = 0; in arc_pmu_event_init()
183 hwc->config |= ARC_REG_PCT_CONFIG_KERN; in arc_pmu_event_init()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c211 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_event_init() local
218 hwc->config = event->attr.config; in amdgpu_perf_event_init()
219 hwc->config_base = AMDGPU_PMU_PERF_TYPE_NONE; in amdgpu_perf_event_init()
227 struct hw_perf_event *hwc = &event->hw; in amdgpu_perf_start() local
233 if (WARN_ON_ONCE(!(hwc->state & PERF_HES_STOPPED))) in amdgpu_perf_start()
236 WARN_ON_ONCE(!(hwc->state & PERF_HES_UPTODATE)); in amdgpu_perf_start()
237 hwc->state = 0; in amdgpu_perf_start()
239 switch (hwc->config_base) { in amdgpu_perf_start()
244 hwc->config, 0 /* unused */, in amdgpu_perf_start()
249 hwc->idx = target_cntr; in amdgpu_perf_start()
[all …]
/Linux-v5.15/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c187 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_event_init() local
226 hwc->idx = -1; in hisi_uncore_pmu_event_init()
227 hwc->config_base = event->attr.config; in hisi_uncore_pmu_event_init()
243 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_enable_event() local
245 hisi_pmu->ops->write_evtype(hisi_pmu, hwc->idx, in hisi_uncore_pmu_enable_event()
251 hisi_pmu->ops->enable_counter_int(hisi_pmu, hwc); in hisi_uncore_pmu_enable_event()
252 hisi_pmu->ops->enable_counter(hisi_pmu, hwc); in hisi_uncore_pmu_enable_event()
261 struct hw_perf_event *hwc = &event->hw; in hisi_uncore_pmu_disable_event() local
263 hisi_pmu->ops->disable_counter(hisi_pmu, hwc); in hisi_uncore_pmu_disable_event()
264 hisi_pmu->ops->disable_counter_int(hisi_pmu, hwc); in hisi_uncore_pmu_disable_event()
[all …]
Dhisi_uncore_ddrc_pmu.c59 #define GET_DDRC_EVENTID(hwc) (hwc->config_base & 0x7) argument
82 struct hw_perf_event *hwc) in hisi_ddrc_pmu_v1_read_counter() argument
85 hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx)); in hisi_ddrc_pmu_v1_read_counter()
89 struct hw_perf_event *hwc, u64 val) in hisi_ddrc_pmu_v1_write_counter() argument
92 ddrc_pmu->base + hisi_ddrc_pmu_v1_get_counter_offset(hwc->idx)); in hisi_ddrc_pmu_v1_write_counter()
96 struct hw_perf_event *hwc) in hisi_ddrc_pmu_v2_read_counter() argument
99 hisi_ddrc_pmu_v2_get_counter_offset(hwc->idx)); in hisi_ddrc_pmu_v2_read_counter()
103 struct hw_perf_event *hwc, u64 val) in hisi_ddrc_pmu_v2_write_counter() argument
106 ddrc_pmu->base + hisi_ddrc_pmu_v2_get_counter_offset(hwc->idx)); in hisi_ddrc_pmu_v2_write_counter()
146 struct hw_perf_event *hwc) in hisi_ddrc_pmu_v1_enable_counter() argument
[all …]
/Linux-v5.15/arch/xtensa/kernel/
Dperf_event.c137 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_update() argument
143 prev_raw_count = local64_read(&hwc->prev_count); in xtensa_perf_event_update()
145 } while (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in xtensa_perf_event_update()
151 local64_sub(delta, &hwc->period_left); in xtensa_perf_event_update()
155 struct hw_perf_event *hwc, int idx) in xtensa_perf_event_set_period() argument
163 s64 period = hwc->sample_period; in xtensa_perf_event_set_period()
165 left = local64_read(&hwc->period_left); in xtensa_perf_event_set_period()
168 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
169 hwc->last_period = period; in xtensa_perf_event_set_period()
173 local64_set(&hwc->period_left, left); in xtensa_perf_event_set_period()
[all …]
/Linux-v5.15/arch/riscv/kernel/
Dperf_event.c216 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_read() local
219 int idx = hwc->idx; in riscv_pmu_read()
223 prev_raw_count = local64_read(&hwc->prev_count); in riscv_pmu_read()
226 oldval = local64_cmpxchg(&hwc->prev_count, prev_raw_count, in riscv_pmu_read()
253 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_stop() local
255 WARN_ON_ONCE(hwc->state & PERF_HES_STOPPED); in riscv_pmu_stop()
256 hwc->state |= PERF_HES_STOPPED; in riscv_pmu_stop()
258 if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { in riscv_pmu_stop()
260 hwc->state |= PERF_HES_UPTODATE; in riscv_pmu_stop()
269 struct hw_perf_event *hwc = &event->hw; in riscv_pmu_start() local
[all …]
/Linux-v5.15/drivers/perf/
Dthunderx2_pmu.c325 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_l3c() local
332 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_l3c()
334 hwc->event_base = (unsigned long)tx2_pmu->base in init_cntr_base_l3c()
341 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_dmc() local
347 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_dmc()
350 hwc->event_base = (unsigned long)tx2_pmu->base in init_cntr_base_dmc()
357 struct hw_perf_event *hwc = &event->hw; in init_cntr_base_ccpi2() local
362 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_ccpi2()
364 hwc->event_base = (unsigned long)tx2_pmu->base; in init_cntr_base_ccpi2()
370 struct hw_perf_event *hwc = &event->hw; in uncore_start_event_l3c() local
[all …]
Darm_pmu.c199 struct hw_perf_event *hwc = &event->hw; in armpmu_event_set_period() local
200 s64 left = local64_read(&hwc->period_left); in armpmu_event_set_period()
201 s64 period = hwc->sample_period; in armpmu_event_set_period()
208 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
209 hwc->last_period = period; in armpmu_event_set_period()
215 local64_set(&hwc->period_left, left); in armpmu_event_set_period()
216 hwc->last_period = period; in armpmu_event_set_period()
229 local64_set(&hwc->prev_count, (u64)-left); in armpmu_event_set_period()
241 struct hw_perf_event *hwc = &event->hw; in armpmu_event_update() local
246 prev_raw_count = local64_read(&hwc->prev_count); in armpmu_event_update()
[all …]
Dqcom_l2_pmu.c299 struct hw_perf_event *hwc = &event->hw; in l2_cache_event_update() local
301 u32 idx = hwc->idx; in l2_cache_event_update()
304 prev = local64_read(&hwc->prev_count); in l2_cache_event_update()
306 } while (local64_cmpxchg(&hwc->prev_count, prev, now) != prev); in l2_cache_event_update()
320 struct hw_perf_event *hwc) in l2_cache_cluster_set_period() argument
322 u32 idx = hwc->idx; in l2_cache_cluster_set_period()
335 local64_set(&hwc->prev_count, new); in l2_cache_cluster_set_period()
342 struct hw_perf_event *hwc = &event->hw; in l2_cache_get_event_idx() local
347 if (hwc->config_base == L2CYCLE_CTR_RAW_CODE) { in l2_cache_get_event_idx()
364 group = L2_EVT_GROUP(hwc->config_base); in l2_cache_get_event_idx()
[all …]
/Linux-v5.15/arch/nds32/kernel/
Dperf_event_cpu.c186 struct hw_perf_event *hwc = &event->hw; in nds32_pmu_event_set_period() local
187 s64 left = local64_read(&hwc->period_left); in nds32_pmu_event_set_period()
188 s64 period = hwc->sample_period; in nds32_pmu_event_set_period()
192 if (unlikely(period != hwc->last_period)) in nds32_pmu_event_set_period()
193 left = period - (hwc->last_period - left); in nds32_pmu_event_set_period()
197 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period()
198 hwc->last_period = period; in nds32_pmu_event_set_period()
204 local64_set(&hwc->period_left, left); in nds32_pmu_event_set_period()
205 hwc->last_period = period; in nds32_pmu_event_set_period()
216 local64_set(&hwc->prev_count, (u64)(-left)); in nds32_pmu_event_set_period()
[all …]
/Linux-v5.15/arch/arm/kernel/
Dperf_event_xscale.c175 struct hw_perf_event *hwc; in xscale1pmu_handle_irq() local
183 hwc = &event->hw; in xscale1pmu_handle_irq()
185 perf_sample_data_init(&data, 0, hwc->last_period); in xscale1pmu_handle_irq()
208 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_enable_event() local
210 int idx = hwc->idx; in xscale1pmu_enable_event()
219 evt = (hwc->config_base << XSCALE1_COUNT0_EVT_SHFT) | in xscale1pmu_enable_event()
224 evt = (hwc->config_base << XSCALE1_COUNT1_EVT_SHFT) | in xscale1pmu_enable_event()
244 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_disable_event() local
246 int idx = hwc->idx; in xscale1pmu_disable_event()
278 struct hw_perf_event *hwc = &event->hw; in xscale1pmu_get_event_idx() local
[all …]
/Linux-v5.15/arch/x86/events/intel/
Duncore_nhmex.c247 struct hw_perf_event *hwc = &event->hw; in nhmex_uncore_msr_enable_event() local
249 if (hwc->idx == UNCORE_PMC_IDX_FIXED) in nhmex_uncore_msr_enable_event()
250 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
252 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_uncore_msr_enable_event()
254 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
352 struct hw_perf_event *hwc = &event->hw; in nhmex_bbox_hw_config() local
353 struct hw_perf_event_extra *reg1 = &hwc->extra_reg; in nhmex_bbox_hw_config()
354 struct hw_perf_event_extra *reg2 = &hwc->branch_reg; in nhmex_bbox_hw_config()
357 ctr = (hwc->config & NHMEX_B_PMON_CTR_MASK) >> in nhmex_bbox_hw_config()
359 ev_sel = (hwc->config & NHMEX_B_PMON_CTL_EV_SEL_MASK) >> in nhmex_bbox_hw_config()
[all …]
/Linux-v5.15/arch/s390/kernel/
Dperf_cpum_sf.c331 static unsigned long sfb_max_limit(struct hw_perf_event *hwc) in sfb_max_limit() argument
333 return SAMPL_DIAG_MODE(hwc) ? CPUM_SF_MAX_SDB * CPUM_SF_SDB_DIAG_FACTOR in sfb_max_limit()
338 struct hw_perf_event *hwc) in sfb_pending_allocs() argument
341 return SFB_ALLOC_REG(hwc); in sfb_pending_allocs()
342 if (SFB_ALLOC_REG(hwc) > sfb->num_sdb) in sfb_pending_allocs()
343 return SFB_ALLOC_REG(hwc) - sfb->num_sdb; in sfb_pending_allocs()
348 struct hw_perf_event *hwc) in sfb_has_pending_allocs() argument
350 return sfb_pending_allocs(sfb, hwc) > 0; in sfb_has_pending_allocs()
353 static void sfb_account_allocs(unsigned long num, struct hw_perf_event *hwc) in sfb_account_allocs() argument
356 num = min_t(unsigned long, num, sfb_max_limit(hwc) - SFB_ALLOC_REG(hwc)); in sfb_account_allocs()
[all …]
/Linux-v5.15/arch/sh/kernel/
Dperf_event.c103 struct hw_perf_event *hwc = &event->hw; in __hw_perf_event_init() local
153 hwc->config |= config; in __hw_perf_event_init()
159 struct hw_perf_event *hwc, int idx) in sh_perf_event_update() argument
178 prev_raw_count = local64_read(&hwc->prev_count); in sh_perf_event_update()
181 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in sh_perf_event_update()
202 struct hw_perf_event *hwc = &event->hw; in sh_pmu_stop() local
203 int idx = hwc->idx; in sh_pmu_stop()
206 sh_pmu->disable(hwc, idx); in sh_pmu_stop()
220 struct hw_perf_event *hwc = &event->hw; in sh_pmu_start() local
221 int idx = hwc->idx; in sh_pmu_start()
[all …]
/Linux-v5.15/arch/x86/events/
Dcore.c109 struct hw_perf_event *hwc = &event->hw; in x86_perf_event_update() local
114 if (unlikely(!hwc->event_base)) in x86_perf_event_update()
128 prev_raw_count = local64_read(&hwc->prev_count); in x86_perf_event_update()
129 rdpmcl(hwc->event_base_rdpmc, new_raw_count); in x86_perf_event_update()
131 if (local64_cmpxchg(&hwc->prev_count, prev_raw_count, in x86_perf_event_update()
147 local64_sub(delta, &hwc->period_left); in x86_perf_event_update()
357 set_ext_hw_attr(struct hw_perf_event *hwc, struct perf_event *event) in set_ext_hw_attr() argument
387 hwc->config |= val; in set_ext_hw_attr()
474 struct hw_perf_event *hwc = &event->hw; in x86_setup_perfctr() local
478 hwc->sample_period = x86_pmu.max_period; in x86_setup_perfctr()
[all …]
/Linux-v5.15/arch/mips/kernel/
Dperf_event_mipsxx.c315 struct hw_perf_event *hwc) in mipsxx_pmu_alloc_counter() argument
325 cntr_mask = (hwc->event_base >> 10) & 0xffff; in mipsxx_pmu_alloc_counter()
327 cntr_mask = (hwc->event_base >> 8) & 0xffff; in mipsxx_pmu_alloc_counter()
410 struct hw_perf_event *hwc, in mipspmu_event_set_period() argument
413 u64 left = local64_read(&hwc->period_left); in mipspmu_event_set_period()
414 u64 period = hwc->sample_period; in mipspmu_event_set_period()
420 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
421 hwc->last_period = period; in mipspmu_event_set_period()
426 local64_set(&hwc->period_left, left); in mipspmu_event_set_period()
427 hwc->last_period = period; in mipspmu_event_set_period()
[all …]

1234