Lines Matching refs:Err
45 Err(_) => panic!("string contains interior NUL"),
173 Err(_) => list.entry(token), in fmt()
183 return Err(DeviceAssignmentError::UnsupportedPathFormat); in new()
195 return Err(DeviceAssignmentError::InvalidDtbo); in to_overlay_target_path()
334 return Err(DeviceAssignmentError::UnsupportedOverlayTarget); in locate_overlay_target_path()
351 return Err(FdtError::BadPhandle.into()); in parse_physical_iommus()
361 return Err(DeviceAssignmentError::DuplicatedIommuIds); in validate_physical_iommus()
376 return Err(DeviceAssignmentError::UnsupportedIommusDuplication); in validate_physical_devices()
393 return Err(DeviceAssignmentError::InvalidDtbo); in parse_physical_devices_with_iommus()
456 return Err(DeviceAssignmentError::Internal); in collect_phandle_references_from_overlayable_nodes()
467 .or(Err(DeviceAssignmentError::InvalidDtbo))? in collect_phandle_references_from_overlayable_nodes()
471 return Err(DeviceAssignmentError::InvalidDtbo); in collect_phandle_references_from_overlayable_nodes()
476 fixup_prop_cell.try_into().or(Err(DeviceAssignmentError::InvalidDtbo))?, in collect_phandle_references_from_overlayable_nodes()
479 .or(Err(DeviceAssignmentError::InvalidDtbo))?; in collect_phandle_references_from_overlayable_nodes()
481 return Err(DeviceAssignmentError::InvalidDtbo); in collect_phandle_references_from_overlayable_nodes()
490 .or(Err(DeviceAssignmentError::InvalidDtbo))?; in collect_phandle_references_from_overlayable_nodes()
505 return Err(DeviceAssignmentError::Internal); in build_mask()
571 return Err(DeviceAssignmentError::Internal); in filter_with_mask()
608 return Err(DeviceAssignmentError::InvalidPvIommu); in parse()
674 return Err(DeviceAssignmentError::InvalidPhysIommu); in parse()
679 return Err(DeviceAssignmentError::UnsupportedPhysIommu); in parse()
704 Phandle::try_from(cell).or(Err(DeviceAssignmentError::MalformedIommus))?; in parse_iommus()
709 return Err(DeviceAssignmentError::MalformedIommus); in parse_iommus()
755 return Err(DeviceAssignmentError::InvalidReg(reg.addr, reg.size)); in validate_reg()
765 return Err(DeviceAssignmentError::InvalidPhysReg(addr, reg.size)); in validate_reg()
770 return Err(DeviceAssignmentError::InvalidReg(*addr, *size)); in validate_reg()
774 return Err(DeviceAssignmentError::InvalidPhysReg(*addr, *size)); in validate_reg()
788 return Err(DeviceAssignmentError::InvalidInterrupts); in parse_interrupts()
807 Phandle::try_from(cell).or(Err(DeviceAssignmentError::MalformedIommus))?; in parse_iommus()
812 return Err(DeviceAssignmentError::MalformedIommus); in parse_iommus()
827 return Err(DeviceAssignmentError::InvalidIommus); in validate_iommus()
846 return Err(DeviceAssignmentError::InvalidIommus); in validate_iommus()
922 return Err(FdtError::BadPhandle.into()); in parse_pviommus()
934 return Err(DeviceAssignmentError::UnsupportedPvIommusDuplication); in validate_pviommu_topology()
978 return Err(DeviceAssignmentError::DuplicatedPvIommuIds); in internal_parse()
988 .or(Err(DeviceAssignmentError::InvalidSymbols))?; in internal_parse()
1047 return Err(DeviceAssignmentError::Internal); in patch_pviommus()
1191 return Err(FdtError::NotFound.into()); in parse()
1208 return Err(DeviceAssignmentError::MalformedIommus); in parse()
1217 return Err(DeviceAssignmentError::MalformedIommus); in parse()
1599 assert_eq!(device_info, Err(DeviceAssignmentError::DuplicatedPvIommuIds)); in device_info_iommu_id_conflict()
1615 assert_eq!(device_info, Err(DeviceAssignmentError::InvalidReg(0x9, 0xFF))); in device_info_invalid_reg()
1631 assert_eq!(device_info, Err(DeviceAssignmentError::InvalidPhysReg(0xF10000, 0x1000))); in device_info_invalid_reg_out_of_order()
1647 assert_eq!(device_info, Err(DeviceAssignmentError::InvalidIommus)); in device_info_invalid_iommus()
1663 assert_eq!(device_info, Err(DeviceAssignmentError::DuplicatedPvIommuIds)); in device_info_duplicated_pv_iommus()
1679 assert_eq!(device_info, Err(DeviceAssignmentError::UnsupportedIommusDuplication)); in device_info_duplicated_iommus()
1695 assert_eq!(device_info, Err(DeviceAssignmentError::InvalidIommus)); in device_info_duplicated_iommu_mapping()
1711 assert_eq!(device_info, Err(DeviceAssignmentError::InvalidReg(0x7fee0000, 0x1000))); in device_info_overlaps_pvmfw()