Home
last modified time | relevance | path

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

12345678910>>...13

/NextBSD/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/
HDARMUtils.h95 static inline uint32_t LSL_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool… in LSL_C() argument
97 if (amount == 0) { in LSL_C()
102 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0; in LSL_C()
103 return value << amount; in LSL_C()
106 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, bool *success) in LSL() argument
109 if (amount == 0) in LSL()
112 uint32_t result = LSL_C(value, amount, dont_care, success); in LSL()
119 static inline uint32_t LSR_C(const uint32_t value, const uint32_t amount, uint32_t &carry_out, bool… in LSR_C() argument
121 if (amount == 0) { in LSR_C()
126 carry_out = amount <= 32 ? Bit32(value, amount - 1) : 0; in LSR_C()
[all …]
/NextBSD/sys/sys/
HDracct.h154 int racct_add(struct proc *p, int resource, uint64_t amount);
155 void racct_add_cred(struct ucred *cred, int resource, uint64_t amount);
156 void racct_add_force(struct proc *p, int resource, uint64_t amount);
157 int racct_set(struct proc *p, int resource, uint64_t amount);
158 void racct_set_force(struct proc *p, int resource, uint64_t amount);
159 void racct_sub(struct proc *p, int resource, uint64_t amount);
160 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount);
178 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument
185 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) in racct_add_cred() argument
190 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument
[all …]
/NextBSD/sys/kern/
HDkern_racct.c100 uint64_t amount);
102 uint64_t amount);
506 int64_t amount) in racct_adjust_resource() argument
513 racct->r_resources[resource] += amount; in racct_adjust_resource()
535 racct_add_locked(struct proc *p, int resource, uint64_t amount) in racct_add_locked() argument
543 SDT_PROBE3(racct, , rusage, add, p, resource, amount); in racct_add_locked()
551 error = rctl_enforce(p, resource, amount); in racct_add_locked()
553 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount); in racct_add_locked()
557 racct_adjust_resource(p->p_racct, resource, amount); in racct_add_locked()
558 racct_add_cred_locked(p->p_ucred, resource, amount); in racct_add_locked()
[all …]
HDkern_rctl.c269 int64_t amount) in rctl_would_exceed() argument
278 if (available >= amount) in rctl_would_exceed()
337 rctl_enforce(struct proc *p, int resource, uint64_t amount) in rctl_enforce() argument
359 if (!rctl_would_exceed(p, rule, amount)) { in rctl_enforce()
470 uint64_t amount = UINT64_MAX; in rctl_get_limit() local
486 if (rule->rr_amount < amount) in rctl_get_limit()
487 amount = rule->rr_amount; in rctl_get_limit()
492 return (amount); in rctl_get_limit()
1230 int64_t amount; in rctl_rule_to_sbuf() local
1270 amount = rule->rr_amount; in rctl_rule_to_sbuf()
[all …]
/NextBSD/sys/dev/ed/
HDif_ed_hpp.c423 uint16_t amount) in ed_hpp_readmem() argument
441 if (use_32bit_access && (amount > 3)) { in ed_hpp_readmem()
445 uint32_t *const fence = dl + (amount >> 2); in ed_hpp_readmem()
454 dst += (amount & ~3); in ed_hpp_readmem()
455 amount &= 3; in ed_hpp_readmem()
460 if (amount > 1) { in ed_hpp_readmem()
464 u_short *const fence = d + (amount >> 1); in ed_hpp_readmem()
470 dst += (amount & ~1); in ed_hpp_readmem()
471 amount &= 1; in ed_hpp_readmem()
479 if (amount == 1) { in ed_hpp_readmem()
[all …]
HDif_ed.c1286 ed_ring_copy(struct ed_softc *sc, bus_size_t src, char *dst, u_short amount) in ed_ring_copy() argument
1291 if (src + amount > sc->mem_end) { in ed_ring_copy()
1295 amount -= tmp_amount; in ed_ring_copy()
1299 sc->readmem(sc, src, dst, amount); in ed_ring_copy()
1366 uint16_t amount) in ed_shmem_readmem16() argument
1369 (amount + 1) / 2); in ed_shmem_readmem16()
1379 uint16_t amount) in ed_shmem_readmem8() argument
1381 bus_space_read_region_1(sc->mem_bst, sc->mem_bsh, src, dst, amount); in ed_shmem_readmem8()
1393 uint16_t amount) in ed_pio_readmem() argument
1404 if (amount & 1) in ed_pio_readmem()
[all …]
/NextBSD/contrib/xz/src/liblzma/lz/
HDlz_encoder.h268 mf_skip(lzma_mf *mf, uint32_t amount) in mf_skip() argument
270 if (amount != 0) { in mf_skip()
271 mf->skip(mf, amount); in mf_skip()
272 mf->read_ahead += amount; in mf_skip()
314 extern void lzma_mf_hc3_skip(lzma_mf *dict, uint32_t amount);
317 extern void lzma_mf_hc4_skip(lzma_mf *dict, uint32_t amount);
320 extern void lzma_mf_bt2_skip(lzma_mf *dict, uint32_t amount);
323 extern void lzma_mf_bt3_skip(lzma_mf *dict, uint32_t amount);
326 extern void lzma_mf_bt4_skip(lzma_mf *dict, uint32_t amount);
HDlz_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()
/NextBSD/usr.bin/rctl/
HDrctl.c117 const char *subject, *subject_id, *resource, *action, *amount, *per; in expand_amount() local
131 amount = strsep(&copy, "/"); in expand_amount()
134 if (amount == NULL || strlen(amount) == 0) { in expand_amount()
152 if (expand_number(amount, &num)) { in expand_amount()
154 unexpanded_rule, amount); in expand_amount()
312 const char *subject, *subject_id, *resource, *action, *amount, *per; in humanize_amount() local
324 amount = strsep(&copy, "/"); in humanize_amount()
327 if (amount == NULL || strlen(amount) == 0 || in humanize_amount()
328 str2int64(amount, &num) != 0) { in humanize_amount()
464 const char *resource, *amount; in humanize_usage_amount() local
[all …]
/NextBSD/contrib/groff/src/roff/troff/
HDcolumn.cpp119 void vary(vunits amount);
243 inline void vjustify_output_line::vary(vunits amount) in vary() argument
245 current += amount; in vary()
448 vunits *amount; member in justification_spec
462 amount = new vunits[maxn]; in justification_spec()
468 a_delete amount; in ~justification_spec() local
490 vunits *old_amount = amount; in append()
491 amount = new vunits[maxn]; in append()
493 amount[i] = old_amount[i]; in append()
498 amount[n] = v; in append()
[all …]
/NextBSD/contrib/ncurses/ncurses/tinfo/
HDdoalloc.c45 _nc_doalloc(void *oldp, size_t amount) in NCURSES_EXPORT()
50 if ((newp = realloc(oldp, amount)) == 0) { in NCURSES_EXPORT()
55 newp = malloc(amount); in NCURSES_EXPORT()
/NextBSD/contrib/gcc/config/arm/
HDaout.h245 register int amount = 1 << (POWER); \
247 if (amount == 2) \
249 else if (amount != 1) \
250 fprintf (STREAM, "\t.align\t%d\n", amount - 4); \
HDaof.h285 int amount = 1 << (POWER); \
287 if (amount == 2) \
289 else if (amount == 4) \
292 fprintf ((STREAM), "\tALIGN %d\n", amount); \
/NextBSD/contrib/llvm/tools/lldb/source/Plugins/UnwindAssembly/x86/
HDUnwindAssembly-x86.cpp149 bool sub_rsp_pattern_p (int& amount);
150 bool add_rsp_pattern_p (int& amount);
151 bool lea_rsp_pattern_p (int& amount);
372 AssemblyParse_x86::sub_rsp_pattern_p (int& amount) in sub_rsp_pattern_p() argument
380 amount = (int8_t) *(p + 2); in sub_rsp_pattern_p()
386 amount = (int32_t) extract_4 (p + 2); in sub_rsp_pattern_p()
394 AssemblyParse_x86::add_rsp_pattern_p (int& amount) in add_rsp_pattern_p() argument
402 amount = (int8_t) *(p + 2); in add_rsp_pattern_p()
408 amount = (int32_t) extract_4 (p + 2); in add_rsp_pattern_p()
417 AssemblyParse_x86::lea_rsp_pattern_p (int& amount) in lea_rsp_pattern_p() argument
[all …]
/NextBSD/contrib/xz/src/xz/
HDfile_io.c1005 const ssize_t amount = read(pair->src_fd, buf, left); in io_read() local
1007 if (amount == 0) { in io_read()
1012 if (amount == -1) { in io_read()
1047 buf += (size_t)(amount); in io_read()
1048 left -= (size_t)(amount); in io_read()
1066 const size_t amount = io_read(pair, buf, size); in io_pread() local
1067 if (amount == SIZE_MAX) in io_pread()
1070 if (amount != size) { in io_pread()
1099 const ssize_t amount = write(pair->dest_fd, buf, size); in io_write_buf() local
1100 if (amount == -1) { in io_write_buf()
[all …]
/NextBSD/libexec/tftpd/
HDtftp-transfer.c63 ts->amount = 0; in tftp_send()
115 ts->amount += size; in tftp_send()
166 ts->amount = 0; in tftp_receive()
170 ts->amount += writesize; in tftp_receive()
270 ts->amount += writesize; in tftp_receive()
HDtftp-utils.c292 ts->amount = 0; in stats_init()
296 ts->amount = 0; in stats_init()
310 direction, ts->amount, delta, ts->blocks); in printstats()
317 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta); in printstats()
/NextBSD/contrib/unbound/sldns/
HDsbuffer.c91 sldns_buffer_reserve(sldns_buffer *buffer, size_t amount) in sldns_buffer_reserve() argument
95 if (buffer->_capacity < buffer->_position + amount) { in sldns_buffer_reserve()
98 if (new_capacity < buffer->_position + amount) { in sldns_buffer_reserve()
99 new_capacity = buffer->_position + amount; in sldns_buffer_reserve()
/NextBSD/contrib/ldns/
HDbuffer.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()
/NextBSD/usr.bin/last/
HDlast.c207 static unsigned int amount = 0; in wtmp() local
219 if (amount % 128 == 0) { in wtmp()
220 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp()
224 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp()
231 while (amount > 0) in wtmp()
232 doentry(&buf[--amount]); in wtmp()
/NextBSD/sys/dev/drm2/ttm/
HDttm_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()
/NextBSD/contrib/gdb/gdb/
HDstandalone.c433 sbrk (int amount) in sbrk() argument
435 if (next_free + amount > memory_limit) in sbrk()
437 next_free += amount; in sbrk()
438 return next_free - amount; in sbrk()
/NextBSD/sys/arm/ti/
HDti_i2c.c203 int amount, done, i; in ti_i2c_transfer_intr() local
206 amount = 0; in ti_i2c_transfer_intr()
247 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr()
255 amount = min(sc->sc_fifo_trsh, in ti_i2c_transfer_intr()
260 for (i = 0; i < amount; i++) in ti_i2c_transfer_intr()
283 amount = sc->sc_buffer->len - sc->sc_buffer_pos; in ti_i2c_transfer_intr()
291 amount = min(sc->sc_fifo_trsh, in ti_i2c_transfer_intr()
296 for (i = 0; i < amount; i++) in ti_i2c_transfer_intr()
/NextBSD/sys/dev/beri/
HDberi_ring.c271 int amount; in beri_rdwr() local
285 amount = uio->uio_resid; in beri_rdwr()
292 if (amount <= count) { in beri_rdwr()
293 uiomove(dst + *ptr, amount, uio); in beri_rdwr()
296 uiomove(dst, (amount - count), uio); in beri_rdwr()
299 *ptr = (*ptr + amount) % sc->data_size; in beri_rdwr()
/NextBSD/bin/sh/
HDexpand.c526 int amount; in recordleft() local
528 amount = ((str - 1) - (loc - startp)) - expdest; in recordleft()
529 STADJUST(amount, expdest); in recordleft()
542 int amount; in subevalvar_trim() local
581 amount = loc - expdest; in subevalvar_trim()
582 STADJUST(amount, expdest); in subevalvar_trim()
592 amount = loc - expdest; in subevalvar_trim()
593 STADJUST(amount, expdest); in subevalvar_trim()
603 amount = (expdest - stackblock() - strloc) + 1; in subevalvar_trim()
604 STADJUST(-amount, expdest); in subevalvar_trim()
[all …]

12345678910>>...13