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

1234

/freebsd-current/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);
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h91 static inline uint32_t LSL_C(const uint32_t value, const uint32_t amount, argument
93 if (amount == 0) {
98 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0;
99 return value << amount;
102 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, argument
105 if (amount == 0)
108 uint32_t result = LSL_C(value, amount, dont_care, success);
115 static inline uint32_t LSR_C(const uint32_t value, const uint32_t amount, argument
117 if (amount
126 LSR(const uint32_t value, const uint32_t amount, bool *success) argument
139 ASR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) argument
157 ASR(const uint32_t value, const uint32_t amount, bool *success) argument
170 ROR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool *success) argument
182 ROR(const uint32_t value, const uint32_t amount, bool *success) argument
213 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
253 Shift(const uint32_t value, ARM_ShifterType type, const uint32_t amount, const uint32_t carry_in, bool *success) argument
[all...]
/freebsd-current/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-current/sys/sys/
H A Dracct.h174 int racct_add(struct proc *p, int resource, uint64_t amount);
175 void racct_add_cred(struct ucred *cred, 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);
179 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount);
180 void racct_set_force(struct proc *p, int resource, uint64_t amount);
181 void racct_sub(struct proc *p, int resource, uint64_t amount);
182 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount);
204 racct_add(struct proc *p, int resource, uint64_t amount) argument
211 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) argument
216 racct_add_force(struct proc *p, int resource, uint64_t amount) argument
221 racct_set(struct proc *p, int resource, uint64_t amount) argument
228 racct_set_force(struct proc *p, int resource, uint64_t amount) argument
233 racct_sub(struct proc *p, int resource, uint64_t amount) argument
238 racct_sub_cred(struct ucred *cred, int resource, uint64_t amount) argument
[all...]
/freebsd-current/contrib/llvm-project/lldb/source/Core/
H A DProgress.cpp45 void Progress::Increment(uint64_t amount, argument
47 if (amount > 0) {
53 if (m_total && (amount > (m_total - m_completed)))
56 m_completed += amount;
/freebsd-current/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))
97 size_t n = amount;
129 BIO_free_all(chain[amount - 1]);
164 amount = strtoul(arg, &endptr, 10);
171 if (amount < 1) {
209 if (idx >= amount) {
211 progname, idx, amount - 1);
240 if (idx >= amount) {
242 progname, idx, amount
[all...]
/freebsd-current/contrib/xz/src/liblzma/lz/
H A Dlz_encoder.h138 /// Extra amount of data to keep available before the "actual"
145 /// Extra amount of data to keep available after the "actual"
185 // amount of extra buffer needed after dict_size becomes
288 mf_skip(lzma_mf *mf, uint32_t amount) argument
290 if (amount != 0) {
291 mf->skip(mf, amount);
292 mf->read_ahead += amount;
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);
[all...]
/freebsd-current/sys/kern/
H A Dkern_racct.c96 uint64_t amount);
98 uint64_t amount);
504 * Increase consumption of 'resource' by 'amount' for 'racct',
505 * but not its parents. Differently from other cases, 'amount' here
510 int64_t amount)
517 racct->r_resources[resource] += amount;
539 racct_add_locked(struct proc *p, int resource, uint64_t amount, int force) argument
553 error = rctl_enforce(p, resource, amount);
555 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount);
559 racct_adjust_resource(p->p_racct, resource, amount);
509 racct_adjust_resource(struct racct *racct, int resource, int64_t amount) argument
570 racct_add(struct proc *p, int resource, uint64_t amount) argument
590 racct_add_force(struct proc *p, int resource, uint64_t amount) argument
604 racct_add_cred_locked(struct ucred *cred, int resource, uint64_t amount) argument
622 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) argument
660 racct_set_locked(struct proc *p, int resource, uint64_t amount, int force) argument
722 racct_set_unlocked(struct proc *p, int resource, uint64_t amount) argument
734 racct_set(struct proc *p, int resource, uint64_t amount) argument
750 racct_set_force(struct proc *p, int resource, uint64_t amount) argument
843 racct_sub(struct proc *p, int resource, uint64_t amount) argument
870 racct_sub_cred_locked(struct ucred *cred, int resource, uint64_t amount) argument
887 racct_sub_cred(struct ucred *cred, int resource, uint64_t amount) argument
[all...]
/freebsd-current/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.cpp434 bool x86AssemblyInspectionEngine::sub_rsp_pattern_p(int &amount) { argument
440 amount = (int8_t) * (p + 2);
445 amount = (int32_t)extract_4(p + 2);
452 bool x86AssemblyInspectionEngine::add_rsp_pattern_p(int &amount) { argument
458 amount = (int8_t) * (p + 2);
463 amount = (int32_t)extract_4(p + 2);
471 bool x86AssemblyInspectionEngine::lea_rsp_pattern_p(int &amount) { argument
482 amount = (int8_t) * (p + 3);
488 amount = (int32_t)extract_4(p + 3);
497 bool x86AssemblyInspectionEngine::lea_rbp_rsp_pattern_p(int &amount) { argument
524 lea_rbx_rsp_pattern_p(int &amount) argument
1491 int amount; local
[all...]
/freebsd-current/tests/sys/cddl/zfs/tests/cli_user/zfs_list/
H A Dzfs_list_005_pos.ksh41 # 2. Setting user property f:amount for filesystem and volume.
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
79 eval AMOUNT=\${AMOUNT#$amount }
127 # Sort by color,amount
129 "run_unprivileged $ZFS list -H -r -o name -s f:color -s f:amount -t filesystem $basefs" \
130 "$fs_color_amount" "f:color,f:amount"
[all...]
/freebsd-current/usr.bin/rctl/
H A Drctl.c113 const char *subject, *subject_id, *resource, *action, *amount, *per; local
127 amount = strsep(&copy, "/");
130 if (amount == NULL || strlen(amount) == 0) {
148 if (expand_number(amount, &num)) {
150 unexpanded_rule, amount);
308 const char *subject, *subject_id, *resource, *action, *amount, *per; local
320 amount = strsep(&copy, "/");
323 if (amount == NULL || strlen(amount)
461 const char *resource, *amount; local
[all...]
/freebsd-current/bin/sh/
H A Dmemalloc.h81 #define STADJUST(amount, p) (p += (amount))
/freebsd-current/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-current/contrib/ldns/
H A Dbuffer.c80 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-current/crypto/openssl/crypto/
H A Dthreads_pthread.c199 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) argument
203 *ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL);
209 *ret = atomic_add_int_nv((volatile unsigned int *)val, amount);
216 *val += amount;
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_win.c213 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) argument
215 *ret = (int)InterlockedExchangeAdd((long volatile *)val, (long)amount) + amount;
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Core/
H A DProgress.h43 /// and "total" set to the total amount specified in the contructor. This is
90 /// @param [in] amount The amount to increment m_completed by.
93 void Increment(uint64_t amount = 1,
107 /// Total amount of work, use a std::nullopt in the constructor for non
/freebsd-current/sys/arm64/arm64/
H A Ddisassem.c114 * OP <RD>, <RN|SP>, <RM> {, <extend> { #<amount> } }
115 * OP <RN|SP>, <RM>, {, <extend> { #<amount> } }
432 arm64_disasm_reg_extend(int sf, int option, int rd, int rn, int amount) argument
442 * LSL may be omitted when <amount> is 0.
445 if (lsl_preferred && amount == 0)
495 int shift, rm, rt, rd, rn, imm, sf, idx, option, scale, amount; local
510 shift = rd = rm = rn = imm = idx = option = amount = scale = 0;
679 amount = 0;
681 /* Calculate amount, it's op(31:30) */
682 amount
[all...]
/freebsd-current/sys/opencrypto/
H A Dcriov.c334 crypto_cursor_advance(struct crypto_buffer_cursor *cc, size_t amount) argument
340 MPASS(cc->cc_buf_len >= amount);
341 cc->cc_buf += amount;
342 cc->cc_buf_len -= amount;
347 if (amount < remain) {
348 cc->cc_offset += amount;
351 amount -= remain;
354 if (amount == 0)
359 MPASS(cc->cc_mbuf->m_len >= cc->cc_offset + amount);
360 cc->cc_offset += amount;
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dmmap12.sh64 * This is the minimum amount of C code ot takes to panic the kernel.
H A Dmmap8.sh68 * This is the minimum amount of C code it takes to panic the kernel.
/freebsd-current/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;
365 TP_printk("amount %llu arc_evict_count %llu aew_count %llu",
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-current/sys/dev/drm2/ttm/
H A Dttm_memory.h141 uint64_t amount);

Completed in 199 milliseconds

1234