Lines Matching refs:Arc

5     sync::{Arc, Weak},
29 static mut IRQ_DOMAIN_MANAGER: Option<Arc<IrqDomainManager>> = None;
33 pub fn irq_domain_manager() -> &'static Arc<IrqDomainManager> { in irq_domain_manager()
39 IRQ_DOMAIN_MANAGER = Some(Arc::new(IrqDomainManager::new())); in irq_domain_manager_init()
44 domains: SpinLock<Vec<Arc<IrqDomain>>>,
73 ) -> Option<Arc<IrqDomain>> { in create_and_add_linear()
101 ) -> Option<Arc<IrqDomain>> { in create_and_add()
117 fn add_domain(&self, domain: Arc<IrqDomain>) { in add_domain()
122 pub fn remove_domain(&self, domain: &Arc<IrqDomain>) { in remove_domain()
126 .position(|x| Arc::ptr_eq(x, domain)) in remove_domain()
133 pub fn default_domain(&self) -> Option<Arc<IrqDomain>> { in default_domain()
140 pub fn set_default_domain(&self, domain: Arc<IrqDomain>) { in set_default_domain()
154 domain: &Arc<IrqDomain>, in domain_associate_many()
171 domain: &Arc<IrqDomain>, in domain_associate()
230 domain: &Arc<IrqDomain>, in irq_domain_set_mapping()
232 irq_data: Arc<IrqData>, in irq_domain_set_mapping()
248 pub fn activate_irq(&self, irq_data: &Arc<IrqData>, reserve: bool) -> Result<(), SystemError> { in activate_irq()
268 irq_data: Option<Arc<IrqData>>, in do_activate_irq()
296 fn do_deactivate_irq(&self, irq_data: Option<Arc<IrqData>>) { in do_deactivate_irq()
324 domain: &Arc<IrqDomain>, in domain_set_info()
327 chip: Arc<dyn IrqChip>, in domain_set_info()
328 chip_data: Option<Arc<dyn IrqChipData>>, in domain_set_info()
330 handler_data: Option<Arc<dyn IrqHandlerData>>, in domain_set_info()
352 domain: &Arc<IrqDomain>, in domain_set_hwirq_and_chip()
355 chip: Option<Arc<dyn IrqChip>>, in domain_set_hwirq_and_chip()
356 chip_data: Option<Arc<dyn IrqChipData>>, in domain_set_hwirq_and_chip()
358 let irq_data: Arc<IrqData> = self in domain_set_hwirq_and_chip()
384 domain: &Arc<IrqDomain>, in domain_get_irq_data()
386 ) -> Option<Arc<IrqData>> { in domain_get_irq_data()
392 if dt.domain().is_some() && Arc::ptr_eq(dt.domain().as_ref().unwrap(), domain) { in domain_get_irq_data()
414 mut domain: Option<Arc<IrqDomain>>, in resolve_irq_mapping()
416 ) -> Result<(Arc<IrqDesc>, IrqNumber), SystemError> { in resolve_irq_mapping()
445 default_domain: Option<Arc<IrqDomain>>,
470 host_data: Option<Arc<dyn IrqChipData>>,
479 generic_chip: Option<Arc<IrqDomainChipGeneric>>,
482 device: Option<Arc<dyn Device>>,
497 ) -> Option<Arc<Self>> { in new()
522 return Some(Arc::new(x)); in new()
564 pub fn host_data(&self) -> Option<Arc<dyn IrqChipData>> { in host_data()
568 pub fn set_host_data(&self, host_data: Option<Arc<dyn IrqChipData>>) { in set_host_data()
577 map: HashMap<HardwareIrqNumber, Arc<IrqData>>,
583 fn insert(&mut self, hwirq: HardwareIrqNumber, irq_data: Arc<IrqData>) { in insert()
593 fn lookup(&self, hwirq: HardwareIrqNumber) -> Option<Arc<IrqData>> { in lookup()
650 _irq_domain: &Arc<IrqDomain>, in match_node()
651 _device_node: &Arc<DeviceNode>, in match_node()
663 _irq_domain: &Arc<IrqDomain>, in map()
672 fn unmap(&self, irq_domain: &Arc<IrqDomain>, virq: IrqNumber); in unmap()
676 _domain: &Arc<IrqDomain>, in activate()
677 _irq_data: &Arc<IrqData>, in activate()
683 fn deactivate(&self, _domain: &Arc<IrqDomain>, _irq_data: &Arc<IrqData>) {} in deactivate()
699 gc: Vec<Arc<IrqChipGeneric>>,