Searched refs:smrh (Results 1 – 2 of 2) sorted by relevance
439 struct smr_hash *smrh);453 struct smr_hash *smrh,467 struct smr_hash *smrh);477 struct smr_hash *smrh);498 smr_hash_array_decode(const struct smr_hash *smrh) in smr_hash_array_decode() argument501 uintptr_t ptr = os_atomic_load(&smrh->smrh_array, relaxed); in smr_hash_array_decode()530 smr_hash_size(const struct smr_hash *smrh) in smr_hash_size() argument532 return smr_hash_size(smr_hash_array_decode(smrh)); in smr_hash_size()547 smr_hash_serialized_count(const struct smr_hash *smrh) in smr_hash_serialized_count() argument549 return smrh->smrh_count; in smr_hash_serialized_count()[all …]
2286 smr_hash_init_empty(struct smr_hash *smrh) in smr_hash_init_empty() argument2288 *smrh = (struct smr_hash){ in smr_hash_init_empty()2294 smr_hash_is_empty_initialized(struct smr_hash *smrh) in smr_hash_is_empty_initialized() argument2296 return smrh->smrh_array == smr_hash_array_encode(__smrh_empty, 63); in smr_hash_is_empty_initialized()2300 smr_hash_init(struct smr_hash *smrh, size_t size) in smr_hash_init() argument2314 if (smr_hash_is_empty_initialized(smrh)) { in smr_hash_init()2315 os_atomic_store(&smrh->smrh_array, array, release); in smr_hash_init()2317 *smrh = (struct smr_hash){ in smr_hash_init()2324 smr_hash_destroy(struct smr_hash *smrh) in smr_hash_destroy() argument2326 if (!smr_hash_is_empty_initialized(smrh)) { in smr_hash_destroy()[all …]