Home
last modified time | relevance | path

Searched refs:irqfd (Results 1 – 10 of 10) sorted by relevance

/external/crosvm/devices/src/pci/
Dmsix.rs47 irqfd: Event, field
237 let irqfd = Event::new().unwrap(); in msix_enable() localVariable
238 let request = VmIrqRequest::AllocateOneMsi { irqfd }; in msix_enable()
253 irqfd: match request { in msix_enable()
254 VmIrqRequest::AllocateOneMsi { irqfd } => irqfd, in msix_enable()
471 irq.irqfd.write(1).unwrap(); in inject_msix_and_clear_pba()
497 irq.irqfd.write(1).unwrap(); in trigger()
512 Some(irq) => Some(&irq.irqfd), in get_irqfd()
Dvfio_pci.rs130 irqfd: Option<Event>, field
146 irqfd: None, in new()
254 let irqfd = match self.irqfd.take() { in allocate_one_msi() localVariable
265 let request = VmIrqRequest::AllocateOneMsi { irqfd }; in allocate_one_msi()
269 self.irqfd = match request { in allocate_one_msi()
270 VmIrqRequest::AllocateOneMsi { irqfd } => Some(irqfd), in allocate_one_msi()
286 if self.gsi.is_none() || self.irqfd.is_none() { in enable()
294 self.irqfd.as_ref() in get_msi_irqfd()
412 let irqfd = self.config.get_irqfd(i as usize); in get_msix_irqfds() localVariable
413 if let Some(fd) = irqfd { in get_msix_irqfds()
[all …]
/external/crosvm/devices/src/virtio/vhost/
Dworker.rs212 if let Some(irqfd) = msix_config.get_irqfd(vector) { in set_vring_call_for_entry()
214 .set_vring_call(queue_index, irqfd) in set_vring_call_for_entry()
245 if let Some(irqfd) = msix_config.get_irqfd(vector) { in set_vring_calls()
247 .set_vring_call(queue_index, irqfd) in set_vring_calls()
/external/crosvm/devices/src/
Dpit.rs926 irqfd: Event, field
1009 let irqfd = Event::new().unwrap(); in set_up() localVariable
1012 pit: Pit::new(irqfd.try_clone().unwrap(), clock.clone()).unwrap(), in set_up()
1013 irqfd, in set_up()
1183 assert_eq!(data.irqfd.read().unwrap(), 1); in interrupt_mode()
1200 assert_eq!(data.irqfd.read().unwrap(), 1); in rate_gen_mode()
1204 assert_eq!(data.irqfd.read().unwrap(), 1); in rate_gen_mode()
1208 assert_eq!(data.irqfd.read().unwrap(), 1); in rate_gen_mode()
/external/crosvm/devices/src/virtio/vhost/user/
Dhandler.rs181 let irqfd = msix_config in activate_vring() localVariable
185 .set_vring_call(queue_index, &irqfd.0) in activate_vring()
/external/crosvm/arch/src/
Dlib.rs360 let irqfd = Event::new().map_err(DeviceRegistrationError::EventCreate)?; in generate_pci_root() localVariable
381 .register_irq_event(irq_num, &irqfd, Some(&irq_resample_fd)) in generate_pci_root()
384 keep_rds.push(irqfd.as_raw_descriptor()); in generate_pci_root()
386 device.assign_irq(irqfd, irq_resample_fd, irq_num, pci_irq_pin); in generate_pci_root()
/external/crosvm/hypervisor/src/kvm/
Dmod.rs263 let mut irqfd = kvm_irqfd { in register_irqfd() localVariable
270 irqfd.flags = KVM_IRQFD_FLAG_RESAMPLE; in register_irqfd()
271 irqfd.resamplefd = r_evt.as_raw_descriptor() as u32; in register_irqfd()
276 let ret = unsafe { ioctl_with_ref(self, KVM_IRQFD(), &irqfd) }; in register_irqfd()
290 let irqfd = kvm_irqfd { in unregister_irqfd() localVariable
298 let ret = unsafe { ioctl_with_ref(self, KVM_IRQFD(), &irqfd) }; in unregister_irqfd()
/external/crosvm/devices/src/irqchip/
Dioapic.rs384 let request = VmIrqRequest::AllocateOneMsi { irqfd: event }; in setup_msi()
397 VmIrqRequest::AllocateOneMsi { irqfd } => irqfd, in setup_msi()
/external/crosvm/vm_control/src/
Dlib.rs487 AllocateOneMsi { irqfd: Event },
519 AllocateOneMsi { ref irqfd } => { in execute()
521 match set_up_irq(IrqSetup::Event(irq_num, &irqfd)) { in execute()
/external/crosvm/kvm/src/
Dlib.rs759 let irqfd = kvm_irqfd { in register_irqfd_resample() localVariable
768 let ret = unsafe { ioctl_with_ref(self, KVM_IRQFD(), &irqfd) }; in register_irqfd_resample()
788 let irqfd = kvm_irqfd { in unregister_irqfd() localVariable
796 let ret = unsafe { ioctl_with_ref(self, KVM_IRQFD(), &irqfd) }; in unregister_irqfd()