Home
last modified time | relevance | path

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

/system/extras/mmap-perf/
DmmapPerf.cpp16 static const size_t pageSize = PAGE_SIZE; variable
18 static size_t pagesTotal = fsize / pageSize;
39 for (int i = 0; i < pageSize / sizeof(uint64_t); i++) { in fillPageJunk()
80 for (int i = 0; i < m_size / pageSize; i++) {
86 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomRead()
90 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomWrite()
94 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead()
98 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearWrite()
119 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomRead()
129 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomWrite()
[all …]
/system/extras/verity/
DBootSignature.java205 int pageSize = image.getInt(); in getSignableImageSize() local
207 int length = pageSize // include the page aligned image header in getSignableImageSize()
208 + ((kernelSize + pageSize - 1) / pageSize) * pageSize in getSignableImageSize()
209 + ((ramdskSize + pageSize - 1) / pageSize) * pageSize in getSignableImageSize()
210 + ((secondSize + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
212 length = ((length + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp61 const int pageSize = getpagesize(); in main() local
62 printf("page size=%d\n", pageSize); in main()
79 frontIndex = (audio_utils_fifo_index *) mmap((char *) frontIndex + pageSize * 4, in main()
142 rearIndex = (audio_utils_fifo_index *) mmap((char *) rearIndex + pageSize * 4, in main()
153 data = (int16_t *) mmap((char *) data + pageSize * 8, BUFFER_SIZE, PROT_READ, in main()