Searched refs:new_from_init (Results 1 – 2 of 2) sorted by relevance
212 pub fn new_from_init(mut fdt: T, init: &[u8]) -> Result<Self> { in new_from_init() method315 assert!(Fdt::new_from_init(&mut fdt_buf[..], &init[..init.len() - 1]).is_err()); in test_new_from_invalid_fdt()318 assert!(Fdt::new_from_init(&mut fdt_buf[..], &init[..]).is_err()); in test_new_from_invalid_fdt()325 let fdt = Fdt::new_from_init(&mut fdt_buf[..], &init[..]).unwrap(); in test_get_property()352 let mut fdt = Fdt::new_from_init(&mut fdt_buf[..], &init[..]).unwrap(); in test_set_property()362 let mut fdt = Fdt::new_from_init(&mut fdt_buf[..], &init[..]).unwrap(); in test_set_property_placeholder()392 let mut fdt = Fdt::new_from_init(&mut fdt_buf[..], &init[..]).unwrap(); in test_fdt_shrink_to_fit()
279 let mut fdt = Fdt::new_from_init(&mut load[..], fdt_bytes)?; in load_android_simple()