Lines Matching refs: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->conf, 1); in amdgpu_perf_start()
79 pe->adev->df_funcs->pmc_start(pe->adev, hwc->conf, 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->conf, 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->conf, 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, hwc->conf, 1); in amdgpu_perf_add()
179 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_del() local
185 switch (pe->pmu_perf_type) { in amdgpu_perf_del()
187 pe->adev->df_funcs->pmc_stop(pe->adev, hwc->conf, 1); in amdgpu_perf_del()
271 struct amdgpu_pmu_entry *pe, *temp; in amdgpu_pmu_fini() local
273 list_for_each_entry_safe(pe, temp, &amdgpu_pmu_list, entry) { in amdgpu_pmu_fini()
274 if (pe->adev == adev) { in amdgpu_pmu_fini()
275 list_del(&pe->entry); in amdgpu_pmu_fini()
276 perf_pmu_unregister(&pe->pmu); in amdgpu_pmu_fini()
277 kfree(pe); in amdgpu_pmu_fini()