Lines Matching full:thresh
202 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
206 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
212 * @thresh: threshold
216 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
229 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
238 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
258 err = host1x_intr_add_action(sp->host, sp, thresh, in host1x_syncpt_wait()
275 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
277 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
297 thresh, timeout); in host1x_syncpt_wait()
318 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
331 * t = thresh = the value we are checking in host1x_syncpt_is_expired()
364 * Note: do NOT get clever and remove the -thresh from both sides. It in host1x_syncpt_is_expired()
371 return future_val - thresh >= current_val - thresh; in host1x_syncpt_is_expired()
373 return (s32)(current_val - thresh) >= 0; in host1x_syncpt_is_expired()