Searched refs:hwirq (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_intc.rs | 121 hwirq: HardwareIrqNumber, in map() 128 hwirq, in map() 175 pub const fn riscv_intc_hwirq_to_virq(hwirq: HardwareIrqNumber) -> Option<IrqNumber> { in riscv_intc_hwirq_to_virq() 176 if hwirq.data() < RiscvIntcChip::IRQ_SIZE { in riscv_intc_hwirq_to_virq() 177 Some(IrqNumber::new(hwirq.data() + RISCV_INTC_VIRQ_START)) in riscv_intc_hwirq_to_virq() 196 pub fn riscv_intc_assicate_irq(hwirq: HardwareIrqNumber) -> Option<IrqNumber> { in riscv_intc_assicate_irq() 197 let virq = riscv_intc_hwirq_to_virq(hwirq)?; in riscv_intc_assicate_irq() 205 hwirq, in riscv_intc_assicate_irq() 214 let hwirq = HardwareIrqNumber::new(trap_frame.cause.code() as u32); in riscv_intc_irq() localVariable 215 if hwirq.data() == 9 { in riscv_intc_irq() [all …]
|
H A D | riscv_sifive_plic.rs | 172 fn toggle(&self, hwirq: HardwareIrqNumber, enable: bool) { in toggle() 174 let reg = (inner.enable_base + ((hwirq.data() / 32) * 4) as usize).data() as *mut u32; in toggle() 175 let hwirq_mask = 1 << (hwirq.data() % 32); in toggle() 563 let hwirq = HardwareIrqNumber::new(irq); in associate_irq_with_plic_domain() localVariable 566 .domain_associate(irq_domain, virq, hwirq) in associate_irq_with_plic_domain() 584 hwirq: HardwareIrqNumber, in map() 597 hwirq, in map() 654 let hwirq = HardwareIrqNumber::new(claim); in do_plic_irq() localVariable 655 if let Err(e) = GenericIrqHandler::handle_domain_irq(domain.clone(), hwirq, trap_frame) { in do_plic_irq()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdomain.rs | 173 hwirq: HardwareIrqNumber, in domain_associate() 175 if hwirq >= domain.revmap.read_irqsave().hwirq_max { in domain_associate() 178 hwirq.data(), in domain_associate() 200 irq_data_guard.set_hwirq(hwirq); in domain_associate() 203 let r = domain.ops.map(domain, hwirq, irq); in domain_associate() 207 …omain '{:?}' didn't like hwirq {} to virq {} mapping.", e, domain.name(), hwirq.data(), irq.data()… in domain_associate() 221 self.irq_domain_set_mapping(domain, hwirq, irq_data); in domain_associate() 231 hwirq: HardwareIrqNumber, in irq_domain_set_mapping() 238 domain.revmap.write_irqsave().insert(hwirq, irq_data); in irq_domain_set_mapping() 326 hwirq: HardwareIrqNumber, in domain_set_info() [all …]
|
H A D | irqdata.rs | 38 hwirq: HardwareIrqNumber, in new() 45 hwirq, in new() 89 self.inner.lock_irqsave().hwirq in hardware_irq() 146 hwirq: HardwareIrqNumber, field 159 pub fn set_hwirq(&mut self, hwirq: HardwareIrqNumber) { in set_hwirq() 160 self.hwirq = hwirq; in set_hwirq()
|
H A D | sysfs.rs | 187 let hwirq = irq_desc.hardware_irq(); in show() localVariable 188 return sysfs_emit_str(buf, &format!("{}\n", hwirq.data())); in show()
|
H A D | irqdesc.rs | 1029 hwirq: HardwareIrqNumber, in handle_domain_irq() 1033 irq_domain_manager().resolve_irq_mapping(Some(domain.clone()), hwirq)?; in handle_domain_irq()
|