Lines Matching refs:position
873 IOPolledFileSeek(IOPolledFileIOVars * vars, uint64_t position) in IOPolledFileSeek() argument
879 vars->position = position; in IOPolledFileSeek()
881 if (position > vars->fileSize) { in IOPolledFileSeek()
882 …eek: called to seek to 0x%llx greater than file size of 0x%llx\n", vars->position, vars->fileSize); in IOPolledFileSeek()
886 while (position >= extentMap->length) { in IOPolledFileSeek()
887 position -= extentMap->length; in IOPolledFileSeek()
892 vars->extentRemaining = extentMap->length - position; in IOPolledFileSeek()
893 vars->extentPosition = vars->position - position; in IOPolledFileSeek()
918 size = vars->position & (vars->blockSize - 1); in IOPolledFileWrite()
949 vars->position += copy; in IOPolledFileWrite()
952 uint64_t offset = (vars->position - vars->bufferOffset in IOPolledFileWrite()
958 && (vars->position > vars->encryptStart) in IOPolledFileWrite()
959 && ((vars->position - length) < vars->encryptEnd)) { in IOPolledFileWrite()
963 encryptLen = vars->position - vars->encryptStart; in IOPolledFileWrite()
968 if (vars->position > vars->encryptEnd) { in IOPolledFileWrite()
969 encryptLen -= (vars->position - vars->encryptEnd); in IOPolledFileWrite()
999 if (vars->position & (vars->blockSize - 1)) { in IOPolledFileWrite()
1000 HIBLOG("misaligned file pos %qx\n", vars->position); in IOPolledFileWrite()
1016 vars->extentPosition = vars->position; in IOPolledFileWrite()
1093 if ((vars->bufferOffset == vars->bufferLimit) && (vars->position < vars->readEnd)) { in IOPolledFileRead()
1102 if (vars->position & (vars->blockSize - 1)) { in IOPolledFileRead()
1103 HIBLOG("misaligned file pos %qx\n", vars->position); in IOPolledFileRead()
1106 vars->position += vars->lastRead; in IOPolledFileRead()
1113 vars->extentPosition = vars->position; in IOPolledFileRead()
1122 uint64_t offset = (vars->position in IOPolledFileRead()
1129 if ((length + vars->position) > vars->readEnd) { in IOPolledFileRead()
1130 length = ((uint32_t) (vars->readEnd - vars->position)); in IOPolledFileRead()