Home
last modified time | relevance | path

Searched refs:irq (Results 1 – 25 of 286) sorted by relevance

12345678910>>...12

/external/crosvm/devices/src/irqchip/
Dioapic.rs61 fn encode_selector_from_irq(irq: usize, is_high_bits: bool) -> u8 { in encode_selector_from_irq()
62 (irq as u8) * IOWIN_SCALE + IOWIN_OFF + (is_high_bits as u8) in encode_selector_from_irq()
344 pub fn service_irq(&mut self, irq: usize, level: bool) -> bool { in service_irq()
345 let entry = &mut self.redirect_table[irq]; in service_irq()
349 self.interrupt_level[irq] = false; in service_irq()
354 if entry.get_trigger_mode() == TriggerMode::Edge && self.interrupt_level[irq] { in service_irq()
358 self.interrupt_level[irq] = true; in service_irq()
372 if irq == RTC_IRQ && self.rtc_remote_irr { in service_irq()
376 let injected = match self.out_events.get(irq) { in service_irq()
383 } else if irq == RTC_IRQ && injected { in service_irq()
[all …]
Dpic.rs175 pub fn service_irq(&mut self, irq: u8, level: bool) -> bool { in service_irq()
176 assert!(irq <= 15, "Unexpectedly high value irq: {} vs 15", irq); in service_irq()
178 let pic = if irq <= PRIMARY_PIC_MAX_IRQ { in service_irq()
183 Pic::set_irq_internal(&mut self.pics[pic as usize], irq & 7, level); in service_irq()
218 let irq_secondary = if let Some(irq) = self.get_irq(PicSelect::Secondary) { in get_external_interrupt()
219 self.interrupt_ack(PicSelect::Secondary, irq); in get_external_interrupt()
220 irq in get_external_interrupt()
324 for irq in 0..8 { in reset_pic()
325 if edge_irr & (1 << irq) != 0 { in reset_pic()
326 self.clear_isr(pic_type, irq); in reset_pic()
[all …]
Dgunyah.rs41 irq: u32, in register_edge_irq_event()
46 .register_irqfd(irq, irq_event.get_trigger(), false)?; in register_edge_irq_event()
50 fn unregister_edge_irq_event(&mut self, irq: u32, irq_event: &IrqEdgeEvent) -> Result<()> { in unregister_edge_irq_event()
51 self.vm.unregister_irqfd(irq, irq_event.get_trigger())?; in unregister_edge_irq_event()
57 irq: u32, in register_level_irq_event()
61 self.vm.register_irqfd(irq, irq_event.get_trigger(), true)?; in register_level_irq_event()
65 fn unregister_level_irq_event(&mut self, irq: u32, irq_event: &IrqLevelEvent) -> Result<()> { in unregister_level_irq_event()
66 self.vm.unregister_irqfd(irq, irq_event.get_trigger())?; in unregister_level_irq_event()
Duserspace.rs243 pub fn send_irq_to_apic(&self, id: usize, irq: &InterruptData) { in send_irq_to_apic()
246 apic.lock().accept_irq(irq); in send_irq_to_apic()
248 error!("Interrupt for non-existent apic {}: {:?}", id, irq); in send_irq_to_apic()
253 error!("Interrupt for non-existent vcpu {}: {:?}", id, irq); in send_irq_to_apic()
259 pub fn send_irq_to_apics(&self, irq: &Interrupt) { in send_irq_to_apics()
260 match irq.data.delivery { in send_irq_to_apics()
262 _ => info!("UserspaceIrqChip received special irq: {:?}", irq), in send_irq_to_apics()
266 if let Some(apic_id) = Apic::single_dest_fast(&irq.dest) { in send_irq_to_apics()
267 self.send_irq_to_apic(apic_id as usize, &irq.data); in send_irq_to_apics()
271 let lowest_mode = irq.data.delivery == DeliveryMode::Lowest; in send_irq_to_apics()
[all …]
Dx86_64.rs164 fn get_mut(&mut self, irq: usize) -> &mut Vec<IrqSource> { in get_mut()
165 if irq >= self.routes.len() { in get_mut()
166 self.routes.resize_with(irq + 1, Vec::new); in get_mut()
168 self.routes.get_mut(irq).unwrap() in get_mut()
178 fn index(&self, irq: usize) -> &Self::Output { in index()
179 if irq < self.routes.len() { in index()
180 self.routes[irq].as_slice() in index()
Dwhpx.rs180 irq: u32, in register_irq_event()
186 gsi: irq, in register_irq_event()
202 fn unregister_irq_event(&mut self, irq: u32, irq_event: &Event) -> Result<()> { in unregister_irq_event()
206 if evt.gsi == irq && irq_event.eq(&evt.event) { in unregister_irq_event()
226 irq: u32, in register_edge_irq_event()
230 self.register_irq_event(irq, irq_event.get_trigger(), None, source) in register_edge_irq_event()
233 fn unregister_edge_irq_event(&mut self, irq: u32, irq_event: &IrqEdgeEvent) -> Result<()> { in unregister_edge_irq_event()
234 self.unregister_irq_event(irq, irq_event.get_trigger()) in unregister_edge_irq_event()
239 irq: u32, in register_level_irq_event()
244 irq, in register_level_irq_event()
[all …]
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/
Dcpuhotplug_report_proc_interrupts9 foreach my $irq (sort keys %{$run1}) {
12 foreach my $cpu (sort keys %{$run1->{$irq}}) {
18 printf "%-8s ", $irq;
19 foreach my $cpu (sort keys %{$run1->{$irq}}) {
20 printf "%-5s ", $run2->{$irq}->{$cpu} - $run1->{$irq}->{$cpu};
40 my $irq = shift @items;
41 $irq =~ s/:$//;
43 $run{"IRQ$irq"}->{"$cpu"} = shift @items;
/external/perfetto/test/trace_processor/diff_tests/performance/
Dirq_runtime_metric.textproto8 irq: 100
16 irq: 100
24 irq: 200
32 irq: 200
40 irq: 300
48 irq: 300
56 irq: 300
64 irq: 300
/external/crosvm/devices/src/irqchip/kvm/
Dmod.rs56 irq: u32, in register_edge_irq_event()
60 self.vm.register_irqfd(irq, irq_event.get_trigger(), None)?; in register_edge_irq_event()
65 fn unregister_edge_irq_event(&mut self, irq: u32, irq_event: &IrqEdgeEvent) -> Result<()> { in unregister_edge_irq_event()
66 self.vm.unregister_irqfd(irq, irq_event.get_trigger()) in unregister_edge_irq_event()
73 irq: u32, in register_level_irq_event()
78 .register_irqfd(irq, irq_event.get_trigger(), Some(irq_event.get_resample()))?; in register_level_irq_event()
83 fn unregister_level_irq_event(&mut self, irq: u32, irq_event: &IrqLevelEvent) -> Result<()> { in unregister_level_irq_event()
84 self.vm.unregister_irqfd(irq, irq_event.get_trigger()) in unregister_level_irq_event()
116 fn service_irq(&mut self, irq: u32, level: bool) -> Result<()> { in service_irq()
117 self.vm.set_irq_line(irq, level) in service_irq()
Dx86_64.rs281 fn routes_to_chips(&self, irq: u32) -> Vec<(IrqSourceChip, u32)> { in routes_to_chips()
288 } if *gsi == irq => match chip { in routes_to_chips()
330 irq: u32, in register_irq_event()
335 if irq < self.ioapic_pins as u32 { in register_irq_event()
337 gsi: irq, in register_irq_event()
352 self.vm.register_irqfd(irq, irq_event, resample_event)?; in register_irq_event()
358 fn unregister_irq_event(&mut self, irq: u32, irq_event: &Event) -> Result<()> { in unregister_irq_event()
359 if irq < self.ioapic_pins as u32 { in unregister_irq_event()
363 if evt.gsi == irq && irq_event.eq(&evt.event) { in unregister_irq_event()
371 self.vm.unregister_irqfd(irq, irq_event) in unregister_irq_event()
[all …]
/external/arm-trusted-firmware/plat/qti/common/src/
Dqti_interrupt_svc.c27 uint32_t irq = QTI_INTR_INVALID_INT_NUM; in qti_el3_interrupt_handler() local
35 irq = plat_ic_acknowledge_interrupt(); in qti_el3_interrupt_handler()
37 qtiseclib_invoke_isr(irq, handle); in qti_el3_interrupt_handler()
40 if (irq < 1022U) { in qti_el3_interrupt_handler()
41 plat_ic_end_of_interrupt(irq); in qti_el3_interrupt_handler()
/external/arm-trusted-firmware/plat/mediatek/common/drivers/gic600/
Dmt_gic_v3.c61 void mt_gic_set_pending(uint32_t irq) in mt_gic_set_pending() argument
63 gicv3_set_interrupt_pending(irq, plat_my_core_pos()); in mt_gic_set_pending()
179 uint32_t mt_irq_get_pending(uint32_t irq) in mt_irq_get_pending() argument
184 irq / 32 * 4); in mt_irq_get_pending()
185 val = (val >> (irq % 32)) & 1U; in mt_irq_get_pending()
190 void mt_irq_set_pending(uint32_t irq) in mt_irq_set_pending() argument
192 uint32_t bit = 1U << (irq % 32); in mt_irq_set_pending()
195 irq / 32 * 4, bit); in mt_irq_set_pending()
Dmt_gic_v3.h15 void mt_gic_set_pending(uint32_t irq);
24 uint32_t mt_irq_get_pending(uint32_t irq);
25 void mt_irq_set_pending(uint32_t irq);
/external/bcc/tools/
Dsoftirqs_example.txt8 Tracing soft irq event time... Hit Ctrl-C to end.
31 Tracing soft irq event time... Hit Ctrl-C to end.
71 Tracing soft irq event time... Hit Ctrl-C to end.
186 Tracing soft irq events... Hit Ctrl-C to end.
202 Summarize soft irq event time as histograms.
212 -C, --events show the number of soft irq events
217 ./softirqs # sum soft irq event time
218 ./softirqs -C # show the number of soft irq events
219 ./softirqs -d # show soft irq event time as histograms
222 ./softirqs -c 1 # sum soft irq event time on CPU 1 only
Dhardirqs_example.txt8 Tracing hard irq event time... Hit Ctrl-C to end.
35 hard irq action ran for 11441 microseconds (11 milliseconds) in total.
46 Tracing hard irq event time... Hit Ctrl-C to end.
126 interrupts (summarized as the %irq column from mpstat(1)). The output above
189 other overheads (non-irq CPU cycles, file system storage).
196 Tracing hard irq event time... Hit Ctrl-C to end.
621 Tracing hard irq events... Hit Ctrl-C to end.
655 Summarize hard irq event time as histograms
669 ./hardirqs # sum hard irq event time
670 ./hardirqs -d # show hard irq event time as histograms
/external/crosvm/devices/src/irqchip/geniezone/
Dmod.rs168 irq: u32, in register_edge_irq_event()
172 self.vm.register_irqfd(irq, irq_event.get_trigger(), None)?; in register_edge_irq_event()
177 fn unregister_edge_irq_event(&mut self, irq: u32, irq_event: &IrqEdgeEvent) -> Result<()> { in unregister_edge_irq_event()
178 self.vm.unregister_irqfd(irq, irq_event.get_trigger()) in unregister_edge_irq_event()
185 irq: u32, in register_level_irq_event()
190 .register_irqfd(irq, irq_event.get_trigger(), Some(irq_event.get_resample()))?; in register_level_irq_event()
195 fn unregister_level_irq_event(&mut self, irq: u32, irq_event: &IrqLevelEvent) -> Result<()> { in unregister_level_irq_event()
196 self.vm.unregister_irqfd(irq, irq_event.get_trigger()) in unregister_level_irq_event()
226 fn service_irq(&mut self, irq: u32, level: bool) -> Result<()> { in service_irq()
227 self.vm.set_irq_line(irq, level) in service_irq()
/external/crosvm/hypervisor/src/gunyah/
Daarch64.rs128 for irq in self.routes.lock().iter() { in create_fdt()
129 let bell_name = format!("bell-{:x}", irq.irq); in create_fdt()
132 let path_name = format!("/hypervisor/bell-{:x}", irq.irq); in create_fdt()
134 fdt.property_u32("label", irq.irq)?; in create_fdt()
138 let interrupt_type = if irq.level { in create_fdt()
143 let interrupts = [GIC_FDT_IRQ_TYPE_SPI, irq.irq, interrupt_type]; in create_fdt()
/external/arm-trusted-firmware/plat/xilinx/versal/pm_service/
Dpm_client.c107 static enum pm_device_node_idx irq_to_pm_node_idx(unsigned int irq) in irq_to_pm_node_idx() argument
109 assert(irq <= IRQ_MAX); in irq_to_pm_node_idx()
110 return irq_node_map[irq]; in irq_to_pm_node_idx()
136 uint32_t idx, ret, irq, lowest_set = reg & (-reg); in pm_client_set_wakeup_sources() local
139 irq = base_irq + idx; in pm_client_set_wakeup_sources()
141 if (irq > IRQ_MAX) in pm_client_set_wakeup_sources()
144 node_idx = irq_to_pm_node_idx(irq); in pm_client_set_wakeup_sources()
/external/arm-trusted-firmware/plat/mediatek/common/
Dmtk_cirq.c139 static uint32_t mt_irq_get_pol(uint32_t irq) in mt_irq_get_pol() argument
145 if (irq < 32U) { in mt_irq_get_pol()
149 reg = ((irq - 32U) / 32U); in mt_irq_get_pol()
157 unsigned int mt_irq_get_sens(unsigned int irq) in mt_irq_get_sens() argument
165 config = mmio_read_32(MT_GIC_BASE + GICD_ICFGR + (irq / 16U) * 4U); in mt_irq_get_sens()
166 config = (config >> (irq % 16U) * 2U) & 0x3; in mt_irq_get_sens()
299 uint32_t mt_irq_get_en(uint32_t irq) in mt_irq_get_en() argument
303 addr = BASE_GICD_BASE + GICD_ISENABLER + (irq / 32U) * 4U; in mt_irq_get_en()
306 val = (st >> (irq % 32U)) & 1U; in mt_irq_get_en()
476 void mt_irq_unmask_for_sleep_ex(uint32_t irq) in mt_irq_unmask_for_sleep_ex() argument
[all …]
/external/perfetto/test/trace_processor/diff_tests/android/
Dandroid_bugreport_dumpstate_test.out320 "SHOW MAP 100 ([irq/125-tsens-u]) (/system/xbin/su root showmap -q 100)","[NULL]",8
321 "SHOW MAP 101 ([irq/126-tsens-c]) (/system/xbin/su root showmap -q 101)","[NULL]",8
328 "SHOW MAP 102 ([irq/127-tsens-u]) (/system/xbin/su root showmap -q 102)","[NULL]",8
334 "SHOW MAP 103 ([irq/128-tsens-c]) (/system/xbin/su root showmap -q 103)","[NULL]",8
385 "SHOW MAP 112 ([irq/541-ibb-sc-]) (/system/xbin/su root showmap -q 112)","[NULL]",8
388 "SHOW MAP 113 ([irq/542-lab-sc-]) (/system/xbin/su root showmap -q 113)","[NULL]",8
391 "SHOW MAP 115 ([irq/75-qpnp_wle]) (/system/xbin/su root showmap -q 115)","[NULL]",8
398 "SHOW MAP 116 ([irq/76-qpnp_wle]) (/system/xbin/su root showmap -q 116)","[NULL]",8
409 "SHOW MAP 1182 ([irq/211-arm-smm]) (/system/xbin/su root showmap -q 1182)","[NULL]",8
411 "SHOW MAP 1194 ([irq/212-arm-smm]) (/system/xbin/su root showmap -q 1194)","[NULL]",8
[all …]
/external/arm-trusted-firmware/plat/xilinx/zynqmp/pm_service/
Dpm_client.c166 static enum pm_node_id irq_to_pm_node(unsigned int irq) in irq_to_pm_node() argument
168 assert(irq <= IRQ_MAX); in irq_to_pm_node()
169 return irq_node_map[irq]; in irq_to_pm_node()
206 uint32_t idx, ret, irq, lowest_set = reg & (-reg); in pm_client_set_wakeup_sources() local
209 irq = base_irq + idx; in pm_client_set_wakeup_sources()
211 if (irq > IRQ_MAX) in pm_client_set_wakeup_sources()
214 node = irq_to_pm_node(irq); in pm_client_set_wakeup_sources()
/external/arm-trusted-firmware/plat/marvell/armada/common/
Dmarvell_gicv2.c80 uint32_t irq; in a7k8k_pmu_interrupt_handler() local
85 irq = plat_ic_acknowledge_interrupt(); in a7k8k_pmu_interrupt_handler()
87 plat_ic_end_of_interrupt(irq); in a7k8k_pmu_interrupt_handler()
89 if (irq != MARVELL_IRQ_PIC0) { in a7k8k_pmu_interrupt_handler()
/external/perfetto/src/traced/probes/ftrace/test/data/synthetic/events/trusty/trusty_irq/
Dformat9 field:int irq; offset:8; size:4; signed:1;
11 print fmt: "irq=%d", REC->irq
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/irq/irq_handler_entry/
Dformat9 field:int irq; offset:8; size:4; signed:1;
12 print fmt: "irq=%d name=%s", REC->irq, __get_str(name)
/external/perfetto/src/traced/probes/ftrace/test/data/android_raven_AOSP.MASTER_5.10.43/events/irq/irq_handler_exit/
Dformat9 field:int irq; offset:8; size:4; signed:1;
12 print fmt: "irq=%d ret=%s", REC->irq, REC->ret ? "handled" : "unhandled"

12345678910>>...12