Lines Matching defs:pos
77 static VCN ntfs_ib_pos_to_vcn(ntfs_index_context *icx, s64 pos)
79 return pos >> icx->vcn_size_bits;
243 static INDEX_ENTRY *ntfs_ie_get_by_pos(INDEX_HEADER *ih, int pos)
247 ntfs_log_trace("pos: %d\n", pos);
251 while (pos-- > 0)
352 * Insert @ie index entry at @pos entry. Used @ih values should be ok already.
354 static void ntfs_ie_insert(INDEX_HEADER *ih, INDEX_ENTRY *ie, INDEX_ENTRY *pos)
361 memmove((u8 *)pos + ie_size, pos,
362 le32_to_cpu(ih->index_length) - ((u8 *)pos - (u8 *)ih) -
364 memcpy(pos, ie, ie_size);
582 s64 pos, ret;
586 pos = ntfs_ib_vcn_to_pos(icx, vcn);
588 ret = ntfs_attr_mst_pread(icx->ia_na, pos, 1, icx->block_size,
595 "%lld\n", (long long)pos);
865 static s64 ntfs_ibm_pos_to_vcn(ntfs_index_context *icx, s64 pos)
867 return ntfs_ib_pos_to_vcn(icx, pos * icx->block_size);
893 s64 pos = ntfs_ibm_vcn_to_pos(icx, vcn);
894 u32 bpos = pos / 8;
895 u32 bit = 1 << (pos % 8);
1264 int pos)
1280 ie_node = ntfs_ie_get_by_pos(ih, pos);