Home
last modified time | relevance | path

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

/openbmc/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()
1135 block_offset = sector_num - (sinfo->bat_idx << s->sectors_per_block_bits); in vhdx_block_translate()
1139 sinfo->bat_idx += sinfo->bat_idx >> s->chunk_ratio_bits; in vhdx_block_translate()
1152 sinfo->file_offset = s->bat[sinfo->bat_idx] & VHDX_BAT_FILE_OFF_MASK; 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()
[all …]