Home
last modified time | relevance | path

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

/src/sys/dev/sound/pcm/
H A Dbuffer.c159 unsigned int bufsize, allocsize; in sndbuf_resize() local
178 if (bufsize > b->allocsize || in sndbuf_resize()
179 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_resize()
180 allocsize = round_page(bufsize); in sndbuf_resize()
182 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
187 b->allocsize, allocsize, bufsize); in sndbuf_resize()
190 b->allocsize = allocsize; in sndbuf_resize()
193 __func__, b, b->allocsize, b->bufsize); in sndbuf_resize()
208 unsigned int bufsize, allocsize; in sndbuf_remalloc() local
216 if (bufsize > b->allocsize || in sndbuf_remalloc()
[all …]
H A Dbuffer.h41 unsigned int bufsize, maxsize, allocsize; member
H A Ddsp.c1963 (*offset + size) > c->bufsoft->allocsize || in dsp_mmap_single()
/src/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()
/src/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()
/src/sys/contrib/openzfs/module/zfs/
H A Dzcp.c731 int64_t allocsize = *allocbuf; in zcp_lua_alloc() local
732 ASSERT3S(allocsize, >, 0); in zcp_lua_alloc()
733 ASSERT3S(allocargs->aa_alloc_remaining + allocsize, <=, in zcp_lua_alloc()
735 allocargs->aa_alloc_remaining += allocsize; in zcp_lua_alloc()
736 vmem_free(allocbuf, allocsize); in zcp_lua_alloc()
741 int64_t allocsize = nsize + sizeof (int64_t); in zcp_lua_alloc() local
744 (allocsize <= 0 || in zcp_lua_alloc()
745 allocsize > allocargs->aa_alloc_remaining)) { in zcp_lua_alloc()
749 allocbuf = vmem_alloc(allocsize, KM_SLEEP); in zcp_lua_alloc()
750 allocargs->aa_alloc_remaining -= allocsize; in zcp_lua_alloc()
[all …]
/src/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()
/src/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()
/src/sys/contrib/dev/iwlwifi/pcie/gen1_2/
H A Drx.c366 unsigned int allocsize = PAGE_SIZE << trans_pcie->rx_page_order; in iwl_pcie_rx_alloc_page() local
381 if (trans_pcie->alloc_page_used >= allocsize) in iwl_pcie_rx_alloc_page()
407 if (2 * rbsize <= allocsize) { in iwl_pcie_rx_alloc_page()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.td71 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
/src/contrib/expat/lib/
H A Dxmlparse.c8309 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) local
8315 ret = parser->m_mem.malloc_fcn(allocsize);