Home
last modified time | relevance | path

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

/freebsd/sys/dev/sound/pcm/
H A Dbuffer.c165 unsigned int bufsize, allocsize; in sndbuf_resize() local
184 if (bufsize > b->allocsize || in sndbuf_resize()
185 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_resize()
186 allocsize = round_page(bufsize); in sndbuf_resize()
188 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
193 b->allocsize, allocsize, bufsize); in sndbuf_resize()
197 b->allocsize = allocsize; in sndbuf_resize()
200 __func__, b, b->allocsize, b->bufsize); in sndbuf_resize()
215 unsigned int bufsize, allocsize; in sndbuf_remalloc() local
223 if (bufsize > b->allocsize || in sndbuf_remalloc()
[all …]
H A Dbuffer.h40 unsigned int bufsize, maxsize, allocsize; member
/freebsd/bin/sh/
H A Dmemalloc.c139 int allocsize; in stnewblock() local
144 allocsize = ALIGN(sizeof(struct stack_block)) + ALIGN(nbytes); in stnewblock()
147 sp = ckmalloc(allocsize); in stnewblock()
150 stacknleft = allocsize - (stacknxt - (char*)sp); in stnewblock()
/freebsd/sys/powerpc/pseries/
H A Dplpar_iommu.c166 bus_size_t allocsize; in phyp_iommu_map() local
178 allocsize = round_page(segs[i].ds_len + in phyp_iommu_map()
180 error = vmem_xalloc(window->map->vmem, allocsize, in phyp_iommu_map()
194 for (j = 0; j < allocsize; j += PAGE_SIZE) { in phyp_iommu_map()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzcp.c730 int64_t allocsize = *allocbuf; in zcp_lua_alloc() local
731 ASSERT3S(allocsize, >, 0); in zcp_lua_alloc()
732 ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=, in zcp_lua_alloc()
734 allocargs->aa_alloc_remaining += allocsize; in zcp_lua_alloc()
735 vmem_free(allocbuf, allocsize); in zcp_lua_alloc()
740 int64_t allocsize = nsize + sizeof (int64_t); in zcp_lua_alloc() local
743 (allocsize <= 0 || in zcp_lua_alloc()
744 allocsize > allocargs->aa_alloc_remaining)) { in zcp_lua_alloc()
748 allocbuf = vmem_alloc(allocsize, KM_SLEEP); in zcp_lua_alloc()
749 allocargs->aa_alloc_remaining -= allocsize; in zcp_lua_alloc()
[all …]
/freebsd/lib/libmemstat/
H A Dmemstat_malloc.c479 int numzones, objsize, allocsize, ret; in memstat_malloc_zone_init_kvm() local
496 allocsize = objsize * memstat_malloc_zone_count; in memstat_malloc_zone_init_kvm()
497 kmemzones = malloc(allocsize); in memstat_malloc_zone_init_kvm()
501 ret = kread_symbol(kvm, X_KMEMZONES, kmemzones, allocsize, 0); in memstat_malloc_zone_init_kvm()
/freebsd/sbin/restore/
H A Dsymtab.c369 #define allocsize(size) roundup2((size) + 1, STRTBLINCR) macro
371 static struct strhdr strtblhdr[allocsize(NAME_MAX) / STRTBLINCR];
392 cp = malloc(allocsize(len)); in savename()
459 (int)allocsize(ep->e_namlen), fd); in dumpsymtable()
471 stroff += allocsize(ep->e_namlen); in dumpsymtable()
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Drx.c370 unsigned int allocsize = PAGE_SIZE << trans_pcie->rx_page_order;
384 if (trans_pcie->alloc_page_used >= allocsize)
410 if (2 * rbsize <= allocsize) {
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.td71 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
/freebsd/contrib/expat/lib/
H A Dxmlparse.c7663 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) in build_model() local
7666 ret = (XML_Content *)MALLOC(parser, allocsize); in build_model()