Lines Matching refs:desc_sectors
322 uint32_t desc_sectors; in vhdx_compute_desc_sectors() local
325 desc_sectors = desc_cnt / 128; in vhdx_compute_desc_sectors()
327 desc_sectors++; in vhdx_compute_desc_sectors()
330 return desc_sectors; in vhdx_compute_desc_sectors()
343 uint32_t desc_sectors; in vhdx_log_read_desc() local
362 desc_sectors = vhdx_compute_desc_sectors(hdr.descriptor_count); in vhdx_log_read_desc()
364 desc_sectors * VHDX_LOG_SECTOR_SIZE); in vhdx_log_read_desc()
371 desc_sectors, false); in vhdx_log_read_desc()
375 if (sectors_read != desc_sectors) { in vhdx_log_read_desc()
598 uint32_t i, desc_sectors, total_sectors, crc; in vhdx_validate_log_entry() local
619 desc_sectors = vhdx_compute_desc_sectors(hdr.descriptor_count); in vhdx_validate_log_entry()
633 desc_sectors * VHDX_LOG_SECTOR_SIZE, 4); in vhdx_validate_log_entry()
637 if (total_sectors > desc_sectors) { in vhdx_validate_log_entry()
638 for (i = 0; i < total_sectors - desc_sectors; i++) { in vhdx_validate_log_entry()
870 uint32_t desc_sectors, sectors, total_length; in vhdx_log_write() local
953 desc_sectors = vhdx_compute_desc_sectors(new_hdr.descriptor_count); in vhdx_log_write()
955 total_length = (desc_sectors + sectors) * VHDX_LOG_SECTOR_SIZE; in vhdx_log_write()
964 data_sector = buffer + (desc_sectors * VHDX_LOG_SECTOR_SIZE); in vhdx_log_write()
1022 desc_sectors + sectors); in vhdx_log_write()
1027 if (sectors_written != desc_sectors + sectors) { in vhdx_log_write()