Lines Matching refs:chip
199 let mut chip = KvmSplitIrqChip { in new() localVariable
217 chip.set_irq_routes(&routes)?; in new()
219 chip.register_irq_event(PIT_CHANNEL0_IRQ, &pit_evt, None)?; in new()
220 Ok(chip) in new()
232 source: IrqSource::Irqchip { chip, pin }, in routes_to_chips()
233 } if *gsi == irq => match chip { in routes_to_chips()
236 | IrqSourceChip::Ioapic => chips.push((*chip, *pin)), in routes_to_chips()
289 chip: route_chip, .. in routes_conflict()
292 chip: other_chip, .. in routes_conflict()
402 for (chip, pin) in chips { in service_irq()
403 match chip { in service_irq()
429 for (chip, pin) in chips { in service_irq_event()
430 match chip { in service_irq_event()
720 let mut chip = KvmKernelIrqChip::new(vm.try_clone().expect("failed to clone vm"), 1) in get_kernel_chip() localVariable
724 chip.add_vcpu(0, vcpu.as_vcpu()) in get_kernel_chip()
727 chip in get_kernel_chip()
738 let mut chip = KvmSplitIrqChip::new( in get_split_chip() localVariable
747 chip.add_vcpu(0, vcpu.as_vcpu()) in get_split_chip()
749 chip in get_split_chip()
834 let mut chip = get_split_chip(); in split_irqchip_routes_conflict() localVariable
835 chip.route_irq(IrqRoute { in split_irqchip_routes_conflict()
844 chip.route_irq(IrqRoute { in split_irqchip_routes_conflict()
856 let mut chip = get_split_chip(); in irq_event_tokens() localVariable
857 let tokens = chip in irq_event_tokens()
867 chip.register_irq_event(6, &evt, None) in irq_event_tokens()
870 let tokens = chip in irq_event_tokens()
883 let mut chip = get_split_chip(); in finalize_devices() localVariable
898 let evt_index = chip in finalize_devices()
904 chip.finalize_devices(&mut resources, &mut io_bus, &mut mmio_bus) in finalize_devices()
913 let state = chip.get_pit().expect("failed to get pit state"); in finalize_devices()
926 let state = chip in finalize_devices()
939 chip.service_irq_event(evt_index) in finalize_devices()
942 assert!(chip.interrupt_requested(0)); in finalize_devices()
944 chip.get_external_interrupt(0) in finalize_devices()
974 let state = chip.get_ioapic_state().expect("failed to get ioapic state"); in finalize_devices()
982 let mut chip = get_split_chip(); in get_external_interrupt() localVariable
983 assert!(!chip.interrupt_requested(0)); in get_external_interrupt()
985 chip.service_irq(0, true).expect("failed to service irq"); in get_external_interrupt()
986 assert!(chip.interrupt_requested(0)); in get_external_interrupt()
990 chip.get_external_interrupt(0) in get_external_interrupt()
996 assert!(!chip.interrupt_requested(0)); in get_external_interrupt()
1001 let mut chip = get_split_chip(); in broadcast_eoi() localVariable
1016 chip.register_irq_event(1, &evt, Some(&resample_evt)) in broadcast_eoi()
1020 chip.finalize_devices(&mut resources, &mut io_bus, &mut mmio_bus) in broadcast_eoi()
1041 chip.service_irq(1, true).expect("failed to service irq"); in broadcast_eoi()
1052 let state = chip.get_ioapic_state().expect("failed to get ioapic state"); in broadcast_eoi()
1056 chip.broadcast_eoi(123).expect("failed to broadcast eoi"); in broadcast_eoi()
1059 let state = chip.get_ioapic_state().expect("failed to get ioapic state"); in broadcast_eoi()