Home
last modified time | relevance | path

Searched refs:cliprects (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/i915/
Di915_ioc32.c44 u32 cliprects; /* pointer to userspace cliprects */ member
65 || __put_user((int __user *)(unsigned long)batchbuffer32.cliprects, in compat_i915_batchbuffer()
66 &batchbuffer->cliprects)) in compat_i915_batchbuffer()
79 u32 cliprects; /* pointer to userspace cliprects */ member
100 || __put_user((int __user *)(unsigned long)cmdbuffer32.cliprects, in compat_i915_cmdbuffer()
101 &cmdbuffer->cliprects)) in compat_i915_cmdbuffer()
Di915_dma.c445 struct drm_clip_rect *cliprects, in i915_dispatch_cmdbuffer() argument
462 ret = i915_emit_box(dev, &cliprects[i], in i915_dispatch_cmdbuffer()
479 struct drm_clip_rect *cliprects) in i915_dispatch_batchbuffer() argument
495 ret = i915_emit_box(dev, &cliprects[i], in i915_dispatch_batchbuffer()
625 struct drm_clip_rect *cliprects = NULL; in i915_batchbuffer() local
644 cliprects = kcalloc(batch->num_cliprects, in i915_batchbuffer()
647 if (cliprects == NULL) in i915_batchbuffer()
650 ret = copy_from_user(cliprects, batch->cliprects, in i915_batchbuffer()
660 ret = i915_dispatch_batchbuffer(dev, batch, cliprects); in i915_batchbuffer()
667 kfree(cliprects); in i915_batchbuffer()
[all …]
Di915_gem_execbuffer.c842 struct drm_clip_rect *cliprects = NULL; in i915_gem_do_execbuffer() local
940 if (args->num_cliprects > UINT_MAX / sizeof(*cliprects)) { in i915_gem_do_execbuffer()
946 cliprects = kmalloc(args->num_cliprects * sizeof(*cliprects), in i915_gem_do_execbuffer()
948 if (cliprects == NULL) { in i915_gem_do_execbuffer()
953 if (copy_from_user(cliprects, in i915_gem_do_execbuffer()
955 sizeof(*cliprects)*args->num_cliprects)) { in i915_gem_do_execbuffer()
1053 if (cliprects) { in i915_gem_do_execbuffer()
1055 ret = i915_emit_box(dev, &cliprects[i], in i915_gem_do_execbuffer()
1085 kfree(cliprects); in i915_gem_do_execbuffer()