Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
HDARMUtils.h89 static inline uint32_t LSL_C(const uint32_t value, const uint32_t amount, in LSL_C() argument
91 if (amount == 0) { in LSL_C()
96 carry_out = amount <= 32 ? Bit32(value, 32 - amount) : 0; in LSL_C()
97 return value << amount; in LSL_C()
100 static inline uint32_t LSL(const uint32_t value, const uint32_t amount, in LSL() argument
103 if (amount == 0) in LSL()
106 uint32_t result = LSL_C(value, amount, dont_care, success); in LSL()
113 static inline uint32_t LSR_C(const uint32_t value, const uint32_t amount, in LSR_C() argument
115 if (amount == 0) { in LSR_C()
120 carry_out = amount <= 32 ? Bit32(value, amount - 1) : 0; in LSR_C()
[all …]
/freebsd-11-stable/sys/sys/
HDracct.h165 int racct_add(struct proc *p, int resource, uint64_t amount);
166 void racct_add_cred(struct ucred *cred, int resource, uint64_t amount);
167 void racct_add_force(struct proc *p, int resource, uint64_t amount);
169 int racct_set(struct proc *p, int resource, uint64_t amount);
170 void racct_set_force(struct proc *p, int resource, uint64_t amount);
171 void racct_sub(struct proc *p, int resource, uint64_t amount);
172 void racct_sub_cred(struct ucred *cred, int resource, uint64_t amount);
191 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument
198 racct_add_cred(struct ucred *cred, int resource, uint64_t amount) in racct_add_cred() argument
203 racct_add_force(struct proc *p, int resource, uint64_t amount) in racct_add_force() argument
[all …]
/freebsd-11-stable/sys/kern/
HDkern_racct.c101 uint64_t amount);
103 uint64_t amount);
519 int64_t amount) in racct_adjust_resource() argument
526 racct->r_resources[resource] += amount; in racct_adjust_resource()
548 racct_add_locked(struct proc *p, int resource, uint64_t amount, int force) in racct_add_locked() argument
562 error = rctl_enforce(p, resource, amount); in racct_add_locked()
564 SDT_PROBE3(racct, , rusage, add__failure, p, resource, amount); in racct_add_locked()
568 racct_adjust_resource(p->p_racct, resource, amount); in racct_add_locked()
569 racct_add_cred_locked(p->p_ucred, resource, amount); in racct_add_locked()
579 racct_add(struct proc *p, int resource, uint64_t amount) in racct_add() argument
[all …]
/freebsd-11-stable/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.c1290 ed_ring_copy(struct ed_softc *sc, bus_size_t src, char *dst, u_short amount) in ed_ring_copy() argument
1295 if (src + amount > sc->mem_end) { in ed_ring_copy()
1299 amount -= tmp_amount; in ed_ring_copy()
1303 sc->readmem(sc, src, dst, amount); in ed_ring_copy()
1370 uint16_t amount) in ed_shmem_readmem16() argument
1373 (amount + 1) / 2); in ed_shmem_readmem16()
1383 uint16_t amount) in ed_shmem_readmem8() argument
1385 bus_space_read_region_1(sc->mem_bst, sc->mem_bsh, src, dst, amount); in ed_shmem_readmem8()
1397 uint16_t amount) in ed_pio_readmem() argument
1408 if (amount & 1) in ed_pio_readmem()
[all …]
/freebsd-11-stable/contrib/xz/src/liblzma/lz/
HDlz_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);
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()
/freebsd-11-stable/usr.bin/rctl/
HDrctl.c119 const char *subject, *subject_id, *resource, *action, *amount, *per; in expand_amount() local
133 amount = strsep(&copy, "/"); in expand_amount()
136 if (amount == NULL || strlen(amount) == 0) { in expand_amount()
154 if (expand_number(amount, &num)) { in expand_amount()
156 unexpanded_rule, amount); in expand_amount()
314 const char *subject, *subject_id, *resource, *action, *amount, *per; in humanize_amount() local
326 amount = strsep(&copy, "/"); in humanize_amount()
329 if (amount == NULL || strlen(amount) == 0 || in humanize_amount()
330 str2int64(amount, &num) != 0) { in humanize_amount()
466 const char *resource, *amount; in humanize_usage_amount() local
[all …]
/freebsd-11-stable/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 …]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/x86/
HDx86AssemblyInspectionEngine.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);
HDx86AssemblyInspectionEngine.cpp433 bool x86AssemblyInspectionEngine::sub_rsp_pattern_p(int &amount) { in sub_rsp_pattern_p() argument
439 amount = (int8_t) * (p + 2); in sub_rsp_pattern_p()
444 amount = (int32_t)extract_4(p + 2); in sub_rsp_pattern_p()
451 bool x86AssemblyInspectionEngine::add_rsp_pattern_p(int &amount) { in add_rsp_pattern_p() argument
457 amount = (int8_t) * (p + 2); in add_rsp_pattern_p()
462 amount = (int32_t)extract_4(p + 2); in add_rsp_pattern_p()
470 bool x86AssemblyInspectionEngine::lea_rsp_pattern_p(int &amount) { in lea_rsp_pattern_p() argument
481 amount = (int8_t) * (p + 3); in lea_rsp_pattern_p()
487 amount = (int32_t)extract_4(p + 3); in lea_rsp_pattern_p()
496 bool x86AssemblyInspectionEngine::lea_rbp_rsp_pattern_p(int &amount) { in lea_rbp_rsp_pattern_p() argument
[all …]
/freebsd-11-stable/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()
/freebsd-11-stable/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); \
/freebsd-11-stable/sys/arm64/arm64/
HDdisassem.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-11-stable/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.c295 ts->amount = 0; in stats_init()
299 ts->amount = 0; in stats_init()
313 direction, ts->amount, delta, ts->blocks); in printstats()
320 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta); in printstats()
/freebsd-11-stable/contrib/unbound/sldns/
HDsbuffer.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-11-stable/contrib/xz/src/xz/
HDfile_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-11-stable/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()
/freebsd-11-stable/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()
/freebsd-11-stable/usr.bin/last/
HDlast.c247 static unsigned int amount = 0; in wtmp() local
261 if (amount % 128 == 0) { in wtmp()
262 buf = realloc(buf, (amount + 128) * sizeof *ut); in wtmp()
266 memcpy(&buf[amount++], ut, sizeof *ut); in wtmp()
274 while (amount > 0) in wtmp()
275 doentry(&buf[--amount]); in wtmp()
/freebsd-11-stable/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()
/freebsd-11-stable/sys/arm/ti/
HDti_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-11-stable/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()

12345678910>>...14