Searched refs:allocsize (Results 1 – 11 of 11) sorted by relevance
| /src/sys/dev/sound/pcm/ |
| H A D | buffer.c | 159 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 D | buffer.h | 41 unsigned int bufsize, maxsize, allocsize; member
|
| H A D | dsp.c | 1963 (*offset + size) > c->bufsoft->allocsize || in dsp_mmap_single()
|
| /src/bin/sh/ |
| H A D | memalloc.c | 139 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 D | plpar_iommu.c | 166 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 D | zcp.c | 731 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 D | memstat_malloc.c | 479 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 D | symtab.c | 369 #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 D | rx.c | 366 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 D | Attributes.td | 71 def AllocSize : IntAttr<"allocsize", [FnAttr]>;
|
| /src/contrib/expat/lib/ |
| H A D | xmlparse.c | 8309 const size_t allocsize = (dtd->scaffCount * sizeof(XML_Content) local 8315 ret = parser->m_mem.malloc_fcn(allocsize);
|