Lines Matching refs:a
69 bool (*compare)(QuorumVoteValue *a, QuorumVoteValue *b);
154 static bool quorum_sha256_compare(QuorumVoteValue *a, QuorumVoteValue *b) in quorum_sha256_compare() argument
156 return !memcmp(a->h, b->h, HASH_LENGTH); in quorum_sha256_compare()
159 static bool quorum_64bits_compare(QuorumVoteValue *a, QuorumVoteValue *b) in quorum_64bits_compare() argument
161 return a->l == b->l; in quorum_64bits_compare()
427 static bool quorum_iovec_compare(QEMUIOVector *a, QEMUIOVector *b) in quorum_iovec_compare() argument
432 assert(a->niov == b->niov); in quorum_iovec_compare()
433 for (i = 0; i < a->niov; i++) { in quorum_iovec_compare()
434 assert(a->iov[i].iov_len == b->iov[i].iov_len); in quorum_iovec_compare()
435 result = memcmp(a->iov[i].iov_base, in quorum_iovec_compare()
437 a->iov[i].iov_len); in quorum_iovec_compare()
446 static bool quorum_compare(QuorumAIOCB *acb, QEMUIOVector *a, QEMUIOVector *b) in quorum_compare() argument
453 offset = qemu_iovec_compare(a, b); in quorum_compare()
463 return quorum_iovec_compare(a, b); in quorum_compare()