Lines Matching refs:u16
24 const VIRTIO_VENDOR_ID: u16 = 0x1af4;
28 const PCI_DEVICE_ID_OFFSET: u16 = 0x1040;
30 const TRANSITIONAL_NETWORK: u16 = 0x1000;
31 const TRANSITIONAL_BLOCK: u16 = 0x1001;
32 const TRANSITIONAL_MEMORY_BALLOONING: u16 = 0x1002;
33 const TRANSITIONAL_CONSOLE: u16 = 0x1003;
34 const TRANSITIONAL_SCSI_HOST: u16 = 0x1004;
35 const TRANSITIONAL_ENTROPY_SOURCE: u16 = 0x1005;
36 const TRANSITIONAL_9P_TRANSPORT: u16 = 0x1009;
59 fn device_type(pci_device_id: u16) -> DeviceType { in device_type()
84 notify_region: NonNull<[WriteOnly<u16>]>,
233 fn notify(&mut self, queue: u16) { in notify() argument
242 let index = offset_bytes / size_of::<u16>(); in notify()
263 queue: u16, in queue_set() argument
277 volwrite!(self.common_cfg, queue_size, size as u16); in queue_set()
285 fn queue_unset(&mut self, queue: u16) { in queue_unset() argument
297 fn queue_used(&mut self, queue: u16) -> bool { in queue_used()
349 msix_config: Volatile<u16>,
350 num_queues: ReadOnly<u16>,
353 queue_select: Volatile<u16>,
354 queue_size: Volatile<u16>,
355 queue_msix_vector: Volatile<u16>,
356 queue_enable: Volatile<u16>,
357 queue_notify_off: Volatile<u16>,
380 InvalidVendorId(u16),