Lines Matching defs:idx

2040 		INDEX_ALLOCATION **idx)
2175 *idx = ia_val;
2187 * Create space of @size bytes at position @pos inside the index block @idx.
2191 static int make_room_for_index_entry_in_index_block(INDEX_BLOCK *idx,
2208 if (!idx || !pos)
2210 if ((char*)pos < (char*)idx || (char*)pos + size < (char*)idx ||
2211 (char*)pos > (char*)idx + sizeof(INDEX_BLOCK) -
2213 le32_to_cpu(idx->index.allocated_size) ||
2214 (char*)pos + size > (char*)idx + sizeof(INDEX_BLOCK) -
2216 le32_to_cpu(idx->index.allocated_size))
2219 if ((char*)pos - (char*)&idx->index >
2220 (int)le32_to_cpu(idx->index.index_length)
2224 biu = le32_to_cpu(idx->index.index_length);
2226 if (biu + size > le32_to_cpu(idx->index.allocated_size))
2230 (char*)&idx->index));
2232 idx->index.index_length = cpu_to_le32(biu + size);
2317 static int insert_index_entry_in_res_dir_index(INDEX_ENTRY *idx, u32 idx_size,
2361 i = ntfs_file_values_compare(&idx->key.file_name,
2374 if (idx->key.file_name.file_name_type !=
2379 i = ntfs_file_values_compare(&idx->key.file_name,
2394 i = ntfs_index_keys_compare((u8*)idx + 0x10,
2396 le16_to_cpu(idx->key_length),
2411 memcpy((u8*)idx_entry, (u8*)idx, idx_size);
2617 * @idx (which belongs to @file_ref's parent directory).
2621 static int insert_file_link_in_dir_index(INDEX_BLOCK *idx, leMFT_REF file_ref,
2629 * Lookup dir entry @file_name in dir @idx to determine correct
2635 index_end = (char*)&idx->index + le32_to_cpu(idx->index.index_length);
2636 ie = (INDEX_ENTRY*)((char*)&idx->index +
2637 le32_to_cpu(idx->index.entries_offset));
2719 err = make_room_for_index_entry_in_index_block(idx, ie, i);
2742 * root @idx of the index_root attribute of the parent directory.
2824 /* Insert the index entry for file_name in @idx. */
2858 * block @idx of the index allocation attribute of the parent directory.
2864 static int create_hardlink(INDEX_BLOCK *idx, const leMFT_REF ref_parent,
2936 /* Insert the index entry for file_name in @idx. */
2937 i = insert_file_link_in_dir_index(idx, ref_file, fn, fn_size);
3812 static BOOL mkntfs_sync_index_record(INDEX_ALLOCATION* idx, MFT_RECORD* m,
3850 le32_to_cpu(idx->index.allocated_size);
3851 err = ntfs_mst_pre_write_fixup((NTFS_RECORD*)idx, i);
3858 lw = ntfs_rlwrite(g_vol->u.dev, rl_index, (u8*)idx, i, NULL);
3864 /* No more changes to @idx below here so no need for fixup: */
3865 /* ntfs_mst_post_write_fixup((NTFS_RECORD*)idx); */