Lines Matching refs:page_num
322 #define ZEND_MM_PAGE_ADDR(chunk, page_num) \ argument
323 ((void*)(((zend_mm_page*)(chunk)) + (page_num)))
882 uint32_t page_num, len; local
893 page_num = chunk->free_tail;
913 page_num = i + zend_mm_bitset_nts(tmp);
919 len = i - page_num;
928 len = (i + zend_ulong_ntz(tmp)) - page_num;
951 page_num = best;
960 page_num = i + zend_mm_bitset_nts(tmp);
967 len = ZEND_MM_PAGES - page_num;
969 chunk->free_tail = page_num + pages_count;
973 chunk->free_tail = page_num;
975 page_num = best;
985 len = i + zend_ulong_ntz(tmp) - page_num;
991 best = page_num;
1055 page_num = ZEND_MM_FIRST_PAGE;
1076 zend_mm_bitset_set_range(chunk->free_map, page_num, pages_count);
1077 chunk->map[page_num] = ZEND_MM_LRUN(pages_count);
1078 if (page_num == chunk->free_tail) {
1079 chunk->free_tail = page_num + pages_count;
1081 return ZEND_MM_PAGE_ADDR(chunk, page_num);
1150 …end_mm_free_pages_ex(zend_mm_heap *heap, zend_mm_chunk *chunk, uint32_t page_num, uint32_t pages_c… argument
1153 zend_mm_bitset_reset_range(chunk->free_map, page_num, pages_count);
1154 chunk->map[page_num] = 0;
1155 if (chunk->free_tail == page_num + pages_count) {
1157 chunk->free_tail = page_num;
1164 …ne void zend_mm_free_pages(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1166 zend_mm_free_pages_ex(heap, chunk, page_num, pages_count, 1);
1169 …ne void zend_mm_free_large(zend_mm_heap *heap, zend_mm_chunk *chunk, int page_num, int pages_count) argument
1174 zend_mm_free_pages(heap, chunk, page_num, pages_count);
1246 int page_num; local
1261 page_num = ZEND_MM_ALIGNED_OFFSET(bin, ZEND_MM_CHUNK_SIZE) / ZEND_MM_PAGE_SIZE;
1262 chunk->map[page_num] = ZEND_MM_SRUN(bin_num);
1267 chunk->map[page_num+i] = ZEND_MM_NRUN(bin_num, i);
1348 int page_num; local
1353 page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE);
1354 info = chunk->map[page_num];
1422 int page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE); local
1423 zend_mm_page_info info = chunk->map[page_num];
1432 zend_mm_free_large(heap, chunk, page_num, pages_count);
1449 int page_num; local
1453 page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE);
1454 info = chunk->map[page_num];
1589 int page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE); local
1590 zend_mm_page_info info = chunk->map[page_num];
1671 chunk->map[page_num] = ZEND_MM_LRUN(new_pages_count);
1673 zend_mm_bitset_reset_range(chunk->free_map, page_num + new_pages_count, rest_pages_count);
1688 if (page_num + new_pages_count <= ZEND_MM_PAGES &&
1689 …zend_mm_bitset_is_free_range(chunk->free_map, page_num + old_pages_count, new_pages_count - old_pa…
1699 …zend_mm_bitset_set_range(chunk->free_map, page_num + old_pages_count, new_pages_count - old_pages_…
1700 chunk->map[page_num] = ZEND_MM_LRUN(new_pages_count);
1954 int page_num; local
1974 page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE);
1975 info = chunk->map[page_num];
1978 page_num -= ZEND_MM_NRUN_OFFSET(info);
1979 info = chunk->map[page_num];
1988 chunk->map[page_num] = ZEND_MM_SRUN_EX(i, free_counter);
2003 page_num = (int)(page_offset / ZEND_MM_PAGE_SIZE);
2004 info = chunk->map[page_num];
2007 page_num -= ZEND_MM_NRUN_OFFSET(info);
2008 info = chunk->map[page_num];
2561 int page_num = page_offset / ZEND_MM_PAGE_SIZE; \
2563 ZEND_ASSERT(chunk->map[page_num] & ZEND_MM_IS_SRUN); \
2564 ZEND_ASSERT(ZEND_MM_SRUN_BIN_NUM(chunk->map[page_num]) == _num); \
2588 int page_num = page_offset / ZEND_MM_PAGE_SIZE; local
2592 ZEND_ASSERT(chunk->map[page_num] & ZEND_MM_IS_LRUN);
2593 ZEND_ASSERT(ZEND_MM_LRUN_PAGES(chunk->map[page_num]) == pages_count);
2594 zend_mm_free_large(AG(mm_heap), chunk, page_num, pages_count);