Searched refs:amt (Results 1 - 25 of 112) sorted by relevance

12345

/freebsd-10.0-release/contrib/apr/file_io/unix/
H A Dfullrw.c28 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-10.0-release/contrib/top/
H A Dutils.c421 * format_k(amt) - format a kilobyte memory value, returning a string
423 * area that changes each call. "amt" is converted to a
424 * string with a trailing "K". If "amt" is 10000 or greater,
445 char *format_k(amt)
447 int amt;
459 if (amt >= 10000)
461 amt = (amt + 512) / 1024;
463 if (amt >= 10000)
465 amt
[all...]
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/
H A DInstructionUtils.h68 Rotr32 (uint32_t bits, uint32_t amt)
70 assert(amt < 32 && "Invalid rotate amount");
71 return (bits >> amt) | (bits << ((32-amt)&31));
76 Rotl32 (uint32_t bits, uint32_t amt)
78 assert(amt < 32 && "Invalid rotate amount");
79 return (bits << amt) | (bits >> ((32-amt)&31));
/freebsd-10.0-release/libexec/rtld-elf/
H A Dmalloc.c173 register unsigned amt; local
191 amt = 8;
192 while ((unsigned)pagesz > amt) {
193 amt <<= 1;
205 amt = 8; /* size of first bucket */
208 amt = 16; /* size of first bucket */
213 amt = pagesz;
216 while (nbytes > amt + n) {
217 amt <<= 1;
218 if (amt
275 int amt; /* amount to allocate */ local
[all...]
/freebsd-10.0-release/usr.sbin/lpr/lpd/
H A Drecvjob.c260 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-10.0-release/sys/cam/scsi/
H A Dscsi_enc_internal.h218 #define ENC_MALLOC(amt) malloc(amt, M_SCSIENC, M_NOWAIT)
219 #define ENC_MALLOCZ(amt) malloc(amt, M_SCSIENC, M_ZERO|M_NOWAIT)
229 #define MEMCPY(dest, src, amt) bcopy(src, dest, amt)
/freebsd-10.0-release/sys/contrib/rdma/krping/
H A Dkrping_dev.c170 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-10.0-release/contrib/tcpdump/
H A Dprint-ripng.c66 register u_int amt; local
73 amt = snapend - dat;
74 i = min(length, amt);
/freebsd-10.0-release/contrib/subversion/subversion/libsvn_subr/
H A Dspillbuf.c204 apr_size_t amt; local
220 amt = buf->blocksize - mem->size;
221 if (amt > len)
222 amt = len;
225 memcpy(&mem->data[mem->size], data, amt);
226 mem->size += amt;
227 data += amt;
228 len -= amt;
233 buf->memory_size += amt;
454 svn_spillbuf__reader_read(apr_size_t *amt, argument
529 apr_size_t amt; local
[all...]
/freebsd-10.0-release/contrib/binutils/bfd/
H A Dosf-core.c90 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 Delf-strtab.c97 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 Darchive.c183 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 Dcoff-ppc.c198 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 Delfcore.h81 bfd_size_type amt; local
189 amt = sizeof (*i_phdrp) * i_ehdrp->e_phnum;
190 i_phdrp = bfd_alloc (abfd, amt);
H A Dformat.c144 bfd_size_type amt; local
147 amt = sizeof (*matching_vector) * 2 * _bfd_target_vector_entries;
148 matching_vector = bfd_malloc (amt);
H A Dptrace-core.c65 bfd_size_type amt; local
81 amt = sizeof (struct trad_core_struct);
82 rawptr = (struct trad_core_struct *) bfd_zalloc (abfd, amt);
H A Dcofflink.c110 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 Ddwarf2.c431 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 Dstabs.c157 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...]
H A Dxcofflink.c134 bfd_size_type amt = sizeof (struct coff_section_tdata);
136 sec->used_by_bfd = bfd_zalloc (abfd, amt);
444 bfd_size_type amt = sizeof (* ret);
446 ret = bfd_malloc (amt);
969 bfd_size_type amt;
1004 amt = symcount * sizeof (struct xcoff_link_hash_entry *);
1005 sym_hash = bfd_zalloc (abfd, amt);
1013 amt = symcount * sizeof (asection *);
1014 csect_cache = bfd_zalloc (abfd, amt);
1024 amt
133 bfd_size_type amt = sizeof (struct coff_section_tdata); local
442 bfd_size_type amt = sizeof (* ret); local
965 bfd_size_type amt; local
2418 bfd_size_type amt; local
2539 bfd_size_type amt = sizeof (* n); local
2581 bfd_size_type amt = strlen (h->root.root.string) + 2; local
2683 bfd_size_type amt; local
2990 bfd_size_type amt; local
4081 bfd_size_type amt = linesz * enc_count; local
4233 bfd_size_type amt = outsym - finfo->outsyms; local
4353 bfd_size_type amt; local
4601 bfd_size_type amt; local
5343 bfd_size_type amt; local
[all...]
H A Dnetbsd-core.c63 bfd_size_type amt = sizeof core; local
65 val = bfd_bread (&core, amt, abfd);
79 amt = sizeof (struct netbsd_core_struct);
80 rawptr = (struct netbsd_core_struct *) bfd_zalloc (abfd, amt);
/freebsd-10.0-release/bin/rcp/
H A Drcp.c358 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-10.0-release/crypto/heimdal/appl/rcp/
H A Drcp.c283 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-10.0-release/crypto/openssh/
H A Dscp.c750 size_t amt; local
819 amt = bp->cnt;
820 if (i + (off_t)amt > stb.st_size)
821 amt = stb.st_size - i;
823 if (atomicio(read, fd, bp->buf, amt) != amt)
828 (void)atomicio(vwrite, remout, bp->buf, amt);
831 if (atomicio6(vwrite, remout, bp->buf, amt, scpio,
832 &statbytes) != amt)
912 int amt, exist local
[all...]
/freebsd-10.0-release/sys/dev/sound/pci/
H A Dals4000.c537 } 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...]

Completed in 190 milliseconds

12345