Home
last modified time | relevance | path

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

/freebsd-11-stable/sys/dev/sound/pcm/
HDbuffer.c164 unsigned int bufsize, allocsize; in sndbuf_resize() local
183 if (bufsize > b->allocsize || in sndbuf_resize()
184 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_resize()
185 allocsize = round_page(bufsize); in sndbuf_resize()
187 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
192 b->allocsize, allocsize, bufsize); in sndbuf_resize()
196 b->allocsize = allocsize; in sndbuf_resize()
199 __func__, b, b->allocsize, b->bufsize); in sndbuf_resize()
214 unsigned int bufsize, allocsize; in sndbuf_remalloc() local
222 if (bufsize > b->allocsize || in sndbuf_remalloc()
[all …]
HDbuffer.h44 unsigned int bufsize, maxsize, allocsize; member
/freebsd-11-stable/bin/sh/
HDmemalloc.c138 int allocsize; in stnewblock() local
143 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes); in stnewblock()
146 sp = ckmalloc(allocsize); in stnewblock()
149 stacknleft = allocsize - (stacknxt - (char*)sp); in stnewblock()
/freebsd-11-stable/sys/powerpc/pseries/
HDplpar_iommu.c167 bus_size_t allocsize; in phyp_iommu_map() local
179 allocsize = round_page(segs[i].ds_len + in phyp_iommu_map()
181 error = vmem_xalloc(window->map->vmem, allocsize, in phyp_iommu_map()
195 for (j = 0; j < allocsize; j += PAGE_SIZE) { in phyp_iommu_map()
/freebsd-11-stable/usr.bin/rs/
HDrs.c83 static int allocsize = BUFSIZ; variable
380 allocsize += allocsize; in getptrs()
381 p = (char **)realloc(elem, allocsize * sizeof(char *)); in getptrs()
386 endelem = (elem = p) + allocsize; in getptrs()
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDzcp.c749 int64_t allocsize = *allocbuf; in zcp_lua_alloc() local
750 ASSERT3S(allocsize, >, 0); in zcp_lua_alloc()
751 ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=, in zcp_lua_alloc()
753 allocargs->aa_alloc_remaining += allocsize; in zcp_lua_alloc()
754 kmem_free(allocbuf, allocsize); in zcp_lua_alloc()
759 int64_t allocsize = nsize + sizeof (int64_t); in zcp_lua_alloc() local
762 (allocsize <= 0 || in zcp_lua_alloc()
763 allocsize > allocargs->aa_alloc_remaining)) { in zcp_lua_alloc()
767 allocbuf = kmem_alloc(allocsize, flags); in zcp_lua_alloc()
771 allocargs->aa_alloc_remaining -= allocsize; in zcp_lua_alloc()
[all …]
/freebsd-11-stable/sbin/restore/
HDsymtab.c375 #define allocsize(size) roundup2((size) + 1, STRTBLINCR) macro
377 static struct strhdr strtblhdr[allocsize(NAME_MAX) / STRTBLINCR];
398 cp = malloc(allocsize(len)); in savename()
465 (int)allocsize(ep->e_namlen), fd); in dumpsymtable()
477 stroff += allocsize(ep->e_namlen); in dumpsymtable()
/freebsd-11-stable/contrib/binutils/bfd/
HDarchive.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-11-stable/sys/dev/ie/
HDif_ie.c263 size_t allocsize; in ie_attach() local
290 allocsize = sizeof(void *) * (sc->nframes in ie_attach()
293 sc->rframes = (volatile struct ie_recv_frame_desc **) malloc(allocsize, in ie_attach()
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
HDAttributes.td21 def AllocSize : EnumAttr<"allocsize">;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/AsmParser/
HDLLLexer.cpp635 KEYWORD(allocsize); in LexIdentifier()
/freebsd-11-stable/contrib/expat/lib/
HDxmlparse.c6839 int allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
6842 ret = (XML_Content *)MALLOC(parser, allocsize); in build_model()