Lines Matching full:pe

64 	struct amdgpu_pmu_entry *pe = container_of(event->pmu,  in amdgpu_perf_start()  local
74 switch (pe->pmu_perf_type) { in amdgpu_perf_start()
77 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, 1); in amdgpu_perf_start()
79 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, 0); in amdgpu_perf_start()
93 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read() local
102 switch (pe->pmu_perf_type) { in amdgpu_perf_read()
104 pe->adev->df.funcs->pmc_get_count(pe->adev, hwc->config, in amdgpu_perf_read()
120 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
127 switch (pe->pmu_perf_type) { in amdgpu_perf_stop()
129 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, 0); in amdgpu_perf_stop()
151 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_add() local
157 switch (pe->pmu_perf_type) { in amdgpu_perf_add()
159 retval = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_add()
180 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_del() local
186 switch (pe->pmu_perf_type) { in amdgpu_perf_del()
188 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, 1); in amdgpu_perf_del()
272 struct amdgpu_pmu_entry *pe, *temp; in amdgpu_pmu_fini() local
274 list_for_each_entry_safe(pe, temp, &amdgpu_pmu_list, entry) { in amdgpu_pmu_fini()
275 if (pe->adev == adev) { in amdgpu_pmu_fini()
276 list_del(&pe->entry); in amdgpu_pmu_fini()
277 perf_pmu_unregister(&pe->pmu); in amdgpu_pmu_fini()
278 kfree(pe); in amdgpu_pmu_fini()