Lines Matching full:timeout

18  * xe_hw_engine_timeout_in_range - Helper to check if timeout is in range
19 * @timeout: timeout to validate
23 * This helper helps to validate if timeout is in min-max range of HW engine
28 bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max) in xe_hw_engine_timeout_in_range() argument
30 return timeout >= min && timeout <= max; in xe_hw_engine_timeout_in_range()
48 u32 timeout; in job_timeout_max_store() local
51 err = kstrtou32(buf, 0, &timeout); in job_timeout_max_store()
55 if (timeout < eclass->sched_props.job_timeout_min) in job_timeout_max_store()
58 if (!xe_hw_engine_timeout_in_range(timeout, in job_timeout_max_store()
63 WRITE_ONCE(eclass->sched_props.job_timeout_max, timeout); in job_timeout_max_store()
84 u32 timeout; in job_timeout_min_store() local
87 err = kstrtou32(buf, 0, &timeout); in job_timeout_min_store()
91 if (timeout > eclass->sched_props.job_timeout_max) in job_timeout_min_store()
94 if (!xe_hw_engine_timeout_in_range(timeout, in job_timeout_min_store()
99 WRITE_ONCE(eclass->sched_props.job_timeout_min, timeout); in job_timeout_min_store()
122 u32 timeout; in job_timeout_store() local
125 err = kstrtou32(buf, 0, &timeout); in job_timeout_store()
129 if (!xe_hw_engine_timeout_in_range(timeout, min, max)) in job_timeout_store()
132 WRITE_ONCE(eclass->sched_props.job_timeout_ms, timeout); in job_timeout_store()
331 u32 timeout; in preempt_timeout_store() local
334 err = kstrtou32(buf, 0, &timeout); in preempt_timeout_store()
338 if (!xe_hw_engine_timeout_in_range(timeout, min, max)) in preempt_timeout_store()
341 WRITE_ONCE(eclass->sched_props.preempt_timeout_us, timeout); in preempt_timeout_store()
398 u32 timeout; in preempt_timeout_max_store() local
401 err = kstrtou32(buf, 0, &timeout); in preempt_timeout_max_store()
405 if (timeout < eclass->sched_props.preempt_timeout_min) in preempt_timeout_max_store()
408 if (!xe_hw_engine_timeout_in_range(timeout, in preempt_timeout_max_store()
413 WRITE_ONCE(eclass->sched_props.preempt_timeout_max, timeout); in preempt_timeout_max_store()
435 u32 timeout; in preempt_timeout_min_store() local
438 err = kstrtou32(buf, 0, &timeout); in preempt_timeout_min_store()
442 if (timeout > eclass->sched_props.preempt_timeout_max) in preempt_timeout_min_store()
445 if (!xe_hw_engine_timeout_in_range(timeout, in preempt_timeout_min_store()
450 WRITE_ONCE(eclass->sched_props.preempt_timeout_min, timeout); in preempt_timeout_min_store()