Searched refs:sema (Results 1 – 1 of 1) sorted by relevance
69 static inline uint32_t vote_count_inc(struct hw_sema_t *sema, enum cmd_source id) in vote_count_inc() argument71 if (sema->vote[id] < UINT32_MAX) { in vote_count_inc()72 sema->vote[id]++; in vote_count_inc()73 return sema->vote[id]; in vote_count_inc()76 ERROR(TAG "%s:id:%u:source_id:%u overflow\n", __func__, sema->id, id); in vote_count_inc()80 static inline uint32_t vote_count_dec(struct hw_sema_t *sema, enum cmd_source id) in vote_count_dec() argument82 if (sema->vote[id] > 0) { in vote_count_dec()83 sema->vote[id]--; in vote_count_dec()84 return sema->vote[id]; in vote_count_dec()87 ERROR(TAG "%s:id:%u:source_id:%u underflow\n", __func__, sema->id, id); in vote_count_dec()[all …]