/* Return true if sync point is client managed. */ staticinlinebool host1x_syncpt_client_managed(struct host1x_syncpt *sp)
{ return sp->client_managed;
}
/* *Returnstrueifsyncpointmin==max,whichmeansthatthereareno *outstandingoperations.
*/ staticinlinebool host1x_syncpt_idle(struct host1x_syncpt *sp)
{ int min, max;
smp_rmb();
min = atomic_read(&sp->min_val);
max = atomic_read(&sp->max_val); return (min == max);
}
/* Load current value from hardware to the shadow register. */
u32 host1x_syncpt_load(struct host1x_syncpt *sp);
/* Check if the given syncpoint value has already passed */ bool host1x_syncpt_is_expired(struct host1x_syncpt *sp, u32 thresh);
/* Save host1x sync point state into shadow registers. */ void host1x_syncpt_save(struct host1x *host);
/* Reset host1x sync point state from shadow registers. */ void host1x_syncpt_restore(struct host1x *host);
/* Read current wait base value into shadow register and return it. */
u32 host1x_syncpt_load_wait_base(struct host1x_syncpt *sp);
/* Indicate future operations by incrementing the sync point max. */
u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
/* Check if sync point id is valid. */ staticinlineint host1x_syncpt_is_valid(struct host1x_syncpt *sp)
{ return sp->id < host1x_syncpt_nb_pts(sp->host);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.