Lines Matching refs:vec
25 use alloc::vec;
26 use alloc::vec::Vec;
463 let mut phandles = vec![]; in collect_phandle_references_from_overlayable_nodes()
532 let mut removed = vec![]; in filter_dangling_symbols()
564 let mut stack = vec![mask]; in filter_with_mask()
655 let mut reg_cells = vec![]; in to_be_bytes()
697 let mut iommus = vec![]; in parse_iommus()
800 let mut iommus = vec![]; in parse_iommus()
983 let mut assigned_devices = vec![]; in internal_parse()
984 let mut assigned_device_paths = vec![]; in internal_parse()
1198 let mut iommus = vec![]; in parse()
1289 reg: vec![[0x9, 0xFF].into()], in device_info_assigned_info_without_iommus()
1290 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x4]), in device_info_assigned_info_without_iommus()
1291 iommus: vec![], in device_info_assigned_info_without_iommus()
1312 reg: vec![[0x9, 0xFF].into()], in device_info_assigned_info()
1313 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x4]), in device_info_assigned_info()
1314 iommus: vec![(PvIommu { id: 0x4 }, Vsid(0xFF0))], in device_info_assigned_info()
1363 let mut data = vec![0_u8; fdt_data.len() + vm_dtbo_data.len()]; in device_info_patch()
1387 let expected: Vec<(FdtResult<&CStr>, FdtResult<Vec<u8>>)> = vec![ in device_info_patch()
1390 (Ok(cstr!("interrupts")), Ok(into_fdt_prop(vec![0x0, 0xF, 0x4]))), in device_info_patch()
1392 (Ok(cstr!("phandle")), Ok(into_fdt_prop(vec![phandle.unwrap()]))), in device_info_patch()
1393 (Ok(cstr!("reg")), Ok(into_fdt_prop(vec![0x0, 0x9, 0x0, 0xFF]))), in device_info_patch()
1414 let mut data = vec![0_u8; fdt_data.len() + vm_dtbo_data.len()]; in device_info_patch_no_pviommus()
1469 reg: into_fdt_prop(vec![0x0, 0x9, 0x0, 0xFF]), in device_info_overlay_iommu()
1470 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x4]), in device_info_overlay_iommu()
1471 iommus: vec![0x4, 0xFF0], in device_info_overlay_iommu()
1478 assert_eq!(pviommus, Ok(vec![0x4])); in device_info_overlay_iommu()
1518 reg: into_fdt_prop(vec![0x0, 0x9, 0x0, 0xFF]), in device_info_multiple_devices_iommus()
1519 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x4]), in device_info_multiple_devices_iommus()
1520 iommus: vec![0x4, 0xFF0], in device_info_multiple_devices_iommus()
1524 reg: into_fdt_prop(vec![0x0, 0x10000, 0x0, 0x1000, 0x0, 0x20000, 0x0, 0x1000]), in device_info_multiple_devices_iommus()
1525 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x5]), in device_info_multiple_devices_iommus()
1526 iommus: vec![0x40, 0xFFA, 0x50, 0xFFB], in device_info_multiple_devices_iommus()
1535 assert_eq!(pviommus, Ok(vec![0x4, 0x40, 0x50])); in device_info_multiple_devices_iommus()
1565 reg: into_fdt_prop(vec![0x0, 0x9, 0x0, 0xFF]), in device_info_iommu_sharing()
1566 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x4]), in device_info_iommu_sharing()
1567 iommus: vec![0x4, 0xFF0], in device_info_iommu_sharing()
1571 reg: into_fdt_prop(vec![0x0, 0x1000, 0x0, 0x9]), in device_info_iommu_sharing()
1572 interrupts: into_fdt_prop(vec![0x0, 0xF, 0x5]), in device_info_iommu_sharing()
1573 iommus: vec![0x4, 0xFF1], in device_info_iommu_sharing()
1583 assert_eq!(pviommus, Ok(vec![0x4])); in device_info_iommu_sharing()