Home
last modified time | relevance | path

Searched refs:avail_features (Results 1 – 14 of 14) sorted by relevance

/external/crosvm/devices/src/virtio/vhost/user/
Dhandler.rs19 fn set_features(vu: &mut Master, avail_features: u64, ack_features: u64) -> Result<u64> { in set_features()
20 let features = avail_features & ack_features; in set_features()
27 pub avail_features: u64, field
42 let avail_features = allow_features & vu.get_features().map_err(Error::GetFeatures)?; in new() localVariable
43 let acked_features = set_features(&mut vu, avail_features, init_features)?; in new()
57 avail_features, in new()
80 self.avail_features, in ack_features()
Dnet.rs91 self.handler.borrow().avail_features in features()
Dblock.rs93 self.handler.borrow().avail_features in features()
Dfs.rs94 self.handler.borrow().avail_features in features()
/external/crosvm/devices/src/virtio/vhost/
Dvsock.rs28 avail_features: u64, field
44 let avail_features = base_features in new() localVariable
62 avail_features, in new()
74 avail_features: features, in new_for_testing()
126 self.avail_features in features()
138 let unrequested_features = v & !self.avail_features; in ack_features()
Dnet.rs34 avail_features: u64, field
77 let avail_features = base_features in new() localVariable
103 avail_features, in new()
174 self.avail_features in features()
181 let unrequested_features = v & !self.avail_features; in ack_features()
Dworker.rs58 let avail_features = self in run() localVariable
63 let features: c_ulonglong = self.acked_features & avail_features; in run()
/external/crosvm/devices/src/virtio/
Dp9.rs151 avail_features: u64, field
174 avail_features: base_features | 1 << VIRTIO_9P_MOUNT_TAG, in new()
198 self.avail_features in features()
205 let unrequested_features = v & !self.avail_features; in ack_features()
Dblock.rs501 avail_features: u64, field
553 let mut avail_features: u64 = base_features; in new() localVariable
554 avail_features |= 1 << VIRTIO_BLK_F_FLUSH; in new()
556 avail_features |= 1 << VIRTIO_BLK_F_RO; in new()
559 avail_features |= 1 << VIRTIO_BLK_F_DISCARD; in new()
561 avail_features |= 1 << VIRTIO_BLK_F_WRITE_ZEROES; in new()
563 avail_features |= 1 << VIRTIO_BLK_F_SEG_MAX; in new()
564 avail_features |= 1 << VIRTIO_BLK_F_BLK_SIZE; in new()
578 avail_features, in new()
767 self.avail_features in features()
Dblock_async.rs569 avail_features: u64, field
622 let mut avail_features: u64 = base_features; in new() localVariable
623 avail_features |= 1 << VIRTIO_BLK_F_FLUSH; in new()
625 avail_features |= 1 << VIRTIO_BLK_F_RO; in new()
628 avail_features |= 1 << VIRTIO_BLK_F_DISCARD; in new()
630 avail_features |= 1 << VIRTIO_BLK_F_WRITE_ZEROES; in new()
632 avail_features |= 1 << VIRTIO_BLK_F_SEG_MAX; in new()
633 avail_features |= 1 << VIRTIO_BLK_F_BLK_SIZE; in new()
634 avail_features |= 1 << VIRTIO_BLK_F_MQ; in new()
648 avail_features, in new()
[all …]
Dnet.rs430 avail_features: u64, field
471 let mut avail_features = base_features in from() localVariable
482 avail_features |= 1 << virtio_net::VIRTIO_NET_F_MQ; in from()
500 avail_features, in from()
610 self.avail_features in features()
617 let unrequested_features = v & !self.avail_features; in ack_features()
/external/crosvm/devices/src/virtio/fs/
Dmod.rs132 avail_features: u64, field
168 avail_features: base_features, in new()
219 self.avail_features in features()
224 let unrequested_features = v & !self.avail_features; in ack_features()
/external/rust/crates/vmm_vhost/src/vhost_kern/
Dmod.rs88 let mut avail_features: u64 = 0; in get_features() localVariable
90 let ret = unsafe { ioctl_with_mut_ref(self, VHOST_GET_FEATURES(), &mut avail_features) }; in get_features()
91 ioctl_result(ret, avail_features) in get_features()
/external/crosvm/vhost/src/
Dlib.rs84 let mut avail_features: u64 = 0; in get_features() localVariable
88 ioctl_with_mut_ref(self, virtio_sys::VHOST_GET_FEATURES(), &mut avail_features) in get_features()
93 Ok(avail_features) in get_features()