Lines Matching refs:pos

61     int pos[0];  member
79 out->pos[i] = strtol(strtok_r(NULL, ",", &save), NULL, 0); in parse_range()
81 out->size += out->pos[i]; in parse_range()
83 out->size -= out->pos[i]; in parse_range()
98 r1_0 = r1->pos[i * 2]; in range_overlaps()
99 r1_1 = r1->pos[i * 2 + 1]; in range_overlaps()
102 r2_0 = r2->pos[j * 2]; in range_overlaps()
103 r2_1 = r2->pos[j * 2 + 1]; in range_overlaps()
206 rss->p_remain = (rss->tgt->pos[rss->p_block * 2 + 1] - in RangeSinkWrite()
207 rss->tgt->pos[rss->p_block * 2]) * BLOCKSIZE; in RangeSinkWrite()
209 if (!check_lseek(rss->fd, (off64_t)rss->tgt->pos[rss->p_block*2] * BLOCKSIZE, in RangeSinkWrite()
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()
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()
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()
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()
1284 rss.p_remain = (tgt->pos[1] - tgt->pos[0]) * BLOCKSIZE; in PerformCommandNew()
1286 if (!check_lseek(params->fd, (off64_t) tgt->pos[0] * BLOCKSIZE, SEEK_SET)) { in PerformCommandNew()
1380 rss.p_remain = (tgt->pos[1] - tgt->pos[0]) * BLOCKSIZE; in PerformCommandDiff()
1382 if (!check_lseek(params->fd, (off64_t) tgt->pos[0] * BLOCKSIZE, SEEK_SET)) { in PerformCommandDiff()
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()
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()