| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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()
|
| /src/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()
|
| /src/contrib/xz/src/liblzma/lz/ |
| H A D | lz_encoder.h | 291 mf_skip(lzma_mf *mf, uint32_t amount) in mf_skip() argument 293 if (amount != 0) { in mf_skip() 294 mf->skip(mf, amount); in mf_skip() 295 mf->read_ahead += amount; in mf_skip() 338 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount); 341 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount); 344 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount); 347 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount); 350 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
|
| H A D | lz_encoder_mf.c | 338 lzma_mf_hc3_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_hc3_skip() argument 359 } while (--amount != 0); in lzma_mf_hc3_skip() 417 lzma_mf_hc4_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_hc4_skip() argument 439 } while (--amount != 0); in lzma_mf_hc4_skip() 601 lzma_mf_bt2_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt2_skip() argument 613 } while (--amount != 0); in lzma_mf_bt2_skip() 653 lzma_mf_bt3_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt3_skip() argument 668 } while (--amount != 0); in lzma_mf_bt3_skip() 726 lzma_mf_bt4_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt4_skip() argument 742 } while (--amount != 0); in lzma_mf_bt4_skip()
|
| /src/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 _nc_flush() local 137 (unsigned long) amount, _nc_outchars)); in _nc_flush() 138 while (amount) { in _nc_flush() 139 ssize_t res = write(SP_PARM->_ofd, buf, amount); in _nc_flush() 142 amount -= (size_t) res; in _nc_flush()
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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
|
| /src/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"
|
| /src/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 …]
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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))
|
| /src/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()
|
| /src/contrib/xz/src/xz/ |
| H A D | file_io.c | 1249 const ssize_t amount = read( in io_read() local 1252 if (amount == 0) { in io_read() 1257 if (amount == -1) { in io_read() 1299 pos += (size_t)(amount); in io_read() 1343 const size_t amount = io_read(pair, buf, size); in io_pread() local 1344 if (amount == SIZE_MAX) in io_pread() 1347 if (amount != size) { in io_pread() 1376 const ssize_t amount = write(pair->dest_fd, buf, size); in io_write_buf() local 1377 if (amount == -1) { in io_write_buf() 1427 buf += (size_t)(amount); in io_write_buf() [all …]
|
| /src/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()
|