Lines Matching full:pe

228 	struct amdgpu_pmu_entry *pe = container_of(event->pmu,  in amdgpu_perf_start()  local
236 if ((!pe->adev->df.funcs) || in amdgpu_perf_start()
237 (!pe->adev->df.funcs->pmc_start)) in amdgpu_perf_start()
247 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_start()
256 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, in amdgpu_perf_start()
270 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read() local
275 if ((!pe->adev->df.funcs) || in amdgpu_perf_read()
276 (!pe->adev->df.funcs->pmc_get_count)) in amdgpu_perf_read()
285 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
301 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
308 if ((!pe->adev->df.funcs) || in amdgpu_perf_stop()
309 (!pe->adev->df.funcs->pmc_stop)) in amdgpu_perf_stop()
315 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_stop()
337 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_add() local
341 if ((!pe->adev->df.funcs) || in amdgpu_perf_add()
342 (!pe->adev->df.funcs->pmc_start)) in amdgpu_perf_add()
345 switch (pe->pmu_perf_type) { in amdgpu_perf_add()
361 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_add()
387 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_del() local
390 if ((!pe->adev->df.funcs) || in amdgpu_perf_del()
391 (!pe->adev->df.funcs->pmc_stop)) in amdgpu_perf_del()
399 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_del()
580 struct amdgpu_pmu_entry *pe, *temp; in amdgpu_pmu_fini() local
582 list_for_each_entry_safe(pe, temp, &amdgpu_pmu_list, entry) { in amdgpu_pmu_fini()
583 if (pe->adev != adev) in amdgpu_pmu_fini()
585 list_del(&pe->entry); in amdgpu_pmu_fini()
586 perf_pmu_unregister(&pe->pmu); in amdgpu_pmu_fini()
587 kfree(pe->pmu.attr_groups); in amdgpu_pmu_fini()
588 kfree(pe->fmt_attr_group.attrs); in amdgpu_pmu_fini()
589 kfree(pe->fmt_attr); in amdgpu_pmu_fini()
590 kfree(pe->evt_attr_group.attrs); in amdgpu_pmu_fini()
591 kfree(pe->evt_attr); in amdgpu_pmu_fini()
592 kfree(pe); in amdgpu_pmu_fini()