Lines Matching refs:dev
42 tu_drm_submitqueue_new(const struct tu_device *dev,
52 int ret = safe_ioctl(dev->physical_device->local_fd, IOCTL_KGSL_DRAWCTXT_CREATE, &req);
62 tu_drm_submitqueue_close(const struct tu_device *dev, uint32_t queue_id)
68 safe_ioctl(dev->physical_device->local_fd, IOCTL_KGSL_DRAWCTXT_DESTROY, &req);
72 tu_bo_init_new(struct tu_device *dev, struct tu_bo **out_bo, uint64_t size,
84 ret = safe_ioctl(dev->physical_device->local_fd,
87 return vk_errorf(dev, VK_ERROR_OUT_OF_DEVICE_MEMORY,
91 struct tu_bo* bo = tu_device_lookup_bo(dev, req.id);
107 tu_bo_init_dmabuf(struct tu_device *dev,
123 ret = safe_ioctl(dev->physical_device->local_fd,
126 return vk_errorf(dev, VK_ERROR_OUT_OF_DEVICE_MEMORY,
133 ret = safe_ioctl(dev->physical_device->local_fd,
136 return vk_errorf(dev, VK_ERROR_OUT_OF_DEVICE_MEMORY,
139 struct tu_bo* bo = tu_device_lookup_bo(dev, req.id);
155 tu_bo_export_dmabuf(struct tu_device *dev, struct tu_bo *bo)
163 tu_bo_map(struct tu_device *dev, struct tu_bo *bo)
170 dev->physical_device->local_fd, offset);
172 return vk_error(dev, VK_ERROR_MEMORY_MAP_FAILED);
180 tu_bo_finish(struct tu_device *dev, struct tu_bo *bo)
197 safe_ioctl(dev->physical_device->local_fd, IOCTL_KGSL_GPUMEM_FREE_ID, &req);
215 static const char path[] = "/dev/kgsl-3d0";
703 tu_device_wait_u_trace(struct tu_device *dev, struct tu_u_trace_syncobj *syncobj)
710 tu_device_get_gpu_timestamp(struct tu_device *dev, uint64_t *ts)
717 tu_device_get_suspend_count(struct tu_device *dev, uint64_t *suspend_count)