• Home
  • Raw
  • Download

Lines Matching refs:gpu

37 		struct etnaviv_gpu *g = priv->gpu[i];  in load_gpu()
44 priv->gpu[i] = NULL; in load_gpu()
67 struct etnaviv_gpu *gpu = priv->gpu[i]; in etnaviv_open() local
70 if (gpu) { in etnaviv_open()
71 sched = &gpu->sched; in etnaviv_open()
94 struct etnaviv_gpu *gpu = priv->gpu[i]; in etnaviv_postclose() local
96 if (gpu) in etnaviv_postclose()
130 static int etnaviv_mmu_show(struct etnaviv_gpu *gpu, struct seq_file *m) in etnaviv_mmu_show() argument
135 seq_printf(m, "Active Objects (%s):\n", dev_name(gpu->dev)); in etnaviv_mmu_show()
142 mutex_lock(&gpu->lock); in etnaviv_mmu_show()
143 mmu_context = gpu->mmu_context; in etnaviv_mmu_show()
146 mutex_unlock(&gpu->lock); in etnaviv_mmu_show()
160 static void etnaviv_buffer_dump(struct etnaviv_gpu *gpu, struct seq_file *m) in etnaviv_buffer_dump() argument
162 struct etnaviv_cmdbuf *buf = &gpu->buffer; in etnaviv_buffer_dump()
181 static int etnaviv_ring_show(struct etnaviv_gpu *gpu, struct seq_file *m) in etnaviv_ring_show() argument
183 seq_printf(m, "Ring Buffer (%s): ", dev_name(gpu->dev)); in etnaviv_ring_show()
185 mutex_lock(&gpu->lock); in etnaviv_ring_show()
186 etnaviv_buffer_dump(gpu, m); in etnaviv_ring_show()
187 mutex_unlock(&gpu->lock); in etnaviv_ring_show()
207 struct etnaviv_gpu *gpu; in show_each_gpu() local
208 int (*show)(struct etnaviv_gpu *gpu, struct seq_file *m) = in show_each_gpu()
214 gpu = priv->gpu[i]; in show_each_gpu()
215 if (!gpu) in show_each_gpu()
218 ret = show(gpu, m); in show_each_gpu()
251 struct etnaviv_gpu *gpu; in etnaviv_ioctl_get_param() local
256 gpu = priv->gpu[args->pipe]; in etnaviv_ioctl_get_param()
257 if (!gpu) in etnaviv_ioctl_get_param()
260 return etnaviv_gpu_get_param(gpu, args->param, &args->value); in etnaviv_ioctl_get_param()
344 struct etnaviv_gpu *gpu; in etnaviv_ioctl_wait_fence() local
352 gpu = priv->gpu[args->pipe]; in etnaviv_ioctl_wait_fence()
353 if (!gpu) in etnaviv_ioctl_wait_fence()
359 return etnaviv_gpu_wait_fence_interruptible(gpu, args->fence, in etnaviv_ioctl_wait_fence()
394 struct etnaviv_gpu *gpu; in etnaviv_ioctl_gem_wait() local
403 gpu = priv->gpu[args->pipe]; in etnaviv_ioctl_gem_wait()
404 if (!gpu) in etnaviv_ioctl_gem_wait()
414 ret = etnaviv_gem_wait_bo(gpu, obj, timeout); in etnaviv_ioctl_gem_wait()
426 struct etnaviv_gpu *gpu; in etnaviv_ioctl_pm_query_dom() local
431 gpu = priv->gpu[args->pipe]; in etnaviv_ioctl_pm_query_dom()
432 if (!gpu) in etnaviv_ioctl_pm_query_dom()
435 return etnaviv_pm_query_dom(gpu, args); in etnaviv_ioctl_pm_query_dom()
443 struct etnaviv_gpu *gpu; in etnaviv_ioctl_pm_query_sig() local
448 gpu = priv->gpu[args->pipe]; in etnaviv_ioctl_pm_query_sig()
449 if (!gpu) in etnaviv_ioctl_pm_query_sig()
452 return etnaviv_pm_query_sig(gpu, args); in etnaviv_ioctl_pm_query_sig()