Home
last modified time | relevance | path

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

/openbmc/qemu/block/
H A Dqed-table.c70 unsigned int sector_mask = BDRV_SECTOR_SIZE / sizeof(uint64_t) - 1; in qed_write_table() local
79 start = index & ~sector_mask; in qed_write_table()
80 end = (index + n + sector_mask) & ~sector_mask; in qed_write_table()
/openbmc/linux/arch/um/drivers/
H A Dubd_kern.c54 unsigned long sector_mask; member
1222 if (segment->length > (sizeof(segment->sector_mask) * 8) << SECTOR_SHIFT) in cowify_req()
1229 &segment->sector_mask); in cowify_req()
1232 cowify_bitmap(offset, segment->length, &segment->sector_mask, in cowify_req()
1296 io_req->io_desc[i].sector_mask = 0; in ubd_alloc_req()
1472 bit = ubd_test_bit(start, (unsigned char *) &desc->sector_mask); in do_io()
1475 (ubd_test_bit(end, (unsigned char *) &desc->sector_mask) == bit)) in do_io()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-blk.h60 unsigned short sector_mask; member
/openbmc/qemu/hw/block/
H A Dvirtio-blk.c367 if (sector & dev->sector_mask) { in virtio_blk_sect_range_ok()
1166 blkcfg.geometry.sectors = conf->secs & ~s->sector_mask; in virtio_blk_update_config()
1908 s->sector_mask = (s->conf.conf.logical_block_size / BDRV_SECTOR_SIZE) - 1; in virtio_blk_device_realize()