Home
last modified time | relevance | path

Searched refs:wce (Results 1 – 20 of 20) sorted by relevance

/openbmc/qemu/tests/qemu-iotests/
H A D157.out6 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 D15789 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 Dblock.c205 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 Dvhost-user-blk.c77 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 Dvirtio-blk.c1173 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 Dvhost-user-blk.c114 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 Dvhost-user-blk-server.c167 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 Dblock.h32 OnOffAuto wce; member
63 DEFINE_PROP_ON_OFF_AUTO("write-cache", _state, _conf.wce, \
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_blk.h63 __u8 wce; member
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_blk.h86 uint8_t wce; member
/openbmc/linux/include/uapi/linux/
H A Dvirtio_blk.h88 __u8 wce; member
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio.h172 uint8_t wce; /* writeback mode (if VIRTIO_BLK_F_CONFIG_WCE) */ member
/openbmc/qemu/include/sysemu/
H A Dblock-backend-global-state.h91 void blk_set_enable_write_cache(BlockBackend *blk, bool wce);
/openbmc/linux/drivers/scsi/
H A Dmyrs.c1559 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 Dmyrs.h428 } __packed wce:3; /* Byte 8 Bits 3-5 */ member
H A Dsd.c138 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 Dtarget_core_transport.c3660 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 Dvirtio_blk.c1137 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 Dlibata-scsi.c3688 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 Dblock-backend.c2225 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()