Searched refs:from_bytes (Results 1 – 6 of 6) sorted by relevance
227 let mac = smoltcp::wire::EthernetAddress::from_bytes(&driver_net.mac_address()); in virtio_net()248 return smoltcp::wire::EthernetAddress::from_bytes(&mac); in mac()
235 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()
174 pub fn from_bytes(bytes: usize) -> Option<Self> { in from_bytes() method
267 PageFrameCount::from_bytes(len).unwrap(), in map_anonymous()525 PageFrameCount::from_bytes(unmap_len).unwrap(), in set_brk()
461 let random_size = PageFrameCount::from_bytes(random_size.next_power_of_two()).unwrap(); in test_buddy()
497 let ip: wire::IpAddress = wire::IpAddress::from(wire::Ipv4Address::from_bytes( in to_endpoint()