Lines Matching refs:Some
87 if let Some(config) = fdt.node(cstr!("/config"))? { in read_kernel_range_from()
88 if let (Some(addr), Some(size)) = (config.getprop_u32(addr)?, config.getprop_u32(size)?) { in read_kernel_range_from()
92 return Ok(Some(addr..(addr + size))); in read_kernel_range_from()
105 if let Some(chosen) = fdt.chosen()? { in read_initrd_range_from()
106 if let (Some(start), Some(end)) = (chosen.getprop_u32(start)?, chosen.getprop_u32(end)?) { in read_initrd_range_from()
107 return Ok(Some((start as usize)..(end as usize))); in read_initrd_range_from()
125 if let Some(chosen) = fdt.chosen()? { in read_bootargs_from()
126 if let Some(bootargs) = chosen.getprop_str(cstr!("bootargs"))? { in read_bootargs_from()
130 return Ok(Some(copy)); in read_bootargs_from()
237 let Some(cpu_map) = fdt.node(cstr!("/cpus/cpu-map"))? else { in read_cpu_map_from() localVariable
244 let Some(cluster) = cpu_map.subnode(&name)? else { in read_cpu_map_from() localVariable
249 let Some(core) = cluster.subnode(&name)? else { in read_cpu_map_from() localVariable
260 Ok(Some(topology)) in read_cpu_map_from()
275 let opptable_info = if let Some(phandle) = opp_phandle {
278 Some(read_opp_info_from(node)?)
285 if let Some(ref cpu_map) = cpu_map {
292 cluster.cores[*core_idx] = Some(idx);
312 let Some(node) = nodes.next() else { in read_vcpufreq_info() localVariable
324 Ok(Some(VcpufreqInfo { addr: reg.addr, size })) in read_vcpufreq_info()
352 let Some(opptable) = opptable else { localVariable
364 while let Some(current) = next_subnode {
395 if let Some(cpu_capacity) = cpu.cpu_capacity { in patch_cpus()
401 while let Some(current) = next { in patch_cpus()
405 if let Some(topology) = topology { in patch_cpus()
409 if let Some(cluster) = cluster { in patch_cpus()
413 iter = if let Some(core_idx) = core { in patch_cpus()
438 if let Some(node) = fdt.node(cstr!("/avf/untrusted"))? { in parse_untrusted_props()
455 if let Some(avf_node) = fdt.node(cstr!("/avf"))? { in parse_vm_ref_dt()
493 if let Some(ref_value) = avf_node.getprop(name)? { in validate_vm_ref_dt()
543 Some(ret) in next()
615 let Some(bus_end) = bus_addr.checked_add(size) else { in validate_pci_addr_range() localVariable
766 while let Some(current) = next? { in patch_serial_info()
790 if let Some(align) = align.filter(|&a| a % GUEST_PAGE_SIZE != 0) { in validate_swiotlb_info()
795 if let Some(addr) = swiotlb_info.addr { in validate_swiotlb_info()
801 if let Some(range) = swiotlb_info.fixed_range() { in validate_swiotlb_info()
815 if let Some(range) = swiotlb_info.fixed_range() { in patch_swiotlb_info()
845 range1.size = Some(size); in patch_gic()
881 let avf_node = if let Some(node) = fdt.node_mut(cstr!("/avf"))? { in patch_untrusted_props()
905 if let Some(info) = vcpufreq_info { in patch_vcpufreq()
950 Some(vm_dtbo) => Some(VmDtbo::from_mut_slice(vm_dtbo).map_err(|e| { in sanitize_device_tree()
971 if let Some(device_assignment_info) = &info.device_assignment { in sanitize_device_tree()
988 if let Some(vm_ref_dt) = vm_ref_dt { in sanitize_device_tree()
1043 if let Some(ref info) = vcpufreq_info { in parse_device_tree()
1068 Some(vm_dtbo) => { in parse_device_tree()
1069 if let Some(hypervisor) = hyp::get_device_assigner() { in parse_device_tree()
1116 if let Some(initrd_range) = &info.initrd_range { in patch_device_tree()
1126 if let Some(bootargs) = &info.bootargs { in patch_device_tree()
1160 if let Some(device_assignment) = &info.device_assignment { in patch_device_tree()
1191 if let Some(debug_policy) = debug_policy { in modify_for_next_stage()
1208 if let Some(mut chosen) = fdt.chosen_mut()? { in modify_for_next_stage()
1214 if let Some(bootargs) = read_bootargs_from(fdt)? { in modify_for_next_stage()
1281 if let Some(node) = fdt.node(cstr!("/avf/guest/common"))? { in has_common_debug_policy()
1282 if let Some(value) = node.getprop_u32(debug_feature_name)? { in has_common_debug_policy()
1294 ("panic", Box::new(|v| if let Some(v) = v { v == "=-1" } else { false })), in filter_out_dangerous_bootargs()
1306 Some((_, pred)) if pred(arg.value()) => filtered.push(arg), in filter_out_dangerous_bootargs()