/openbmc/qemu/tests/qemu-iotests/ |
H A D | 157.out | 6 Testing: cache='writeback' wce='' 8 Testing: cache='writeback' wce=',write-cache=auto' 10 Testing: cache='writeback' wce=',write-cache=on' 12 Testing: cache='writeback' wce=',write-cache=off' 14 Testing: cache='writethrough' wce='' 16 Testing: cache='writethrough' wce=',write-cache=auto' 18 Testing: cache='writethrough' wce=',write-cache=on' 20 Testing: cache='writethrough' wce=',write-cache=off'
|
H A D | 157 | 89 for wce in "" ",write-cache=auto" ",write-cache=on" ",write-cache=off"; do 90 echo "Testing: cache='$cache' wce='$wce'" 93 -device "virtio-blk,drive=none0$wce" \
|
/openbmc/qemu/hw/block/ |
H A D | block.c | 205 bool wce; in blkconf_apply_backend_options() local 226 switch (conf->wce) { in blkconf_apply_backend_options() 227 case ON_OFF_AUTO_ON: wce = true; break; in blkconf_apply_backend_options() 228 case ON_OFF_AUTO_OFF: wce = false; break; in blkconf_apply_backend_options() 229 case ON_OFF_AUTO_AUTO: wce = blk_enable_write_cache(blk); break; in blkconf_apply_backend_options() 244 blk_set_enable_write_cache(blk, wce); in blkconf_apply_backend_options()
|
H A D | vhost-user-blk.c | 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() 82 offsetof(struct virtio_blk_config, 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()
|
H A D | virtio-blk.c | 1173 blkcfg.wce = blk_enable_write_cache(s->blk); in virtio_blk_update_config() 1231 blk_set_enable_write_cache(s->blk, blkcfg.wce != 0); in virtio_blk_set_config()
|
/openbmc/qemu/contrib/vhost-user-blk/ |
H A D | vhost-user-blk.c | 114 static int vub_open(const char *file_name, bool wce) in vub_open() argument 119 if (!wce) { in vub_open() 421 uint8_t wce; in vub_set_config() local 432 if (offset != offsetof(struct virtio_blk_config, wce) || in vub_set_config() 437 wce = *data; in vub_set_config() 438 if (wce == vdev_blk->blkcfg.wce) { in vub_set_config() 443 vdev_blk->blkcfg.wce = wce; in vub_set_config() 450 fd = vub_open(vdev_blk->blk_name, wce); in vub_set_config() 567 vdev_blk->blkcfg.wce = 0; in vub_new()
|
/openbmc/qemu/block/export/ |
H A D | vhost-user-blk-server.c | 167 uint8_t wce; in vu_blk_set_config() local 174 if (offset != offsetof(struct virtio_blk_config, wce) || in vu_blk_set_config() 179 wce = *data; in vu_blk_set_config() 180 vexp->blkcfg.wce = wce; in vu_blk_set_config() 181 blk_set_enable_write_cache(vexp->export.blk, wce); in vu_blk_set_config() 326 vexp->blkcfg.wce = 0; in vu_blk_exp_create()
|
/openbmc/qemu/include/hw/block/ |
H A D | block.h | 32 OnOffAuto wce; member 63 DEFINE_PROP_ON_OFF_AUTO("write-cache", _state, _conf.wce, \
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 63 __u8 wce; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 86 uint8_t wce; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 88 __u8 wce; member
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio.h | 172 uint8_t wce; /* writeback mode (if VIRTIO_BLK_F_CONFIG_WCE) */ member
|
/openbmc/qemu/include/sysemu/ |
H A D | block-backend-global-state.h | 91 void blk_set_enable_write_cache(BlockBackend *blk, bool wce);
|
/openbmc/linux/drivers/scsi/ |
H A D | myrs.c | 1559 if (ldev_info->ldev_control.wce == MYRS_LOGICALDEVICE_RO) in myrs_mode_sense() 1572 if (ldev_info->ldev_control.wce == MYRS_WRITECACHE_ENABLED || in myrs_mode_sense() 1573 ldev_info->ldev_control.wce == MYRS_INTELLIGENT_WRITECACHE_ENABLED) in myrs_mode_sense() 1906 if (ldev_info->ldev_control.wce == MYRS_WRITECACHE_ENABLED || in myrs_slave_configure() 1907 ldev_info->ldev_control.wce == MYRS_INTELLIGENT_WRITECACHE_ENABLED) in myrs_slave_configure()
|
H A D | myrs.h | 428 } __packed wce:3; /* Byte 8 Bits 3-5 */ member
|
H A D | sd.c | 138 int ct, rcd, wce, sp; in cache_type_store() local 166 wce = (ct & 0x02) && !sdkp->write_prot ? 1 : 0; in cache_type_store() 169 sdkp->WCE = wce; in cache_type_store() 183 buffer_data[2] |= wce << 2 | rcd; in cache_type_store()
|
/openbmc/linux/drivers/target/ |
H A D | target_core_transport.c | 3660 bool wce = false; in target_check_wce() local 3663 wce = dev->transport->get_write_cache(dev); in target_check_wce() 3665 wce = true; in target_check_wce() 3667 return wce; in target_check_wce()
|
/openbmc/linux/drivers/block/ |
H A D | virtio_blk.c | 1137 struct virtio_blk_config, wce, in virtblk_get_cache_mode() 1176 virtio_cwrite8(vdev, offsetof(struct virtio_blk_config, wce), i); in cache_type_store()
|
/openbmc/linux/drivers/ata/ |
H A D | libata-scsi.c | 3688 u8 wce; in ata_mselect_caching() local 3701 wce = buf[0] & (1 << 2); in ata_mselect_caching() 3720 tf->feature = wce ? SETFEATURES_WC_ON : SETFEATURES_WC_OFF; in ata_mselect_caching()
|
/openbmc/qemu/block/ |
H A D | block-backend.c | 2225 void blk_set_enable_write_cache(BlockBackend *blk, bool wce) in blk_set_enable_write_cache() argument 2228 blk->enable_write_cache = wce; in blk_set_enable_write_cache()
|