Lines Matching refs:allocsize
165 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()
224 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_remalloc()
225 allocsize = round_page(bufsize); in sndbuf_remalloc()
227 buf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
228 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
229 shadbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
242 __func__, b, b->allocsize, allocsize, bufsize); in sndbuf_remalloc()
243 b->allocsize = allocsize; in sndbuf_remalloc()
246 __func__, b, b->allocsize, b->bufsize); in sndbuf_remalloc()
439 return b->allocsize; in sndbuf_getallocsize()