Home
last modified time | relevance | path

Searched refs:pageSize (Results 1 – 25 of 78) sorted by relevance

1234

/external/swiftshader/third_party/marl/src/
Dmemory.cpp30 inline size_t pageSize() { in pageSize() function
34 auto mapping = mmap(nullptr, count * pageSize(), PROT_READ | PROT_WRITE, in allocatePages()
43 auto res = munmap(ptr, count * pageSize()); in freePages()
48 auto res = mprotect(addr, pageSize(), PROT_NONE); in protectPage()
62 inline size_t pageSize() { in pageSize() function
99 inline size_t pageSize() { in pageSize() function
108 auto mapping = VirtualAlloc(nullptr, count * pageSize(), in allocatePages()
121 auto res = VirtualProtect(addr, pageSize(), PAGE_NOACCESS, &oldVal); in protectPage()
144 MARL_ASSERT(alignment < pageSize(), in pagedMalloc()
146 int(alignment), int(pageSize())); in pagedMalloc()
[all …]
/external/deqp-deps/glslang/glslang/MachineIndependent/
DPoolAlloc.cpp73 pageSize(growthIncrement), in TPoolAllocator()
83 if (pageSize < 4*1024) in TPoolAllocator()
84 pageSize = 4*1024; in TPoolAllocator()
90 currentPageOffset = pageSize; in TPoolAllocator()
185 currentPageOffset = pageSize; in push()
252 if (currentPageOffset + allocationSize <= pageSize) { in allocate()
263 if (allocationSize + headerSkip > pageSize) { in allocate()
274 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); in allocate()
277 currentPageOffset = pageSize; // make next allocation come from a new page in allocate()
291 memory = reinterpret_cast<tHeader*>(::new char[pageSize]); in allocate()
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.cpp63 , pageSize(growthIncrement), in TPoolAllocator()
89 if (pageSize < 4*1024) in TPoolAllocator()
90 pageSize = 4*1024; in TPoolAllocator()
96 currentPageOffset = pageSize; in TPoolAllocator()
185 currentPageOffset = pageSize; in push()
263 if (allocationSize <= pageSize - currentPageOffset) { in allocate()
274 if (allocationSize > pageSize - headerSkip) { in allocate()
289 new(memory) tHeader(inUseList, (numBytesToAlloc + pageSize - 1) / pageSize); in allocate()
292 currentPageOffset = pageSize; // make next allocation come from a new page in allocate()
306 memory = reinterpret_cast<tHeader*>(::new char[pageSize]); in allocate()
/external/swiftshader/src/Reactor/
DExecutableMemory.cpp217 static int pageSize = [] { in memoryPageSize() local
227 return pageSize; in memoryPageSize()
266 size_t pageSize = memoryPageSize(); in allocateMemoryPages() local
267 size_t length = roundUp(bytes, pageSize); in allocateMemoryPages()
325 ASSERT(roundUp(reservation, pageSize) == reservation); in allocateMemoryPages()
348 mapping = allocate(length, pageSize); in allocateMemoryPages()
391 size_t pageSize = memoryPageSize(); in deallocateMemoryPages()
392 size_t length = (bytes + pageSize - 1) & ~(pageSize - 1); in deallocateMemoryPages()
396 size_t pageSize = memoryPageSize(); in deallocateMemoryPages()
397 size_t length = roundUp(bytes, pageSize); in deallocateMemoryPages()
/external/scudo/standalone/tools/
Dcompute_size_class_config.cpp22 const std::vector<size_t> &classes, size_t pageSize, in measureWastage() argument
33 if (wastage > 2 * pageSize) in measureWastage()
34 wastage = 2 * pageSize; in measureWastage()
73 size_t pageSize = 4096; in main() local
93 if (matchArg(pageSize, "-p") || matchArg(largestClass, "-c") || in main()
118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main()
147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tools/
Dcompute_size_class_config.cpp23 size_t pageSize, in measureWastage() argument
34 if (wastage > 2 * pageSize) in measureWastage()
35 wastage = 2 * pageSize; in measureWastage()
73 size_t pageSize = 4096; in main() local
93 if (matchArg(pageSize, "-p") || matchArg(largestClass, "-c") || in main()
118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main()
147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
/external/compiler-rt/lib/builtins/
Denable_execute_stack.c58 const uintptr_t pageSize = 4096; in __enable_execute_stack()
62 const uintptr_t pageSize = sysconf(_SC_PAGESIZE); in __enable_execute_stack()
65 const uintptr_t pageAlignMask = ~(pageSize-1); in __enable_execute_stack()
68 unsigned char* endPage = (unsigned char*)((p+TRAMPOLINE_SIZE+pageSize) & pageAlignMask); in __enable_execute_stack()
/external/llvm-project/compiler-rt/lib/builtins/
Denable_execute_stack.c52 const uintptr_t pageSize = 4096; in __enable_execute_stack()
56 const uintptr_t pageSize = sysconf(_SC_PAGESIZE); in __enable_execute_stack()
59 const uintptr_t pageAlignMask = ~(pageSize - 1); in __enable_execute_stack()
63 (unsigned char *)((p + TRAMPOLINE_SIZE + pageSize) & pageAlignMask); in __enable_execute_stack()
/external/swiftshader/src/Common/
DMemory.cpp74 static int pageSize = 0; in memoryPageSize() local
76 if(pageSize == 0) in memoryPageSize()
81 pageSize = systemInfo.dwPageSize; in memoryPageSize()
83 pageSize = sysconf(_SC_PAGESIZE); in memoryPageSize()
87 return pageSize; in memoryPageSize()
/external/skia/tests/
DPDFTaggedPruningTest.cpp29 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
67 document->beginPage(pageSize.width(), in DEF_TEST()
68 pageSize.height()); in DEF_TEST()
94 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
132 document->beginPage(pageSize.width(), in DEF_TEST()
133 pageSize.height()); in DEF_TEST()
DPDFTaggedLinkTest.cpp30 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
60 document->beginPage(pageSize.width(), in DEF_TEST()
61 pageSize.height()); in DEF_TEST()
DPDFTaggedTest.cpp28 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
110 document->beginPage(pageSize.width(), in DEF_TEST()
111 pageSize.height()); in DEF_TEST()
153 canvas = document->beginPage(pageSize.width(), in DEF_TEST()
154 pageSize.height()); in DEF_TEST()
DPDFTaggedTableTest.cpp29 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
113 document->beginPage(pageSize.width(), in DEF_TEST()
114 pageSize.height()); in DEF_TEST()
/external/piex/src/binary_parse/
Drange_checked_byte_ptr.cc38 virtual size_t pageSize() const;
53 size_t MemoryPagedByteArray::pageSize() const { return len_; } in pageSize() function in piex::binary_parse::__anonb229e1ea0111::MemoryPagedByteArray
196 size_t page_index = offset / array_->pageSize(); in loadPageForOffset()
205 size_t expected_page_size = array_->pageSize(); in loadPageForOffset()
206 if (page_index == (array_->length() - 1) / array_->pageSize()) { in loadPageForOffset()
207 expected_page_size = array_->length() - array_->pageSize() * page_index; in loadPageForOffset()
217 page_begin_offset_ = page_index * array_->pageSize(); in loadPageForOffset()
Dcached_paged_byte_array.h42 virtual size_t pageSize() const { return paged_byte_array_->pageSize(); } in pageSize() function
/external/skqp/tests/
DPDFTaggedTest.cpp27 SkSize pageSize = SkSize::Make(612, 792); // U.S. Letter in DEF_TEST() local
105 document->beginPage(pageSize.width(), in DEF_TEST()
106 pageSize.height()); in DEF_TEST()
148 canvas = document->beginPage(pageSize.width(), in DEF_TEST()
149 pageSize.height()); in DEF_TEST()
/external/skia/docs/examples/
DPDF.cpp12 SkSize pageSize) { in WritePDF() argument
21 SkCanvas* pageCanvas = pdfDocument->beginPage(pageSize.width(), in WritePDF()
22 pageSize.height()); in WritePDF()
/external/llvm-project/compiler-rt/test/gwp_asan/
Dheap_buffer_overflow.cpp15 reinterpret_cast<char *>(malloc(pageSize())); in main()
16 volatile char x = *(Ptr + pageSize()); in main()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowMediaBrowserCompat.java134 final int pageSize = options.getInt(EXTRA_PAGE_SIZE, -1); in applyOptionsToResults() local
135 if (page == -1 && pageSize == -1) { in applyOptionsToResults()
139 final int firstItemIndex = page * pageSize; in applyOptionsToResults()
140 final int lastItemIndex = firstItemIndex + pageSize; in applyOptionsToResults()
141 if (page < 0 || pageSize < 1 || firstItemIndex >= resultsSize) { in applyOptionsToResults()
/external/compiler-rt/lib/safestack/
Dsafestack.cc73 static unsigned pageSize; variable
192 CHECK_EQ((guard & (pageSize - 1)), 0); in INTERCEPTOR()
224 pageSize = sysconf(_SC_PAGESIZE); in __safestack_init()
/external/skqp/tools/
DProcStats.cpp49 const long pageSize = sysconf(_SC_PAGESIZE); in getCurrResidentSetSizeMB() local
59 return rssPages * pageSize / 1024 / 1024; in getCurrResidentSetSizeMB()
/external/deqp/external/vulkancts/framework/vulkan/
DvkBinaryRegistry.hpp158 const size_t pageSize = (size_t)(1<<ELEMENTS_PER_PAGE_LOG2)*sizeof(Element); in makePageResident() local
159 const size_t pageOffset = pageNdx*pageSize; in makePageResident()
160 const size_t numBytesToRead = de::min(m_elements.size()*sizeof(Element) - pageOffset, pageSize); in makePageResident()
/external/skia/tools/
DProcStats.cpp65 const long pageSize = sysconf(_SC_PAGESIZE); in getCurrResidentSetSizeBytes() local
75 return rssPages * pageSize; in getCurrResidentSetSizeBytes()
/external/swiftshader/src/System/
DMemory.cpp76 static int pageSize = [] { in memoryPageSize() local
86 return pageSize; in memoryPageSize()
/external/skqp/site/user/sample/
Dpdf.md15 SkSize pageSize) {
27 SkCanvas* pageCanvas = pdfDocument->beginPage(pageSize.width(),
28 pageSize.height());

1234