Home
last modified time | relevance | path

Searched refs:from_bytes (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs227 let mac = smoltcp::wire::EthernetAddress::from_bytes(&driver_net.mac_address()); in virtio_net()
248 return smoltcp::wire::EthernetAddress::from_bytes(&mac); in mac()
/DragonOS-0.1.8/kernel/src/libs/
Delf.rs235 PageFrameCount::from_bytes(to_unmap_size).unwrap(), in load_elf_segment()
248 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
274 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dpage_frame.rs174 pub fn from_bytes(bytes: usize) -> Option<Self> { in from_bytes() method
/DragonOS-0.1.8/kernel/src/mm/
Ducontext.rs267 PageFrameCount::from_bytes(len).unwrap(), in map_anonymous()
525 PageFrameCount::from_bytes(unmap_len).unwrap(), in set_brk()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs461 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs497 let ip: wire::IpAddress = wire::IpAddress::from(wire::Ipv4Address::from_bytes( in to_endpoint()