Lines Matching refs:common_cfg

82     common_cfg: NonNull<CommonCfg>,  field
107 let mut common_cfg: Option<VirtioCapabilityInfo> = None; in new() localVariable
138 VIRTIO_PCI_CAP_COMMON_CFG if common_cfg.is_none() => { in new()
139 common_cfg = Some(struct_info); in new()
158 let common_cfg = get_bar_region::<_>( in new() localVariable
160 &common_cfg.ok_or(VirtioPciError::MissingCommonConfig)?, in new()
186 common_cfg, in new()
204 volwrite!(self.common_cfg, device_feature_select, 0); in read_device_features()
205 let mut device_features_bits = volread!(self.common_cfg, device_feature) as u64; in read_device_features()
206 volwrite!(self.common_cfg, device_feature_select, 1); in read_device_features()
207 device_features_bits |= (volread!(self.common_cfg, device_feature) as u64) << 32; in read_device_features()
216 volwrite!(self.common_cfg, driver_feature_select, 0); in write_driver_features()
217 volwrite!(self.common_cfg, driver_feature, driver_features as u32); in write_driver_features()
218 volwrite!(self.common_cfg, driver_feature_select, 1); in write_driver_features()
220 self.common_cfg, in write_driver_features()
230 unsafe { volread!(self.common_cfg, queue_size) }.into() in max_queue_size()
237 volwrite!(self.common_cfg, queue_select, queue); in notify()
239 let queue_notify_off = volread!(self.common_cfg, queue_notify_off); in notify()
251 volwrite!(self.common_cfg, device_status, status.bits() as u8); in set_status()
276 volwrite!(self.common_cfg, queue_select, queue); in queue_set()
277 volwrite!(self.common_cfg, queue_size, size as u16); in queue_set()
278 volwrite!(self.common_cfg, queue_desc, descriptors as u64); in queue_set()
279 volwrite!(self.common_cfg, queue_driver, driver_area as u64); in queue_set()
280 volwrite!(self.common_cfg, queue_device, device_area as u64); in queue_set()
281 volwrite!(self.common_cfg, queue_enable, 1); in queue_set()
289 volwrite!(self.common_cfg, queue_select, queue); in queue_unset()
290 volwrite!(self.common_cfg, queue_size, 0); in queue_unset()
291 volwrite!(self.common_cfg, queue_desc, 0); in queue_unset()
292 volwrite!(self.common_cfg, queue_driver, 0); in queue_unset()
293 volwrite!(self.common_cfg, queue_device, 0); in queue_unset()
301 volwrite!(self.common_cfg, queue_select, queue); in queue_used()
302 volread!(self.common_cfg, queue_enable) == 1 in queue_used()