Lines Matching defs:args

50 				struct drm_i915_gem_pwrite *args,
137 struct drm_i915_gem_init *args = data;
143 if (args->gtt_start >= args->gtt_end ||
144 (args->gtt_end | args->gtt_start) & (PAGE_SIZE - 1))
152 i915_gem_setup_global_gtt(dev, args->gtt_start, args->gtt_end,
153 args->gtt_end);
154 dev_priv->gtt.mappable_end = args->gtt_end;
165 struct drm_i915_gem_get_aperture *args = data;
176 args->aper_size = dev_priv->gtt.total;
177 args->aper_available_size = args->aper_size -pinned;
228 struct drm_mode_create_dumb *args)
231 args->pitch = ALIGN(args->width * ((args->bpp + 7) / 8), 64);
232 args->size = args->pitch * args->height;
234 args->size, &args->handle);
250 struct drm_i915_gem_create *args = data;
252 args->size, &args->handle);
308 struct drm_i915_gem_pread *args,
317 uint64_t data_ptr = args->data_ptr;
320 uint32_t *user_data = (uint32_t *)(uintptr_t)args->data_ptr;
322 remain = args->size;
348 offset = args->offset;
387 obj->base.kaddr + args->offset,
388 args->size);
405 struct drm_i915_gem_pread *args = data;
409 if (args->size == 0)
416 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
423 if (args->offset > obj->base.size ||
424 args->size > obj->base.size - args->offset) {
432 ret = i915_gem_shmem_pread(dev, obj, args, file);
446 struct drm_i915_gem_pwrite *args,
463 user_data = (uint32_t *)(uintptr_t)args->data_ptr;
465 ret = DRM_COPY_FROM_USER(obj->base.kaddr + args->offset, user_data, args->size);
480 struct drm_i915_gem_pwrite *args,
490 uint64_t data_ptr = args->data_ptr;
494 uint32_t *user_data = (uint32_t *)(uintptr_t)args->data_ptr;
496 remain = args->size;
534 offset = args->offset;
570 ret = DRM_COPY_FROM_USER(obj->base.kaddr + args->offset,
572 args->size);
593 struct drm_i915_gem_pwrite *args = data;
597 if (args->size == 0)
604 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
611 if (args->offset > obj->base.size ||
612 args->size > obj->base.size - args->offset) {
629 ret = i915_gem_phys_pwrite(dev, obj, args, file);
636 ret = i915_gem_gtt_pwrite_fast(dev, obj, args, file);
647 ret = i915_gem_shmem_pwrite(dev, obj, args, file);
910 struct drm_i915_gem_set_domain *args = data;
912 uint32_t read_domains = args->read_domains;
913 uint32_t write_domain = args->write_domain;
933 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
974 struct drm_i915_gem_sw_finish *args = data;
982 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
1010 struct drm_i915_gem_mmap *args = data;
1018 obj = drm_gem_object_lookup(dev, file, args->handle);
1041 args->addr_ptr = (uint64_t)(uintptr_t)vvaddr;
1280 struct drm_i915_gem_mmap_gtt *args = data;
1282 return i915_gem_mmap_gtt(file, dev, args->handle, &args->offset);
1968 struct drm_i915_gem_wait *args = data;
1976 if (args->timeout_ns >= 0) {
1977 timeout = drv_usectohz(args->timeout_ns / 1000);
1984 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->bo_handle));
2006 if (!args->timeout_ns) {
2017 args->timeout_ns = drv_hztousec(timeout) * 1000;
2853 struct drm_i915_gem_caching *args = data;
2861 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
2867 args->caching = obj->cache_level != I915_CACHE_NONE;
2877 struct drm_i915_gem_caching *args = data;
2882 switch (args->caching) {
2897 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3143 struct drm_i915_gem_pin *args = data;
3151 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3159 args->handle);
3167 ret = i915_gem_object_pin(obj, args->alignment, true, false);
3176 args->offset = obj->gtt_offset;
3188 struct drm_i915_gem_pin *args = data;
3196 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3204 args->handle);
3225 struct drm_i915_gem_busy *args = data;
3233 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
3246 args->busy = obj->active;
3248 args->busy |= intel_ring_flag(obj->ring) << 16;
3268 struct drm_i915_gem_madvise *args = data;
3271 args->retained = 0;
3944 struct drm_i915_gem_pwrite *args,
3952 user_data = (char __user *) (uintptr_t) args->data_ptr;
3953 obj_addr = (void *)(uintptr_t)(obj->phys_obj->handle->vaddr + args->offset);
3955 DRM_DEBUG("obj_addr %p, %ld\n", obj_addr, args->size);
3956 ret = DRM_COPY_FROM_USER(obj_addr, user_data, args->size);