Lines Matching refs:eclass

96 	struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj);  in job_timeout_max_store()  local
104 if (timeout < eclass->sched_props.job_timeout_min) in job_timeout_max_store()
112 WRITE_ONCE(eclass->sched_props.job_timeout_max, timeout); in job_timeout_max_store()
120 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in job_timeout_max_show() local
122 return sysfs_emit(buf, "%u\n", eclass->sched_props.job_timeout_max); in job_timeout_max_show()
132 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in job_timeout_min_store() local
140 if (timeout > eclass->sched_props.job_timeout_max) in job_timeout_min_store()
148 WRITE_ONCE(eclass->sched_props.job_timeout_min, timeout); in job_timeout_min_store()
156 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in job_timeout_min_show() local
158 return sysfs_emit(buf, "%u\n", eclass->sched_props.job_timeout_min); in job_timeout_min_show()
168 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in job_timeout_store() local
169 u32 min = eclass->sched_props.job_timeout_min; in job_timeout_store()
170 u32 max = eclass->sched_props.job_timeout_max; in job_timeout_store()
181 WRITE_ONCE(eclass->sched_props.job_timeout_ms, timeout); in job_timeout_store()
189 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in job_timeout_show() local
191 return sysfs_emit(buf, "%u\n", eclass->sched_props.job_timeout_ms); in job_timeout_show()
200 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in job_timeout_default() local
202 return sysfs_emit(buf, "%u\n", eclass->defaults.job_timeout_ms); in job_timeout_default()
211 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in job_timeout_min_default() local
213 return sysfs_emit(buf, "%u\n", eclass->defaults.job_timeout_min); in job_timeout_min_default()
222 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in job_timeout_max_default() local
224 return sysfs_emit(buf, "%u\n", eclass->defaults.job_timeout_max); in job_timeout_max_default()
234 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_store() local
235 u32 min = eclass->sched_props.timeslice_min; in timeslice_duration_store()
236 u32 max = eclass->sched_props.timeslice_max; in timeslice_duration_store()
247 WRITE_ONCE(eclass->sched_props.timeslice_us, duration); in timeslice_duration_store()
256 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_max_store() local
264 if (duration < eclass->sched_props.timeslice_min) in timeslice_duration_max_store()
272 WRITE_ONCE(eclass->sched_props.timeslice_max, duration); in timeslice_duration_max_store()
281 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_max_show() local
283 return sysfs_emit(buf, "%u\n", eclass->sched_props.timeslice_max); in timeslice_duration_max_show()
294 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_min_store() local
302 if (duration > eclass->sched_props.timeslice_max) in timeslice_duration_min_store()
310 WRITE_ONCE(eclass->sched_props.timeslice_min, duration); in timeslice_duration_min_store()
319 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_min_show() local
321 return sysfs_emit(buf, "%u\n", eclass->sched_props.timeslice_min); in timeslice_duration_min_show()
331 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in timeslice_duration_show() local
333 return sysfs_emit(buf, "%u\n", eclass->sched_props.timeslice_us); in timeslice_duration_show()
343 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in timeslice_default() local
345 return sysfs_emit(buf, "%u\n", eclass->defaults.timeslice_us); in timeslice_default()
354 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in timeslice_min_default() local
356 return sysfs_emit(buf, "%u\n", eclass->defaults.timeslice_min); in timeslice_min_default()
365 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in timeslice_max_default() local
367 return sysfs_emit(buf, "%u\n", eclass->defaults.timeslice_max); in timeslice_max_default()
377 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_store() local
378 u32 min = eclass->sched_props.preempt_timeout_min; in preempt_timeout_store()
379 u32 max = eclass->sched_props.preempt_timeout_max; in preempt_timeout_store()
390 WRITE_ONCE(eclass->sched_props.preempt_timeout_us, timeout); in preempt_timeout_store()
398 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_show() local
400 return sysfs_emit(buf, "%u\n", eclass->sched_props.preempt_timeout_us); in preempt_timeout_show()
410 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in preempt_timeout_default() local
412 return sysfs_emit(buf, "%u\n", eclass->defaults.preempt_timeout_us); in preempt_timeout_default()
422 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in preempt_timeout_min_default() local
424 return sysfs_emit(buf, "%u\n", eclass->defaults.preempt_timeout_min); in preempt_timeout_min_default()
434 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj->parent); in preempt_timeout_max_default() local
436 return sysfs_emit(buf, "%u\n", eclass->defaults.preempt_timeout_max); in preempt_timeout_max_default()
446 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_max_store() local
454 if (timeout < eclass->sched_props.preempt_timeout_min) in preempt_timeout_max_store()
462 WRITE_ONCE(eclass->sched_props.preempt_timeout_max, timeout); in preempt_timeout_max_store()
470 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_max_show() local
472 return sysfs_emit(buf, "%u\n", eclass->sched_props.preempt_timeout_max); in preempt_timeout_max_show()
483 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_min_store() local
491 if (timeout > eclass->sched_props.preempt_timeout_max) in preempt_timeout_min_store()
499 WRITE_ONCE(eclass->sched_props.preempt_timeout_min, timeout); in preempt_timeout_min_store()
507 struct xe_hw_engine_class_intf *eclass = kobj_to_eclass(kobj); in preempt_timeout_min_show() local
509 return sysfs_emit(buf, "%u\n", eclass->sched_props.preempt_timeout_min); in preempt_timeout_min_show()
670 keclass->eclass = hwe->eclass; in xe_hw_engine_class_sysfs_init()