Home
last modified time | relevance | path

Searched refs:bat_idx (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dvhdx.c134 uint32_t bat_idx; /* BAT entry index */ member
1132 sinfo->bat_idx = sector_num >> s->sectors_per_block_bits; in vhdx_block_translate()
1139 sinfo->bat_idx += sinfo->bat_idx >> s->chunk_ratio_bits; in vhdx_block_translate()
1209 switch (s->bat[sinfo.bat_idx] & VHDX_BAT_STATE_BIT_MASK) { in vhdx_co_readv()
1307 s->bat[sinfo->bat_idx] = 0; /* For PAYLOAD_BLOCK_ZERO, the in vhdx_update_bat_table_entry()
1313 s->bat[sinfo->bat_idx] = sinfo->file_offset; in vhdx_update_bat_table_entry()
1316 s->bat[sinfo->bat_idx] |= state & VHDX_BAT_STATE_BIT_MASK; in vhdx_update_bat_table_entry()
1318 *bat_entry_le = cpu_to_le64(s->bat[sinfo->bat_idx]); in vhdx_update_bat_table_entry()
1319 *bat_offset = s->bat_offset + sinfo->bat_idx * sizeof(VHDXBatEntry); in vhdx_update_bat_table_entry()
1375 bat_state = s->bat[sinfo.bat_idx] & VHDX_BAT_STATE_BIT_MASK; in vhdx_co_writev()
[all …]