Home
last modified time | relevance | path

Searched refs:smrh (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.41.6/osfmk/kern/
H A Dsmr_hash.h439 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() argument
501 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() argument
532 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() argument
549 return smrh->smrh_count; in smr_hash_serialized_count()
[all …]
H A Dsmr.c2286 smr_hash_init_empty(struct smr_hash *smrh) in smr_hash_init_empty() argument
2288 *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() argument
2296 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() argument
2314 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() argument
2326 if (!smr_hash_is_empty_initialized(smrh)) { in smr_hash_destroy()
[all …]