Lines Matching refs:u16

149 pub const PORT_PCI_CONFIG_ADDRESS: u16 = 0xcf8;
150 pub const PORT_PCI_CONFIG_DATA: u16 = 0xcfc;
152 pub type SegmentGroupNumber = u16; //理论上最多支持65535个Segment_Group
156 pub struct Status: u16 {
185 pub struct Command: u16 {
343 pub msix_table_size: u16, // msix表的表项数量
346 pub vendor_id: u16, // 供应商ID 0xffff是一个无效值,在读取访问不存在的设备的配置空间寄存器时返回
347 pub device_id: u16, // 设备ID,标志特定设备
348 pub command: u16, // 提供对设备生成和响应pci周期的能力的控制 向该寄存器写入0时,设备与pci总线断开除配置空间访问以外的所有连接
349 pub status: u16, // 用于记录pci总线相关时间的状态信息寄存器
370 pub subsystem_vendor_id: u16,
371 pub subsystem_id: u16,
375 pub reserved1: u16,
428 pub secondary_status: u16,
429 pub memory_base: u16,
430 pub memory_limit: u16,
431 pub prefetchable_memory_base: u16,
432 pub prefetchable_memory_limit: u16,
435 pub io_base_upper_16_bits: u16,
436 pub io_limit_upper_16_bits: u16,
439 pub reserved1: u16,
443 pub bridge_control: u16,
470 pub secondary_status: u16,
485 pub bridge_control: u16,
486 pub subsystem_device_id: u16,
487 pub subsystem_vendor_id: u16,
576 fn cam_offset(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in cam_offset()
590 pub fn read_config(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in read_config()
605 register_offset: u16, in write_config() argument
634 let status: Status = Status::from_bits_truncate((result >> 16) as u16); in capabilities_offset()
653 let vendor_id = result as u16; in pci_read_header()
654 let device_id = (result >> 16) as u16; in pci_read_header()
657 let command = result as u16; in pci_read_header()
658 let status = (result >> 16) as u16; in pci_read_header()
739 let subsystem_vendor_id = result as u16; in pci_read_general_device_header()
740 let subsystem_id = (result >> 16) as u16; in pci_read_general_device_header()
747 let reserved1 = (result >> 16) as u16; in pci_read_general_device_header()
796 let secondary_status = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
799 let memory_base = result as u16; in pci_read_pci_to_pci_bridge_header()
800 let memory_limit = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
803 let prefetchable_memory_base = result as u16; in pci_read_pci_to_pci_bridge_header()
804 let prefetchable_memory_limit = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
810 let io_base_upper_16_bits = result as u16; in pci_read_pci_to_pci_bridge_header()
811 let io_limit_upper_16_bits = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
816 let reserved1 = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
823 let bridge_control = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
867 let secondary_status = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
887 let bridge_control = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
890 let subsystem_device_id = result as u16; in pci_read_pci_to_cardbus_bridge_header()
891 let subsystem_vendor_id = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
1386 pub private_header: u16,
1406 let private_header = (capability_header >> 16) as u16; in next()
1430 pub offset: u16,
1432 pub id: u16,
1443 pub next_capability_offset: Option<u16>,
1452 let id = capability_header as u16; in next()
1453 let next_offset = (capability_header >> 20) as u16; in next()