Lines Matching refs:perf_fd
72 device->perf_fd = -1; in anv_device_perf_init()
245 if (device->perf_fd < 0) { in anv_QueueSetPerformanceConfigurationINTEL()
246 device->perf_fd = anv_device_perf_open(device, config->config_id); in anv_QueueSetPerformanceConfigurationINTEL()
247 if (device->perf_fd < 0) in anv_QueueSetPerformanceConfigurationINTEL()
250 int ret = gen_ioctl(device->perf_fd, I915_PERF_IOCTL_CONFIG, in anv_QueueSetPerformanceConfigurationINTEL()
265 if (device->perf_fd >= 0) { in anv_UninitializePerformanceApiINTEL()
266 close(device->perf_fd); in anv_UninitializePerformanceApiINTEL()
267 device->perf_fd = -1; in anv_UninitializePerformanceApiINTEL()
371 assert(device->perf_fd == -1); in anv_AcquireProfilingLockKHR()
379 device->perf_fd = fd; in anv_AcquireProfilingLockKHR()
389 assert(device->perf_fd >= 0); in anv_ReleaseProfilingLockKHR()
390 close(device->perf_fd); in anv_ReleaseProfilingLockKHR()
392 device->perf_fd = -1; in anv_ReleaseProfilingLockKHR()