Lines Matching defs:args
300 struct drm_i915_gem_set_tiling *args = data;
305 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
310 args->stride, obj->base.size, args->tiling_mode)) {
320 if (args->tiling_mode == I915_TILING_NONE) {
321 args->swizzle_mode = I915_BIT_6_SWIZZLE_NONE;
322 args->stride = 0;
324 if (args->tiling_mode == I915_TILING_X)
325 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_x;
327 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_y;
336 if (args->swizzle_mode == I915_BIT_6_SWIZZLE_9_17)
337 args->swizzle_mode = I915_BIT_6_SWIZZLE_9;
338 if (args->swizzle_mode == I915_BIT_6_SWIZZLE_9_10_17)
339 args->swizzle_mode = I915_BIT_6_SWIZZLE_9_10;
342 if (args->swizzle_mode == I915_BIT_6_SWIZZLE_UNKNOWN) {
343 args->tiling_mode = I915_TILING_NONE;
344 args->swizzle_mode = I915_BIT_6_SWIZZLE_NONE;
345 args->stride = 0;
350 if (args->tiling_mode != obj->tiling_mode ||
351 args->stride != obj->stride) {
368 i915_gem_object_fence_ok(obj, args->tiling_mode));
374 args->tiling_mode,
385 obj->tiling_mode = args->tiling_mode;
386 obj->stride = args->stride;
393 args->stride = obj->stride;
394 args->tiling_mode = obj->tiling_mode;
423 struct drm_i915_gem_get_tiling *args = data;
427 obj = to_intel_bo(drm_gem_object_lookup(dev, file, args->handle));
433 args->tiling_mode = obj->tiling_mode;
436 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_x;
439 args->swizzle_mode = dev_priv->mm.bit_6_swizzle_y;
442 args->swizzle_mode = I915_BIT_6_SWIZZLE_NONE;
449 if (args->swizzle_mode == I915_BIT_6_SWIZZLE_9_17)
450 args->swizzle_mode = I915_BIT_6_SWIZZLE_9;
451 if (args->swizzle_mode == I915_BIT_6_SWIZZLE_9_10_17)
452 args->swizzle_mode = I915_BIT_6_SWIZZLE_9_10;