Lines Matching refs:FdtError

38 use libfdt::FdtError;
118 let mut node = fdt.chosen_mut()?.ok_or(FdtError::NotFound)?; in patch_initrd_range()
129 let copy = CString::new(bootargs.to_bytes()).map_err(|_| FdtError::BadValue)?; in read_bootargs_from()
137 let mut node = fdt.chosen_mut()?.ok_or(FdtError::NotFound)?; in patch_bootargs()
185 .ok_or(FdtError::NotFound)? in patch_memory_range()
205 let prop = subnode.getprop_u64(cstr!("opp-hz"))?.ok_or(FdtError::NotFound)?;
252 let cpu = core.getprop_u32(cstr!("cpu"))?.ok_or(FdtError::NotFound)?; in read_cpu_map_from()
255 return Err(FdtError::BadValue); in read_cpu_map_from()
277 let node = fdt.node_with_phandle(phandle)?.ok_or(FdtError::NotFound)?;
286 let phandle = cpu.get_phandle()?.ok_or(FdtError::NotFound)?;
287 let (cluster, core_idx) = cpu_map.get(&phandle).ok_or(FdtError::BadValue)?;
290 return Err(FdtError::BadValue);
320 let mut regs = node.reg()?.ok_or(FdtError::NotFound)?; in read_vcpufreq_info()
321 let reg = regs.next().ok_or(FdtError::NotFound)?; in read_vcpufreq_info()
322 let size = reg.size.ok_or(FdtError::NotFound)?; in read_vcpufreq_info()
350 let next = node.next_compatible(oppcompat)?.ok_or(FdtError::NoSpace)?;
359 let mut subnode = next_subnode.ok_or(FdtError::NoSpace)?;
379 node = node.ok_or(FdtError::NoSpace)?.next_compatible(compat)?; in get_nth_compatible()
392 let mut cur = get_nth_compatible(fdt, idx, COMPAT)?.ok_or(FdtError::NoSpace)?; in patch_cpus()
460 CString::new(name.to_bytes()).map_err(|_| FdtError::BadValue)?, in parse_vm_ref_dt()
491 let avf_node = vm_ref_dt.node(cstr!("/avf"))?.ok_or(FdtError::NotFound)?; in validate_vm_ref_dt()
500 return Err(FdtError::BadValue); in validate_vm_ref_dt()
550 fdt.compatible_nodes(cstr!("pci-host-cam-generic"))?.next().ok_or(FdtError::NotFound)?; in read_pci_info_from()
552 let mut ranges = node.ranges::<(u32, u64), u64, u64>()?.ok_or(FdtError::NotFound)?; in read_pci_info_from()
553 let range0 = ranges.next().ok_or(FdtError::NotFound)?; in read_pci_info_from()
554 let range1 = ranges.next().ok_or(FdtError::NotFound)?; in read_pci_info_from()
556 let irq_masks = node.getprop_cells(cstr!("interrupt-map-mask"))?.ok_or(FdtError::NotFound)?; in read_pci_info_from()
562 return Err(FdtError::NoSpace); in read_pci_info_from()
565 let irq_maps = node.getprop_cells(cstr!("interrupt-map"))?.ok_or(FdtError::NotFound)?; in read_pci_info_from()
571 return Err(FdtError::NoSpace); in read_pci_info_from()
724 fdt.root_mut().next_compatible(cstr!("pci-host-cam-generic"))?.ok_or(FdtError::NotFound)?; in patch_pci_info()
768 current.as_node().reg()?.ok_or(FdtError::NotFound)?.next().ok_or(FdtError::NotFound)?; in patch_serial_info()
813 fdt.root_mut().next_compatible(cstr!("restricted-dma-pool"))?.ok_or(FdtError::NotFound)?; in patch_swiotlb_info()
833 let node = fdt.compatible_nodes(cstr!("arm,gic-v3"))?.next().ok_or(FdtError::NotFound)?; in patch_gic()
834 let mut ranges = node.reg()?.ok_or(FdtError::NotFound)?; in patch_gic()
835 let range0 = ranges.next().ok_or(FdtError::NotFound)?; in patch_gic()
836 let mut range1 = ranges.next().ok_or(FdtError::NotFound)?; in patch_gic()
852 fdt.root_mut().next_compatible(cstr!("arm,gic-v3"))?.ok_or(FdtError::NotFound)?; in patch_gic()
859 let node = fdt.compatible_nodes(cstr!("arm,armv8-timer"))?.next().ok_or(FdtError::NotFound)?; in patch_timer()
860 let interrupts = node.getprop_cells(cstr!("interrupts"))?.ok_or(FdtError::NotFound)?; in patch_timer()
876 fdt.root_mut().next_compatible(cstr!("arm,armv8-timer"))?.ok_or(FdtError::NotFound)?; in patch_timer()
1228 let node = fdt.node_mut(cstr!("/reserved-memory"))?.ok_or(libfdt::FdtError::NotFound)?; in patch_dice_node()
1230 let mut node = node.next_compatible(cstr!("google,open-dice"))?.ok_or(FdtError::NotFound)?; in patch_dice_node()
1247 .or_else(|e| if e == FdtError::NotFound { Ok(()) } else { Err(e) }) in empty_or_delete_prop()
1303 FdtError::BadValue in filter_out_dangerous_bootargs()
1321 let mut node = fdt.chosen_mut()?.ok_or(FdtError::NotFound)?; in filter_out_dangerous_bootargs()