Lines Matching refs:pe
228 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_start() local
243 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_start()
252 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, in amdgpu_perf_start()
266 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read() local
277 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
293 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
303 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_stop()
325 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_add() local
329 switch (pe->pmu_perf_type) { in amdgpu_perf_add()
345 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_add()
371 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_del() local
380 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_del()
561 struct amdgpu_pmu_entry *pe, *temp; in amdgpu_pmu_fini() local
563 list_for_each_entry_safe(pe, temp, &amdgpu_pmu_list, entry) { in amdgpu_pmu_fini()
564 if (pe->adev != adev) in amdgpu_pmu_fini()
566 list_del(&pe->entry); in amdgpu_pmu_fini()
567 perf_pmu_unregister(&pe->pmu); in amdgpu_pmu_fini()
568 kfree(pe->pmu.attr_groups); in amdgpu_pmu_fini()
569 kfree(pe->fmt_attr_group.attrs); in amdgpu_pmu_fini()
570 kfree(pe->fmt_attr); in amdgpu_pmu_fini()
571 kfree(pe->evt_attr_group.attrs); in amdgpu_pmu_fini()
572 kfree(pe->evt_attr); in amdgpu_pmu_fini()
573 kfree(pe); in amdgpu_pmu_fini()