Home
last modified time | relevance | path

Searched refs:_count (Results 1 – 18 of 18) sorted by relevance

/freebsd-12.1/lib/libc/gen/
H A Dsem_new.c135 sem->_kern._count = (u_int32_t)value; in _sem_init()
219 tmp._kern._count = value; in _sem_open()
334 *sval = (int)USEM_COUNT(sem->_kern._count); in _sem_getvalue()
384 while (USEM_COUNT(val = sem->_kern._count) > 0) { in _sem_trywait()
385 if (atomic_cmpset_acq_int(&sem->_kern._count, val, val - 1)) in _sem_trywait()
404 while (USEM_COUNT(val = sem->_kern._count) > 0) { in _sem_clockwait_np()
405 if (atomic_cmpset_acq_int(&sem->_kern._count, val, in _sem_clockwait_np()
463 count = sem->_kern._count; in _sem_post()
468 } while (!atomic_cmpset_rel_int(&sem->_kern._count, count, count + 1)); in _sem_post()
/freebsd-12.1/contrib/bmake/
H A Dbuf.h98 int _count = ++(bp)->count; \
100 if (__predict_false(_count >= (bp)->size)) \
102 _ptr = (bp)->buffer + _count; \
/freebsd-12.1/sys/dev/bhnd/tools/
H A Dnvram_map_gen.awk1151 _count = get(bind, p_count)
1165 if (_count == 1) {
1182 } else if (_count > 1) {
1236 _count = 1
1285 _count = get(bind, p_count)
1318 while (_count > 0) {
1319 if (_count > 1 && _count <= SPROM_OP_IMM_MAX &&
1326 _count -= _count
1328 } else if (_count > 1) {
1340 _count -= _written
[all …]
/freebsd-12.1/contrib/elftoolchain/libelf/
H A Dlibelf.h228 size_t elf32_fsize(Elf_Type _type, size_t _count,
234 Elf32_Phdr *elf32_newphdr(Elf *_elf, size_t _count);
241 size_t elf64_fsize(Elf_Type _type, size_t _count,
247 Elf64_Phdr *elf64_newphdr(Elf *_elf, size_t _count);
H A Dgelf.h74 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count,
H A D_libelf.h231 void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count);
/freebsd-12.1/sys/sys/
H A D_umtx.h66 volatile __uint32_t _count; member
71 volatile __uint32_t _count; /* Waiters flag in high bit. */ member
H A Dlinker.h157 void *_start, void *_stop, int *_count);
H A Dacl.h396 acl_t acl_init(int _count);
/freebsd-12.1/contrib/libucl/uthash/
H A Duthash.h282 unsigned _count, _bkt_count; \
286 _count = 0; \
300 _count += _bkt_count; \
306 if (_count != (head)->hh.tbl->num_items) { \
308 (head)->hh.tbl->num_items, _count ); \
311 _count = 0; \
315 _count++; \
324 if (_count != (head)->hh.tbl->num_items) { \
326 (head)->hh.tbl->num_items, _count ); \
/freebsd-12.1/sys/dev/etherswitch/arswitch/
H A Darswitchreg.h45 #define BITM(_count) ((1UL << (_count)) - 1) argument
46 #define BITS(_shift, _count) (BITM(_count) << (_shift)) argument
/freebsd-12.1/contrib/elftoolchain/common/
H A Duthash.h266 unsigned _count, _bkt_count; \
270 _count = 0; \
284 _count += _bkt_count; \
290 if (_count != (head)->hh.tbl->num_items) { \
292 (head)->hh.tbl->num_items, _count ); \
295 _count = 0; \
299 _count++; \
308 if (_count != (head)->hh.tbl->num_items) { \
310 (head)->hh.tbl->num_items, _count ); \
/freebsd-12.1/contrib/compiler-rt/lib/builtins/
H A Datomic.c60 __c11_atomic_store((_Atomic(uint32_t)*)&l->_count, 1, __ATOMIC_RELEASE); in unlock()
67 while (!__c11_atomic_compare_exchange_weak((_Atomic(uint32_t)*)&l->_count, &old, in lock()
/freebsd-12.1/contrib/file/src/
H A Dfile.h309 uint32_t _count; /* repeat/line count */ member
314 #define str_range _u._s._count
/freebsd-12.1/sys/kern/
H A Dbus_if.m276 * @param _count hint at the size of range required - pass @c 1
292 rman_res_t _count;
529 * to start at @p _start and to include @p _count indices in its
537 * @param _count the size of the resource range
545 rman_res_t _count;
560 * @param _count the address of a location to receive the size
H A Dkern_umtx.c3229 rv1 = fueword32(&sem->_count, &count); in do_sem_wait()
3329 rv = fueword32(&sem->_count, &count); in do_sem2_wait()
3349 rv = casueword32(&sem->_count, 0, &count, USEM_HAS_WAITERS); in do_sem2_wait()
3414 rv = fueword32(&sem->_count, &count); in do_sem2_wake()
3416 rv = casueword32(&sem->_count, count, &count, in do_sem2_wake()
/freebsd-12.1/tools/test/netfibs/
H A Dforwarding.sh597 local _n _reply _line _edge _type _fib _count _rc _ec _status
627 while read _fib _count; do
630 if test ${_count} -gt 0; then
642 ${_count} ${_rc} ${_em}
/freebsd-12.1/sys/powerpc/powerpc/
H A Dmmu_if.m537 * @param _count array elements
543 int _count;
551 * @param _count number of pages in mapping
556 int _count;