Home
last modified time | relevance | path

Searched refs:allocsize (Results 1 – 11 of 11) sorted by relevance

/freebsd-12-stable/sys/dev/sound/pcm/
Dbuffer.c166 unsigned int bufsize, allocsize; in sndbuf_resize() local
185 if (bufsize > b->allocsize || in sndbuf_resize()
186 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_resize()
187 allocsize = round_page(bufsize); in sndbuf_resize()
189 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
194 b->allocsize, allocsize, bufsize); in sndbuf_resize()
198 b->allocsize = allocsize; in sndbuf_resize()
201 __func__, b, b->allocsize, b->bufsize); in sndbuf_resize()
216 unsigned int bufsize, allocsize; in sndbuf_remalloc() local
224 if (bufsize > b->allocsize || in sndbuf_remalloc()
[all …]
Dbuffer.h46 unsigned int bufsize, maxsize, allocsize; member
/freebsd-12-stable/bin/sh/
Dmemalloc.c140 int allocsize; in stnewblock() local
145 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes); in stnewblock()
148 sp = ckmalloc(allocsize); in stnewblock()
151 stacknleft = allocsize - (stacknxt - (char*)sp); in stnewblock()
/freebsd-12-stable/sys/powerpc/pseries/
Dplpar_iommu.c169 bus_size_t allocsize; in phyp_iommu_map() local
181 allocsize = round_page(segs[i].ds_len + in phyp_iommu_map()
183 error = vmem_xalloc(window->map->vmem, allocsize, in phyp_iommu_map()
197 for (j = 0; j < allocsize; j += PAGE_SIZE) { in phyp_iommu_map()
/freebsd-12-stable/usr.bin/rs/
Drs.c85 static int allocsize = BUFSIZ; variable
382 allocsize += allocsize; in getptrs()
383 p = (char **)realloc(elem, allocsize * sizeof(char *)); in getptrs()
388 endelem = (elem = p) + allocsize; in getptrs()
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dzcp.c734 int64_t allocsize = *allocbuf; in zcp_lua_alloc() local
735 ASSERT3S(allocsize, >, 0); in zcp_lua_alloc()
736 ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=, in zcp_lua_alloc()
738 allocargs->aa_alloc_remaining += allocsize; in zcp_lua_alloc()
739 kmem_free(allocbuf, allocsize); in zcp_lua_alloc()
744 int64_t allocsize = nsize + sizeof (int64_t); in zcp_lua_alloc() local
747 (allocsize <= 0 || in zcp_lua_alloc()
748 allocsize > allocargs->aa_alloc_remaining)) { in zcp_lua_alloc()
752 allocbuf = kmem_alloc(allocsize, flags); in zcp_lua_alloc()
756 allocargs->aa_alloc_remaining -= allocsize; in zcp_lua_alloc()
[all …]
/freebsd-12-stable/sbin/restore/
Dsymtab.c377 #define allocsize(size) roundup2((size) + 1, STRTBLINCR) macro
379 static struct strhdr strtblhdr[allocsize(NAME_MAX) / STRTBLINCR];
400 cp = malloc(allocsize(len)); in savename()
467 (int)allocsize(ep->e_namlen), fd); in dumpsymtable()
479 stroff += allocsize(ep->e_namlen); in dumpsymtable()
/freebsd-12-stable/contrib/binutils/bfd/
Darchive.c377 bfd_size_type allocsize = sizeof (struct areltdata) + sizeof (struct ar_hdr); in _bfd_generic_read_ar_hdr_mag() local
423 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag()
426 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag()
464 allocsize += namelen + 1; in _bfd_generic_read_ar_hdr_mag()
469 allocptr = bfd_zalloc (abfd, allocsize); in _bfd_generic_read_ar_hdr_mag()
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/IR/
DAttributes.td52 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/AsmParser/
DLLLexer.cpp637 KEYWORD(allocsize); in LexIdentifier()
/freebsd-12-stable/contrib/expat/lib/
Dxmlparse.c7510 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
7513 ret = (XML_Content *)MALLOC(parser, allocsize); in build_model()