Lines Matching refs:i

77     int i;  in parse_range()  local
78 for (i = 0; i < num; ++i) { in parse_range()
79 out->pos[i] = strtol(strtok_r(NULL, ",", &save), NULL, 0); in parse_range()
80 if (i%2) { in parse_range()
81 out->size += out->pos[i]; in parse_range()
83 out->size -= out->pos[i]; in parse_range()
91 int i, j, r1_0, r1_1, r2_0, r2_1; in range_overlaps() local
97 for (i = 0; i < r1->count; ++i) { in range_overlaps()
98 r1_0 = r1->pos[i * 2]; in range_overlaps()
99 r1_1 = r1->pos[i * 2 + 1]; in range_overlaps()
293 int i; in ReadBlocks() local
301 for (i = 0; i < src->count; ++i) { in ReadBlocks()
302 if (!check_lseek(fd, (off64_t) src->pos[i * 2] * BLOCKSIZE, SEEK_SET)) { in ReadBlocks()
306 size = (src->pos[i * 2 + 1] - src->pos[i * 2]) * BLOCKSIZE; in ReadBlocks()
319 int i; in WriteBlocks() local
327 for (i = 0; i < tgt->count; ++i) { in WriteBlocks()
328 if (!check_lseek(fd, (off64_t) tgt->pos[i * 2] * BLOCKSIZE, SEEK_SET)) { in WriteBlocks()
332 size = (tgt->pos[i * 2 + 1] - tgt->pos[i * 2]) * BLOCKSIZE; in WriteBlocks()
881 int i; in MoveRange() local
882 for (i = locs->count-1; i >= 0; --i) { in MoveRange()
883 int blocks = locs->pos[i*2+1] - locs->pos[i*2]; in MoveRange()
885 memmove(dest + (locs->pos[i*2] * BLOCKSIZE), source + (start * BLOCKSIZE), in MoveRange()
1207 int i; in PerformCommandZero() local
1231 for (i = 0; i < tgt->count; ++i) { in PerformCommandZero()
1232 if (!check_lseek(params->fd, (off64_t) tgt->pos[i * 2] * BLOCKSIZE, SEEK_SET)) { in PerformCommandZero()
1236 for (j = tgt->pos[i * 2]; j < tgt->pos[i * 2 + 1]; ++j) { in PerformCommandZero()
1426 int i; in PerformCommandErase() local
1462 for (i = 0; i < tgt->count; ++i) { in PerformCommandErase()
1464 blocks[0] = tgt->pos[i * 2] * (uint64_t) BLOCKSIZE; in PerformCommandErase()
1466 blocks[1] = (tgt->pos[i * 2 + 1] - tgt->pos[i * 2]) * (uint64_t) BLOCKSIZE; in PerformCommandErase()
1534 int i; in PerformBlockImageUpdate() local
1691 for (i = 0; i < cmdcount; ++i) { in PerformBlockImageUpdate()
1692 cmdhash = HashString(commands[i].name); in PerformBlockImageUpdate()
1693 mzHashTableLookup(cmdht, cmdhash, (void*) &commands[i], CompareCommands, true); in PerformBlockImageUpdate()
1918 int i, j; in RangeSha1Fn() local
1919 for (i = 0; i < rs->count; ++i) { in RangeSha1Fn()
1920 if (!check_lseek(fd, (off64_t)rs->pos[i*2] * BLOCKSIZE, SEEK_SET)) { in RangeSha1Fn()
1926 for (j = rs->pos[i*2]; j < rs->pos[i*2+1]; ++j) { in RangeSha1Fn()