Lines Matching +full:half +full:- +full:bit
1 // SPDX-License-Identifier: GPL-2.0-only
52 __io_map_base -= size; in __pkvm_create_private_mapping()
53 addr = (unsigned long)ERR_PTR(-ENOMEM); in __pkvm_create_private_mapping()
112 return __pkvm_create_mappings(start, end - start, back, PAGE_HYP); in hyp_back_vmemmap()
135 return -EINVAL; in pkvm_cpu_set_vector()
175 * One half of the VA space is reserved to linearly map portions of in hyp_create_idmap()
176 * memory -- see va_layout.c for more details. The other half of the VA in hyp_create_idmap()
178 * second half in two and find the quarter of VA space not conflicting in hyp_create_idmap()
180 * half of the quarter and the vmemmap the upper half. in hyp_create_idmap()
182 __io_map_base = start & BIT(hyp_va_bits - 2); in hyp_create_idmap()
183 __io_map_base ^= BIT(hyp_va_bits - 2); in hyp_create_idmap()
184 __hyp_vmemmap = __io_map_base | BIT(hyp_va_bits - 3); in hyp_create_idmap()
186 return __pkvm_create_mappings(start, end - start, start, PAGE_HYP_EXEC); in hyp_create_idmap()