Lines Matching defs:file_offset
101 uint64_t file_offset;
108 return (f1->file_offset - f2->file_offset);
118 struct file_offset_head file_offset;
127 uint64_t *file_offset)
134 RB_FOREACH_SAFE(offset, file_offset_head, &priv_user->file_offset,
138 *file_offset = offset->file_offset + offset->count *
142 &priv_user->file_offset, offset);
156 uint64_t file_offset)
161 offset->file_offset = file_offset;
165 RB_INSERT(file_offset_head, &priv_user->file_offset, offset);
166 offset_nxt = RB_NEXT(file_offset_head, &priv_user->file_offset, offset);
167 offset_prv = RB_PREV(file_offset_head, &priv_user->file_offset, offset);
169 offset_nxt->file_offset == offset->file_offset + offset->count *
172 RB_REMOVE(file_offset_head, &priv_user->file_offset,
177 offset->file_offset == offset_prv->file_offset + offset_prv->count *
180 RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
343 uint64_t file_offset;
357 error = get_file_offset(priv_user, arg->count, &file_offset);
365 grefs[i].file_index = file_offset + i * PAGE_SIZE;
387 arg->index = file_offset;
962 RB_FOREACH_SAFE(offset, file_offset_head, &priv_user->file_offset,
964 RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
986 RB_INIT(&priv_user->file_offset);
988 offset->file_offset = 0;
990 RB_INSERT(file_offset_head, &priv_user->file_offset, offset);