Home
last modified time | relevance | path

Searched refs:length (Results 1 – 16 of 16) sorted by relevance

/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e.rs96 length: usize, field
100 pub fn new(length: usize) -> Self { in new()
101 assert!(length <= PAGE_SIZE); in new()
102 if unlikely(length == 0) { in new()
108 length: 0, in new()
115 length, in new()
122 assert!(self.length != 0); in as_addr()
128 assert!(self.length != 0); in as_addr_u64()
133 assert!(self.length != 0); in as_paddr()
139 assert!(self.length != 0); in as_slice()
[all …]
/DragonOS/kernel/src/mm/
H A Dmmio_buddy.rs531 pub fn release_mmio(&self, vaddr: VirtAddr, length: usize) -> Result<i32, SystemError> { in release_mmio()
533 assert!(length & (MMArch::PAGE_SIZE - 1) == 0); in release_mmio()
542 let page_count = length / MMArch::PAGE_SIZE; in release_mmio()
569 .give_back_block(vaddr, length.trailing_zeros()) in release_mmio()
668 pub unsafe fn map_phys(&self, paddr: PhysAddr, length: usize) -> Result<(), SystemError> { in map_phys()
669 if length > self.size { in map_phys()
683 let r = kernel_mapper.map_phys_with_size(self.vaddr, paddr, length, flags, true); in map_phys()
696 length: usize, in map_phys_with_flags()
699 if length > self.size { in map_phys_with_flags()
711 let r = kernel_mapper.map_phys_with_size(self.vaddr, paddr, length, flags, true); in map_phys_with_flags()
[all …]
H A Dmmio.h5 extern int rs_mmio_release(uint64_t vaddr, uint64_t length);
H A Dc_adapter.rs115 pub unsafe extern "C" fn rs_mmio_release(vaddr: u64, length: u64) -> i32 { in rs_mmio_release()
117 .release_mmio(VirtAddr::new(vaddr as usize), length as usize) in rs_mmio_release()
/DragonOS/kernel/src/arch/riscv64/include/asm/
H A Dasm.h60 bool verify_area(uint64_t addr_start, uint64_t length) { in verify_area() argument
/DragonOS/kernel/src/arch/x86_64/init/
H A Dmultiboot2.rs38 length: 0, in mb2_rsdp_v1_tag_to_rsdp_struct()
52 length: tag.length, in mb2_rsdp_v2_tag_to_rsdp_struct()
/DragonOS/kernel/src/arch/x86_64/include/asm/
H A Dasm.h69 bool verify_area(uint64_t addr_start, uint64_t length) in verify_area() argument
71 if ((addr_start + length) <= 0x00007fffffffffffUL) // 用户程序可用的的地址空间应<= 0x00007fffffffffffUL in verify_area()
/DragonOS/kernel/src/driver/virtio/
H A Dtransport_pci.rs162 length: pci_root_0().read_config( in new()
428 length: u32, field
526 if struct_info.offset + struct_info.length > bar_size in get_bar_region()
527 || size_of::<T>() > struct_info.length as usize in get_bar_region()
558 struct_info.length as usize / size_of::<T>(), in get_bar_region_slice()
/DragonOS/docs/kernel/memory_management/
H A Dmmio.md189 | mmio_release(vaddr, length) | 取消地址为vaddr,大小为length的mmio的映射并将其归还到buddy中 |
/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs26 pub fn zerod(length: usize) -> Self { in zerod()
31 result.data.resize(length, 0); in zerod()
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs980 fb_var.red.length = boottime_screen_info.red_size as u32; in vesa_fb_device_init()
981 fb_var.green.length = boottime_screen_info.green_size as u32; in vesa_fb_device_init()
982 fb_var.blue.length = boottime_screen_info.blue_size as u32; in vesa_fb_device_init()
994 fb_var.red.length = fb_var.bits_per_pixel; in vesa_fb_device_init()
995 fb_var.green.length = fb_var.bits_per_pixel; in vesa_fb_device_init()
996 fb_var.blue.length = fb_var.bits_per_pixel; in vesa_fb_device_init()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dmod.rs674 pub length: u32, field
681 pub fn new(offset: u32, length: u32, msb_right: bool) -> Self { in new()
684 length, in new()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs113 .length in mono_color()
114 .max(fb_info.current_fb_var().red.length); in mono_color()
116 max_len = max_len.max(fb_info.current_fb_var().blue.length); in mono_color()
/DragonOS/kernel/src/driver/acpi/
H A Dsysfs.rs165 size: header.length as usize, in new()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md608 * Some constants, such as the maximum length for programs or the length for the
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md2156 fix pci_irq.c - memory leak - wrong irq_name allocated length (#367)