Home
last modified time | relevance | path

Searched refs:PageSize (Results 1 – 25 of 42) sorted by relevance

12

/external/llvm/lib/ExecutionEngine/Orc/
DOrcABISupport.cpp152 unsigned PageSize = sys::Process::getPageSize(); in emitIndirectStubsBlock() local
153 unsigned NumPages = ((MinStubs * StubSize) + (PageSize - 1)) / PageSize; in emitIndirectStubsBlock()
154 unsigned NumStubs = (NumPages * PageSize) / StubSize; in emitIndirectStubsBlock()
159 2 * NumPages * PageSize, nullptr, in emitIndirectStubsBlock()
166 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock()
168 NumPages * PageSize, in emitIndirectStubsBlock()
169 NumPages * PageSize); in emitIndirectStubsBlock()
173 uint64_t PtrOffsetField = static_cast<uint64_t>(NumPages * PageSize) in emitIndirectStubsBlock()
234 unsigned PageSize = sys::Process::getPageSize(); in emitIndirectStubsBlock() local
235 unsigned NumPages = ((MinStubs * StubSize) + (PageSize - 1)) / PageSize; in emitIndirectStubsBlock()
[all …]
/external/autotest/client/site_tests/platform_DebugDaemonCupsAddPrinters/src/
DGenericPostScript.ppd.gz1*PPD-Adobe: "4.3" 2*% 3*% For information on using this, ...
/external/libcups/cups/
Dtest.ppd46 *UIConstraints: *PageSize Letter *InputSlot Envelope
47 *UIConstraints: *InputSlot Envelope *PageSize Letter
59 *% For PageSize, we have put all of the translations in-line...
60 *OpenUI *PageSize/Page Size: PickOne
61 *fr.Translation PageSize/French Page Size: ""
62 *fr_CA.Translation PageSize/French Canadian Page Size: ""
63 *OrderDependency: 10 AnySetup *PageSize
65 *PageSize Letter/US Letter: "PageSize=Letter"
66 *fr.PageSize Letter/French US Letter: ""
67 *fr_CA.PageSize Letter/French Canadian US Letter: ""
[all …]
Dtest2.ppd44 *cupsUIConstraints envelope: "*PageSize Letter *InputSlot Envelope"
45 *cupsUIConstraints envelope: "*PageSize A4 *InputSlot Envelope"
46 *cupsUIResolver envelope: "*InputSlot Manual *PageSize Env10"
48 *cupsUIConstraints envphoto: "*PageSize Env10 *InputSlot Envelope *Quality Photo"
55 *cupsUIConstraints loop1: "*PageSize A4 *Quality Photo"
57 *cupsUIConstraints loop2: "*PageSize A4 *Quality Normal"
60 *% For PageSize, we have put all of the translations in-line...
61 *OpenUI *PageSize/Page Size: PickOne
62 *fr.Translation PageSize/French Page Size: ""
63 *fr_CA.Translation PageSize/French Canadian Page Size: ""
[all …]
/external/llvm/lib/Support/Unix/
DMemory.inc90 static const size_t PageSize = Process::getPageSize();
91 const size_t NumPages = (NumBytes+PageSize-1)/PageSize;
116 if (Start && Start % PageSize)
117 Start += PageSize - Start % PageSize;
119 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages,
131 Result.Size = NumPages*PageSize;
155 static const size_t PageSize = Process::getPageSize();
164 …ult = ::mprotect((void*)((uintptr_t)M.Address & ~(PageSize-1)), PageSize*((M.Size+PageSize-1)/Page…
184 static const size_t PageSize = Process::getPageSize();
185 size_t NumPages = (NumBytes+PageSize-1)/PageSize;
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DMemory.inc90 static const size_t PageSize = Process::getPageSize();
91 const size_t NumPages = (NumBytes+PageSize-1)/PageSize;
108 if (Start && Start % PageSize)
109 Start += PageSize - Start % PageSize;
111 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages,
123 Result.Size = NumPages*PageSize;
147 static const size_t PageSize = Process::getPageSize();
156 uintptr_t Start = alignAddr((uint8_t *)M.Address - PageSize + 1, PageSize);
157 uintptr_t End = alignAddr((uint8_t *)M.Address + M.Size, PageSize);
179 static const size_t PageSize = Process::getPageSize();
[all …]
/external/libcups/filter/
Dtestraster.c376 else if (header.PageSize[0] != 792 || header.PageSize[1] != 612) in do_ps_tests()
378 printf("FAIL (PageSize [%d %d], expected [792 612])\n", header.PageSize[0], in do_ps_tests()
379 header.PageSize[1]); in do_ps_tests()
432 else if (header.PageSize[0] != 792 || header.PageSize[1] != 1224) in do_ps_tests()
435 header.PageSize[0], header.PageSize[1]); in do_ps_tests()
558 header.PageSize[0] = 288; in do_raster_tests()
559 header.PageSize[1] = 288; in do_raster_tests()
690 expected.PageSize[0] = 288; in do_raster_tests()
691 expected.PageSize[1] = 288; in do_raster_tests()
963 if (header->PageSize[0] != expected->PageSize[0] || in print_changes()
[all …]
Drastertolabel.c175 fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); in StartPage()
193 length = header->PageSize[1] * header->HWResolution[1] / 72; in StartPage()
319 switch (header->PageSize[1]) in StartPage()
354 printf("\033!f%uZ", header->PageSize[1] * 300 / 72); in StartPage()
359 header->PageSize[1] / 12); in StartPage()
Draster.c223 h->PageSize[0] = (unsigned)(72 * media->width / 2540); in cupsRasterInitPWGHeader()
224 h->PageSize[1] = (unsigned)(72 * media->length / 2540); in cupsRasterInitPWGHeader()
230 h->ImagingBoundingBox[2] = h->PageSize[0]; in cupsRasterInitPWGHeader()
231 h->ImagingBoundingBox[3] = h->PageSize[1]; in cupsRasterInitPWGHeader()
1048 fh.PageSize[0] = htonl(r->header.PageSize[0]); in cupsRasterWriteHeader()
1049 fh.PageSize[1] = htonl(r->header.PageSize[1]); in cupsRasterWriteHeader()
1245 fh.PageSize[0] = htonl(r->header.PageSize[0]); in cupsRasterWriteHeader2()
1246 fh.PageSize[1] = htonl(r->header.PageSize[1]); in cupsRasterWriteHeader2()
1629 r->header.PageSize[0] = (unsigned)(r->header.cupsWidth * 72 / r->header.HWResolution[0]); in cups_raster_read_header()
1630 r->header.PageSize[1] = (unsigned)(r->header.cupsHeight * 72 / r->header.HWResolution[1]); in cups_raster_read_header()
Drastertohp.c99 fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); in StartPage()
142 switch (header->PageSize[1]) in StartPage()
194 header->PageSize[1] / 12); in StartPage()
Drastertoepson.c133 fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); in StartPage()
175 (int)(10.0 * header->PageSize[0] / 72.0 + 0.5)); in StartPage()
177 (int)(header->PageSize[1] / 12.0 + 0.5)); in StartPage()
238 n = (int)(header->PageSize[1] * header->HWResolution[1] / 72.0); in StartPage()
/external/llvm/lib/ExecutionEngine/
DSectionMemoryManager.cpp161 static const size_t PageSize = sys::Process::getPageSize(); in trimBlockToPageSize() local
164 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize; in trimBlockToPageSize()
168 TrimmedSize -= TrimmedSize % PageSize; in trimBlockToPageSize()
172 assert(((uintptr_t)Trimmed.base() % PageSize) == 0); in trimBlockToPageSize()
173 assert((Trimmed.size() % PageSize) == 0); in trimBlockToPageSize()
/external/swiftshader/third_party/LLVM/lib/Support/
DMemoryBuffer.cpp188 static int PageSize = sys::Process::GetPageSize(); in ~MemoryBufferMMapFile() local
192 uintptr_t RealStart = Start & ~(PageSize - 1); in ~MemoryBufferMMapFile()
238 int PageSize) { in shouldUseMmap() argument
270 if ((FileSize & (PageSize -1)) == 0) in shouldUseMmap()
281 static int PageSize = sys::Process::GetPageSize(); in getOpenFile() local
299 PageSize)) { in getOpenFile()
300 off_t RealMapOffset = Offset & ~(PageSize - 1); in getOpenFile()
/external/compiler-rt/test/asan/TestCases/Posix/
Ddlclose-test.cc49 size_t PageSize = sysconf(_SC_PAGESIZE); in main() local
73 size_t page_beg = ((size_t)addr) & ~(PageSize - 1); in main()
74 void *res = mmap((void*)(page_beg), PageSize, in main()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cc74 uptr PageSize = GetPageSizeCached(); in TEST() local
79 size * PageSize, alignment * PageSize, "MmapAlignedOrDieTest"); in TEST()
80 EXPECT_EQ(0U, res % (alignment * PageSize)); in TEST()
81 internal_memset((void*)res, 1, size * PageSize); in TEST()
82 UnmapOrDie((void*)res, size * PageSize); in TEST()
/external/compiler-rt/lib/esan/
Dworking_set_posix.cpp91 uptr PageSize = GetPageSizeCached(); in handleMemoryFault() local
92 int Res = internal_mprotect((void *)RoundDownTo(Addr, PageSize), in handleMemoryFault()
93 PageSize, PROT_READ|PROT_WRITE); in handleMemoryFault()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc169 uptr PageSize = GetPageSizeCached(); in MmapNoReserveOrDie() local
171 RoundUpTo(size, PageSize), in MmapNoReserveOrDie()
183 uptr PageSize = GetPageSizeCached(); in MmapFixedOrDie() local
184 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedOrDie()
185 RoundUpTo(size, PageSize), in MmapFixedOrDie()
Dsanitizer_common.cc125 uptr PageSize = GetPageSizeCached(); in ReadFileToBuffer() local
126 uptr kMinFileLen = PageSize; in ReadFileToBuffer()
140 while (*read_len + PageSize <= size) { in ReadFileToBuffer()
142 if (!ReadFromFile(fd, *buff + *read_len, PageSize, &just_read, errno_p)) { in ReadFileToBuffer()
Dsanitizer_posix_libcdep.cc264 uptr PageSize = GetPageSizeCached(); in MmapFixedNoReserve() local
265 uptr p = internal_mmap((void *)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve()
266 RoundUpTo(size, PageSize), PROT_READ | PROT_WRITE, in MmapFixedNoReserve()
/external/llvm/lib/Support/
DMemoryBuffer.cpp287 int PageSize, in shouldUseMmap() argument
297 if (MapSize < 4 * 4096 || MapSize < (unsigned)PageSize) in shouldUseMmap()
324 if ((FileSize & (PageSize -1)) == 0) in shouldUseMmap()
342 static int PageSize = sys::Process::getPageSize(); in getOpenFileImpl() local
368 PageSize, IsVolatileSize)) { in getOpenFileImpl()
/external/compiler-rt/lib/msan/
Dmsan_thread.cc12 uptr PageSize = GetPageSizeCached(); in Create() local
13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
Dmsan_poisoning.cc123 uptr PageSize = GetPageSizeCached(); in SetShadow() local
130 uptr page_beg = RoundUpTo(shadow_beg, PageSize); in SetShadow()
131 uptr page_end = RoundDownTo(shadow_end, PageSize); in SetShadow()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DMemoryBuffer.cpp287 int PageSize, in shouldUseMmap() argument
297 if (MapSize < 4 * 4096 || MapSize < (unsigned)PageSize) in shouldUseMmap()
324 if ((FileSize & (PageSize -1)) == 0) in shouldUseMmap()
342 static int PageSize = sys::Process::getPageSize(); in getOpenFileImpl() local
368 PageSize, IsVolatileSize)) { in getOpenFileImpl()
/external/compiler-rt/lib/lsan/
Dlsan_interceptors.cc147 uptr PageSize = GetPageSizeCached(); in INTERCEPTOR() local
148 size = RoundUpTo(size, PageSize); in INTERCEPTOR()
151 size = PageSize; in INTERCEPTOR()
/external/llvm/unittests/Support/
DMemoryTest.cpp24 PageSize = sys::Process::getPageSize(); in MappedMemoryTest()
56 size_t PageSize; member in __anoncef5ab320111::MappedMemoryTest
266 MemoryBlock Near((void*)(3*PageSize), 16); in TEST_P()
314 MemoryBlock Near((void*)(4*PageSize), 0); in TEST_P()
340 MemoryBlock Near((void*)(2*PageSize+5), 0); in TEST_P()

12