Lines Matching refs:allocsize
163 unsigned int bufsize, allocsize; in sndbuf_resize() local
182 if (bufsize > b->allocsize || in sndbuf_resize()
183 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_resize()
184 allocsize = round_page(bufsize); in sndbuf_resize()
186 tmpbuf = kmalloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_resize()
191 b->allocsize, allocsize, bufsize); in sndbuf_resize()
195 b->allocsize = allocsize; in sndbuf_resize()
198 __func__, b, b->allocsize, b->bufsize); in sndbuf_resize()
213 unsigned int bufsize, allocsize; in sndbuf_remalloc() local
221 if (bufsize > b->allocsize || in sndbuf_remalloc()
222 bufsize < (b->allocsize >> SNDBUF_CACHE_SHIFT)) { in sndbuf_remalloc()
223 allocsize = round_page(bufsize); in sndbuf_remalloc()
225 buf = kmalloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
226 tmpbuf = kmalloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
227 shadbuf = kmalloc(allocsize, M_DEVBUF, M_WAITOK); in sndbuf_remalloc()
240 __func__, b, b->allocsize, allocsize, bufsize); in sndbuf_remalloc()
241 b->allocsize = allocsize; in sndbuf_remalloc()
244 __func__, b, b->allocsize, b->bufsize); in sndbuf_remalloc()
446 return b->allocsize; in sndbuf_getallocsize()