Searched refs:PG_COUNT (Results 1 – 1 of 1) sorted by relevance
138 #define PG_COUNT(_l) (((_l) + (PAGE_SIZE - 1)) / PAGE_SIZE) macro198 tlen = (1 + PG_COUNT(rlen + 8)) * PAGE_SIZE; in __dislocator_alloc()275 if (mprotect(ret + PG_COUNT(rlen + 8) * PAGE_SIZE, PAGE_SIZE, PROT_NONE)) in __dislocator_alloc()281 ret += PAGE_SIZE * PG_COUNT(rlen + 8) - rlen - 8; in __dislocator_alloc()387 ptr_ -= PAGE_SIZE * PG_COUNT(len + 8) - len - 8; in free()389 if (mprotect(ptr_ - 8, PG_COUNT(len + 8) * PAGE_SIZE, PROT_NONE)) in free()