Home
last modified time | relevance | path

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

/freebsd/contrib/kyua/utils/
H A Dunits.cpp46 _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()
124 return F("%s") % _count; in format()
[all …]
H A Dunits.hpp76 uint64_t _count; member in utils::units::bytes
/freebsd/contrib/ofed/libirdma/
H A Dirdma_defs.h349 #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 Dsem_new.c133 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/sys/
H A D_umtx.h68 volatile __uint32_t _count; member
73 volatile __uint32_t _count; /* Waiters flag in high bit. */ member
H A Dlinker.h173 void *_start, void *_stop, int *_count);
H A Dacl.h402 acl_t acl_init(int _count);
/freebsd/sys/dev/bhnd/tools/
H A Dnvram_map_gen.awk1150 _count = get(bind, p_count)
1164 if (_count == 1) {
1181 } else if (_count > 1) {
1235 _count = 1
1284 _count = get(bind, p_count)
1317 while (_count > 0) {
1318 if (_count > 1 && _count <= SPROM_OP_IMM_MAX &&
1325 _count -= _count
1327 } else if (_count > 1) {
1339 _count -= _written
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf.h231 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 Dgelf.h75 size_t gelf_fsize(Elf *_elf, Elf_Type _type, size_t _count,
H A D_libelf.h232 void *_libelf_newphdr(Elf *_e, int _elfclass, size_t _count);
/freebsd/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/sys/dev/etherswitch/arswitch/
H A Darswitchreg.h43 #define BITM(_count) ((1UL << (_count)) - 1) argument
44 #define BITS(_shift, _count) (BITM(_count) << (_shift)) argument
/freebsd/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/sys/dev/irdma/
H A Dirdma_defs.h1433 #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 Datomic.c68 __c11_atomic_store((_Atomic(uint32_t) *)&l->_count, 1, __ATOMIC_RELEASE); in unlock()
75 while (!__c11_atomic_compare_exchange_weak((_Atomic(uint32_t) *)&l->_count, in lock()
/freebsd/contrib/file/src/
H A Dfile.h359 uint32_t _count; /* repeat/line count */ member
364 #define str_range _u._s._count
/freebsd/sys/kern/
H A Dbus_if.m283 * @param _count hint at the size of range required - pass @c 1
299 rman_res_t _count;
537 * to start at @p _start and to include @p _count indices in its
545 * @param _count the size of the resource range
553 rman_res_t _count;
568 * @param _count the address of a location to receive the size
H A Dkern_umtx.c3596 rv1 = fueword32(&sem->_count, &count); in do_sem_wait()
3700 rv = fueword32(&sem->_count, &count); in do_sem2_wait()
3720 rv = casueword32(&sem->_count, 0, &count, USEM_HAS_WAITERS); in do_sem2_wait()
3786 rv = fueword32(&sem->_count, &count); in do_sem2_wake()
3788 rv = casueword32(&sem->_count, count, &count, in do_sem2_wake()
/freebsd/tools/test/netfibs/
H A Dforwarding.sh596 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}