Home
last modified time | relevance | path

Searched refs:nr_items (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dcpu_uarray.c23 cpu_uarray_size(size_t nr_items) in cpu_uarray_size() argument
25 size_t size = P2ROUNDUP(nr_items * sizeof (uint64_t), CUA_ALIGN); in cpu_uarray_size()
31 cpu_uarray_zalloc(size_t nr_items, int kmflags) in cpu_uarray_zalloc() argument
35 cua = kmem_zalloc(cpu_uarray_size(nr_items), kmflags); in cpu_uarray_zalloc()
39 cua->cu_nr_items = nr_items; in cpu_uarray_zalloc()
/illumos-gate/usr/src/uts/common/sys/
H A Dcpu_uarray.h53 #define CUA_CPU_STRIDE(nr_items) \ argument
54 CUA_ROUNDUP((nr_items), CUA_ALIGN / sizeof (uint64_t))
55 #define CUA_INDEX(nr_items, c, i) (((c) * CUA_CPU_STRIDE(nr_items)) + (i)) argument