/freebsd-11-stable/contrib/apr/file_io/unix/ |
H A D | fullrw.c | 28 apr_size_t amt = nbytes; local 30 status = apr_file_read(thefile, buf, &amt); 31 buf = (char *)buf + amt; 32 nbytes -= amt; 33 total_read += amt; 51 apr_size_t amt = nbytes; local 53 status = apr_file_write(thefile, buf, &amt); 54 buf = (char *)buf + amt; 55 nbytes -= amt; 56 total_written += amt; 72 apr_size_t amt = 0; local [all...] |
/freebsd-11-stable/contrib/top/ |
H A D | utils.c | 422 * format_k(amt) - format a kilobyte memory value, returning a string 424 * area that changes each call. "amt" is converted to a 425 * string with a trailing "K". If "amt" is 10000 or greater, 446 char *format_k(amt) 448 int amt; 460 if (amt >= 10000) 462 amt = (amt + 512) / 1024; 464 if (amt >= 10000) 466 amt [all...] |
/freebsd-11-stable/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) { 62 assert(amt < 32 && "Invalid rotate amount"); 63 return (bits >> amt) | (bits << ((32 - amt) & 31)); 67 static inline uint32_t Rotl32(uint32_t bits, uint32_t amt) { 68 assert(amt < 32 && "Invalid rotate amount"); 69 return (bits << amt) | (bits >> ((32 - amt) & 31));
|
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | malloc.c | 157 register unsigned amt; local 175 amt = 8; 176 while ((unsigned)pagesz > amt) { 177 amt <<= 1; 189 amt = 8; /* size of first bucket */ 192 amt = 16; /* size of first bucket */ 197 amt = pagesz; 200 while (nbytes > amt + n) { 201 amt <<= 1; 202 if (amt 259 int amt; /* amount to allocate */ local [all...] |
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | recvjob.c | 260 size_t amt, i; local 272 amt = SPL_BUFSIZ; 274 if (i + amt > size) 275 amt = size - i; 277 j = read(STDOUT_FILENO, cp, amt); 282 amt -= j; 284 } while (amt > 0); 285 amt = SPL_BUFSIZ; 286 if (i + amt > size) 287 amt [all...] |
/freebsd-11-stable/sys/contrib/rdma/krping_compat/ |
H A D | krping_dev.c | 170 int amt; local 183 amt = MIN(uio->uio_resid, remain); 184 if (amt == 0) 188 err = uiomove(cp, amt, uio); 193 cp += amt; 194 remain -= amt;
|
/freebsd-11-stable/sys/cam/scsi/ |
H A D | scsi_enc_internal.h | 216 #define ENC_MALLOC(amt) malloc(amt, M_SCSIENC, M_NOWAIT) 217 #define ENC_MALLOCZ(amt) malloc(amt, M_SCSIENC, M_ZERO|M_NOWAIT) 227 #define MEMCPY(dest, src, amt) bcopy(src, dest, amt)
|
/freebsd-11-stable/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 171 int amt; local 184 amt = MIN(uio->uio_resid, remain); 185 if (amt == 0) 189 err = uiomove(cp, amt, uio); 194 cp += amt; 195 remain -= amt;
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | spillbuf.c | 298 apr_size_t amt; local 314 amt = buf->blocksize - mem->size; 315 if (amt > len) 316 amt = len; 319 memcpy(&mem->data[mem->size], data, amt); 320 mem->size += amt; 321 data += amt; 322 len -= amt; 327 buf->memory_size += amt; 542 svn_spillbuf__reader_read(apr_size_t *amt, argument 617 apr_size_t amt; local [all...] |
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | osf-core.c | 90 bfd_size_type amt; local 92 amt = sizeof core_header; 93 val = bfd_bread ((PTR) &core_header, amt, abfd); 113 amt = sizeof core_scnhdr; 114 val = bfd_bread ((PTR) &core_scnhdr, amt, abfd);
|
H A D | elf-strtab.c | 97 bfd_size_type amt = sizeof (struct elf_strtab_hash); local 99 table = bfd_malloc (amt); 113 amt = sizeof (struct elf_strtab_hasn_entry *); 114 table->array = bfd_malloc (table->alloced * amt); 166 bfd_size_type amt = sizeof (struct elf_strtab_hash_entry *); local 168 tab->array = bfd_realloc (tab->array, tab->alloced * amt); 303 bfd_size_type size, amt; local 312 amt = tab->size * sizeof (struct elf_strtab_hash_entry *); 313 array = bfd_malloc (amt);
|
H A D | archive.c | 183 bfd_size_type amt = sizeof (struct artdata); 185 abfd->tdata.aout_ar_data = bfd_zalloc (abfd, amt); 613 bfd_size_type amt; 628 amt = sizeof (struct artdata); 629 bfd_ardata (abfd) = bfd_zalloc (abfd, amt); 715 bfd_size_type parsed_size, amt; 752 amt = ardata->symdef_count * sizeof (carsym); 753 ardata->symdefs = bfd_alloc (abfd, amt); 958 bfd_size_type amt; 985 amt 181 bfd_size_type amt = sizeof (struct artdata); local 609 bfd_size_type amt; local 711 bfd_size_type parsed_size, amt; local 953 bfd_size_type amt; local 1056 bfd_size_type amt; local 1366 bfd_size_type amt; local 1729 unsigned int amt = DEFAULT_BUFFERSIZE; local 1791 bfd_size_type amt; local [all...] |
H A D | coff-ppc.c | 198 bfd_size_type amt = sizeof (struct ppc_coff_link_hash_table); local 200 ret = (struct ppc_coff_link_hash_table *) bfd_malloc (amt); 836 bfd_size_type amt = sizeof (struct list_ele); 837 struct list_ele *t = (struct list_ele *) bfd_malloc (amt); 895 bfd_size_type amt; 898 amt = (bfd_size_type) obj_raw_syment_count (abfd) * sizeof (int); 899 local_syms = (int *) bfd_zalloc (abfd, amt); 1591 bfd_size_type amt; 1606 amt = global_toc_size; 1607 foo = (bfd_byte *) bfd_alloc (bfd_of_toc_owner, amt); 830 bfd_size_type amt = sizeof (struct list_ele); local 889 bfd_size_type amt; local 1584 bfd_size_type amt; local 2077 bfd_size_type amt; local [all...] |
H A D | elfcore.h | 81 bfd_size_type amt; local 189 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum; 190 i_phdrp = bfd_alloc (abfd, amt);
|
H A D | format.c | 144 bfd_size_type amt; local 147 amt = sizeof (*matching_vector) * 2 * _bfd_target_vector_entries; 148 matching_vector = bfd_malloc (amt);
|
H A D | ptrace-core.c | 65 bfd_size_type amt; local 81 amt = sizeof (struct trad_core_struct); 82 rawptr = (struct trad_core_struct *) bfd_zalloc (abfd, amt);
|
H A D | cofflink.c | 110 bfd_size_type amt = sizeof (struct coff_link_hash_table); local 112 ret = bfd_malloc (amt); 302 bfd_size_type amt; local 318 amt = symcount * sizeof (struct coff_link_hash_entry *); 319 sym_hash = bfd_zalloc (abfd, amt); 596 amt = sizeof (struct coff_section_tdata); 597 stab->used_by_bfd = bfd_zalloc (abfd, amt); 648 bfd_size_type amt; 770 amt = abfd->section_count + 1; 771 amt * 647 bfd_size_type amt; local 1570 bfd_size_type amt; local 2125 bfd_size_type amt; local 2256 bfd_size_type amt; local [all...] |
H A D | dwarf2.c | 431 bfd_size_type amt; local 461 amt = sizeof (struct abbrev_info*) * ABBREV_HASH_SIZE; 462 abbrevs = bfd_zalloc (abfd, amt); 471 amt = sizeof (struct abbrev_info); 472 cur_abbrev = bfd_zalloc (abfd, amt); 494 amt = cur_abbrev->num_attrs + ATTR_ALLOC_CHUNK; 495 amt *= sizeof (struct attr_abbrev); 496 tmp = bfd_realloc (cur_abbrev->attrs, amt); 560 bfd_size_type amt; local 573 amt 788 bfd_size_type amt = sizeof (struct line_info); local 979 bfd_size_type amt; local 1710 bfd_size_type amt = sizeof (struct funcinfo); local 1730 bfd_size_type amt = sizeof (struct varinfo); local 1911 bfd_size_type amt; local 2250 bfd_size_type amt; local 2349 bfd_size_type amt = sizeof (struct dwarf2_debug); local [all...] |
H A D | stabs.c | 157 bfd_size_type count, amt; 215 amt = sizeof (struct stab_section_info); 216 amt += (count - 1) * sizeof (bfd_size_type); 217 *psecinfo = bfd_alloc (abfd, amt); 377 amt = sizeof *ne; 378 ne = bfd_alloc (abfd, amt); 473 amt = count * sizeof (bfd_size_type); 474 secinfo->cumulative_skips = bfd_alloc (abfd, amt); 516 bfd_size_type count, amt; 627 amt 155 bfd_size_type count, amt; local 513 bfd_size_type count, amt; local [all...] |
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | bcrypt_pbkdf.c | 119 size_t i, j, amt, stride; local 132 amt = (keylen + stride - 1) / stride; 163 amt = MINIMUM(amt, keylen); 164 for (i = 0; i < amt; i++) {
|
/freebsd-11-stable/sys/cam/nvme/ |
H A D | nvme_xpt.c | 484 off_t amt; local 497 amt = device->device_id_len; 499 amt = cdai->bufsiz; 500 memcpy(cdai->buf, device->device_id, amt); 508 amt = device->serial_num_len; 510 amt = cdai->bufsiz; 511 memcpy(cdai->buf, device->serial_num, amt); 531 amt = device->physpath_len; 533 amt = cdai->bufsiz; 534 memcpy(cdai->buf, device->physpath, amt); [all...] |
/freebsd-11-stable/bin/rcp/ |
H A D | rcp.c | 358 int amt, fd, haderr, indx, result; local 412 amt = bp->cnt; 413 if (i + amt > stb.st_size) 414 amt = stb.st_size - i; 416 result = read(fd, bp->buf, amt); 417 if (result != amt) 421 (void)write(rem, bp->buf, amt); 423 result = write(rem, bp->buf, amt); 424 if (result != amt) 498 int amt, exist local [all...] |
/freebsd-11-stable/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 283 off_t amt; local 334 amt = bp->cnt; 335 if (i + amt > stb.st_size) 336 amt = stb.st_size - i; 338 result = read(fd, bp->buf, (size_t)amt); 339 if (result != amt) 343 write(remout, bp->buf, amt); 345 result = write(remout, bp->buf, (size_t)amt); 346 if (result != amt) 421 int amt, coun local [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | scp.c | 764 size_t amt, nr; local 832 amt = bp->cnt; 833 if (i + (off_t)amt > stb.st_size) 834 amt = stb.st_size - i; 837 bp->buf, amt)) != amt) { 839 memset(bp->buf + nr, 0, amt - nr); 844 (void)atomicio(vwrite, remout, bp->buf, amt); 845 memset(bp->buf, 0, amt); 848 if (atomicio6(vwrite, remout, bp->buf, amt, scpi 929 int amt, exists, first, ofd; local [all...] |
/freebsd-11-stable/sys/dev/sound/pci/ |
H A D | als4000.c | 537 } static const amt[SOUND_MIXER_NRDEVICES] = { variable 558 if (amt[i].bits) v |= 1 << i; 563 if (amt[i].iselect) v |= 1 << i; 576 mask = ((1 << amt[dev].bits) - 1) << (8 - amt[dev].bits); 579 v = als_mix_rd(sc, amt[dev].lreg) & ~mask; 580 als_mix_wr(sc, amt[dev].lreg, l | v); 582 if (amt[dev].rreg) { 584 v = als_mix_rd(sc, amt[dev].rreg) & ~mask; 585 als_mix_wr(sc, amt[de [all...] |