Searched refs:volwrite (Results 1 – 7 of 7) sorted by relevance
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_pci.rs | 15 volread, volwrite, ReadOnly, Volatile, VolatileReadable, VolatileWritable, WriteOnly, 246 volwrite!(self.common_cfg, device_feature_select, 0); in read_device_features() 248 volwrite!(self.common_cfg, device_feature_select, 1); in read_device_features() 258 volwrite!(self.common_cfg, driver_feature_select, 0); in write_driver_features() 259 volwrite!(self.common_cfg, driver_feature, driver_features as u32); in write_driver_features() 260 volwrite!(self.common_cfg, driver_feature_select, 1); in write_driver_features() 261 volwrite!( in write_driver_features() 271 volwrite!(self.common_cfg, queue_select, queue); in max_queue_size() 280 volwrite!(self.common_cfg, queue_select, queue); in notify() 294 volwrite!(self.common_cfg, device_status, status.bits() as u8); in set_status() [all …]
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e.rs | 264 volwrite!(interrupt_regs, imc, E1000E_IMC_CLEAR); in new() 266 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_RST); in new() 270 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_PHY_RST); in new() 271 volwrite!(general_regs, ctrl, ctrl); in new() 274 volwrite!(interrupt_regs, imc, E1000E_IMC_CLEAR); in new() 277 volwrite!(pcie_regs, gcr, gcr); in new() 283 volwrite!(general_regs, ctrl, ctrl | E1000E_CTRL_SLU); in new() 341 unsafe { volwrite!(mta, mta, 0) }; in new() 348 volwrite!(receive_regs, rdbal0, (recv_ring_pa) as u32); in new() 349 volwrite!(receive_regs, rdbah0, (recv_ring_pa >> 32) as u32); in new() [all …]
|
/DragonOS/kernel/src/driver/timers/hpet/ |
H A D | mod.rs | 47 volwrite!(p, main_counter_value, value); in write_main_counter_value() 58 volwrite!(p, general_config, value); in write_general_config()
|
/DragonOS/kernel/src/libs/ |
H A D | volatile.rs | 169 macro_rules! volwrite { macro 179 pub(crate) use volwrite;
|
/DragonOS/kernel/src/driver/pci/ |
H A D | pci_irq.rs | 20 use crate::libs::volatile::{volread, volwrite, Volatile}; 584 volwrite!(msix_entry, vector_control, 0); in msix_install() 585 volwrite!(msix_entry, msg_data, msg_data); in msix_install() 586 volwrite!(msix_entry, msg_upper_addr, 0); in msix_install() 587 volwrite!(msix_entry, msg_addr, msg_address); in msix_install() 706 volwrite!(msix_entry, vector_control, 0); in msix_uninstall() 707 volwrite!(msix_entry, msg_data, 0); in msix_uninstall() 708 volwrite!(msix_entry, msg_upper_addr, 0); in msix_uninstall() 709 volwrite!(msix_entry, msg_addr, 0); in msix_uninstall() 831 volwrite!(msix_entry, vector_control, 1); in msix_mask() [all …]
|
/DragonOS/kernel/src/arch/x86_64/driver/ |
H A D | hpet.rs | 27 volatile::volwrite, 144 volwrite!(timer_reg, config, 0x004c); in hpet_enable() 145 volwrite!(timer_reg, comparator_value, ticks); in hpet_enable()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | ioapic.rs | 24 volatile::{volwrite, Volatile}, 294 volwrite!(p, virt_eoi, irq_num as u32); in level_ack()
|