Home
last modified time | relevance | path

Searched refs:amount (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h93 if (amount == 0) { in LSL_C()
98 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0; in LSL_C()
105 if (amount == 0) in LSL()
117 if (amount == 0) { in LSR_C()
122 carry_out = amount <= 32 ? Bit32(value, amount - 1) : 0; in LSR_C()
129 if (amount == 0) in LSR()
141 if (amount == 0 || amount > 32) { in ASR_C()
150 return UnsignedBits(extended, amount + 31, amount); in ASR_C()
160 if (amount == 0) in ASR()
172 if (amount == 0) { in ROR_C()
[all …]
/freebsd/sys/sys/
H A Dracct.h174 int racct_add(struct proc *p, 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);
181 void racct_sub(struct proc *p, 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
216 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument
221 racct_set(struct proc *p, int resource, uint64_t amount) in racct_set() argument
228 racct_set_force(struct proc *p, int resource, uint64_t amount) in racct_set_force() argument
233 racct_sub(struct proc *p, int resource, uint64_t amount) in racct_sub() argument
[all …]
/freebsd/sys/kern/
H A Dkern_racct.c96 uint64_t amount);
98 uint64_t amount);
510 int64_t amount) in racct_adjust_resource() argument
517 racct->r_resources[resource] += amount; in racct_adjust_resource()
599 racct_add_locked(p, resource, amount, 1); in racct_add_force()
613 amount); in racct_add_cred_locked()
678 diff_proc = amount - old_amount; in racct_set_locked()
687 diff_cred = amount - decayed_amount; in racct_set_locked()
700 amount); in racct_set_locked()
728 error = racct_set(p, resource, amount); in racct_set_unlocked()
[all …]
/freebsd/contrib/kyua/utils/
H A Dmemory.cpp144 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 Dbio_prefix_text.c39 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/xz/src/liblzma/lz/
H A Dlz_encoder.h288 mf_skip(lzma_mf *mf, uint32_t amount) in mf_skip() argument
290 if (amount != 0) { in mf_skip()
291 mf->skip(mf, amount); in mf_skip()
292 mf->read_ahead += amount; in mf_skip()
335 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount);
338 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount);
341 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount);
344 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount);
347 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
H A Dlz_encoder_mf.c339 lzma_mf_hc3_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_hc3_skip() argument
360 } while (--amount != 0); in lzma_mf_hc3_skip()
418 lzma_mf_hc4_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_hc4_skip() argument
440 } while (--amount != 0); in lzma_mf_hc4_skip()
602 lzma_mf_bt2_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt2_skip() argument
614 } while (--amount != 0); in lzma_mf_bt2_skip()
654 lzma_mf_bt3_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt3_skip() argument
669 } while (--amount != 0); in lzma_mf_bt3_skip()
727 lzma_mf_bt4_skip(lzma_mf *mf, uint32_t amount) in lzma_mf_bt4_skip() argument
743 } while (--amount != 0); in lzma_mf_bt4_skip()
/freebsd/usr.bin/rctl/
H A Drctl.c127 amount = strsep(&copy, "/"); 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()
320 amount = strsep(&copy, "/"); 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
470 amount = copy; in humanize_usage_amount()
473 assert(amount != NULL); in humanize_usage_amount()
[all …]
/freebsd/sys/opencrypto/
H A Dcriov.c341 cc->cc_buf += amount; in crypto_cursor_advance()
347 if (amount < remain) { in crypto_cursor_advance()
351 amount -= remain; in crypto_cursor_advance()
354 if (amount == 0) in crypto_cursor_advance()
360 cc->cc_offset += amount; in crypto_cursor_advance()
365 cc, amount); in crypto_cursor_advance()
367 if (amount < remain) { in crypto_cursor_advance()
373 amount -= remain; in crypto_cursor_advance()
383 if (amount < remain) { in crypto_cursor_advance()
388 amount -= remain; in crypto_cursor_advance()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_005_pos.ksh74 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 Dt.nameval1 { if (amount[$2] == "")
3 amount[$2] += $1
6 print name[i], amount[name[i]]
H A Dt.a1 {if (amount[$2] "" == "") item[++num] = $2;
2 amount[$2] += $1
5 print item[i], amount[item[i]]
H A Dt.in11 { if (amount[$2] == "")
3 amount[$2] += $1
6 print i, name[i], amount[name[i]] | "sort"
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Ddoalloc.c46 _nc_doalloc(void *oldp, size_t amount) in _nc_doalloc() argument
51 if ((newp = realloc(oldp, amount)) == 0) { in _nc_doalloc()
56 newp = malloc(amount); in _nc_doalloc()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DProgress.cpp45 void Progress::Increment(uint64_t amount, in Increment() argument
47 if (amount > 0) { in Increment()
53 if (m_total && (amount > (m_total - m_completed))) in Increment()
56 m_completed += amount; in Increment()
/freebsd/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/
H A Dx86AssemblyInspectionEngine.h103 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 Dx86AssemblyInspectionEngine.cpp440 amount = (int8_t) * (p + 2); in sub_rsp_pattern_p()
445 amount = (int32_t)extract_4(p + 2); in sub_rsp_pattern_p()
458 amount = (int8_t) * (p + 2); in add_rsp_pattern_p()
463 amount = (int32_t)extract_4(p + 2); in add_rsp_pattern_p()
482 amount = (int8_t) * (p + 3); in lea_rsp_pattern_p()
488 amount = (int32_t)extract_4(p + 3); in lea_rsp_pattern_p()
509 amount = (int8_t)p[1]; in lea_rbp_rsp_pattern_p()
515 amount = (int32_t)extract_4(p + 1); in lea_rbp_rsp_pattern_p()
536 amount = (int8_t)p[1]; in lea_rbx_rsp_pattern_p()
542 amount = (int32_t)extract_4(p + 1); in lea_rbx_rsp_pattern_p()
[all …]
/freebsd/sys/arm64/arm64/
H A Ddisassem.c432 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 Dsbuffer.c93 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 Dbuffer.c80 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/crypto/openssl/crypto/
H A Dthreads_pthread.c199 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/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_arc.h353 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/contrib/xz/src/xz/
H A Dfile_io.c1186 const ssize_t amount = read( in io_read() local
1189 if (amount == 0) { in io_read()
1194 if (amount == -1) { in io_read()
1235 pos += (size_t)(amount); in io_read()
1278 const size_t amount = io_read(pair, buf, size); in io_pread() local
1279 if (amount == SIZE_MAX) in io_pread()
1282 if (amount != size) { in io_pread()
1311 const ssize_t amount = write(pair->dest_fd, buf, size); in io_write_buf() local
1312 if (amount == -1) { in io_write_buf()
1348 buf += (size_t)(amount); in io_write_buf()
[all …]
/freebsd/libexec/tftpd/
H A Dtftp-transfer.c71 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 Dtftp-utils.c301 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()

12345678910>>...14