Lines Matching refs:file_offset
104 uint64_t file_offset;
111 return (f1->file_offset - f2->file_offset);
121 struct file_offset_head file_offset;
130 uint64_t *file_offset)
137 RB_FOREACH_SAFE(offset, file_offset_head, &priv_user->file_offset,
141 *file_offset = offset->file_offset + offset->count *
145 &priv_user->file_offset, offset);
159 uint64_t file_offset)
164 offset->file_offset = file_offset;
168 RB_INSERT(file_offset_head, &priv_user->file_offset, offset);
169 offset_nxt = RB_NEXT(file_offset_head, &priv_user->file_offset, offset);
170 offset_prv = RB_PREV(file_offset_head, &priv_user->file_offset, offset);
172 offset_nxt->file_offset == offset->file_offset + offset->count *
175 RB_REMOVE(file_offset_head, &priv_user->file_offset,
180 offset->file_offset == offset_prv->file_offset + offset_prv->count *
183 RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
346 uint64_t file_offset;
360 error = get_file_offset(priv_user, arg->count, &file_offset);
368 grefs[i].file_index = file_offset + i * PAGE_SIZE;
415 arg->index = file_offset;
986 RB_FOREACH_SAFE(offset, file_offset_head, &priv_user->file_offset,
988 RB_REMOVE(file_offset_head, &priv_user->file_offset, offset);
1010 RB_INIT(&priv_user->file_offset);
1012 offset->file_offset = 0;
1014 RB_INSERT(file_offset_head, &priv_user->file_offset, offset);