/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | ARMUtils.h | 91 static inline uint32_t LSL_C(const uint32_t value, const uint32_t amount, in LSL_C() argument 93 if (amount == 0) { in LSL_C() 98 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0; in LSL_C() 99 return value << amount; in LSL_C() 102 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, in LSL() argument 105 if (amount == 0) in LSL() 108 uint32_t result = LSL_C(value, amount, dont_care, success); in LSL() 115 static inline uint32_t LSR_C(const uint32_t value, const uint32_t amount, in LSR_C() argument 117 if (amount == 0) { in LSR_C() 122 carry_out = amount <= 32 ? Bit32(value, amount - 1) : 0; in LSR_C() [all …]
|
/freebsd/sys/sys/ |
H A D | racct.h | 174 int racct_add(struct proc *p, int resource, uint64_t amount); 175 void racct_add_cred(struct ucred *cred, int resource, uint64_t amount); 176 void racct_add_force(struct proc *p, int resource, uint64_t amount); 178 int racct_set(struct proc *p, int resource, uint64_t amount); 179 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount); 180 void racct_set_force(struct proc *p, int resource, uint64_t amount); 181 void racct_sub(struct proc *p, int resource, uint64_t amount); 182 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount); 204 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument 211 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) in racct_add_cred() argument [all …]
|
/freebsd/sys/kern/ |
H A D | kern_racct.c | 96 uint64_t amount); 98 uint64_t amount); 498 * Increase consumption of 'resource' by 'amount' for 'racct', in racct_destroy() 499 * but not its parents. Differently from other cases, 'amount' here in racct_destroy() 504 int64_t amount) 511 racct->r_resources[resource] += amount; in racct_adjust_resource() 533 racct_add_locked(struct proc *p, int resource, uint64_t amount, int force) in racct_adjust_resource() 547 error = rctl_enforce(p, resource, amount); in racct_add_locked() 549 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount); in racct_add_locked() 553 racct_adjust_resource(p->p_racct, resource, amount); in racct_add_locked() 510 racct_adjust_resource(struct racct * racct,int resource,int64_t amount) racct_adjust_resource() argument 539 racct_add_locked(struct proc * p,int resource,uint64_t amount,int force) racct_add_locked() argument 570 racct_add(struct proc * p,int resource,uint64_t amount) racct_add() argument 590 racct_add_force(struct proc * p,int resource,uint64_t amount) racct_add_force() argument 604 racct_add_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_add_cred_locked() argument 622 racct_add_cred(struct ucred * cred,int resource,uint64_t amount) racct_add_cred() argument 660 racct_set_locked(struct proc * p,int resource,uint64_t amount,int force) racct_set_locked() argument 722 racct_set_unlocked(struct proc * p,int resource,uint64_t amount) racct_set_unlocked() argument 734 racct_set(struct proc * p,int resource,uint64_t amount) racct_set() argument 750 racct_set_force(struct proc * p,int resource,uint64_t amount) racct_set_force() argument 843 racct_sub(struct proc * p,int resource,uint64_t amount) racct_sub() argument 870 racct_sub_cred_locked(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred_locked() argument 887 racct_sub_cred(struct ucred * cred,int resource,uint64_t amount) racct_sub_cred() argument [all...] |
/freebsd/contrib/kyua/utils/ |
H A D | memory.cpp | 144 static int64_t amount = -1; in physical_memory() local 145 if (amount == -1) { in physical_memory() 148 amount = 0; in physical_memory() 150 amount = query_sysctl(query_sysctl_mib); in physical_memory() 154 query_type % amount); in physical_memory() 156 POST(amount > -1); in physical_memory() 157 return units::bytes(amount); in physical_memory()
|
/freebsd/crypto/openssl/test/ |
H A D | bio_prefix_text.c | 39 static size_t amount = 0; variable 86 if (!BIO_write_ex(chain[amount - 1], buf, bytes_in, &bytes)) in run_pipe() 97 size_t n = amount; in setup_bio_chain() 129 BIO_free_all(chain[amount - 1]); in cleanup() 164 amount = strtoul(arg, &endptr, 10); in setup() 171 if (amount < 1) { in setup() 209 if (idx >= amount) { in setup() 211 progname, idx, amount - 1); in setup() 240 if (idx >= amount) { in setup() 242 progname, idx, amount - 1); in setup()
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | doalloc.c | 46 _nc_doalloc(void *oldp, size_t amount) in _nc_doalloc() argument 51 if (amount == 0) { in _nc_doalloc() 54 } else if ((newp = realloc(oldp, amount)) == 0) { in _nc_doalloc() 59 newp = malloc(amount); in _nc_doalloc()
|
H A D | lib_tputs.c | 134 size_t amount = SP_PARM->out_inuse; in NCURSES_SP_NAME() local 137 (unsigned long) amount, _nc_outchars)); in NCURSES_SP_NAME() 138 while (amount) { in NCURSES_SP_NAME() 139 ssize_t res = write(SP_PARM->_ofd, buf, amount); in NCURSES_SP_NAME() 142 amount -= (size_t) res; in NCURSES_SP_NAME()
|
/freebsd/usr.bin/rctl/ |
H A D | rctl.c | 113 const char *subject, *subject_id, *resource, *action, *amount, *per; in expand_amount() local 127 amount = strsep(©, "/"); in expand_amount() 130 if (amount == NULL || strlen(amount) == 0) { in expand_amount() 148 if (expand_number(amount, &num)) { in expand_amount() 150 unexpanded_rule, amount); in expand_amount() 308 const char *subject, *subject_id, *resource, *action, *amount, *per; in humanize_amount() local 320 amount = strsep(©, "/"); in humanize_amount() 323 if (amount == NULL || strlen(amount) == 0 || in humanize_amount() 324 str2int64(amount, &num) != 0) { in humanize_amount() 461 const char *resource, *amount; in humanize_usage_amount() local [all …]
|
/freebsd/sys/opencrypto/ |
H A D | criov.c | 334 crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) in crypto_cursor_advance() argument 340 MPASS(cc->cc_buf_len >= amount); in crypto_cursor_advance() 341 cc->cc_buf += amount; in crypto_cursor_advance() 342 cc->cc_buf_len -= amount; in crypto_cursor_advance() 347 if (amount < remain) { in crypto_cursor_advance() 348 cc->cc_offset += amount; in crypto_cursor_advance() 351 amount -= remain; in crypto_cursor_advance() 354 if (amount == 0) in crypto_cursor_advance() 359 MPASS(cc->cc_mbuf->m_len >= cc->cc_offset + amount); in crypto_cursor_advance() 360 cc->cc_offset += amount; in crypto_cursor_advance() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/ |
H A D | zfs_list_005_pos.ksh | 74 amount=$($ECHO $AMOUNT | $AWK '{print $1}') 75 log_must $ZFS set f:amount=$amount $basefs/$ds 77 log_must $ZFS set f:amount=$amount $basefs/${ds}-vol
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | t.a | 1 {if (amount[$2] "" == "") item[++num] = $2; 2 amount[$2] += $1 5 print item[i], amount[item[i]]
|
H A D | t.nameval | 1 { if (amount[$2] == "") 3 amount[$2] += $1 6 print name[i], amount[name[i]]
|
H A D | t.in1 | 1 { if (amount[$2] == "") 3 amount[$2] += $1 6 print i, name[i], amount[name[i]] | "sort"
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/ |
H A D | x86AssemblyInspectionEngine.h | 103 bool sub_rsp_pattern_p(int &amount); 104 bool add_rsp_pattern_p(int &amount); 105 bool lea_rsp_pattern_p(int &amount); 106 bool lea_rbp_rsp_pattern_p(int &amount); 107 bool lea_rbx_rsp_pattern_p(int &amount);
|
H A D | x86AssemblyInspectionEngine.cpp | 434 bool x86AssemblyInspectionEngine::sub_rsp_pattern_p(int &amount) { in sub_rsp_pattern_p() argument 440 amount = (int8_t) * (p + 2); in sub_rsp_pattern_p() 445 amount = (int32_t)extract_4(p + 2); in sub_rsp_pattern_p() 452 bool x86AssemblyInspectionEngine::add_rsp_pattern_p(int &amount) { in add_rsp_pattern_p() argument 458 amount = (int8_t) * (p + 2); in add_rsp_pattern_p() 463 amount = (int32_t)extract_4(p + 2); in add_rsp_pattern_p() 471 bool x86AssemblyInspectionEngine::lea_rsp_pattern_p(int &amount) { in lea_rsp_pattern_p() argument 482 amount = (int8_t) * (p + 3); in lea_rsp_pattern_p() 488 amount = (int32_t)extract_4(p + 3); in lea_rsp_pattern_p() 497 bool x86AssemblyInspectionEngine::lea_rbp_rsp_pattern_p(int &amount) { in lea_rbp_rsp_pattern_p() argument [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | disassem.c | 432 arm64_disasm_reg_extend(int sf, int option, int rd, int rn, int amount) in arm64_disasm_reg_extend() argument 445 if (lsl_preferred && amount == 0) in arm64_disasm_reg_extend() 495 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; in disasm() local 510 shift = rd = rm = rn = imm = idx = option = amount = scale = 0; in disasm() 679 amount = 0; in disasm() 682 amount = (insn >> ARM_INSN_SIZE_OFFSET) & in disasm() 688 di->di_printf(", uxtw #%d", amount); in disasm() 692 di->di_printf(", lsl #%d", amount); in disasm() 695 di->di_printf(", sxtw #%d", amount); in disasm() 698 di->di_printf(", sxtx #%d", amount); in disasm()
|
/freebsd/contrib/unbound/sldns/ |
H A D | sbuffer.c | 93 sldns_buffer_reserve(sldns_buffer *buffer, size_t amount) in sldns_buffer_reserve() argument 97 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve() 100 if (new_capacity < buffer->_position + amount) { in sldns_buffer_reserve() 101 new_capacity = buffer->_position + amount; in sldns_buffer_reserve()
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_arc.h | 353 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count), 354 TP_ARGS(amount, arc_evict_count, aew_count), 356 __field(uint64_t, amount) 361 __entry->amount = amount; 366 __entry->amount, __entry->arc_evict_count, __entry->aew_count) 372 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count), \ 373 TP_ARGS(amount, arc_evict_count, aew_count))
|
/freebsd/crypto/openssl/crypto/ |
H A D | threads_pthread.c | 199 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_add() argument 203 *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL); in CRYPTO_atomic_add() 209 *ret = atomic_add_int_nv((volatile unsigned int *)val, amount); in CRYPTO_atomic_add() 216 *val += amount; in CRYPTO_atomic_add()
|
/freebsd/contrib/ldns/ |
H A D | buffer.c | 80 ldns_buffer_reserve(ldns_buffer *buffer, size_t amount) in ldns_buffer_reserve() argument 83 if (buffer->_capacity < buffer->_position + amount) { in ldns_buffer_reserve() 86 if (new_capacity < buffer->_position + amount) { in ldns_buffer_reserve() 87 new_capacity = buffer->_position + amount; in ldns_buffer_reserve()
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | Progress.cpp | 57 void Progress::Increment(uint64_t amount, in Increment() argument 59 if (amount > 0) { in Increment() 65 if (m_total && (amount > (m_total - m_completed))) in Increment() 68 m_completed += amount; in Increment()
|
/freebsd/libexec/tftpd/ |
H A D | tftp-transfer.c | 71 ts->amount = 0; in tftp_send() 185 ts->amount += window[j].size; in tftp_send() 251 ts->amount = 0; in tftp_receive() 256 ts->amount += writesize; in tftp_receive() 386 ts->amount += writesize; in tftp_receive()
|
H A D | tftp-utils.c | 301 ts->amount = 0; in stats_init() 305 ts->amount = 0; in stats_init() 319 direction, ts->amount, delta, ts->blocks); in printstats() 326 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta); in printstats()
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_memory.c | 328 uint64_t amount) in ttm_mem_global_free_zone() argument 338 zone->used_mem -= amount; in ttm_mem_global_free_zone() 344 uint64_t amount) in ttm_mem_global_free() argument 346 return ttm_mem_global_free_zone(glob, NULL, amount); in ttm_mem_global_free() 351 uint64_t amount, bool reserve) in ttm_mem_global_reserve() argument 376 zone->used_mem += amount; in ttm_mem_global_reserve()
|
/freebsd/usr.bin/last/ |
H A D | last.c | 223 static unsigned int amount = 0; in wtmp() local 235 if (amount % 128 == 0) { in wtmp() 236 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp() 240 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp() 248 while (amount > 0) in wtmp() 249 doentry(&buf[--amount]); in wtmp()
|