/freebsd/libexec/rtld-elf/ |
H A D | rtld_malloc.c | 118 size_t amt; in __crt_malloc() local 130 amt = FIRST_BUCKET_SIZE; in __crt_malloc() 132 while (nbytes > amt - sizeof(*op)) { in __crt_malloc() 133 amt <<= 1; in __crt_malloc() 135 if (amt == 0 || bucket >= NBUCKETS) in __crt_malloc() 200 int amt; /* amount to allocate */ in morecore() local 205 amt = pagesz; in morecore() 206 nblks = amt / sz; in morecore() 208 amt = sz; in morecore() 214 morepages(amt / pagesz) == 0) in morecore() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | InstructionUtils.h | 61 static inline uint32_t Rotr32(uint32_t bits, uint32_t amt) { in Rotr32() argument 62 assert(amt < 32 && "Invalid rotate amount"); in Rotr32() 63 return (bits >> amt) | (bits << ((32 - amt) & 31)); in Rotr32() 67 static inline uint32_t Rotl32(uint32_t bits, uint32_t amt) { in Rotl32() argument 68 assert(amt < 32 && "Invalid rotate amount"); in Rotl32() 69 return (bits << amt) | (bits >> ((32 - amt) & 31)); in Rotl32()
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | recvjob.c | 248 size_t amt, i; in readfile() local 260 amt = SPL_BUFSIZ; in readfile() 262 if (i + amt > size) in readfile() 263 amt = size - i; in readfile() 265 j = read(STDOUT_FILENO, cp, amt); in readfile() 270 amt -= j; in readfile() 272 } while (amt > 0); in readfile() 273 amt = SPL_BUFSIZ; in readfile() 274 if (i + amt > size) in readfile() 275 amt = size - i; in readfile() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | modes.c | 67 size_t amt) in crypto_get_ptrs() argument 77 if ((offset + amt) <= iov->iov_len) { in crypto_get_ptrs() 80 *out_data_1_len = amt; in crypto_get_ptrs() 82 *current_offset = offset + amt; in crypto_get_ptrs() 101 if (offset + amt <= iov_len) { in crypto_get_ptrs() 103 *out_data_1_len = amt; in crypto_get_ptrs() 105 *current_offset = offset + amt; in crypto_get_ptrs() 116 *current_offset = amt - *out_data_1_len; in crypto_get_ptrs()
|
/freebsd/sys/cam/nvme/ |
H A D | nvme_xpt.c | 654 off_t amt; in nvme_dev_advinfo() local 667 amt = device->device_id_len; in nvme_dev_advinfo() 669 amt = cdai->bufsiz; in nvme_dev_advinfo() 680 amt = cdai->bufsiz; in nvme_dev_advinfo() 706 amt = cdai->bufsiz; in nvme_dev_advinfo() 714 cdai->provsiz = amt; in nvme_dev_advinfo() 715 if (amt > cdai->bufsiz) in nvme_dev_advinfo() 716 amt = cdai->bufsiz; in nvme_dev_advinfo() 723 cdai->provsiz = amt; in nvme_dev_advinfo() 724 if (amt > cdai->bufsiz) in nvme_dev_advinfo() [all …]
|
/freebsd/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 283 off_t amt; in source() local 334 amt = bp->cnt; in source() 336 amt = stb.st_size - i; in source() 339 if (result != amt) in source() 346 if (result != amt) in source() 576 amt = BUFSIZ; in sink() 577 if (i + amt > size) in sink() 578 amt = size - i; in sink() 579 count += amt; in sink() 580 if((j = net_read(remin, cp, amt)) != amt) { in sink() [all …]
|
/freebsd/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 172 int amt; in krping_write() local 185 amt = MIN(uio->uio_resid, remain); in krping_write() 186 if (amt == 0) in krping_write() 190 err = uiomove(cp, amt, uio); in krping_write() 195 cp += amt; in krping_write() 196 remain -= amt; in krping_write()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_enc_internal.h | 215 #define ENC_MALLOC(amt) malloc(amt, M_SCSIENC, M_NOWAIT) argument 216 #define ENC_MALLOCZ(amt) malloc(amt, M_SCSIENC, M_ZERO|M_NOWAIT) argument 226 #define MEMCPY(dest, src, amt) bcopy(src, dest, amt) argument
|
/freebsd/tools/test/stress2/misc/ |
H A D | sigfastblock2.sh | 67 ssize_t amt = write(pipes[1], &c, 1); 68 if (amt < 0) 110 ssize_t amt = read(pipes[0], buf, sizeof buf); 111 if (amt >= 0)
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | bcrypt_pbkdf.c | 122 size_t i, j, amt, stride; in bcrypt_pbkdf() local 135 amt = (keylen + stride - 1) / stride; in bcrypt_pbkdf() 166 amt = MINIMUM(amt, keylen); in bcrypt_pbkdf() 167 for (i = 0; i < amt; i++) { in bcrypt_pbkdf()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
H A D | file_append.c | 166 size_t amt = MIN(strlen(datapattern), left); in main() local 167 memcpy(&buf[buf_offset], datapattern, amt); in main() 168 buf_offset += amt; in main() 169 left -= amt; in main()
|
/freebsd/sys/dev/sound/pci/ |
H A D | als4000.c | 557 if (amt[i].bits) v |= 1 << i; in alsmix_init() 562 if (amt[i].iselect) v |= 1 << i; in alsmix_init() 575 mask = ((1 << amt[dev].bits) - 1) << (8 - amt[dev].bits); in alsmix_set() 579 als_mix_wr(sc, amt[dev].lreg, l | v); in alsmix_set() 581 if (amt[dev].rreg) { in alsmix_set() 592 v &= ~amt[dev].oselect; in alsmix_set() 594 v |= amt[dev].oselect; in alsmix_set() 609 l |= amt[i].iselect; in alsmix_setrecsrc() 610 r |= amt[i].iselect; in alsmix_setrecsrc() 612 l |= amt[i].iselect; in alsmix_setrecsrc() [all …]
|
/freebsd/crypto/openssl/crypto/ec/curve448/arch_32/ |
H A D | f_impl.h | 39 void gf_bias(gf a, int amt) in gf_bias() argument 42 uint32_t co1 = ((1 << 28) - 1) * amt, co2 = co1 - amt; in gf_bias()
|
/freebsd/sys/sys/ |
H A D | _iovec.h | 61 #define IOVEC_ADVANCE(iovp, amt) do { \ argument 63 size_t __amt = (amt); \
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyInstrCall.td | 20 defm ADJCALLSTACKDOWN : NRI<(outs), (ins i32imm:$amt, i32imm:$amt2), 21 [(WebAssemblycallseq_start timm:$amt, timm:$amt2)]>; 22 defm ADJCALLSTACKUP : NRI<(outs), (ins i32imm:$amt, i32imm:$amt2), 23 [(WebAssemblycallseq_end timm:$amt, timm:$amt2)]>;
|
/freebsd/sys/gdb/ |
H A D | gdb_packet.c | 397 gdb_rx_bindata(unsigned char *data, size_t datalen, size_t *amt) in gdb_rx_bindata() argument 401 *amt = 0; in gdb_rx_bindata() 403 while (*amt < datalen) { in gdb_rx_bindata() 415 (*amt)++; in gdb_rx_bindata()
|
/freebsd/stand/kboot/kboot/ |
H A D | main.c | 459 size_t sz, amt, l; in get_phys_buffer() local 495 amt = dest - (vm_offset_t)loaded_segments[i].mem; in get_phys_buffer() 496 l = min(len,loaded_segments[i].bufsz - amt); in get_phys_buffer() 497 *buf = loaded_segments[i].buf + amt; in get_phys_buffer() 498 if (amt + l > loaded_segments[i].memsz) in get_phys_buffer() 499 loaded_segments[i].memsz = amt + l; in get_phys_buffer()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | FormatString.h | 345 : start(amountStart), length(amountLength), hs(howSpecified), amt(amount), in OptionalAmount() 349 : start(nullptr),length(0), hs(valid ? NotSpecified : Invalid), amt(0), in start() 353 : start(nullptr), length(0), hs(Constant), amt(Amount), in OptionalAmount() 367 return amt; in getArgIndex() 372 return amt; in getConstantAmount() 392 return amt + 1; in getPositionalArgIndex() 402 unsigned amt; variable
|
/freebsd/crypto/openssh/ |
H A D | scp.c | 1395 size_t amt, nr; in source() local 1463 amt = bp->cnt; in source() 1465 amt = stb.st_size - i; in source() 1468 bp->buf, amt)) != amt) { in source() 1480 &statbytes) != amt) in source() 1897 amt = bp->cnt; 1898 if (i + amt > size) 1899 amt = size - i; 1900 count += amt; 1910 amt -= j; [all …]
|
/freebsd/tools/tools/vhba/ |
H A D | vhba.c | 370 u_int amt; in vhba_default_cmd() local 372 amt = MIN(csio->dxfer_len, 8); in vhba_default_cmd() 373 memcpy(csio->data_ptr, junk, amt); in vhba_default_cmd() 374 amt = MIN((nlun << 3) + 8, csio->dxfer_len); in vhba_default_cmd() 375 csio->resid = csio->dxfer_len - amt; in vhba_default_cmd()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrControl.td | 29 def RETI32 : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops), 31 def RETI64 : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt, variable_ops), 32 "ret{q}\t$amt", []>, OpSize32, Requires<[In64BitMode]>; 33 def RETI16 : Ii16<0xC2, RawFrm, (outs), (ins i16imm:$amt), 34 "ret{w}\t$amt", []>, OpSize16; 41 def LRETI32 : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt), 42 "{l}ret{l|f}\t$amt", []>, OpSize32; 43 def LRETI64 : RIi16<0xCA, RawFrm, (outs), (ins i16imm:$amt), 44 "{l}ret{|f}q\t$amt", []>, Requires<[In64BitMode]>; 45 def LRETI16 : Ii16<0xCA, RawFrm, (outs), (ins i16imm:$amt), [all …]
|
/freebsd/crypto/openssl/crypto/ec/curve448/ |
H A D | field.h | 113 static ossl_inline void gf_subx_nr(gf c, const gf a, const gf b, int amt) in gf_subx_nr() argument 116 gf_bias(c, amt); in gf_subx_nr() 117 if (GF_HEADROOM < amt + 1) in gf_subx_nr()
|
/freebsd/contrib/libucl/uthash/ |
H A D | utstring.h | 52 #define utstring_reserve(s,amt) \ argument 54 if (((s)->n - (s)->i) < (size_t)(amt)) { \ 55 (s)->d = (char*)realloc((s)->d, (s)->n + amt); \ 57 else {(s)->n += amt; \
|
/freebsd/sys/dev/sound/pcm/ |
H A D | channel.c | 369 amt -= amt % sndbuf_getalign(b); in chn_dmaupdate() 370 if (amt > 0) in chn_dmaupdate() 374 amt -= amt % sndbuf_getalign(b); in chn_dmaupdate() 375 if (amt > 0) in chn_dmaupdate() 405 amt = min(wasfree, want); in chn_wrfeed() 406 if (amt > 0) in chn_wrfeed() 528 unsigned int amt; in chn_rdfeed() local 535 amt = sndbuf_getfree(bs); in chn_rdfeed() 536 if (amt > 0) in chn_rdfeed() 539 amt = sndbuf_getready(b); in chn_rdfeed() [all …]
|
/freebsd/contrib/bc/src/ |
H A D | vector.c | 240 uchar amt, nums[sizeof(size_t) + 1]; in bc_vec_pushIndex() local 246 for (amt = 0; idx; ++amt) in bc_vec_pushIndex() 248 nums[amt + 1] = (uchar) idx; in bc_vec_pushIndex() 253 nums[0] = amt; in bc_vec_pushIndex() 256 bc_vec_npush(v, amt + 1, nums); in bc_vec_pushIndex()
|