Home
last modified time | relevance | path

Searched refs:volwrite (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.9/kernel/src/driver/virtio/
Dtransport_pci.rs17 volread, volwrite, ReadOnly, Volatile, VolatileReadable, VolatileWritable, WriteOnly,
252 volwrite!(self.common_cfg, device_feature_select, 0); in read_device_features()
254 volwrite!(self.common_cfg, device_feature_select, 1); in read_device_features()
264 volwrite!(self.common_cfg, driver_feature_select, 0); in write_driver_features()
265 volwrite!(self.common_cfg, driver_feature, driver_features as u32); in write_driver_features()
266 volwrite!(self.common_cfg, driver_feature_select, 1); in write_driver_features()
267 volwrite!( in write_driver_features()
285 volwrite!(self.common_cfg, queue_select, queue); in notify()
299 volwrite!(self.common_cfg, device_status, status.bits() as u8); in set_status()
320 volwrite!(self.common_cfg, queue_select, queue); in queue_set()
[all …]
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e.rs265 volwrite!(interrupt_regs, imc, E1000E_IMC_CLEAR); in new()
267 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_RST); in new()
271 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_PHY_RST); in new()
272 volwrite!(general_regs, ctrl, ctrl); in new()
275 volwrite!(interrupt_regs, imc, E1000E_IMC_CLEAR); in new()
278 volwrite!(pcie_regs, gcr, gcr); in new()
284 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_SLU); in new()
342 unsafe { volwrite!(mta, mta, 0) }; in new()
349 volwrite!(receive_regs, rdbal0, (recv_ring_pa) as u32); in new()
350 volwrite!(receive_regs, rdbah0, (recv_ring_pa >> 32) as u32); in new()
[all …]
/DragonOS-0.1.9/kernel/src/driver/timers/hpet/
Dmod.rs47 volwrite!(p, main_counter_value, value); in write_main_counter_value()
58 volwrite!(p, general_config, value); in write_general_config()
/DragonOS-0.1.9/kernel/src/libs/
Dvolatile.rs169 macro_rules! volwrite { macro
179 pub(crate) use volwrite;
/DragonOS-0.1.9/kernel/src/driver/pci/
Dpci_irq.rs19 use crate::libs::volatile::{volread, volwrite, Volatile};
579 volwrite!(msix_entry, vector_control, 0); in msix_install()
580 volwrite!(msix_entry, msg_data, msg_data); in msix_install()
581 volwrite!(msix_entry, msg_upper_addr, 0); in msix_install()
582 volwrite!(msix_entry, msg_addr, msg_address); in msix_install()
693 volwrite!(msix_entry, vector_control, 0); in msix_uninstall()
694 volwrite!(msix_entry, msg_data, 0); in msix_uninstall()
695 volwrite!(msix_entry, msg_upper_addr, 0); in msix_uninstall()
696 volwrite!(msix_entry, msg_addr, 0); in msix_uninstall()
818 volwrite!(msix_entry, vector_control, 1); in msix_mask()
[all …]
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/
Dhpet.rs28 volatile::volwrite,
136 volwrite!(timer_reg, config, 0x004c); in hpet_enable()
137 volwrite!(timer_reg, comparator_value, ticks); in hpet_enable()
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/
Dioapic.rs24 volatile::{volwrite, Volatile},
294 volwrite!(p, virt_eoi, irq_num as u32); in level_ack()