Lines Matching refs:timeout

20  * xe_hw_engine_timeout_in_range - Helper to check if timeout is in range
21 * @timeout: timeout to validate
25 * This helper helps to validate if timeout is in min-max range of HW engine
30 bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max)
32 return timeout >= min && timeout <= max;
50 u32 timeout;
53 err = kstrtou32(buf, 0, &timeout);
57 if (timeout < eclass->sched_props.job_timeout_min)
60 if (!xe_hw_engine_timeout_in_range(timeout,
65 WRITE_ONCE(eclass->sched_props.job_timeout_max, timeout);
86 u32 timeout;
89 err = kstrtou32(buf, 0, &timeout);
93 if (timeout > eclass->sched_props.job_timeout_max)
96 if (!xe_hw_engine_timeout_in_range(timeout,
101 WRITE_ONCE(eclass->sched_props.job_timeout_min, timeout);
124 u32 timeout;
127 err = kstrtou32(buf, 0, &timeout);
131 if (!xe_hw_engine_timeout_in_range(timeout, min, max))
134 WRITE_ONCE(eclass->sched_props.job_timeout_ms, timeout);
333 u32 timeout;
336 err = kstrtou32(buf, 0, &timeout);
340 if (!xe_hw_engine_timeout_in_range(timeout, min, max))
343 WRITE_ONCE(eclass->sched_props.preempt_timeout_us, timeout);
400 u32 timeout;
403 err = kstrtou32(buf, 0, &timeout);
407 if (timeout < eclass->sched_props.preempt_timeout_min)
410 if (!xe_hw_engine_timeout_in_range(timeout,
415 WRITE_ONCE(eclass->sched_props.preempt_timeout_max, timeout);
437 u32 timeout;
440 err = kstrtou32(buf, 0, &timeout);
444 if (timeout > eclass->sched_props.preempt_timeout_max)
447 if (!xe_hw_engine_timeout_in_range(timeout,
452 WRITE_ONCE(eclass->sched_props.preempt_timeout_min, timeout);