Searched refs:amount (Results 1 - 25 of 74) sorted by relevance

123

/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/
H A Ddoalloc.c46 _nc_doalloc(void *oldp, size_t amount) argument
51 if ((newp = realloc(oldp, amount)) == 0) {
56 newp = malloc(amount);
H A Dlib_tputs.c126 size_t amount = SP->out_inuse; local
129 TR(TRACE_CHARPUT, ("flushing %ld bytes", (unsigned long) amount));
130 while (amount) {
131 ssize_t res = write(SP_PARM->_ofd, buf, amount);
135 amount -= (size_t) res;
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h89 static inline uint32_t LSL_C(const uint32_t value, const uint32_t amount, argument
91 if (amount == 0) {
96 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0;
97 return value << amount;
100 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, argument
103 if (amount == 0)
106 uint32_t result = LSL_C(value, amount, dont_care, success);
113 static inline uint32_t LSR_C(const uint32_t value, const uint32_t amount, argument
115 if (amount
124 LSR(const uint32_t value, const uint32_t amount, bool *success) argument
137 ASR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) argument
155 ASR(const uint32_t value, const uint32_t amount, bool *success) argument
168 ROR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) argument
181 ROR(const uint32_t value, const uint32_t amount, bool *success) argument
212 Shift_C(const uint32_t value, ARM_ShifterType type, const uint32_t amount, const uint32_t carry_in, uint32_t &carry_out, bool *success) argument
252 Shift(const uint32_t value, ARM_ShifterType type, const uint32_t amount, const uint32_t carry_in, bool *success) argument
[all...]
/freebsd-13-stable/contrib/kyua/utils/
H A Dmemory.cpp134 /// Queries the total amount of physical memory.
139 /// \return The amount of physical memory, in bytes. If the code does not know
144 static int64_t amount = -1; local
145 if (amount == -1) {
148 amount = 0;
150 amount = query_sysctl(query_sysctl_mib);
154 query_type % amount); local
156 POST(amount > -1);
157 return units::bytes(amount);
/freebsd-13-stable/sys/sys/
H A Dracct.h177 int racct_add(struct proc *p, int resource, uint64_t amount);
178 void racct_add_cred(struct ucred *cred, 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);
182 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount);
183 void racct_set_force(struct proc *p, int resource, uint64_t amount);
184 void racct_sub(struct proc *p, int resource, uint64_t amount);
185 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount);
208 racct_add(struct proc *p, int resource, uint64_t amount) argument
215 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) argument
220 racct_add_force(struct proc *p, int resource, uint64_t amount) argument
225 racct_set(struct proc *p, int resource, uint64_t amount) argument
232 racct_set_force(struct proc *p, int resource, uint64_t amount) argument
237 racct_sub(struct proc *p, int resource, uint64_t amount) argument
242 racct_sub_cred(struct ucred *cred, int resource, uint64_t amount) argument
[all...]
/freebsd-13-stable/contrib/xz/src/liblzma/lz/
H A Dlz_encoder.h130 /// Extra amount of data to keep available before the "actual"
137 /// Extra amount of data to keep available after the "actual"
177 // amount of extra buffer needed after dict_size becomes
267 mf_skip(lzma_mf *mf, uint32_t amount) argument
269 if (amount != 0) {
270 mf->skip(mf, amount);
271 mf->read_ahead += amount;
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);
[all...]
H A Dlz_encoder_mf.c171 /// function (with small amount of input, it may start using mf->pending
338 lzma_mf_hc3_skip(lzma_mf *mf, uint32_t amount) argument
359 } while (--amount != 0);
417 lzma_mf_hc4_skip(lzma_mf *mf, uint32_t amount) argument
439 } while (--amount != 0);
601 lzma_mf_bt2_skip(lzma_mf *mf, uint32_t amount) argument
613 } while (--amount != 0);
653 lzma_mf_bt3_skip(lzma_mf *mf, uint32_t amount) argument
668 } while (--amount != 0);
726 lzma_mf_bt4_skip(lzma_mf *mf, uint32_t amount) argument
[all...]
/freebsd-13-stable/sys/kern/
H A Dkern_racct.c103 uint64_t amount);
105 uint64_t amount);
511 * Increase consumption of 'resource' by 'amount' for 'racct',
512 * but not its parents. Differently from other cases, 'amount' here
517 int64_t amount)
524 racct->r_resources[resource] += amount;
546 racct_add_locked(struct proc *p, int resource, uint64_t amount, int force) argument
560 error = rctl_enforce(p, resource, amount);
562 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount);
566 racct_adjust_resource(p->p_racct, resource, amount);
516 racct_adjust_resource(struct racct *racct, int resource, int64_t amount) argument
577 racct_add(struct proc *p, int resource, uint64_t amount) argument
597 racct_add_force(struct proc *p, int resource, uint64_t amount) argument
611 racct_add_cred_locked(struct ucred *cred, int resource, uint64_t amount) argument
629 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) argument
667 racct_set_locked(struct proc *p, int resource, uint64_t amount, int force) argument
729 racct_set_unlocked(struct proc *p, int resource, uint64_t amount) argument
741 racct_set(struct proc *p, int resource, uint64_t amount) argument
757 racct_set_force(struct proc *p, int resource, uint64_t amount) argument
850 racct_sub(struct proc *p, int resource, uint64_t amount) argument
877 racct_sub_cred_locked(struct ucred *cred, int resource, uint64_t amount) argument
894 racct_sub_cred(struct ucred *cred, int resource, uint64_t amount) argument
[all...]
/freebsd-13-stable/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.cpp433 bool x86AssemblyInspectionEngine::sub_rsp_pattern_p(int &amount) { argument
439 amount = (int8_t) * (p + 2);
444 amount = (int32_t)extract_4(p + 2);
451 bool x86AssemblyInspectionEngine::add_rsp_pattern_p(int &amount) { argument
457 amount = (int8_t) * (p + 2);
462 amount = (int32_t)extract_4(p + 2);
470 bool x86AssemblyInspectionEngine::lea_rsp_pattern_p(int &amount) { argument
481 amount = (int8_t) * (p + 3);
487 amount = (int32_t)extract_4(p + 3);
496 bool x86AssemblyInspectionEngine::lea_rbp_rsp_pattern_p(int &amount) { argument
523 lea_rbx_rsp_pattern_p(int &amount) argument
1505 int amount; local
[all...]
/freebsd-13-stable/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_005_pos.ksh46 # 2. Setting user property f:amount for filesystem and volume.
79 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
84 eval AMOUNT=\${AMOUNT#$amount }
132 # Sort by color,amount
134 "run_unprivileged $ZFS list -H -r -o name -s f:color -s f:amount -t filesystem $basefs" \
135 "$fs_color_amount" "f:color,f:amount"
[all...]
/freebsd-13-stable/usr.bin/rctl/
H A Drctl.c118 const char *subject, *subject_id, *resource, *action, *amount, *per; local
132 amount = strsep(&copy, "/");
135 if (amount == NULL || strlen(amount) == 0) {
153 if (expand_number(amount, &num)) {
155 unexpanded_rule, amount);
313 const char *subject, *subject_id, *resource, *action, *amount, *per; local
325 amount = strsep(&copy, "/");
328 if (amount == NULL || strlen(amount)
466 const char *resource, *amount; local
[all...]
/freebsd-13-stable/crypto/openssl/crypto/
H A Dthreads_none.c128 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) argument
130 *val += amount;
H A Dthreads_pthread.c163 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) argument
168 *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
175 *val += amount;
/freebsd-13-stable/bin/sh/
H A Dmemalloc.h84 #define STADJUST(amount, p) (p += (amount))
/freebsd-13-stable/sys/opencrypto/
H A Dcriov.c275 crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) argument
281 MPASS(cc->cc_buf_len >= amount);
282 cc->cc_buf += amount;
283 cc->cc_buf_len -= amount;
288 if (amount < remain) {
289 cc->cc_offset += amount;
292 amount -= remain;
295 if (amount == 0)
302 cc, amount);
304 if (amount < remai
[all...]
/freebsd-13-stable/contrib/unbound/sldns/
H A Dsbuffer.c93 sldns_buffer_reserve(sldns_buffer *buffer, size_t amount) argument
97 if (buffer->_capacity < buffer->_position + amount) {
100 if (new_capacity < buffer->_position + amount) {
101 new_capacity = buffer->_position + amount;
/freebsd-13-stable/contrib/ldns/
H A Dbuffer.c79 ldns_buffer_reserve(ldns_buffer *buffer, size_t amount) argument
83 if (buffer->_capacity < buffer->_position + amount) {
86 if (new_capacity < buffer->_position + amount) {
87 new_capacity = buffer->_position + amount;
/freebsd-13-stable/sys/arm64/arm64/
H A Ddisassem.c342 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; local
351 shift = rd = rm = rn = imm = idx = option = amount = scale = 0;
486 /* Calculate amount, it's op(31:30) */
487 amount = (insn >> ARM_INSN_SIZE_OFFSET) &
492 di->di_printf(", uxtw #%d", amount);
496 di->di_printf(", lsl #%d", amount);
499 di->di_printf(", sxtw #%d", amount);
502 di->di_printf(", sxts #%d", amount);
/freebsd-13-stable/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;
379 TP_printk("amount %llu arc_evict_count %llu aew_count %llu",
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-stable/contrib/xz/src/xz/
H A Dfile_io.c1124 const ssize_t amount = read( local
1127 if (amount == 0) {
1132 if (amount == -1) {
1173 pos += (size_t)(amount);
1196 const size_t amount = io_read(pair, buf, size); local
1197 if (amount == SIZE_MAX)
1200 if (amount != size) {
1229 const ssize_t amount = write(pair->dest_fd, buf, size); local
1230 if (amount == -1) {
1266 buf += (size_t)(amount);
[all...]
/freebsd-13-stable/libexec/tftpd/
H A Dtftp-utils.c298 ts->amount = 0;
302 ts->amount = 0;
316 direction, ts->amount, delta, ts->blocks);
323 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta);
H A Dtftp-utils.h123 size_t amount; member in struct:tftp_stats
H A Dtftp-transfer.c74 ts->amount = 0;
188 ts->amount += window[j].size;
255 ts->amount = 0;
260 ts->amount += writesize;
390 ts->amount += writesize;
/freebsd-13-stable/sys/dev/drm2/ttm/
H A Dttm_memory.h142 uint64_t amount);

Completed in 217 milliseconds

123