Lines Matching refs:cstr

40 macro_rules! cstr {  macro
331 .getprop_str(cstr!("target-path"))? in locate_overlay_target_path()
333 if target_path != cstr!("/") { in locate_overlay_target_path()
402 let Some(physical_node) = self.as_ref().node(cstr!("/host"))? else { in parse_physical_devices()
446 let Some(local_fixups) = vm_dtbo.node(cstr!("/__local_fixups__"))? else { in collect_phandle_references_from_overlayable_nodes()
603 .getprop_u32(cstr!("#iommu-cells"))? in parse()
610 let id = node.getprop_u32(cstr!("id"))?.ok_or(DeviceAssignmentError::InvalidPvIommu)?; in parse()
670 let Some(token) = node.getprop_u64(cstr!("android,pvmfw,token"))? else { in parse()
673 let Some(iommu_cells) = node.getprop_u32(cstr!("#iommu-cells"))? else { in parse()
698 let Some(mut cells) = node.getprop_cells(cstr!("iommus"))? else { in parse_iommus()
718 let Some(phandle) = node.getprop_u32(cstr!("android,pvmfw,target"))? else { in parse()
784 .getprop_cells(cstr!("interrupts"))? in parse_interrupts()
792 Ok(node.getprop(cstr!("interrupts")).unwrap().unwrap().into()) in parse_interrupts()
801 let Some(mut cells) = node.getprop_cells(cstr!("iommus"))? else { in parse_iommus()
888 dst.setprop(cstr!("reg"), &to_be_bytes(&self.reg))?; in patch()
889 dst.setprop(cstr!("interrupts"), &self.interrupts)?; in patch()
896 dst.setprop(cstr!("iommus"), &iommus)?; in patch()
910 const PVIOMMU_COMPATIBLE: &'static CStr = cstr!("pkvm,pviommu");
1013 vm_dtbo_mask.mask_all(&DtPathTokens::new(cstr!("/__local_fixups__"))?); in internal_parse()
1014 vm_dtbo_mask.mask_all(&DtPathTokens::new(cstr!("/__symbols__"))?); in internal_parse()
1027 if let Some(local_fixups) = vm_dtbo.node_mut(cstr!("/__local_fixups__"))? { in filter()
1045 node.setprop_inplace(cstr!("id"), &pviommu.id.to_be_bytes())?; in patch_pviommus()
1075 let mut compatible = fdt.root_mut().next_compatible(cstr!("pkvm,pviommu"))?; in clean()
1078 compatible = filtered_pviommu.delete_and_next_compatible(cstr!("pkvm,pviommu"))?; in clean()
1194 let reg = node.getprop(cstr!("reg"))?.ok_or(DeviceAssignmentError::MalformedReg)?; in parse()
1196 .getprop(cstr!("interrupts"))? in parse()
1199 if let Some(mut cells) = node.getprop_cells(cstr!("iommus"))? { in parse()
1206 let compatible = pviommu.getprop_str(cstr!("compatible")); in parse()
1207 if compatible != Ok(Some(cstr!("pkvm,pviommu"))) { in parse()
1211 .getprop_u32(cstr!("id"))? in parse()
1228 for pviommu in fdt.compatible_nodes(cstr!("pkvm,pviommu"))? { in collect_pviommus()
1229 if let Ok(Some(id)) = pviommu.getprop_u32(cstr!("id")) { in collect_pviommus()
1338 let rng = vm_dtbo.node(cstr!("/fragment@0/__overlay__/rng")).unwrap(); in device_info_filter()
1340 let rng_symbol = symbols.getprop_str(cstr!("rng")).unwrap(); in device_info_filter()
1341 assert_eq!(Some(cstr!("/fragment@0/__overlay__/rng")), rng_symbol); in device_info_filter()
1343 let light = vm_dtbo.node(cstr!("/fragment@0/__overlay__/light")).unwrap(); in device_info_filter()
1345 let light_symbol = symbols.getprop_str(cstr!("light")).unwrap(); in device_info_filter()
1348 let led = vm_dtbo.node(cstr!("/fragment@0/__overlay__/led")).unwrap(); in device_info_filter()
1350 let led_symbol = symbols.getprop_str(cstr!("led")).unwrap(); in device_info_filter()
1353 let backlight = vm_dtbo.node(cstr!("/fragment@0/__overlay__/bus0/backlight")).unwrap(); in device_info_filter()
1355 let backlight_symbol = symbols.getprop_str(cstr!("backlight")).unwrap(); in device_info_filter()
1381 let rng_node = platform_dt.node(cstr!("/bus0/backlight")).unwrap().unwrap(); in device_info_patch()
1382 let phandle = rng_node.getprop_u32(cstr!("phandle")).unwrap(); in device_info_patch()
1388 (Ok(cstr!("android,backlight,ignore-gctrl-reset")), Ok(Vec::new())), in device_info_patch()
1389 (Ok(cstr!("compatible")), Ok(Vec::from(*b"android,backlight\0"))), in device_info_patch()
1390 (Ok(cstr!("interrupts")), Ok(into_fdt_prop(vec![0x0, 0xF, 0x4]))), in device_info_patch()
1391 (Ok(cstr!("iommus")), Ok(Vec::new())), 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()
1432 let compatible = platform_dt.root().next_compatible(cstr!("pkvm,pviommu")).unwrap(); in device_info_patch_no_pviommus()
1719 let compatible = platform_dt.root().next_compatible(cstr!("pkvm,pviommu")); in device_assignment_clean()
1724 let compatible = platform_dt.root().next_compatible(cstr!("pkvm,pviommu")); in device_assignment_clean()