Lines Matching defs:props

3279  * i915_oa_stream_init - validate combined props for OA stream and init
3282 * @props: The property state that configures stream (individually validated)
3298 struct perf_open_properties *props)
3306 if (!props->engine) {
3311 gt = props->engine->gt;
3312 g = props->engine->oa_group;
3325 if (!(props->sample_flags & SAMPLE_OA_REPORT) &&
3349 if (!props->oa_format) {
3355 stream->engine = props->engine;
3360 stream->oa_buffer.format = &perf->oa_formats[props->oa_format];
3364 stream->sample_flags = props->sample_flags;
3367 stream->hold_preemption = props->hold_preemption;
3369 stream->periodic = props->oa_periodic;
3371 stream->period_exponent = props->oa_period_exponent;
3389 stream->oa_config = i915_perf_get_oa_config(perf, props->metrics_set);
3392 "Invalid OA config id=%i\n", props->metrics_set);
3437 stream->engine->gt->perf.sseu = props->sseu;
3863 * @props: individually validated u64 property value pairs
3872 * Note: at this point the @props have only been validated in isolation and
3886 struct perf_open_properties *props,
3896 if (props->single_context) {
3897 u32 ctx_handle = props->ctx_handle;
3932 (props->sample_flags & SAMPLE_OA_REPORT) == 0)
3935 if (props->hold_preemption) {
3936 if (!props->single_context) {
3948 if (props->has_sseu)
3951 get_default_sseu_config(&props->sseu, props->engine);
3974 stream->poll_oa_period = props->poll_oa_period;
3976 ret = i915_oa_stream_init(stream, param, props);
3980 /* we avoid simply assigning stream->sample_flags = props->sample_flags
3984 if (WARN_ON(stream->sample_flags != props->sample_flags)) {
4047 * @props: The stream configuration built up while validating properties
4060 struct perf_open_properties *props)
4072 memset(props, 0, sizeof(struct perf_open_properties));
4073 props->poll_oa_period = DEFAULT_POLL_PERIOD_NS;
4111 props->single_context = 1;
4112 props->ctx_handle = value;
4116 props->sample_flags |= SAMPLE_OA_REPORT;
4124 props->metrics_set = value;
4139 props->oa_format = value;
4178 props->oa_periodic = true;
4179 props->oa_period_exponent = value;
4182 props->hold_preemption = !!value;
4209 props->poll_oa_period = value;
4234 props->engine = intel_engine_lookup_user(perf->i915, class, instance);
4235 if (!props->engine) {
4242 if (!engine_supports_oa(props->engine)) {
4254 if (IS_MTL_MEDIA_STEP(props->engine->i915, STEP_A0, STEP_C0) &&
4255 props->engine->oa_group->type == TYPE_OAM &&
4256 intel_check_bios_c6_setup(&props->engine->gt->rc6)) {
4262 i = array_index_nospec(props->oa_format, I915_OA_FORMAT_MAX);
4264 if (!engine_supports_oa_format(props->engine, f->type)) {
4267 f->type, props->engine->class);
4272 ret = get_sseu_config(&props->sseu, props->engine, &user_sseu);
4278 props->has_sseu = true;
4314 struct perf_open_properties props;
4333 &props);
4337 gt = props.engine->gt;
4340 ret = i915_perf_open_ioctl_locked(perf, param, &props, file);