Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h91 if (amount == 0) { in LSL_C()
96 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0; in LSL_C()
103 if (amount == 0) in LSL()
115 if (amount == 0) { in LSR_C()
120 carry_out = amount <= 32 ? Bit32(value, amount - 1) : 0; in LSR_C()
127 if (amount == 0) in LSR()
139 if (amount == 0 || amount > 32) { in ASR_C()
148 return UnsignedBits(extended, amount + 31, amount); in ASR_C()
158 if (amount == 0) in ASR()
170 if (amount == 0) { in ROR_C()
[all …]
/freebsd-13.1/sys/sys/
H A Dracct.h177 int racct_add(struct proc *p, int resource, uint64_t amount);
179 void racct_add_force(struct proc *p, int resource, uint64_t amount);
181 int racct_set(struct proc *p, int resource, uint64_t amount);
184 void racct_sub(struct proc *p, 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
220 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument
225 racct_set(struct proc *p, int resource, uint64_t amount) in racct_set() argument
232 racct_set_force(struct proc *p, int resource, uint64_t amount) in racct_set_force() argument
237 racct_sub(struct proc *p, int resource, uint64_t amount) in racct_sub() argument
[all …]
/freebsd-13.1/sys/kern/
H A Dkern_racct.c103 uint64_t amount);
105 uint64_t amount);
517 int64_t amount) in racct_adjust_resource() argument
524 racct->r_resources[resource] += amount; in racct_adjust_resource()
606 racct_add_locked(p, resource, amount, 1); in racct_add_force()
620 amount); in racct_add_cred_locked()
685 diff_proc = amount - old_amount; in racct_set_locked()
694 diff_cred = amount - decayed_amount; in racct_set_locked()
707 amount); in racct_set_locked()
735 error = racct_set(p, resource, amount); in racct_set_unlocked()
[all …]
/freebsd-13.1/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-13.1/contrib/xz/src/liblzma/lz/
H A Dlz_encoder.h267 mf_skip(lzma_mf *mf, uint32_t amount) in mf_skip() argument
269 if (amount != 0) { in mf_skip()
270 mf->skip(mf, amount); in mf_skip()
271 mf->read_ahead += amount; in mf_skip()
313 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount);
316 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount);
319 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount);
322 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount);
325 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
H A Dlz_encoder_mf.c338 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()
/freebsd-13.1/usr.bin/rctl/
H A Drctl.c132 amount = strsep(&copy, "/"); in expand_amount()
135 if (amount == NULL || strlen(amount) == 0) { in expand_amount()
153 if (expand_number(amount, &num)) { in expand_amount()
155 unexpanded_rule, amount); in expand_amount()
325 amount = strsep(&copy, "/"); in humanize_amount()
328 if (amount == NULL || strlen(amount) == 0 || in humanize_amount()
329 str2int64(amount, &num) != 0) { in humanize_amount()
466 const char *resource, *amount; in humanize_usage_amount() local
475 amount = copy; in humanize_usage_amount()
478 assert(amount != NULL); in humanize_usage_amount()
[all …]
/freebsd-13.1/sys/opencrypto/
H A Dcriov.c342 cc->cc_buf += amount; in crypto_cursor_advance()
348 if (amount < remain) { in crypto_cursor_advance()
352 amount -= remain; in crypto_cursor_advance()
355 if (amount == 0) in crypto_cursor_advance()
361 cc->cc_offset += amount; in crypto_cursor_advance()
366 cc, amount); in crypto_cursor_advance()
368 if (amount < remain) { in crypto_cursor_advance()
374 amount -= remain; in crypto_cursor_advance()
384 if (amount < remain) { in crypto_cursor_advance()
388 amount -= remain; in crypto_cursor_advance()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Core/
H A DProgress.cpp39 void Progress::Increment(uint64_t amount) { in Increment() argument
40 if (amount > 0) { in Increment()
44 if (amount > (m_total - m_completed)) in Increment()
47 m_completed += amount; in Increment()
/freebsd-13.1/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_005_pos.ksh79 amount=$($ECHO $AMOUNT | $AWK '{print $1}')
80 log_must $ZFS set f:amount=$amount $basefs/$ds
82 log_must $ZFS set f:amount=$amount $basefs/${ds}-vol
/freebsd-13.1/contrib/ncurses/ncurses/tinfo/
H A Ddoalloc.c46 _nc_doalloc(void *oldp, size_t amount) in NCURSES_EXPORT()
51 if ((newp = realloc(oldp, amount)) == 0) { in NCURSES_EXPORT()
56 newp = malloc(amount); in NCURSES_EXPORT()
H A Dlib_tputs.c126 size_t amount = SP->out_inuse; in NCURSES_SP_NAME() local
129 TR(TRACE_CHARPUT, ("flushing %ld bytes", (unsigned long) amount)); in NCURSES_SP_NAME()
130 while (amount) { in NCURSES_SP_NAME()
131 ssize_t res = write(SP_PARM->_ofd, buf, amount); in NCURSES_SP_NAME()
135 amount -= (size_t) res; in NCURSES_SP_NAME()
/freebsd-13.1/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.cpp439 amount = (int8_t) * (p + 2); in sub_rsp_pattern_p()
444 amount = (int32_t)extract_4(p + 2); in sub_rsp_pattern_p()
457 amount = (int8_t) * (p + 2); in add_rsp_pattern_p()
462 amount = (int32_t)extract_4(p + 2); in add_rsp_pattern_p()
481 amount = (int8_t) * (p + 3); in lea_rsp_pattern_p()
487 amount = (int32_t)extract_4(p + 3); in lea_rsp_pattern_p()
508 amount = (int8_t)p[1]; in lea_rbp_rsp_pattern_p()
514 amount = (int32_t)extract_4(p + 1); in lea_rbp_rsp_pattern_p()
535 amount = (int8_t)p[1]; in lea_rbx_rsp_pattern_p()
541 amount = (int32_t)extract_4(p + 1); in lea_rbx_rsp_pattern_p()
[all …]
/freebsd-13.1/sys/arm64/arm64/
H A Ddisassem.c342 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; in disasm() local
351 shift = rd = rm = rn = imm = idx = option = amount = scale = 0; in disasm()
487 amount = (insn >> ARM_INSN_SIZE_OFFSET) & in disasm()
492 di->di_printf(", uxtw #%d", amount); in disasm()
496 di->di_printf(", lsl #%d", amount); in disasm()
499 di->di_printf(", sxtw #%d", amount); in disasm()
502 di->di_printf(", sxts #%d", amount); in disasm()
/freebsd-13.1/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-13.1/contrib/ldns/
H A Dbuffer.c79 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-13.1/contrib/xz/src/xz/
H A Dfile_io.c1124 const ssize_t amount = read( in io_read() local
1127 if (amount == 0) { in io_read()
1132 if (amount == -1) { in io_read()
1173 pos += (size_t)(amount); in io_read()
1196 const size_t amount = io_read(pair, buf, size); in io_pread() local
1197 if (amount == SIZE_MAX) in io_pread()
1200 if (amount != size) { in io_pread()
1229 const ssize_t amount = write(pair->dest_fd, buf, size); in io_write_buf() local
1230 if (amount == -1) { in io_write_buf()
1266 buf += (size_t)(amount); in io_write_buf()
[all …]
/freebsd-13.1/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dtrace_arc.h367 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count),
368 TP_ARGS(amount, arc_evict_count, aew_count),
370 __field(uint64_t, amount)
375 __entry->amount = amount;
380 __entry->amount, __entry->arc_evict_count, __entry->aew_count)
387 TP_PROTO(uint64_t amount, uint64_t arc_evict_count, uint64_t aew_count), \
388 TP_ARGS(amount, arc_evict_count, aew_count))
/freebsd-13.1/crypto/openssl/crypto/
H A Dthreads_pthread.c163 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_add() argument
168 *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL); in CRYPTO_atomic_add()
175 *val += amount; in CRYPTO_atomic_add()
/freebsd-13.1/libexec/tftpd/
H A Dtftp-transfer.c74 ts->amount = 0; in tftp_send()
188 ts->amount += window[j].size; in tftp_send()
255 ts->amount = 0; in tftp_receive()
260 ts->amount += writesize; in tftp_receive()
390 ts->amount += writesize; in tftp_receive()
H A Dtftp-utils.c298 ts->amount = 0; in stats_init()
302 ts->amount = 0; in stats_init()
316 direction, ts->amount, delta, ts->blocks); in printstats()
323 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta); in printstats()
/freebsd-13.1/sys/dev/drm2/ttm/
H A Dttm_memory.c330 uint64_t amount) in ttm_mem_global_free_zone() argument
340 zone->used_mem -= amount; in ttm_mem_global_free_zone()
346 uint64_t amount) in ttm_mem_global_free() argument
348 return ttm_mem_global_free_zone(glob, NULL, amount); in ttm_mem_global_free()
353 uint64_t amount, bool reserve) in ttm_mem_global_reserve() argument
378 zone->used_mem += amount; in ttm_mem_global_reserve()
/freebsd-13.1/sys/arm/ti/
H A Dti_i2c.c198 int amount, done, i; in ti_i2c_transfer_intr() local
201 amount = 0; in ti_i2c_transfer_intr()
242 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr()
250 amount = min(sc->sc_fifo_trsh, in ti_i2c_transfer_intr()
255 for (i = 0; i < amount; i++) in ti_i2c_transfer_intr()
278 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr()
286 amount = min(sc->sc_fifo_trsh, in ti_i2c_transfer_intr()
291 for (i = 0; i < amount; i++) in ti_i2c_transfer_intr()
/freebsd-13.1/usr.bin/last/
H A Dlast.c264 static unsigned int amount = 0; in wtmp() local
276 if (amount % 128 == 0) { in wtmp()
277 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp()
281 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp()
289 while (amount > 0) in wtmp()
290 doentry(&buf[--amount]); in wtmp()

12345678910>>...12