Lines Matching refs:max_bsize
1098 size_t max_bsize = 0; /* protected by block_ptr */
1242 max_bsize = 0;
1250 if ((size_t)blhdr->binfo[i].u.bi.bsize > max_bsize) {
1251 max_bsize = blhdr->binfo[i].u.bi.bsize;
1257 if (kmem_alloc(kernel_map, (vm_offset_t *)&block_ptr, max_bsize)) {
1337 kmem_free(kernel_map, (vm_offset_t)block_ptr, max_bsize);
1390 * start max_bsize at PAGE_SIZE
1392 for (i = 0, max_bsize = PAGE_SIZE; i < num_full; i++) {
1397 if (co_buf[i].block_size > max_bsize)
1398 max_bsize = co_buf[i].block_size;
1401 * round max_bsize up to the nearest PAGE_SIZE multiple
1403 if (max_bsize & (PAGE_SIZE - 1)) {
1404 max_bsize = (max_bsize + PAGE_SIZE) & ~(PAGE_SIZE - 1);
1407 if (kmem_alloc(kernel_map, (vm_offset_t *)&block_ptr, max_bsize)) {
1448 kmem_free(kernel_map, (vm_offset_t)block_ptr, max_bsize);
1461 kmem_free(kernel_map, (vm_offset_t)block_ptr, max_bsize);