Lines Matching refs:i
102 unsigned long i, lchunks, hchunks; in main() local
104 for (i = 0; i < NR_CHUNKS_LOW; i++) { in main()
105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
108 if (ptr[i] == MAP_FAILED) { in main()
114 if (validate_addr(ptr[i], 0)) in main()
117 lchunks = i; in main()
119 for (i = 0; i < NR_CHUNKS_HIGH; i++) { in main()
121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
124 if (hptr[i] == MAP_FAILED) in main()
127 if (validate_addr(hptr[i], 1)) in main()
130 hchunks = i; in main()
132 for (i = 0; i < lchunks; i++) in main()
133 munmap(ptr[i], MAP_CHUNK_SIZE); in main()
135 for (i = 0; i < hchunks; i++) in main()
136 munmap(hptr[i], MAP_CHUNK_SIZE); in main()