Lines Matching refs:val
600 int CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val) in CRYPTO_THREAD_set_local() argument
602 if (TlsSetValue(*key, val) == 0) in CRYPTO_THREAD_set_local()
626 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_add() argument
628 *ret = (int)InterlockedExchangeAdd((LONG volatile *)val, (LONG)amount) in CRYPTO_atomic_add()
633 int CRYPTO_atomic_add64(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_add64() argument
639 *val += op; in CRYPTO_atomic_add64()
640 *ret = *val; in CRYPTO_atomic_add64()
647 *ret = (uint64_t)InterlockedAdd64((LONG64 volatile *)val, (LONG64)op); in CRYPTO_atomic_add64()
652 int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_and() argument
658 *val &= op; in CRYPTO_atomic_and()
659 *ret = *val; in CRYPTO_atomic_and()
666 *ret = (uint64_t)InterlockedAnd64((LONG64 volatile *)val, (LONG64)op) & op; in CRYPTO_atomic_and()
671 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument
677 *val |= op; in CRYPTO_atomic_or()
678 *ret = *val; in CRYPTO_atomic_or()
685 *ret = (uint64_t)InterlockedOr64((LONG64 volatile *)val, (LONG64)op) | op; in CRYPTO_atomic_or()
690 int CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_load() argument
695 *ret = *val; in CRYPTO_atomic_load()
701 *ret = (uint64_t)InterlockedOr64((LONG64 volatile *)val, 0); in CRYPTO_atomic_load()
706 int CRYPTO_atomic_store(uint64_t *dst, uint64_t val, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_store() argument
711 *dst = val; in CRYPTO_atomic_store()
717 InterlockedExchange64(dst, val); in CRYPTO_atomic_store()
722 int CRYPTO_atomic_load_int(int *val, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_load_int() argument
727 *ret = *val; in CRYPTO_atomic_load_int()
734 *ret = (int)InterlockedOr((LONG volatile *)val, 0); in CRYPTO_atomic_load_int()