Lines Matching refs:args

101         struct drm_radeon_gem_create args;  in bo_open()  local
103 args.size = size; in bo_open()
104 args.alignment = alignment; in bo_open()
105 args.initial_domain = bo->base.domains; in bo_open()
106 args.flags = 0; in bo_open()
107 args.handle = 0; in bo_open()
109 &args, sizeof(args)); in bo_open()
110 bo->base.handle = args.handle; in bo_open()
131 struct drm_gem_close args; in bo_unref() local
141 memset(&args, 0, sizeof(args)); in bo_unref()
144 args.handle = boi->handle; in bo_unref()
145 drmIoctl(boi->bom->fd, DRM_IOCTL_GEM_CLOSE, &args); in bo_unref()
154 struct drm_radeon_gem_mmap args; in bo_map() local
168 memset(&args, 0, sizeof(args)); in bo_map()
169 args.handle = boi->handle; in bo_map()
170 args.offset = 0; in bo_map()
171 args.size = (uint64_t)boi->size; in bo_map()
174 &args, in bo_map()
175 sizeof(args)); in bo_map()
181 ptr = drm_mmap(0, args.size, PROT_READ|PROT_WRITE, MAP_SHARED, boi->bom->fd, args.addr_ptr); in bo_map()
207 struct drm_radeon_gem_wait_idle args; in bo_wait() local
211 memset(&args, 0, sizeof(args)); in bo_wait()
212 args.handle = boi->handle; in bo_wait()
215 &args, sizeof(args)); in bo_wait()
222 struct drm_radeon_gem_busy args; in bo_is_busy() local
225 args.handle = boi->handle; in bo_is_busy()
226 args.domain = 0; in bo_is_busy()
229 &args, sizeof(args)); in bo_is_busy()
231 *domain = args.domain; in bo_is_busy()
238 struct drm_radeon_gem_set_tiling args; in bo_set_tiling() local
241 args.handle = boi->handle; in bo_set_tiling()
242 args.tiling_flags = tiling_flags; in bo_set_tiling()
243 args.pitch = pitch; in bo_set_tiling()
247 &args, in bo_set_tiling()
248 sizeof(args)); in bo_set_tiling()
255 struct drm_radeon_gem_set_tiling args = {}; in bo_get_tiling() local
258 args.handle = boi->handle; in bo_get_tiling()
262 &args, in bo_get_tiling()
263 sizeof(args)); in bo_get_tiling()
268 *tiling_flags = args.tiling_flags; in bo_get_tiling()
269 *pitch = args.pitch; in bo_get_tiling()
350 struct drm_radeon_gem_set_domain args; in radeon_gem_set_domain() local
353 args.handle = bo->handle; in radeon_gem_set_domain()
354 args.read_domains = read_domains; in radeon_gem_set_domain()
355 args.write_domain = write_domain; in radeon_gem_set_domain()
359 &args, in radeon_gem_set_domain()
360 sizeof(args)); in radeon_gem_set_domain()