Lines Matching refs:Box
12 use alloc::{boxed::Box, collections::LinkedList};
71 list: RwLock<LinkedList<Box<dyn PciDeviceStructure>>>,
83 pub fn read(&self) -> RwLockReadGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in read()
88 pub fn write(&self) -> RwLockWriteGuard<LinkedList<Box<dyn PciDeviceStructure>>> { in write()
98 pub fn add(&self, device: Box<dyn PciDeviceStructure>) { in add()
110 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_pci_device_structure_mut()
113 ) -> Vec<&'a mut Box<(dyn PciDeviceStructure)>> { in get_pci_device_structure_mut()
129 list: &'a mut RwLockReadGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_pci_device_structure()
132 ) -> Vec<&'a Box<(dyn PciDeviceStructure)>> { in get_pci_device_structure()
650 ) -> Result<Box<dyn PciDeviceStructure>, PciError> { in pci_read_header()
696 let box_general_device = Box::new(general_device); in pci_read_header()
705 let box_pci_to_pci_bridge = Box::new(pci_to_pci_bridge); in pci_read_header()
715 let box_pci_cardbus_bridge = Box::new(pci_cardbus_bridge); in pci_read_header()