Searched refs:blkcfg (Results 1 – 6 of 6) sorted by relevance
/qemu/hw/block/ |
H A D | virtio-blk.c | 1144 struct virtio_blk_config blkcfg; in virtio_blk_update_config() local 1150 memset(&blkcfg, 0, sizeof(blkcfg)); in virtio_blk_update_config() 1151 virtio_stq_p(vdev, &blkcfg.capacity, capacity); in virtio_blk_update_config() 1152 virtio_stl_p(vdev, &blkcfg.seg_max, in virtio_blk_update_config() 1154 virtio_stw_p(vdev, &blkcfg.geometry.cylinders, conf->cyls); in virtio_blk_update_config() 1155 virtio_stl_p(vdev, &blkcfg.blk_size, blk_size); in virtio_blk_update_config() 1156 virtio_stw_p(vdev, &blkcfg.min_io_size, conf->min_io_size / blk_size); in virtio_blk_update_config() 1157 virtio_stl_p(vdev, &blkcfg.opt_io_size, conf->opt_io_size / blk_size); in virtio_blk_update_config() 1158 blkcfg.geometry.heads = conf->heads; in virtio_blk_update_config() 1172 blkcfg.geometry.sectors = conf->secs & ~s->sector_mask; in virtio_blk_update_config() [all …]
|
H A D | vhost-user-blk.c | 66 virtio_stw_p(vdev, &s->blkcfg.num_queues, s->num_queues); in vhost_user_blk_update_config() 68 memcpy(config, &s->blkcfg, vdev->config_len); in vhost_user_blk_update_config() 74 struct virtio_blk_config *blkcfg = (struct virtio_blk_config *)config; in vhost_user_blk_set_config() local 77 if (blkcfg->wce == s->blkcfg.wce) { in vhost_user_blk_set_config() 81 ret = vhost_dev_set_config(&s->dev, &blkcfg->wce, in vhost_user_blk_set_config() 83 sizeof(blkcfg->wce), in vhost_user_blk_set_config() 90 s->blkcfg.wce = blkcfg->wce; in vhost_user_blk_set_config() 99 ret = vhost_dev_get_config(&s->dev, (uint8_t *)&s->blkcfg, in vhost_user_blk_sync_config() 105 memcpy(vdev->config, &s->blkcfg, vdev->config_len); in vhost_user_blk_sync_config() 434 ret = vhost_dev_get_config(&s->dev, (uint8_t *)&s->blkcfg, in vhost_user_blk_realize_connect()
|
/qemu/block/export/ |
H A D | vhost-user-blk-server.c | 40 struct virtio_blk_config blkcfg; member 157 memcpy(config, &vexp->blkcfg, len); in vu_blk_get_config() 180 vexp->blkcfg.wce = wce; in vu_blk_set_config() 276 vexp->blkcfg.capacity = cpu_to_le64(new_size >> VIRTIO_BLK_SECTOR_BITS); in vu_blk_exp_resize() 325 vexp->blkcfg.wce = 0; in vu_blk_exp_create() 348 vu_blk_initialize_config(blk_bs(exp->blk), &vexp->blkcfg, in vu_blk_exp_create()
|
/qemu/contrib/vhost-user-blk/ |
H A D | vhost-user-blk.c | 40 struct virtio_blk_config blkcfg; member 410 memcpy(config, &vdev_blk->blkcfg, len); in vub_get_config() 438 if (wce == vdev_blk->blkcfg.wce) { in vub_set_config() 443 vdev_blk->blkcfg.wce = wce; in vub_set_config() 567 vdev_blk->blkcfg.wce = 0; in vub_new() 571 vub_initialize_config(vdev_blk->blk_fd, &vdev_blk->blkcfg); in vub_new()
|
/qemu/hw/vmapple/ |
H A D | virtio-blk.c | 75 struct virtio_blk_config *blkcfg = (struct virtio_blk_config *)config; in vmapple_virtio_blk_get_config() local 82 stl_he_p(&blkcfg->max_secure_erase_sectors, dev->apple_type); in vmapple_virtio_blk_get_config()
|
/qemu/include/hw/virtio/ |
H A D | vhost-user-blk.h | 34 struct virtio_blk_config blkcfg; member
|