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