Lines Matching refs:thresh
179 static bool syncpt_load_min_is_expired(struct host1x_syncpt *sp, u32 thresh) in syncpt_load_min_is_expired() argument
182 return host1x_syncpt_is_expired(sp, thresh); in syncpt_load_min_is_expired()
188 int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, in host1x_syncpt_wait() argument
201 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
209 if (host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
228 err = host1x_intr_add_action(sp->host, sp->id, thresh, in host1x_syncpt_wait()
243 syncpt_load_min_is_expired(sp, thresh), in host1x_syncpt_wait()
245 if (remain > 0 || host1x_syncpt_is_expired(sp, thresh)) { in host1x_syncpt_wait()
260 thresh, timeout); in host1x_syncpt_wait()
278 bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh) in host1x_syncpt_is_expired() argument
329 return future_val - thresh >= current_val - thresh; in host1x_syncpt_is_expired()
331 return (s32)(current_val - thresh) >= 0; in host1x_syncpt_is_expired()