Lines Matching refs:i
95 unsigned int i; in sysMapBlockFile() local
101 for (i = 0; i < sizeof(block_dev); ++i) { in sysMapBlockFile()
102 if (block_dev[i] == '\n') { in sysMapBlockFile()
103 block_dev[i] = 0; in sysMapBlockFile()
137 for (i = 0; i < range_count; ++i) { in sysMapBlockFile()
140 LOGW("failed to parse range %d in block map\n", i); in sysMapBlockFile()
146 LOGW("failed to map block %d: %s\n", i, strerror(errno)); in sysMapBlockFile()
149 pMap->ranges[i].addr = addr; in sysMapBlockFile()
150 pMap->ranges[i].length = (end-start)*blksize; in sysMapBlockFile()
152 next += pMap->ranges[i].length; in sysMapBlockFile()
205 int i; in sysReleaseMap() local
206 for (i = 0; i < pMap->range_count; ++i) { in sysReleaseMap()
207 if (munmap(pMap->ranges[i].addr, pMap->ranges[i].length) < 0) { in sysReleaseMap()
209 pMap->ranges[i].addr, (int)pMap->ranges[i].length, strerror(errno)); in sysReleaseMap()