Lines Matching refs:irq_data
183 let irq_data = irq_desc_manager() in domain_associate() localVariable
189 .irq_data(); in domain_associate()
190 if irq_data.domain().is_some() { in domain_associate()
194 irq_data.domain().unwrap().name() in domain_associate()
199 let mut irq_data_guard = irq_data.inner(); in domain_associate()
209 let mut irq_data_guard = irq_data.inner(); in domain_associate()
217 let chip = irq_data.chip_info_read_irqsave().chip(); in domain_associate()
221 self.irq_domain_set_mapping(domain, hwirq, irq_data); in domain_associate()
232 irq_data: Arc<IrqData>, in irq_domain_set_mapping()
238 domain.revmap.write_irqsave().insert(hwirq, irq_data); in irq_domain_set_mapping()
248 pub fn activate_irq(&self, irq_data: &Arc<IrqData>, reserve: bool) -> Result<(), SystemError> { in activate_irq()
254 if !irq_data.common_data().status().is_activated() { in activate_irq()
255 r = self.do_activate_irq(Some(irq_data.clone()), reserve); in activate_irq()
259 irq_data.common_data().status().set_activated(); in activate_irq()
268 irq_data: Option<Arc<IrqData>>, in do_activate_irq()
273 if let Some(irq_data) = irq_data { in do_activate_irq()
275 if let Some(domain) = irq_data.domain() { in do_activate_irq()
277 let parent_data = irq_data.parent_data().and_then(|x| x.upgrade()); in do_activate_irq()
283 let tmpr = domain.ops.activate(&domain, &irq_data, reserve); in do_activate_irq()
296 fn do_deactivate_irq(&self, irq_data: Option<Arc<IrqData>>) { in do_deactivate_irq()
297 if let Some(irq_data) = irq_data { in do_deactivate_irq()
298 if let Some(domain) = irq_data.domain() { in do_deactivate_irq()
299 domain.ops.deactivate(&domain, &irq_data); in do_deactivate_irq()
300 let pp = irq_data.parent_data().and_then(|x| x.upgrade()); in do_deactivate_irq()
358 let irq_data: Arc<IrqData> = self in domain_set_hwirq_and_chip() localVariable
361 let mut inner = irq_data.inner(); in domain_set_hwirq_and_chip()
362 let mut chip_info = irq_data.chip_info_write_irqsave(); in domain_set_hwirq_and_chip()
388 let mut irq_data = Some(desc.irq_data()); in domain_get_irq_data() localVariable
390 while irq_data.is_some() { in domain_get_irq_data()
391 let dt = irq_data.unwrap(); in domain_get_irq_data()
395 irq_data = dt.parent_data().and_then(|x| x.upgrade()); in domain_get_irq_data()
428 if irq_desc.irq_data().hardware_irq() == hwirq { in resolve_irq_mapping()
429 let irq = irq_desc.irq_data().irq(); in resolve_irq_mapping()
438 let irq_data = revmap.lookup(hwirq).ok_or(SystemError::EINVAL)?; in resolve_irq_mapping() localVariable
439 let irq_desc = irq_data.irq_desc().unwrap(); in resolve_irq_mapping()
440 return Ok((irq_desc, irq_data.irq())); in resolve_irq_mapping()
583 fn insert(&mut self, hwirq: HardwareIrqNumber, irq_data: Arc<IrqData>) { in insert()
584 self.map.insert(hwirq, irq_data); in insert()