Lines Matching refs:allocsize
166 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()
225 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_remalloc()
226 allocsize = round_page(bufsize); in sndbuf_remalloc()
228 buf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
229 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
230 shadbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
243 __func__, b, b->allocsize, allocsize, bufsize); in sndbuf_remalloc()
244 b->allocsize = allocsize; in sndbuf_remalloc()
247 __func__, b, b->allocsize, b->bufsize); in sndbuf_remalloc()
449 return b->allocsize; in sndbuf_getallocsize()