Lines Matching full:thresh
191 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
195 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
201 * @thresh: threshold
205 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
218 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
227 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
247 err = host1x_intr_add_action(sp->host, sp, thresh, in host1x_syncpt_wait()
264 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
266 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
286 thresh, timeout); in host1x_syncpt_wait()
307 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
320 * t = thresh = the value we are checking in host1x_syncpt_is_expired()
353 * Note: do NOT get clever and remove the -thresh from both sides. It in host1x_syncpt_is_expired()
360 return future_val - thresh >= current_val - thresh; in host1x_syncpt_is_expired()
362 return (s32)(current_val - thresh) >= 0; in host1x_syncpt_is_expired()