| /netbsd-src/sys/arch/usermode/include/ |
| H A D | lock.h | 33 __cpu_simple_lock_init(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_init() argument 35 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_init() 39 __cpu_simple_lock_try(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_try() argument 41 if (*lockp == __SIMPLELOCK_LOCKED) in __cpu_simple_lock_try() 43 *lockp = __SIMPLELOCK_LOCKED; in __cpu_simple_lock_try() 48 __cpu_simple_lock(__cpu_simple_lock_t *lockp) in __cpu_simple_lock() argument 50 while (!__cpu_simple_lock_try(lockp)) in __cpu_simple_lock() 55 __cpu_simple_unlock(__cpu_simple_lock_t *lockp) in __cpu_simple_unlock() argument 57 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_unlock() 61 __SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *lockp) in __SIMPLELOCK_LOCKED_P() argument [all …]
|
| /netbsd-src/sys/arch/ia64/include/ |
| H A D | lock.h | 82 __cpu_simple_lock_init(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_init() argument 85 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_init() 89 __cpu_simple_lock_try(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_try() argument 96 :"r" (lockp), "r" (val) in __cpu_simple_lock_try() 102 __cpu_simple_lock(__cpu_simple_lock_t *lockp) in __cpu_simple_lock() argument 105 while (!__cpu_simple_lock_try(lockp)) in __cpu_simple_lock() 111 __cpu_simple_unlock(__cpu_simple_lock_t *lockp) in __cpu_simple_unlock() argument 115 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_unlock()
|
| /netbsd-src/sys/arch/x86/include/ |
| H A D | lock.h | 87 __cpu_simple_lock_init(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_init() argument 90 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_lock_init() 94 __cpu_simple_lock_try(__cpu_simple_lock_t *lockp) in __cpu_simple_lock_try() argument 101 :"0" (val), "r" (lockp)); in __cpu_simple_lock_try() 107 __cpu_simple_lock(__cpu_simple_lock_t *lockp) in __cpu_simple_lock() argument 110 while (!__cpu_simple_lock_try(lockp)) in __cpu_simple_lock() 168 __cpu_simple_unlock(__cpu_simple_lock_t *lockp) in __cpu_simple_unlock() argument 172 *lockp = __SIMPLELOCK_UNLOCKED; in __cpu_simple_unlock()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/sys/ |
| H A D | callb.h | 134 #define CALLB_CPR_INIT(cp, lockp, func, name) { \ argument 137 (cp)->cc_lockp = lockp; \ 144 #define CALLB_CPR_INIT(cp, lockp, func, name) { \ argument 148 (cp)->cc_lockp = lockp; \ 189 #define CALLB_CPR_SAFE_END(cp, lockp) { \ argument 192 cv_wait(&(cp)->cc_stop_cv, lockp); \
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/otp/ |
| H A D | otp_db.c | 108 otp_get_internal (void *v, OtpContext *ctx, int lockp) in otp_get_internal() argument 127 if (lockp) { in otp_get_internal() 150 if (lockp) in otp_get_internal()
|
| /netbsd-src/external/cddl/osnet/dist/lib/libzpool/common/sys/ |
| H A D | zfs_context.h | 605 #define CALLB_CPR_INIT(cp, lockp, func, name) { \ argument 606 (cp)->cc_lockp = lockp; \ 613 #define CALLB_CPR_SAFE_END(cp, lockp) { \ argument
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/ |
| H A D | parse.c | 2971 check_component (gfc_symbol *sym, gfc_component *c, gfc_component **lockp, in check_component() argument 2978 if (lockp) lock_comp = *lockp; in check_component() 3141 if (lockp) *lockp = lock_comp; in check_component()
|
| /netbsd-src/external/gpl2/xcvs/dist/src/ |
| H A D | rcs.c | 8584 char *lockfile, *lockp; in rcs_lockfilename() local 8593 for (lockp = lockfile, rcsp = rcsfile; rcsp < rcsbase; ++rcsp) in rcs_lockfilename() 8594 *lockp++ = *rcsp; in rcs_lockfilename() 8595 *lockp++ = ','; in rcs_lockfilename() 8597 *lockp++ = *rcsp++; in rcs_lockfilename() 8598 *lockp++ = ','; in rcs_lockfilename() 8599 *lockp = '\0'; in rcs_lockfilename()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | arc.c | 1457 buf_hash_find(uint64_t spa, const blkptr_t *bp, kmutex_t **lockp) in buf_hash_find() argument 1469 *lockp = hash_lock; in buf_hash_find() 1474 *lockp = NULL; in buf_hash_find() 1486 buf_hash_insert(arc_buf_hdr_t *hdr, kmutex_t **lockp) in buf_hash_insert() argument 1497 if (lockp != NULL) { in buf_hash_insert() 1498 *lockp = hash_lock; in buf_hash_insert()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/fortran/ |
| H A D | parse.cc | 3221 check_component (gfc_symbol *sym, gfc_component *c, gfc_component **lockp, in check_component() argument 3228 if (lockp) lock_comp = *lockp; in check_component() 3391 if (lockp) *lockp = lock_comp; in check_component()
|
| /netbsd-src/sys/external/bsd/ipf/netinet/ |
| H A D | fil.c | 4179 ipf_lock(void *data, int *lockp) in ipf_lock() argument 4186 err = BCOPYOUT(lockp, data, sizeof(*lockp)); in ipf_lock() 4189 *lockp = arg; in ipf_lock()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/dtrace/ |
| H A D | dtrace.c | 2071 volatile uintptr_t *lockp = &hash[bucket].dtdh_lock; in dtrace_dynvar() local 2074 while ((lock = *lockp) & 1) in dtrace_dynvar() 2077 if (dtrace_casptr((volatile void *)lockp, in dtrace_dynvar()
|