Lines Matching refs:allocsize
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()
217 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_remalloc()
218 allocsize = round_page(bufsize); in sndbuf_remalloc()
220 buf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
221 tmpbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
222 shadbuf = malloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
232 __func__, b, b->allocsize, allocsize, bufsize); in sndbuf_remalloc()
233 b->allocsize = allocsize; in sndbuf_remalloc()
236 __func__, b, b->allocsize, b->bufsize); in sndbuf_remalloc()