Home
last modified time | relevance | path

Searched refs:common_header (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.rs116 let common_header = (*box_pci_device_structure).common_header(); in get_pci_device_structure_mut() localVariable
117 if (common_header.class_code == class_code) && (common_header.subclass == subclass) { in get_pci_device_structure_mut()
135 let common_header = (*box_pci_device_structure).common_header(); in get_pci_device_structure() localVariable
136 if (common_header.class_code == class_code) && (common_header.subclass == subclass) { in get_pci_device_structure()
282 fn common_header(&self) -> &PciDeviceStructureHeader; in common_header() method
303 let common_header = self.common_header(); in status_command() localVariable
304 let status = Status::from_bits_truncate(common_header.status); in status_command()
305 let command = Command::from_bits_truncate(common_header.command); in status_command()
310 let common_header = self.common_header_mut(); in set_command() localVariable
312 common_header.command = command; in set_command()
[all …]
Dpci.c232 …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 …]
/DragonOS-0.1.7/kernel/src/driver/virtio/
Dvirtio.rs95 let header = &standard_device.common_header; in get_virtio_net_device()
Dtransport_pci.rs100 let header = &device.common_header; in new()