Home
last modified time | relevance | path

Searched refs:total_sectors (Results 1 – 25 of 44) sorted by relevance

12

/openbmc/qemu/block/
H A Dvpc.c304 bs->total_sectors = (int64_t) in vpc_open()
344 if (bs->total_sectors > VHD_MAX_SECTORS) { in vpc_open()
380 if (computed_size < bs->total_sectors * 512) { in vpc_open()
792 total_sectors = MIN(total_sectors, VHD_MAX_GEOMETRY); in calculate_geometry()
794 if (total_sectors >= 65535LL * 16 * 63) { in calculate_geometry()
927 int64_t total_sectors; in calculate_rounded_image_size() local
952 total_sectors = total_size / BDRV_SECTOR_SIZE; in calculate_rounded_image_size()
954 if (total_sectors > VHD_MAX_SECTORS) { in calculate_rounded_image_size()
962 *out_total_sectors = total_sectors; in calculate_rounded_image_size()
983 int64_t total_sectors; in vpc_co_create() local
[all …]
H A Dsnapshot-access.c95 bs->total_sectors = bs->file->bs->total_sectors; in snapshot_access_open()
H A Dbochs.c140 bs->total_sectors = le64_to_cpu(bochs.extra.redolog_v1.disk) / 512; in bochs_open()
142 bs->total_sectors = le64_to_cpu(bochs.extra.redolog.disk) / 512; in bochs_open()
191 if (s->catalog_size < DIV_ROUND_UP(bs->total_sectors, in bochs_open()
H A Dcopy-before-write.c472 bs->total_sectors = bs->file->bs->total_sectors; in cbw_open()
557 assert(source->total_sectors == target->total_sectors); in bdrv_cbw_append()
H A Dparallels-ext.c147 if (bf.size != bs->total_sectors) { in parallels_load_bitmap()
149 "disk size in sectors %" PRId64, bf.size, bs->total_sectors); in parallels_load_bitmap()
H A Dvhdx-log.c598 uint32_t i, desc_sectors, total_sectors, crc; in vhdx_validate_log_entry() local
623 total_sectors = hdr.entry_length / VHDX_LOG_SECTOR_SIZE; 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()
H A Dcommit.c326 commit_top_bs->total_sectors = top->total_sectors; in commit_start()
H A Dqcow2-snapshot.c166 sn->disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_do_read_snapshots()
664 sn->disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_snapshot_create()
789 if (sn->disk_size != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_snapshot_goto()
H A Dcloop.c205 bs->total_sectors = s->n_blocks * s->sectors_per_block; in cloop_open()
H A Dqcow2.c891 uint64_t virtual_disk_size = bs->total_sectors * BDRV_SECTOR_SIZE; in read_cache_sizes()
1530 bs->total_sectors = header.size / BDRV_SECTOR_SIZE; in qcow2_do_open()
2944 total_size = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_update_header()
4038 if (offset + bytes > bs->total_sectors * BDRV_SECTOR_SIZE) { in is_zero()
4039 bytes = bs->total_sectors * BDRV_SECTOR_SIZE - offset; in is_zero()
4073 if (offset + bytes == bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pwrite_zeroes()
4134 offset + bytes != bs->total_sectors * BDRV_SECTOR_SIZE) { in qcow2_co_pdiscard()
4340 old_length = bs->total_sectors * BDRV_SECTOR_SIZE; in qcow2_co_truncate()
4648 bs->total_sectors = offset / BDRV_SECTOR_SIZE; in qcow2_co_truncate()
4789 (offset + bytes) != (bs->total_sectors << BDRV_SECTOR_BITS)) { in qcow2_co_pwritev_compressed_part()
[all …]
H A Dvhdx.c915 bs->total_sectors * BDRV_SECTOR_SIZE - i * s->block_size); in vhdx_check_bat_entries()
1063 bs->total_sectors = s->virtual_disk_size >> s->logical_sector_size_bits; in vhdx_open()
1710 uint64_t total_sectors = 0; in vhdx_create_bat() local
1723 total_sectors = image_size >> s->logical_sector_size_bits; in vhdx_create_bat()
1763 while (sector_num < total_sectors) { in vhdx_create_bat()
H A Ddmg.c538 ret = read_uint64(bs, offset + 0x1ec, (uint64_t *)&bs->total_sectors); in dmg_open()
542 if (bs->total_sectors < 0) { in dmg_open()
H A Dparallels.c1270 bs->total_sectors = le64_to_cpu(ph.nb_sectors); in parallels_open()
1277 bs->total_sectors = 0xffffffff & bs->total_sectors; in parallels_open()
/openbmc/qemu/hw/ide/
H A Datapi.c489 uint64_t total_sectors; in ide_dvd_read_structure() local
495 if (total_sectors == 0) { in ide_dvd_read_structure()
985 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read() local
998 if (lba >= total_sectors || lba + nb_sectors - 1 >= total_sectors) { in cmd_read()
1011 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read_cd() local
1020 if (lba >= total_sectors || lba + nb_sectors - 1 >= total_sectors) { in cmd_read_cd()
1056 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_seek() local
1059 if (lba >= total_sectors) { in cmd_seek()
1115 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read_toc_pma_atip() local
1152 uint64_t total_sectors = s->nb_sectors >> 2; in cmd_read_cdvd_capacity() local
[all …]
/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c30 uint64_t total_sectors; in virtio_blk_sect_range_ok() local
45 blk_co_get_geometry(blk, &total_sectors); in virtio_blk_sect_range_ok()
46 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok()
/openbmc/linux/drivers/md/
H A Ddm-snap-transient.c67 sector_t *total_sectors, in transient_usage() argument
72 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in transient_usage()
H A Ddm-exception-store.h108 sector_t *total_sectors, sector_t *sectors_allocated,
H A Ddm-snap-persistent.c574 sector_t *total_sectors, in persistent_usage() argument
581 *total_sectors = get_dev_size(dm_snap_cow(store->snap)->bdev); in persistent_usage()
/openbmc/linux/block/partitions/
H A Defi.c172 static int is_pmbr_valid(legacy_mbr *mbr, sector_t total_sectors) in is_pmbr_valid() argument
216 if (sz != (uint32_t) total_sectors - 1 && sz != 0xFFFFFFFF) in is_pmbr_valid()
219 total_sectors - 1, 0xFFFFFFFF)); in is_pmbr_valid()
590 sector_t total_sectors = get_capacity(state->disk); in find_valid_gpt() local
604 good_pmbr = is_pmbr_valid(legacymbr, total_sectors); in find_valid_gpt()
/openbmc/qemu/hw/block/
H A Dpflash_cfi02.c74 uint32_t total_sectors; member
242 bitmap_zero(pfl->sector_erase_map, pfl->total_sectors); in pflash_timer()
836 pfl->total_sectors = 0; in pflash_cfi02_realize()
841 pfl->total_sectors += pfl->nb_blocs[nb_regions]; in pflash_cfi02_realize()
875 pfl->total_sectors = pfl->uniform_nb_blocs; in pflash_cfi02_realize()
917 pfl->sector_erase_map = bitmap_new(pfl->total_sectors); in pflash_cfi02_realize()
H A Dvirtio-blk.c362 uint64_t total_sectors; in virtio_blk_sect_range_ok() local
373 blk_get_geometry(dev->blk, &total_sectors); in virtio_blk_sect_range_ok()
374 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok()
488 if (offset < 0 || len < 0 || len > (bs->total_sectors << BDRV_SECTOR_BITS) in check_zoned_request()
489 || offset > (bs->total_sectors << BDRV_SECTOR_BITS) - len) { in check_zoned_request()
690 uint64_t capacity = bs->total_sectors << BDRV_SECTOR_BITS; in virtio_blk_handle_zone_mgmt()
699 bs->total_sectors); in virtio_blk_handle_zone_mgmt()
/openbmc/qemu/migration/
H A Dblock-dirty-bitmap.c116 uint64_t total_sectors; member
576 dbms->total_sectors = bdrv_nb_sectors(bs); in add_bitmaps_to_list()
694 uint32_t nr_sectors = MIN(dbms->total_sectors - dbms->cur_sector, in bulk_phase_send_chunk()
700 if (dbms->cur_sector >= dbms->total_sectors) { in bulk_phase_send_chunk()
782 dbms->total_sectors - dbms->cur_sector; in dirty_bitmap_state_pending()
/openbmc/qemu/tests/unit/
H A Dtest-bdrv-drain.c1043 bs->total_sectors = 65536 >> BDRV_SECTOR_BITS; in do_test_delete_by_drain()
1057 child_bs->total_sectors = 65536 >> BDRV_SECTOR_BITS; in do_test_delete_by_drain()
1934 parent_bs->total_sectors = 1; in do_test_replace_child_mid_drain()
1935 old_child_bs->total_sectors = 1; in do_test_replace_child_mid_drain()
1936 new_child_bs->total_sectors = 1; in do_test_replace_child_mid_drain()
/openbmc/linux/Documentation/admin-guide/device-mapper/
H A Dsnapshot.rst156 <sectors_allocated>/<total_sectors> <metadata_sectors>
158 Both <sectors_allocated> and <total_sectors> include both data and metadata.
/openbmc/linux/fs/fat/
H A Dinode.c1607 u32 total_sectors, total_clusters, fat_clusters, rootdir_sectors; in fat_fill_super() local
1771 total_sectors = bpb.fat_sectors; in fat_fill_super()
1772 if (total_sectors == 0) in fat_fill_super()
1773 total_sectors = bpb.fat_total_sect; in fat_fill_super()
1775 total_clusters = (total_sectors - sbi->data_start) / sbi->sec_per_clus; in fat_fill_super()

12