Home
last modified time | relevance | path

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

/system/extras/mmap-perf/
DmmapPerf.cpp17 static const size_t pageSize = PAGE_SIZE; variable
19 static size_t pagesTotal = fsize / pageSize;
40 for (int i = 0; i < pageSize / sizeof(uint64_t); i++) { in fillPageJunk()
81 for (int i = 0; i < m_size / pageSize; i++) {
87 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomRead()
91 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomWrite()
95 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead()
99 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearWrite()
120 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomRead()
130 state.SetBytesProcessed(state.iterations() * pageSize); in benchRandomWrite()
[all …]
/system/extras/verity/
DBootSignature.java216 int pageSize = image.getInt(); in getSignableImageSize() local
218 int length = pageSize // include the page aligned image header in getSignableImageSize()
219 + ((kernelSize + pageSize - 1) / pageSize) * pageSize in getSignableImageSize()
220 + ((ramdskSize + pageSize - 1) / pageSize) * pageSize in getSignableImageSize()
221 + ((secondSize + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
227 length += ((recoveryDtboLength + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
234 length += ((dtbLength + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
243 length = ((length + pageSize - 1) / pageSize) * pageSize; in getSignableImageSize()
/system/media/audio_utils/tests/
Dfifo_multiprocess.cpp64 const int pageSize = getpagesize(); in main() local
65 printf("page size=%d\n", pageSize); in main()
82 frontIndex = (audio_utils_fifo_index *) mmap((char *) frontIndex + pageSize * 4, in main()
145 rearIndex = (audio_utils_fifo_index *) mmap((char *) rearIndex + pageSize * 4, in main()
156 data = (int16_t *) mmap((char *) data + pageSize * 8, BUFFER_SIZE, PROT_READ, in main()