Lines Matching full:engine
16 struct intel_engine_cs *engine; member
21 return container_of(kobj, struct kobj_engine, base)->engine; in kobj_to_engine()
81 __caps_show(struct intel_engine_cs *engine, in __caps_show() argument
88 switch (engine->class) { in __caps_show()
123 struct intel_engine_cs *engine = kobj_to_engine(kobj); in caps_show() local
125 return __caps_show(engine, engine->uabi_capabilities, buf, true); in caps_show()
144 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_store() local
169 clamped = intel_clamp_max_busywait_duration_ns(engine, duration); in max_spin_store()
173 WRITE_ONCE(engine->props.max_busywait_duration_ns, duration); in max_spin_store()
181 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_show() local
183 return sysfs_emit(buf, "%lu\n", engine->props.max_busywait_duration_ns); in max_spin_show()
192 struct intel_engine_cs *engine = kobj_to_engine(kobj); in max_spin_default() local
194 return sysfs_emit(buf, "%lu\n", engine->defaults.max_busywait_duration_ns); in max_spin_default()
204 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_store() local
220 clamped = intel_clamp_timeslice_duration_ms(engine, duration); in timeslice_store()
224 WRITE_ONCE(engine->props.timeslice_duration_ms, duration); in timeslice_store()
226 if (execlists_active(&engine->execlists)) in timeslice_store()
227 set_timer_ms(&engine->execlists.timer, duration); in timeslice_store()
235 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_show() local
237 return sysfs_emit(buf, "%lu\n", engine->props.timeslice_duration_ms); in timeslice_show()
246 struct intel_engine_cs *engine = kobj_to_engine(kobj); in timeslice_default() local
248 return sysfs_emit(buf, "%lu\n", engine->defaults.timeslice_duration_ms); in timeslice_default()
258 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_store() local
275 clamped = intel_clamp_stop_timeout_ms(engine, duration); in stop_store()
279 WRITE_ONCE(engine->props.stop_timeout_ms, duration); in stop_store()
286 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_show() local
288 return sysfs_emit(buf, "%lu\n", engine->props.stop_timeout_ms); in stop_show()
297 struct intel_engine_cs *engine = kobj_to_engine(kobj); in stop_default() local
299 return sysfs_emit(buf, "%lu\n", engine->defaults.stop_timeout_ms); in stop_default()
309 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_store() local
326 clamped = intel_clamp_preempt_timeout_ms(engine, timeout); in preempt_timeout_store()
330 WRITE_ONCE(engine->props.preempt_timeout_ms, timeout); in preempt_timeout_store()
332 if (READ_ONCE(engine->execlists.pending[0])) in preempt_timeout_store()
333 set_timer_ms(&engine->execlists.preempt, timeout); in preempt_timeout_store()
342 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_show() local
344 return sysfs_emit(buf, "%lu\n", engine->props.preempt_timeout_ms); in preempt_timeout_show()
354 struct intel_engine_cs *engine = kobj_to_engine(kobj); in preempt_timeout_default() local
356 return sysfs_emit(buf, "%lu\n", engine->defaults.preempt_timeout_ms); in preempt_timeout_default()
366 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_store() local
375 * i.e. hung, and perform an engine or full GPU reset. Given that the in heartbeat_store()
384 clamped = intel_clamp_heartbeat_interval_ms(engine, delay); in heartbeat_store()
388 err = intel_engine_set_heartbeat(engine, delay); in heartbeat_store()
398 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_show() local
400 return sysfs_emit(buf, "%lu\n", engine->props.heartbeat_interval_ms); in heartbeat_show()
409 struct intel_engine_cs *engine = kobj_to_engine(kobj); in heartbeat_default() local
411 return sysfs_emit(buf, "%lu\n", engine->defaults.heartbeat_interval_ms); in heartbeat_default()
428 kobj_engine(struct kobject *dir, struct intel_engine_cs *engine) in kobj_engine() argument
437 ke->engine = engine; in kobj_engine()
439 if (kobject_add(&ke->base, dir, "%s", engine->name)) { in kobj_engine()
465 ke->engine = parent->engine; in add_defaults()
475 if (intel_engine_has_timeslices(ke->engine) && in add_defaults()
479 if (intel_engine_has_preempt_reset(ke->engine) && in add_defaults()
502 struct intel_engine_cs *engine; in intel_engines_add_sysfs() local
505 dir = kobject_create_and_add("engine", &kdev->kobj); in intel_engines_add_sysfs()
509 for_each_uabi_engine(engine, i915) { in intel_engines_add_sysfs()
512 kobj = kobj_engine(dir, engine); in intel_engines_add_sysfs()
519 if (intel_engine_has_timeslices(engine) && in intel_engines_add_sysfs()
523 if (intel_engine_has_preempt_reset(engine) && in intel_engines_add_sysfs()
533 dev_warn(kdev, "Failed to add sysfs engine '%s'\n", in intel_engines_add_sysfs()
534 engine->name); in intel_engines_add_sysfs()