Searched refs:common_header (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci.rs | 117 let common_header = (*box_pci_device_structure).common_header(); in get_pci_device_structure_mut() localVariable 118 if (common_header.class_code == class_code) && (common_header.subclass == subclass) { in get_pci_device_structure_mut() 136 let common_header = (*box_pci_device_structure).common_header(); in get_pci_device_structure() localVariable 137 if (common_header.class_code == class_code) && (common_header.subclass == subclass) { in get_pci_device_structure() 292 fn common_header(&self) -> &PciDeviceStructureHeader; in common_header() method 316 let common_header = self.common_header(); in status_command() localVariable 317 let status = Status::from_bits_truncate(common_header.status); in status_command() 318 let command = Command::from_bits_truncate(common_header.command); in status_command() 323 let common_header = self.common_header_mut(); in set_command() localVariable 325 common_header.command = command; in set_command() [all …]
|
D | pci.c | 232 …struct pci_device_structure_header_t *common_header = (struct pci_device_structure_header_t *)kmal… in pci_read_header() local 233 common_header->bus = bus; in pci_read_header() 234 common_header->device = slot; in pci_read_header() 235 common_header->func = func; in pci_read_header() 240 common_header->Vendor_ID = tmp32 & 0xffff; in pci_read_header() 241 common_header->Device_ID = (tmp32 >> 16) & 0xffff; in pci_read_header() 244 common_header->Command = tmp32 & 0xffff; in pci_read_header() 245 common_header->Status = (tmp32 >> 16) & 0xffff; in pci_read_header() 248 common_header->RevisionID = tmp32 & 0xff; in pci_read_header() 249 common_header->ProgIF = (tmp32 >> 8) & 0xff; in pci_read_header() [all …]
|
D | pci_irq.rs | 125 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 4); in irq_init() 128 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 4); in irq_init() 132 PciArch::read_config(&self.common_header().bus_device_function, cap_offset + 8); in irq_init() 157 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in irq_init() 214 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in msix_enable() 221 &self.common_header().bus_device_function, in msix_enable() 245 PciArch::read_config(&self.common_header().bus_device_function, cap_offset); in msi_enable() 252 &self.common_header().bus_device_function, in msi_enable() 356 &self.common_header().bus_device_function, in msi_install() 361 &self.common_header().bus_device_function, in msi_install() [all …]
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio.rs | 95 let header = &standard_device.common_header; in get_virtio_net_device()
|
D | transport_pci.rs | 100 let header = &device.common_header; in new()
|