Home
last modified time | relevance | path

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

/openbmc/qemu/block/export/
H A Dvirtio-blk-handler.c36 nb_sectors = size >> VIRTIO_BLK_SECTOR_BITS; in virtio_blk_sect_range_ok()
42 if ((sector << VIRTIO_BLK_SECTOR_BITS) % block_size) { in virtio_blk_sect_range_ok()
88 bytes = num_sectors << VIRTIO_BLK_SECTOR_BITS; in virtio_blk_discard_write_zeroes()
110 if (blk_co_pwrite_zeroes(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes()
123 if (blk_co_pdiscard(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes()
197 offset = sector_num << VIRTIO_BLK_SECTOR_BITS; in virtio_blk_process_req()
H A Dvirtio-blk-handler.h18 #define VIRTIO_BLK_SECTOR_BITS 9 macro
19 #define VIRTIO_BLK_SECTOR_SIZE (1ULL << VIRTIO_BLK_SECTOR_BITS)
H A Dvhost-user-blk-server.c240 cpu_to_le64(bdrv_getlength(bs) >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_initialize_config()
251 cpu_to_le32(blk_size >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_initialize_config()
276 vexp->blkcfg.capacity = cpu_to_le64(new_size >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_exp_resize()
H A Dvduse-blk.c211 cpu_to_le64(blk_getlength(exp->blk) >> VIRTIO_BLK_SECTOR_BITS); in vduse_blk_resize()
315 cpu_to_le64(blk_getlength(exp->blk) >> VIRTIO_BLK_SECTOR_BITS); in vduse_blk_exp_create()
324 cpu_to_le32(logical_block_size >> VIRTIO_BLK_SECTOR_BITS); in vduse_blk_exp_create()