Lines Matching refs:votes

136     QuorumVotes votes;  member
180 .votes.compare = quorum_sha256_compare, in quorum_aio_get()
181 .votes.vote_list = QLIST_HEAD_INITIALIZER(acb.votes.vote_list), in quorum_aio_get()
262 QLIST_FOREACH(version, &acb->votes.vote_list, next) { in quorum_report_bad_versions()
263 if (acb->votes.compare(&version->value, value)) { in quorum_report_bad_versions()
307 QLIST_FOREACH(version, &acb->votes.vote_list, next) { in quorum_rewrite_bad_versions()
308 if (acb->votes.compare(&version->value, value)) { in quorum_rewrite_bad_versions()
320 QLIST_FOREACH(version, &acb->votes.vote_list, next) { in quorum_rewrite_bad_versions()
321 if (acb->votes.compare(&version->value, value)) { in quorum_rewrite_bad_versions()
340 static void quorum_count_vote(QuorumVotes *votes, in quorum_count_vote() argument
348 QLIST_FOREACH(v, &votes->vote_list, next) { in quorum_count_vote()
349 if (votes->compare(&v->value, value)) { in quorum_count_vote()
362 QLIST_INSERT_HEAD(&votes->vote_list, version, next); in quorum_count_vote()
372 static void quorum_free_vote_list(QuorumVotes *votes) in quorum_free_vote_list() argument
377 QLIST_FOREACH_SAFE(version, &votes->vote_list, next, next_version) { in quorum_free_vote_list()
406 static QuorumVoteVersion *quorum_get_vote_winner(QuorumVotes *votes) in quorum_get_vote_winner() argument
411 QLIST_FOREACH(candidate, &votes->vote_list, next) { in quorum_get_vote_winner()
549 quorum_count_vote(&acb->votes, &hash, i); in quorum_vote()
553 winner = quorum_get_vote_winner(&acb->votes); in quorum_vote()
575 quorum_free_vote_list(&acb->votes); in quorum_vote()