Lines Matching refs:domain

102         let domain = IrqDomain::new(  in create_and_add()  localVariable
112 self.add_domain(domain.clone()); in create_and_add()
114 return Some(domain); in create_and_add()
117 fn add_domain(&self, domain: Arc<IrqDomain>) { in add_domain()
118 self.domains.lock_irqsave().push(domain); 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()
140 pub fn set_default_domain(&self, domain: Arc<IrqDomain>) { in set_default_domain()
141 self.inner.write_irqsave().default_domain = Some(domain); in set_default_domain()
154 domain: &Arc<IrqDomain>, in domain_associate_many()
160 if let Err(e) = self.domain_associate(domain, first_irq + i, first_hwirq + i) { in domain_associate_many()
161 …ailed: {:?}, domain '{:?}' didn't like hwirq {} to virq {} mapping.", e, domain.name(), (first_hwi… in domain_associate_many()
171 domain: &Arc<IrqDomain>, in domain_associate()
175 if hwirq >= domain.revmap.read_irqsave().hwirq_max { in domain_associate()
179 domain.name() in domain_associate()
190 if irq_data.domain().is_some() { in domain_associate()
194 irq_data.domain().unwrap().name() in domain_associate()
201 irq_data_guard.set_domain(Some(domain.clone())); in domain_associate()
203 let r = domain.ops.map(domain, hwirq, irq); in domain_associate()
207 …ailed: {:?}, domain '{:?}' didn't like hwirq {} to virq {} mapping.", e, domain.name(), hwirq.data… in domain_associate()
216 if domain.name().is_none() { in domain_associate()
218 domain.set_name(chip.name().to_string()); in domain_associate()
221 self.irq_domain_set_mapping(domain, hwirq, irq_data); in domain_associate()
230 domain: &Arc<IrqDomain>, in irq_domain_set_mapping()
234 if domain.no_map() { in irq_domain_set_mapping()
238 domain.revmap.write_irqsave().insert(hwirq, irq_data); in irq_domain_set_mapping()
275 if let Some(domain) = irq_data.domain() { in do_activate_irq()
283 let tmpr = domain.ops.activate(&domain, &irq_data, reserve); in do_activate_irq()
298 if let Some(domain) = irq_data.domain() { in do_deactivate_irq()
299 domain.ops.deactivate(&domain, &irq_data); in do_deactivate_irq()
325 domain: &Arc<IrqDomain>, in domain_set_info()
334 let r = self.domain_set_hwirq_and_chip(domain, virq, hwirq, Some(chip), chip_data); in domain_set_info()
353 domain: &Arc<IrqDomain>, in domain_set_hwirq_and_chip()
360 .domain_get_irq_data(domain, virq) in domain_set_hwirq_and_chip()
385 domain: &Arc<IrqDomain>, in domain_get_irq_data()
393 if dt.domain().is_some() && Arc::ptr_eq(dt.domain().as_ref().unwrap(), domain) { in domain_get_irq_data()
415 mut domain: Option<Arc<IrqDomain>>, in resolve_irq_mapping()
418 if domain.is_none() { in resolve_irq_mapping()
419 domain = Some(self.default_domain().ok_or(SystemError::EINVAL)?); in resolve_irq_mapping()
422 let domain = domain.unwrap(); in resolve_irq_mapping() localVariable
424 if domain.no_map() { in resolve_irq_mapping()
425 if hwirq < domain.revmap_read_irqsave().hwirq_max { in resolve_irq_mapping()
438 let revmap = domain.revmap_read_irqsave(); in resolve_irq_mapping()