Lines Matching refs:common_header
116 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()
314 &common_header.bus_device_function, in set_command()
367 pub common_header: PciDeviceStructureHeader, field
392 fn common_header(&self) -> &PciDeviceStructureHeader { in common_header() method
393 &self.common_header in common_header()
397 &mut self.common_header in common_header_mut()
401 bus_device_function: self.common_header.bus_device_function, in capabilities()
406 let common_header = &self.common_header; in bar_init() localVariable
407 match pci_bar_init(common_header.bus_device_function) { in bar_init()
419 pub common_header: PciDeviceStructureHeader, field
455 fn common_header(&self) -> &PciDeviceStructureHeader { in common_header() method
456 &self.common_header in common_header()
460 &mut self.common_header in common_header_mut()
466 pub common_header: PciDeviceStructureHeader, field
502 fn common_header(&self) -> &PciDeviceStructureHeader { in common_header() method
503 &self.common_header in common_header()
507 &mut self.common_header in common_header_mut()
732 common_header: PciDeviceStructureHeader, in pci_read_general_device_header()
757 common_header, in pci_read_general_device_header()
780 common_header: PciDeviceStructureHeader, in pci_read_pci_to_pci_bridge_header()
825 common_header, in pci_read_pci_to_pci_bridge_header()
859 common_header: PciDeviceStructureHeader, in pci_read_pci_to_cardbus_bridge_header()
895 common_header, in pci_read_pci_to_cardbus_bridge_header()
931 let common_header = header.common_header(); in pci_check_all_buses() localVariable
933 if common_header.header_type & 0x80 != 0 { in pci_check_all_buses()
953 let common_header = header.common_header(); in pci_check_function() localVariable
954 if (common_header.class_code == 0x06) in pci_check_function()
955 && (common_header.subclass == 0x04 || common_header.subclass == 0x09) in pci_check_function()
986 let common_header = header.common_header(); in pci_check_device() localVariable
987 if common_header.header_type & 0x80 != 0 { in pci_check_device()
1045 let common_header = box_pci_device.common_header(); in pci_init() localVariable
1047 HeaderType::Standard if common_header.status & 0x10 != 0 => { in pci_init()
1048 …common_header.class_code, common_header.subclass, common_header.status, box_pci_device.as_standard… in pci_init()
1053 common_header.class_code, in pci_init()
1054 common_header.subclass, in pci_init()
1055 common_header.status in pci_init()
1058 HeaderType::PciPciBridge if common_header.status & 0x10 != 0 => { in pci_init()
1059 …subclass={} status={:#x} cap_pointer={:#x}", common_header.class_code, common_header.subclass, com… in pci_init()
1064 common_header.class_code, in pci_init()
1065 common_header.subclass, in pci_init()
1066 common_header.status in pci_init()
1072 common_header.class_code, in pci_init()
1073 common_header.subclass, in pci_init()
1074 common_header.status in pci_init()