Lines Matching defs:args

495 				  struct drm_i915_gem_execbuffer2 *args,
574 need_relocs = (args->flags & I915_EXEC_NO_RELOC) == 0;
744 struct drm_i915_gem_execbuffer2 *args,
753 u32 ctx_id = i915_execbuffer2_get_context_id(*args);
760 if (!i915_gem_check_execbuffer(args)) {
765 ret = validate_exec_list(exec, args->buffer_count);
770 if (args->flags & I915_EXEC_SECURE) {
776 if (args->flags & I915_EXEC_IS_PINNED)
779 switch (args->flags & I915_EXEC_RING_MASK) {
811 (int)(args->flags & I915_EXEC_RING_MASK));
816 (int)(args->flags & I915_EXEC_RING_MASK));
820 mode = args->flags & I915_EXEC_CONSTANTS_MASK;
845 if (args->buffer_count < 1) {
846 DRM_DEBUG("execbuf with %d buffers\n", args->buffer_count);
850 if (args->num_cliprects != 0) {
861 if (args->num_cliprects > UINT_MAX / sizeof(*cliprects)) {
863 args->num_cliprects);
867 cliprects = kcalloc(args->num_cliprects, sizeof(*cliprects),
876 (uintptr_t) args->cliprects_ptr,
877 sizeof(*cliprects) * args->num_cliprects)) {
893 eb = eb_create(args->buffer_count, file);
902 node->num = args->buffer_count;
908 for (i = 0; i < args->buffer_count; i++) {
944 need_relocs = (args->flags & I915_EXEC_NO_RELOC) == 0;
954 ret = i915_gem_execbuffer_relocate_slow(dev, args, file, ring,
957 args->buffer_count);
1002 if (args->flags & I915_EXEC_GEN7_SOL_RESET) {
1008 exec_start = batch_obj->gtt_offset + args->batch_start_offset;
1009 exec_len = args->batch_len;
1011 for (i = 0; i < args->num_cliprects; i++) {
1013 args->DR1, args->DR4);
1051 drm_free(cliprects, args->num_cliprects * sizeof(*cliprects),
1065 struct drm_i915_gem_execbuffer *args = data;
1071 if (args->buffer_count < 1) {
1072 DRM_DEBUG("execbuf with %d buffers\n", args->buffer_count);
1077 exec_list = drm_calloc(sizeof(*exec_list), args->buffer_count, DRM_MEM_DRIVER);
1078 exec2_list = drm_calloc(sizeof(*exec2_list), args->buffer_count, DRM_MEM_DRIVER);
1081 args->buffer_count);
1082 drm_free(exec_list, args->buffer_count * sizeof(*exec_list), DRM_MEM_DRIVER);
1083 drm_free(exec2_list, args->buffer_count * sizeof(*exec2_list), DRM_MEM_DRIVER);
1088 (uintptr_t) args->buffers_ptr,
1089 sizeof(*exec_list) * args->buffer_count);
1092 args->buffer_count, ret);
1093 drm_free(exec_list, args->buffer_count * sizeof(*exec_list), DRM_MEM_DRIVER);
1094 drm_free(exec2_list, args->buffer_count * sizeof(*exec2_list), DRM_MEM_DRIVER);
1098 for (i = 0; i < args->buffer_count; i++) {
1110 exec2.buffers_ptr = args->buffers_ptr;
1111 exec2.buffer_count = args->buffer_count;
1112 exec2.batch_start_offset = args->batch_start_offset;
1113 exec2.batch_len = args->batch_len;
1114 exec2.DR1 = args->DR1;
1115 exec2.DR4 = args->DR4;
1116 exec2.num_cliprects = args->num_cliprects;
1117 exec2.cliprects_ptr = args->cliprects_ptr;
1124 for (i = 0; i < args->buffer_count; i++)
1128 (uintptr_t) args->buffers_ptr,
1130 sizeof(*exec_list) * args->buffer_count);
1135 args->buffer_count, ret);
1139 drm_free(exec_list, args->buffer_count * sizeof(*exec_list), DRM_MEM_DRIVER);
1140 drm_free(exec2_list, args->buffer_count * sizeof(*exec2_list), DRM_MEM_DRIVER);
1148 struct drm_i915_gem_execbuffer2 *args = data;
1152 if (args->buffer_count < 1 ||
1153 args->buffer_count > UINT_MAX / sizeof(*exec2_list)) {
1154 DRM_DEBUG("execbuf2 with %d buffers\n", args->buffer_count);
1158 exec2_list = drm_calloc(sizeof(*exec2_list), args->buffer_count, DRM_MEM_DRIVER);
1161 args->buffer_count);
1166 (uintptr_t) args->buffers_ptr,
1167 sizeof(*exec2_list) * args->buffer_count);
1170 args->buffer_count, ret);
1171 drm_free(exec2_list, args->buffer_count * sizeof(*exec2_list), DRM_MEM_DRIVER);
1175 ret = i915_gem_do_execbuffer(dev, data, file, args, exec2_list);
1179 (uintptr_t) args->buffers_ptr,
1181 sizeof(*exec2_list) * args->buffer_count);
1186 args->buffer_count, ret);
1190 drm_free(exec2_list, args->buffer_count * sizeof(*exec2_list), DRM_MEM_DRIVER);