| /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 | 178 int racct_add(struct proc *p, int resource, uint64_t amount); 179 void racct_add_cred(struct ucred *cred, int resource, uint64_t amount); 180 void racct_add_force(struct proc *p, int resource, uint64_t amount); 182 int racct_set(struct proc *p, int resource, uint64_t amount); 183 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount); 184 void racct_set_force(struct proc *p, int resource, uint64_t amount); 185 void racct_sub(struct proc *p, int resource, uint64_t amount); 186 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount); 208 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument 215 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 | 88 uint64_t amount); 90 uint64_t amount); 91 static int racct_set_locked(struct proc *p, int resource, uint64_t amount, 301 int64_t amount) in racct_adjust_resource() argument 308 racct->r_resources[resource] += amount; in racct_adjust_resource() 317 racct_add_locked(struct proc *p, int resource, uint64_t amount, int force) in racct_add_locked() argument 331 error = rctl_enforce(p, resource, amount); in racct_add_locked() 333 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount); in racct_add_locked() 337 racct_adjust_resource(p->p_racct, resource, amount); in racct_add_locked() 338 racct_add_cred_locked(p->p_ucred, resource, amount); in racct_add_locked() [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() 131 BIO_free_all(chain[amount - 1]); in cleanup() 165 amount = strtoul(arg, &endptr, 10); in setup() 172 if (amount < 1) { in setup() 210 if (idx >= amount) { in setup() 212 progname, idx, amount - 1); in setup() 241 if (idx >= amount) { in setup() 243 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)) == NULL) { 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 | 332 crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) in crypto_cursor_advance() argument 338 MPASS(cc->cc_buf_len >= amount); in crypto_cursor_advance() 339 cc->cc_buf += amount; in crypto_cursor_advance() 340 cc->cc_buf_len -= amount; in crypto_cursor_advance() 345 if (amount < remain) { in crypto_cursor_advance() 346 cc->cc_offset += amount; in crypto_cursor_advance() 349 amount -= remain; in crypto_cursor_advance() 352 if (amount == 0) in crypto_cursor_advance() 357 MPASS(cc->cc_mbuf->m_len >= cc->cc_offset + amount); in crypto_cursor_advance() 358 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/llvm-project/lldb/source/API/ |
| H A D | SBProgress.cpp | 40 void SBProgress::Increment(uint64_t amount, const char *description) { in Increment() argument 41 LLDB_INSTRUMENT_VA(amount, description); in Increment() 49 m_opaque_up->Increment(amount, std::move(description_opt)); in Increment()
|
| /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/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/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
| H A D | trace_arc.h | 354 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count), 355 TP_ARGS(amount, arc_evict_count, aew_count), 357 __field(uint64_t, amount) 362 __entry->amount = amount; 367 __entry->amount, __entry->arc_evict_count, __entry->aew_count) 373 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count), \ 374 TP_ARGS(amount, arc_evict_count, aew_count))
|
| /freebsd/contrib/xz/src/xz/ |
| H A D | file_io.c | 1250 const ssize_t amount = read( in io_read() local 1253 if (amount == 0) { in io_read() 1258 if (amount == -1) { in io_read() 1300 pos += (size_t)(amount); in io_read() 1344 const size_t amount = io_read(pair, buf, size); in io_pread() local 1345 if (amount == SIZE_MAX) in io_pread() 1348 if (amount != size) { in io_pread() 1377 const ssize_t amount = write(pair->dest_fd, buf, size); in io_write_buf() local 1378 if (amount == -1) { in io_write_buf() 1428 buf += (size_t)(amount); in io_write_buf() [all …]
|
| /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/contrib/llvm-project/lldb/source/Core/ |
| H A D | Progress.cpp | 62 void Progress::Increment(uint64_t amount, in Increment() argument 64 if (amount == 0) in Increment() 67 m_completed.fetch_add(amount, std::memory_order_relaxed); in Increment()
|
| /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()
|