Lines Matching refs:size
46 * We manage buffer zones up to a page in size. Buffers larger than a page can
48 * efficiently as what we can do here. Also, a page is the largest size for
57 * smallest supported allocation size of 32 through the largest supported page
58 * size of 64K. If you up the biggest page size number, up the array size too.
59 * Basically the size of the array needs to be log2(maxsize)-log2(minsize)+1,
63 #error Unsupported page size
87 * Each uma zone is created with an alignment of size-1, meaning that
88 * the alignment is equal to the size (I.E., 64 byte buffers are aligned
92 * bufzone->size.
99 bz->size = cursize;
100 bz->umazone = uma_zcreate(bz->name, bz->size,
101 NULL, NULL, NULL, NULL, bz->size - 1, zcreate_flags);
133 busdma_bufalloc_findzone(busdma_bufalloc_t ba, bus_size_t size)
138 if (size > MAX_ZONE_BUFSIZE)
142 if (bz->size >= size)
146 panic("Didn't find a buffer zone of the right size");
150 busdma_bufalloc_alloc_uncacheable(uma_zone_t zone, vm_size_t size,
158 return ((void *)kmem_alloc_attr(kernel_arena, size, wait, 0,
169 busdma_bufalloc_free_uncacheable(void *item, vm_size_t size, uint8_t pflag)
172 kmem_free(kernel_arena, (vm_offset_t)item, size);