Home
last modified time | relevance | path

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

/xnu-10063.141.1/osfmk/arm64/sptm/pmap/
H A Dpmap_data.c120 #define PV_BATCH_SIZE (PAGE_SIZE / sizeof(pv_entry_t)) macro
128 static_assert((PV_BATCH_SIZE * sizeof(pv_entry_t)) <= PAGE_SIZE);
592 assert((free_list->count == PV_BATCH_SIZE) && (free_list->list != PV_ENTRY_NULL)); in pv_free_array_get_batch()
623 free_list->count = PV_BATCH_SIZE; in pv_free_array_give_batch()
735 pmap_cpu_data->pv_free.count = PV_BATCH_SIZE - 1; in pv_list_alloc()
772 const uint32_t available = PV_BATCH_SIZE - (pmap_cpu_data->pv_free.count % PV_BATCH_SIZE); in pv_list_free()
780 … ((pmap_cpu_data->pv_free.count % PV_BATCH_SIZE != 0) || (pmap_cpu_data->pv_free.count == 0)))) { in pv_list_free()
800 if (__improbable(freed_count == PV_BATCH_SIZE)) { in pv_list_free()
822 if (__improbable(pmap_cpu_data->pv_free.count == (PV_BATCH_SIZE + 1))) { in pv_list_free()
831 } else if (__improbable(pmap_cpu_data->pv_free.count == (PV_BATCH_SIZE * 2) + 1)) { in pv_list_free()
[all …]
/xnu-10063.141.1/osfmk/arm/pmap/
H A Dpmap_data.c192 #define PV_BATCH_SIZE (PAGE_SIZE / sizeof(pv_entry_t)) macro
200 static_assert((PV_BATCH_SIZE * sizeof(pv_entry_t)) <= PAGE_SIZE);
1604 assert((free_list->count == PV_BATCH_SIZE) && (free_list->list != PV_ENTRY_NULL)); in pv_free_array_get_batch()
1635 free_list->count = PV_BATCH_SIZE; in pv_free_array_give_batch()
1755 pmap_cpu_data->pv_free.count = PV_BATCH_SIZE - 1; in pv_list_alloc()
1800 const uint32_t available = PV_BATCH_SIZE - (pmap_cpu_data->pv_free.count % PV_BATCH_SIZE); in pv_list_free()
1808 … ((pmap_cpu_data->pv_free.count % PV_BATCH_SIZE != 0) || (pmap_cpu_data->pv_free.count == 0)))) { in pv_list_free()
1832 if (__improbable(pmap_cpu_data->pv_free.count == (PV_BATCH_SIZE + 1))) { in pv_list_free()
1841 } else if (__improbable(pmap_cpu_data->pv_free.count == (PV_BATCH_SIZE * 2) + 1)) { in pv_list_free()
1847 pmap_cpu_data->pv_free.count -= PV_BATCH_SIZE; in pv_list_free()
[all …]