Home | History | Annotate | Download | only in VirtioBlkDxe

Lines Matching defs:Features

596   UINT64     Features;

638 // step 4a -- retrieve and validate features
640 Status = Dev->VirtIo->GetDeviceFeatures (Dev->VirtIo, &Features);
654 if (Features & VIRTIO_BLK_F_BLK_SIZE) {
673 if (Features & VIRTIO_BLK_F_TOPOLOGY) {
695 Features &= VIRTIO_BLK_F_BLK_SIZE | VIRTIO_BLK_F_TOPOLOGY | VIRTIO_BLK_F_RO |
700 // discovery, and the device can also reject the selected set of features.
703 Status = Virtio10WriteFeatures (Dev->VirtIo, Features, &NextDevStat);
754 // step 5 -- Report understood features.
757 Features &= ~(UINT64)VIRTIO_F_VERSION_1;
758 Status = Dev->VirtIo->SetGuestFeatures (Dev->VirtIo, Features);
787 Dev->BlockIoMedia.ReadOnly = (BOOLEAN) ((Features & VIRTIO_BLK_F_RO) != 0);
788 Dev->BlockIoMedia.WriteCaching = (BOOLEAN) ((Features & VIRTIO_BLK_F_FLUSH) != 0);
798 if (Features & VIRTIO_BLK_F_TOPOLOGY) {