Lines Matching refs:idx_size
2703 static int insert_index_entry_in_res_dir_index(INDEX_ENTRY *idx, u32 idx_size, in insert_index_entry_in_res_dir_index() argument
2715 if (g_vol->mft_record_size > idx_size + le32_to_cpu(m->bytes_allocated)) in insert_index_entry_in_res_dir_index()
2806 memmove((u8*)idx_entry + idx_size, (u8*)idx_entry, in insert_index_entry_in_res_dir_index()
2809 memcpy((u8*)idx_entry, (u8*)idx, idx_size); in insert_index_entry_in_res_dir_index()
2811 m->bytes_in_use = cpu_to_le32(le32_to_cpu(m->bytes_in_use) + idx_size); in insert_index_entry_in_res_dir_index()
2812 a->length = cpu_to_le32(le32_to_cpu(a->length) + idx_size); in insert_index_entry_in_res_dir_index()
2813 a->value_length = cpu_to_le32(le32_to_cpu(a->value_length) + idx_size); in insert_index_entry_in_res_dir_index()
2815 le32_to_cpu(idx_header->index_length) + idx_size); in insert_index_entry_in_res_dir_index()
2817 le32_to_cpu(idx_header->allocated_size) + idx_size); in insert_index_entry_in_res_dir_index()
3164 int i, fn_size, idx_size; in create_hardlink_res() local
3233 idx_size = (fn_size + 7) & ~7; in create_hardlink_res()
3234 idx_entry_new = ntfs_calloc(idx_size + 0x10); in create_hardlink_res()
3238 idx_entry_new->length = cpu_to_le16(idx_size + 0x10); in create_hardlink_res()
3241 i = insert_index_entry_in_res_dir_index(idx_entry_new, idx_size + 0x10, in create_hardlink_res()
3376 int data_ofs, idx_size, err; in index_obj_id_insert() local
3387 idx_size = (data_ofs + sizeof(OBJ_ID_INDEX_DATA) + 7) & ~7; in index_obj_id_insert()
3388 idx_entry_new = ntfs_calloc(idx_size); in index_obj_id_insert()
3394 idx_entry_new->length = cpu_to_le16(idx_size); in index_obj_id_insert()
3399 err = insert_index_entry_in_res_dir_index(idx_entry_new, idx_size, m, in index_obj_id_insert()