/freebsd/contrib/kyua/utils/ |
H A D | units.cpp | 46 _count(0) in bytes() 55 _count(count_) in bytes() 115 if (_count >= TB) { in format() 116 return F("%.2sT") % (static_cast< float >(_count) / TB); in format() 117 } else if (_count >= GB) { in format() 118 return F("%.2sG") % (static_cast< float >(_count) / GB); in format() 119 } else if (_count >= MB) { in format() 120 return F("%.2sM") % (static_cast< float >(_count) / MB); in format() 121 } else if (_count >= KB) { in format() 122 return F("%.2sK") % (static_cast< float >(_count) / KB); in format() [all …]
|
H A D | units.hpp | 76 uint64_t _count; member in utils::units::bytes
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_defs.h | 349 #define IRDMA_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \ argument 353 if ((IRDMA_RING_USED_QUANTA(_ring) + (_count)) < size) { \ 354 (_ring).head = ((_ring).head + (_count)) % size; \ 371 #define IRDMA_SQ_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \ argument 375 if ((IRDMA_RING_USED_QUANTA(_ring) + (_count)) < (size - 256)) { \ 376 (_ring).head = ((_ring).head + (_count)) % size; \ 382 #define IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(_ring, _count) \ argument 383 (_ring).head = ((_ring).head + (_count)) % (_ring).size 391 #define IRDMA_RING_MOVE_TAIL_BY_COUNT(_ring, _count) \ argument 392 (_ring).tail = ((_ring).tail + (_count)) % (_ring).size
|
/freebsd/lib/libc/gen/ |
H A D | sem_new.c | 133 sem->_kern._count = (u_int32_t)value; in _sem_init() 217 tmp._kern._count = value; in _sem_open() 332 *sval = (int)USEM_COUNT(sem->_kern._count); in _sem_getvalue() 382 while (USEM_COUNT(val = sem->_kern._count) > 0) { in _sem_trywait() 383 if (atomic_cmpset_acq_int(&sem->_kern._count, val, val - 1)) in _sem_trywait() 402 while (USEM_COUNT(val = sem->_kern._count) > 0) { in _sem_clockwait_np() 403 if (atomic_cmpset_acq_int(&sem->_kern._count, val, in _sem_clockwait_np() 461 count = sem->_kern._count; in _sem_post() 466 } while (!atomic_cmpset_rel_int(&sem->_kern._count, count, count + 1)); in _sem_post()
|
/freebsd/sys/dev/bhnd/tools/ |
H A D | nvram_map_gen.awk | 1134 _width, _count, _skip_in, _seg_offset, _delta) 1150 _count = get(bind, p_count) 1164 if (_count == 1) { 1181 } else if (_count > 1) { 1184 _bind_off = _bind_off + (_width * _skip_in * (_count + 1)) 1193 set(bind, p_count, _count + 1) 1235 _count = 1 1273 function _srom_ops_apply_bind_offset(opstream, bind, _count, _offset, _width, 1284 _count = get(bind, p_count) 1289 _opstream_offset + ((_width * _skip_in) * _count)) [all …]
|
/freebsd/sys/sys/ |
H A D | _umtx.h | 68 volatile __uint32_t _count; member 73 volatile __uint32_t _count; /* Waiters flag in high bit. */ member
|
H A D | linker.h | 175 void *_start, void *_stop, int *_count);
|
H A D | acl.h | 402 acl_t acl_init(int _count);
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf.h | 231 size_t elf32_fsize(Elf_Type _type, size_t _count, 238 Elf32_Phdr *elf32_newphdr(Elf *_elf, size_t _count); 245 size_t elf64_fsize(Elf_Type _type, size_t _count, 252 Elf64_Phdr *elf64_newphdr(Elf *_elf, size_t _count);
|
H A D | gelf.h | 75 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count,
|
H A D | _libelf.h | 232 void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count);
|
/freebsd/contrib/libucl/uthash/ |
H A D | uthash.h | 282 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/sys/dev/etherswitch/arswitch/ |
H A D | arswitchreg.h | 43 #define BITM(_count) ((1UL << (_count)) - 1) argument 44 #define BITS(_shift, _count) (BITM(_count) << (_shift)) argument
|
/freebsd/contrib/elftoolchain/common/ |
H A D | uthash.h | 266 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/sys/dev/irdma/ |
H A D | irdma_defs.h | 1433 #define IRDMA_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \ argument 1437 if ((IRDMA_RING_USED_QUANTA(_ring) + (_count)) < size) { \ 1438 (_ring).head = ((_ring).head + (_count)) % size; \ 1455 #define IRDMA_SQ_RING_MOVE_HEAD_BY_COUNT(_ring, _count, _retcode) \ argument 1459 if ((IRDMA_RING_USED_QUANTA(_ring) + (_count)) < (size - 256)) { \ 1460 (_ring).head = ((_ring).head + (_count)) % size; \ 1466 #define IRDMA_RING_MOVE_HEAD_BY_COUNT_NOCHECK(_ring, _count) \ argument 1467 (_ring).head = ((_ring).head + (_count)) % (_ring).size 1475 #define IRDMA_RING_MOVE_TAIL_BY_COUNT(_ring, _count) \ argument 1476 (_ring).tail = ((_ring).tail + (_count)) % (_ring).size
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | atomic.c | 78 __c11_atomic_store((_Atomic(uint32_t) *)&l->_count, 1, __ATOMIC_RELEASE); in unlock() 85 while (!__c11_atomic_compare_exchange_weak((_Atomic(uint32_t) *)&l->_count, in lock()
|
/freebsd/contrib/file/src/ |
H A D | file.h | 370 uint32_t _count; /* repeat/line count */ member 375 #define str_range _u._s._count
|
/freebsd/sys/kern/ |
H A D | bus_if.m | 290 * @param _count hint at the size of range required - pass @c 1 306 rman_res_t _count; 544 * to start at @p _start and to include @p _count indices in its 552 * @param _count the size of the resource range 560 rman_res_t _count; 575 * @param _count the address of a location to receive the size
|
H A D | kern_umtx.c | 3601 rv1 = fueword32(&sem->_count, &count); in do_sem_wait() 3705 rv = fueword32(&sem->_count, &count); in do_sem2_wait() 3725 rv = casueword32(&sem->_count, 0, &count, USEM_HAS_WAITERS); in do_sem2_wait() 3791 rv = fueword32(&sem->_count, &count); in do_sem2_wake() 3793 rv = casueword32(&sem->_count, count, &count, in do_sem2_wake()
|
/freebsd/tools/test/netfibs/ |
H A D | forwarding.sh | 596 local _n _reply _line _edge _type _fib _count _rc _ec _status 626 while read _fib _count; do 629 if test ${_count} -gt 0; then 641 ${_count} ${_rc} ${_em}
|