Home
last modified time | relevance | path

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

/xnu-12377.61.12/osfmk/arm64/sptm/pmap/ !
H A Dpmap_data.c159 #define PV_FREE_ARRAY_SIZE (256U) macro
166 static pv_free_list_t pv_free_ring[PV_FREE_ARRAY_SIZE] MARK_AS_PMAP_DATA = {0};
176 static_assert(PV_FREE_ARRAY_SIZE <= (1 << (sizeof(pv_free_read_idx) * 8)));
187 return (pv_free_write_idx - pv_free_read_idx) & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_n_elems()
627 const size_t index = pv_free_read_idx++ & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_get_batch()
653 if (pv_free_array_n_elems() == (PV_FREE_ARRAY_SIZE - 1)) { in pv_free_array_give_batch()
658 const size_t index = pv_free_write_idx++ & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_give_batch()
/xnu-12377.61.12/osfmk/arm/pmap/ !
H A Dpmap_data.c230 #define PV_FREE_ARRAY_SIZE (256U) macro
237 static pv_free_list_t pv_free_ring[PV_FREE_ARRAY_SIZE] MARK_AS_PMAP_DATA = {0};
247 static_assert(PV_FREE_ARRAY_SIZE <= (1 << (sizeof(pv_free_read_idx) * 8)));
258 return (pv_free_write_idx - pv_free_read_idx) & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_n_elems()
1602 const size_t index = pv_free_read_idx++ & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_get_batch()
1628 if (pv_free_array_n_elems() == (PV_FREE_ARRAY_SIZE - 1)) { in pv_free_array_give_batch()
1633 const size_t index = pv_free_write_idx++ & (PV_FREE_ARRAY_SIZE - 1); in pv_free_array_give_batch()