Lines Matching refs:args
45 struct drm_gem_close args; in drm_tegra_bo_free() local
50 memset(&args, 0, sizeof(args)); in drm_tegra_bo_free()
51 args.handle = bo->handle; in drm_tegra_bo_free()
53 drmIoctl(drm->fd, DRM_IOCTL_GEM_CLOSE, &args); in drm_tegra_bo_free()
111 struct drm_tegra_gem_create args; in drm_tegra_bo_new() local
127 memset(&args, 0, sizeof(args)); in drm_tegra_bo_new()
128 args.flags = flags; in drm_tegra_bo_new()
129 args.size = size; in drm_tegra_bo_new()
131 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_CREATE, &args, in drm_tegra_bo_new()
132 sizeof(args)); in drm_tegra_bo_new()
139 bo->handle = args.handle; in drm_tegra_bo_new()
203 struct drm_gem_flink args; in drm_tegra_bo_name_get() local
206 args.handle = bo->handle; in drm_tegra_bo_name_get()
212 ret = drmIoctl(bo->drm->fd, DRM_IOCTL_GEM_FLINK, &args); in drm_tegra_bo_name_get()
218 bo->name = args.name; in drm_tegra_bo_name_get()
253 struct drm_tegra_gem_mmap args; in drm_tegra_bo_map() local
256 memset(&args, 0, sizeof(args)); in drm_tegra_bo_map()
257 args.handle = bo->handle; in drm_tegra_bo_map()
259 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_MMAP, &args, in drm_tegra_bo_map()
260 sizeof(args)); in drm_tegra_bo_map()
264 bo->offset = args.offset; in drm_tegra_bo_map()
298 struct drm_tegra_gem_get_flags args; in drm_tegra_bo_get_flags() local
305 memset(&args, 0, sizeof(args)); in drm_tegra_bo_get_flags()
306 args.handle = bo->handle; in drm_tegra_bo_get_flags()
308 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_GET_FLAGS, &args, in drm_tegra_bo_get_flags()
309 sizeof(args)); in drm_tegra_bo_get_flags()
314 *flags = args.flags; in drm_tegra_bo_get_flags()
321 struct drm_tegra_gem_get_flags args; in drm_tegra_bo_set_flags() local
328 memset(&args, 0, sizeof(args)); in drm_tegra_bo_set_flags()
329 args.handle = bo->handle; in drm_tegra_bo_set_flags()
330 args.flags = flags; in drm_tegra_bo_set_flags()
332 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_SET_FLAGS, &args, in drm_tegra_bo_set_flags()
333 sizeof(args)); in drm_tegra_bo_set_flags()
343 struct drm_tegra_gem_get_tiling args; in drm_tegra_bo_get_tiling() local
350 memset(&args, 0, sizeof(args)); in drm_tegra_bo_get_tiling()
351 args.handle = bo->handle; in drm_tegra_bo_get_tiling()
353 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_GET_TILING, &args, in drm_tegra_bo_get_tiling()
354 sizeof(args)); in drm_tegra_bo_get_tiling()
359 tiling->mode = args.mode; in drm_tegra_bo_get_tiling()
360 tiling->value = args.value; in drm_tegra_bo_get_tiling()
369 struct drm_tegra_gem_set_tiling args; in drm_tegra_bo_set_tiling() local
376 memset(&args, 0, sizeof(args)); in drm_tegra_bo_set_tiling()
377 args.handle = bo->handle; in drm_tegra_bo_set_tiling()
378 args.mode = tiling->mode; in drm_tegra_bo_set_tiling()
379 args.value = tiling->value; in drm_tegra_bo_set_tiling()
381 err = drmCommandWriteRead(drm->fd, DRM_TEGRA_GEM_SET_TILING, &args, in drm_tegra_bo_set_tiling()
382 sizeof(args)); in drm_tegra_bo_set_tiling()