Lines Matching refs:args

48 				struct drm_i915_gem_pwrite *args,
135 struct drm_i915_gem_init *args = data;
141 if (args->gtt_start >= args->gtt_end ||
142 (args->gtt_end | args->gtt_start) & (PAGE_SIZE - 1))
150 i915_gem_setup_global_gtt(dev, args->gtt_start, args->gtt_end,
151 args->gtt_end);
152 dev_priv->gtt.mappable_end = args->gtt_end;
163 struct drm_i915_gem_get_aperture *args = data;
174 args->aper_size = dev_priv->gtt.total;
175 args->aper_available_size = args->aper_size -pinned;
226 struct drm_mode_create_dumb *args)
229 args->pitch = ALIGN(args->width * ((args->bpp + 7) / 8), 64);
230 args->size = args->pitch * args->height;
232 args->size, &args->handle);
248 struct drm_i915_gem_create *args = data;
250 args->size, &args->handle);
306 struct drm_i915_gem_pread *args,
315 uint64_t data_ptr = args->data_ptr;
318 uint32_t *user_data = (uint32_t *)(uintptr_t)args->data_ptr;
320 remain = args->size;
346 offset = args->offset;
385 obj->base.kaddr + args->offset,
386 args->size);
403 struct drm_i915_gem_pread *args = data;
407 if (args->size == 0)
414 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
421 if (args->offset > obj->base.size ||
422 args->size > obj->base.size - args->offset) {
430 ret = i915_gem_shmem_pread(dev, obj, args, file);
444 struct drm_i915_gem_pwrite *args,
461 user_data = (uint32_t *)(uintptr_t)args->data_ptr;
463 ret = DRM_COPY_FROM_USER(obj->base.kaddr + args->offset, user_data, args->size);
478 struct drm_i915_gem_pwrite *args,
488 uint64_t data_ptr = args->data_ptr;
492 uint32_t *user_data = (uint32_t *)(uintptr_t)args->data_ptr;
494 remain = args->size;
532 offset = args->offset;
568 ret = DRM_COPY_FROM_USER(obj->base.kaddr + args->offset,
570 args->size);
591 struct drm_i915_gem_pwrite *args = data;
595 if (args->size == 0)
602 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
609 if (args->offset > obj->base.size ||
610 args->size > obj->base.size - args->offset) {
627 ret = i915_gem_phys_pwrite(dev, obj, args, file);
634 ret = i915_gem_gtt_pwrite_fast(dev, obj, args, file);
645 ret = i915_gem_shmem_pwrite(dev, obj, args, file);
908 struct drm_i915_gem_set_domain *args = data;
910 uint32_t read_domains = args->read_domains;
911 uint32_t write_domain = args->write_domain;
931 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
972 struct drm_i915_gem_sw_finish *args = data;
980 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
1008 struct drm_i915_gem_mmap *args = data;
1016 obj = drm_gem_object_lookup(dev, file, args->handle);
1039 args->addr_ptr = (uint64_t)(uintptr_t)vvaddr;
1293 struct drm_i915_gem_mmap_gtt *args = data;
1295 return i915_gem_mmap_gtt(file, dev, args->handle, &args->offset);
1987 struct drm_i915_gem_wait *args = data;
1995 if (args->timeout_ns >= 0) {
1996 timeout = drv_usectohz(args->timeout_ns / 1000);
2003 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->bo_handle));
2025 if (!args->timeout_ns) {
2036 args->timeout_ns = drv_hztousec(timeout) * 1000;
2872 struct drm_i915_gem_caching *args = data;
2880 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
2886 args->caching = obj->cache_level != I915_CACHE_NONE;
2896 struct drm_i915_gem_caching *args = data;
2901 switch (args->caching) {
2916 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3162 struct drm_i915_gem_pin *args = data;
3170 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3178 args->handle);
3186 ret = i915_gem_object_pin(obj, args->alignment, true, false);
3195 args->offset = obj->gtt_offset;
3207 struct drm_i915_gem_pin *args = data;
3215 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3223 args->handle);
3244 struct drm_i915_gem_busy *args = data;
3252 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3265 args->busy = obj->active;
3267 args->busy |= intel_ring_flag(obj->ring) << 16;
3287 struct drm_i915_gem_madvise *args = data;
3290 args->retained = 0;
3963 struct drm_i915_gem_pwrite *args,
3971 user_data = (char __user *) (uintptr_t) args->data_ptr;
3972 obj_addr = (void *)(uintptr_t)(obj->phys_obj->handle->vaddr + args->offset);
3974 DRM_DEBUG("obj_addr %p, %ld\n", obj_addr, args->size);
3975 ret = DRM_COPY_FROM_USER(obj_addr, user_data, args->size);