Lines Matching refs:ext_data

271 			  struct create_ext *ext_data)  in set_placements()  argument
273 struct drm_i915_private *i915 = ext_data->i915; in set_placements()
291 BUILD_BUG_ON(ARRAY_SIZE(ext_data->placements) != ARRAY_SIZE(placements)); in set_placements()
332 if (ext_data->n_placements) { in set_placements()
337 ext_data->n_placements = args->num_regions; in set_placements()
339 ext_data->placements[i] = placements[i]; in set_placements()
341 ext_data->placement_mask = mask; in set_placements()
348 if (ext_data->n_placements) { in set_placements()
351 ext_data->placements, in set_placements()
352 ext_data->n_placements); in set_placements()
379 struct create_ext *ext_data = data; in ext_set_protected() local
387 if (!intel_pxp_is_enabled(&to_gt(ext_data->i915)->pxp)) in ext_set_protected()
390 ext_data->flags |= I915_BO_PROTECTED; in ext_set_protected()
412 struct create_ext ext_data = { .i915 = i915 }; in i915_gem_create_ext_ioctl() local
422 &ext_data); in i915_gem_create_ext_ioctl()
426 if (!ext_data.n_placements) { in i915_gem_create_ext_ioctl()
427 ext_data.placements[0] = in i915_gem_create_ext_ioctl()
429 ext_data.n_placements = 1; in i915_gem_create_ext_ioctl()
433 if (ext_data.n_placements == 1) in i915_gem_create_ext_ioctl()
440 if (!(ext_data.placement_mask & BIT(INTEL_REGION_SMEM))) in i915_gem_create_ext_ioctl()
443 if (ext_data.n_placements > 1 || in i915_gem_create_ext_ioctl()
444 ext_data.placements[0]->type != INTEL_MEMORY_SYSTEM) in i915_gem_create_ext_ioctl()
445 ext_data.flags |= I915_BO_ALLOC_GPU_ONLY; in i915_gem_create_ext_ioctl()
449 ext_data.placements, in i915_gem_create_ext_ioctl()
450 ext_data.n_placements, in i915_gem_create_ext_ioctl()
451 ext_data.flags); in i915_gem_create_ext_ioctl()