Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 164) sorted by relevance

1234567

/xen/xen/include/asm-x86/
A Dmsr.h135 unsigned long base; in __rdfsbase() local
143 return base; in __rdfsbase()
148 unsigned long base; in __rdgsbase() local
156 return base; in __rdgsbase()
161 unsigned long base; in rdfsbase() local
168 return base; in rdfsbase()
173 unsigned long base; in rdgsbase() local
180 return base; in rdgsbase()
185 unsigned long base; in rdgsshadow() local
190 base = __rdgsbase(); in rdgsshadow()
[all …]
A Dmsi.h150 #define msi_control_reg(base) (base + PCI_MSI_FLAGS) argument
151 #define msi_lower_address_reg(base) (base + PCI_MSI_ADDRESS_LO) argument
152 #define msi_upper_address_reg(base) (base + PCI_MSI_ADDRESS_HI) argument
153 #define msi_data_reg(base, is64bit) \ argument
154 ( (is64bit == 1) ? base+PCI_MSI_DATA_64 : base+PCI_MSI_DATA_32 )
155 #define msi_mask_bits_reg(base, is64bit) \ argument
156 ( (is64bit == 1) ? base+PCI_MSI_MASK_BIT : base+PCI_MSI_MASK_BIT-4)
157 #define msi_pending_bits_reg(base, is64bit) \ argument
169 #define msix_control_reg(base) (base + PCI_MSIX_FLAGS) argument
170 #define msix_table_offset_reg(base) (base + PCI_MSIX_TABLE) argument
[all …]
A Dmtrr.h47 uint64_t base; member
69 extern int mtrr_add(unsigned long base, unsigned long size,
71 extern int mtrr_add_page(unsigned long base, unsigned long size,
73 extern int mtrr_del(int reg, unsigned long base, unsigned long size);
74 extern int mtrr_del_page(int reg, unsigned long base, unsigned long size);
/xen/xen/common/
A Dsort.c44 void sort(void *base, size_t num, size_t size, in sort() argument
60 if ( (c < n - size) && (cmp(base + c, base + c + size) < 0) ) in sort()
62 if ( cmp(base + r, base + c) >= 0 ) in sort()
64 swap(base + r, base + c, size); in sort()
71 swap(base, base + i, size); in sort()
75 if ( (c < i - size) && (cmp(base + c, base + c + size) < 0) ) in sort()
77 if ( cmp(base + r, base + c) >= 0 ) in sort()
79 swap(base + r, base + c, size); in sort()
A Dvsprintf.c38 if (!base) { in simple_strtoul()
39 base = 10; in simple_strtoul()
41 base = 8; in simple_strtoul()
45 base = 16; in simple_strtoul()
90 if (!base) { in simple_strtoull()
91 base = 10; in simple_strtoull()
93 base = 8; in simple_strtoull()
156 ASSERT(base >= 2 && base <= 36); in number()
557 int base; in vsnprintf() local
643 base = 10; in vsnprintf()
[all …]
A Dbsearch.c32 void *bsearch(const void *key, const void *base, size_t num, size_t size, in bsearch() argument
41 result = cmp(key, base + mid * size); in bsearch()
47 return (void *)base + mid * size; in bsearch()
/xen/tools/firmware/hvmloader/
A Dcacheattr.c99 uint64_t base = pci_mem_start, size; in cacheattr_init() local
101 for ( i = 0; !(base >> 32) && (i < nr_var_ranges); i++ ) in cacheattr_init()
104 while ( !(base & size) ) in cacheattr_init()
106 while ( ((base + size) < base) || ((base + size - 1) >> 32) ) in cacheattr_init()
109 wrmsr(MSR_MTRRphysBase(i), base); in cacheattr_init()
112 base += size; in cacheattr_init()
115 for ( base = pci_hi_mem_start; in cacheattr_init()
119 while ( !(base & size) ) in cacheattr_init()
121 while ( (base + size < base) || (base + size > pci_hi_mem_end) ) in cacheattr_init()
124 wrmsr(MSR_MTRRphysBase(i), base); in cacheattr_init()
[all …]
A Dpci.c57 static int find_next_rmrr(uint32_t base) in find_next_rmrr() argument
90 uint64_t base, max; in pci_setup() member
419 mem_resource.base = pci_mem_start; in pci_setup()
421 io_resource.base = 0xc000; in pci_setup()
459 high_mem_resource.base = high_mem_resource.base - in pci_setup()
478 base = (resource->base + bar_sz - 1) & ~(uint64_t)(bar_sz - 1); in pci_setup()
492 base = (base + bar_sz - 1) & ~(bar_sz - 1); in pci_setup()
497 bar_data |= (uint32_t)base; in pci_setup()
499 base += bar_sz; in pci_setup()
501 if ( (base < resource->base) || (base > resource->max) ) in pci_setup()
[all …]
A Dhvmloader.c127 uint32_t base; in init_hypercalls() local
129 for ( base = 0x40000000; base < 0x40010000; base += 0x100 ) in init_hypercalls()
131 cpuid(base, &eax, &ebx, &ecx, &edx); in init_hypercalls()
142 BUG_ON(strcmp("XenVMMXenVMM", signature) || ((eax - base) < 2)); in init_hypercalls()
145 cpuid(base + 2, &eax, &ebx, &ecx, &edx); in init_hypercalls()
150 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in init_hypercalls()
A Dutil.c236 if (d >= base) in __digit()
268 if ( base != 0 && base != 16) goto out; in strtoll()
269 base = 16; in strtoll()
272 if ( base != 0 && base != 8) goto out; in strtoll()
273 base = 8; in strtoll()
276 if (base != 0 && base != 10) goto out; in strtoll()
277 base = 10; in strtoll()
281 int d = __digit(*s, base); in strtoll()
285 v = (v * base) + d; in strtoll()
550 if ( (n = num/base) > 0 ) in printnum()
[all …]
/xen/xen/arch/x86/cpu/mtrr/
A Dmain.c224 data.smp_base = base; in set_mtrr()
256 mtrr_if->set(reg,base,size,type); in set_mtrr()
342 if ((base | (base + size - 1)) >> (paddr_bits - PAGE_SHIFT)) { in mtrr_add_page()
354 if (!lsize || base > lbase + lsize - 1 || base + size - 1 < lbase) in mtrr_add_page()
357 if (base < lbase || base + size - 1 > lbase + lsize - 1) { in mtrr_add_page()
358 if (base <= lbase && base + size - 1 >= lbase + lsize - 1) { in mtrr_add_page()
378 base, size, mtrr_attrib_to_str(ltype), in mtrr_add_page()
390 set_mtrr(i, base, size, type); in mtrr_add_page()
461 if (mtrr_check(base, size)) in mtrr_add()
498 if (lbase == base && lsize == size) { in mtrr_del_page()
[all …]
A Dgeneric.c158 last_fixed_start = base; in update_fixed_last()
170 update_fixed_last(base, base + step, *types); in print_fixed()
174 last_fixed_end = base + step; in print_fixed()
179 update_fixed_last(base, base + step, *types); in print_fixed()
200 base += 8 * step; in print_mtrr_state()
320 *base = 0; in generic_get_mtrr()
334 *base = _base >> PAGE_SHIFT; in generic_get_mtrr()
367 base_lo = (uint32_t)vr->base; in set_mtrr_var_ranges()
582 if (!(base + size < 0x70000 || base > 0x7003F) && in generic_validate_add_page()
592 last = base + size - 1; in generic_validate_add_page()
[all …]
A Dmtrr.h14 void (*set)(unsigned int reg, unsigned long base,
18 void (*get)(unsigned int reg, unsigned long *base,
20 int (*get_free_region)(unsigned long base, unsigned long size,
22 int (*validate_add_page)(unsigned long base, unsigned long size,
27 extern int generic_get_free_region(unsigned long base, unsigned long size,
29 extern int generic_validate_add_page(unsigned long base, unsigned long size,
/xen/tools/hotplug/Linux/init.d/
A Dxen-watchdog.in23 base=$(basename $DAEMON)
51 [ "$r" -eq 0 ] && success $"$base startup" || failure $"$base startup"
61 killall -USR1 $base 2>/dev/null
63 [ "$r" -eq 0 ] && success $"$base stop" || failure $"$base stop"
/xen/xen/drivers/passthrough/amd/
A Diommu_acpi.c133 iommu->exclusion_base = base; in reserve_iommu_exclusion_range()
157 new_top = base + length; in reserve_unity_map_for_device()
162 length = new_top - base; in reserve_unity_map_for_device()
185 if ( base < iommu_top ) in register_exclusion_range_for_all_devices()
189 length = range_top - base; in register_exclusion_range_for_all_devices()
195 base = iommu_top; in register_exclusion_range_for_all_devices()
227 if ( base < iommu_top ) in register_exclusion_range_for_device()
238 base = iommu_top; in register_exclusion_range_for_device()
264 if ( base < iommu_top ) in register_exclusion_range_for_iommu_devices()
284 base = iommu_top; in register_exclusion_range_for_iommu_devices()
[all …]
/xen/xen/include/asm-arm/
A Ddiv64.h27 # define do_div(n,base) ({ \ argument
28 uint32_t __base = (base); \
45 #define __do_div_asm(n, base) \ argument
47 register unsigned int __base asm("r4") = base; \
73 #define do_div(n, base) __do_div_asm(n, base) argument
87 #define do_div(n, base) \ argument
89 unsigned int __r, __b = (base); \
A Dshort-desc.h45 unsigned int base:12; /* Section base address */ member
68 unsigned int base:8; /* Supersection base address */ member
85 unsigned int base:20; /* Small page base address */ member
104 unsigned int base:16; /* Large page base address */ member
114 unsigned int base:22; /* Base address of block or next table */ member
/xen/xen/arch/x86/pv/
A Demul-gate-op.c94 unsigned long base, limit; member
110 addr += goc->cs.base; in read_mem()
172 unsigned long off, base, limit; in pv_emulate_gate_op() local
196 if ( !pv_emul_read_descriptor(regs->cs, v, &ctxt.cs.base, &ctxt.cs.limit, in pv_emulate_gate_op()
242 base = x86_insn_operand_ea(state, &seg); in pv_emulate_gate_op()
243 rc = read_mem(seg, base + (x86_insn_opsize(state) >> 3), in pv_emulate_gate_op()
268 if ( !pv_emul_read_descriptor(sel, v, &base, &limit, &ar, 0) || in pv_emulate_gate_op()
318 !pv_emul_read_descriptor(ss, v, &base, &limit, &ar, 0) || in pv_emulate_gate_op()
345 if ( !pv_emul_read_descriptor(regs->ss, v, &base, in pv_emulate_gate_op()
354 ((unsigned int)base + regs->esp + nparm * 4); in pv_emulate_gate_op()
[all …]
/xen/xen/arch/x86/
A Dlivepatch.c225 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rel() argument
234 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rela() argument
243 uint8_t *dest = base->load_addr + r->r_offset; in arch_livepatch_perform_rela()
273 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
274 (r->r_offset + sizeof(uint64_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
290 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
291 (r->r_offset + sizeof(uint32_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
299 elf->name, i, rela->name, base->name); in arch_livepatch_perform_rela()
315 elf->name, base->name); in arch_livepatch_perform_rela()
/xen/tools/misc/
A Dxen-detect.c73 uint32_t base; in check_for_xen() local
75 for ( base = 0x40000000; base < 0x40010000; base += 0x100 ) in check_for_xen()
77 cpuid(base, regs, pv_context); in check_for_xen()
84 if ( !strcmp("XenVMMXenVMM", signature) && (regs[0] >= (base + 2)) ) in check_for_xen()
91 cpuid(base + 1, regs, pv_context); in check_for_xen()
/xen/stubdom/vtpmmgr/
A Ddisk_read.c236 vtpm->index_in_parent = i + base; in load_verify_vtpm_page()
246 struct mem_vtpm_page *page = group->data + base; in load_verify_vtpm_pages()
249 base *= VTPMS_PER_SECTOR; in load_verify_vtpm_pages()
254 if (group->nr_vtpms - base > VTPMS_PER_SECTOR) in load_verify_vtpm_pages()
257 page->size = group->nr_vtpms - base; in load_verify_vtpm_pages()
258 rc = load_verify_vtpm_page(page, base, mgr, group_key); in load_verify_vtpm_pages()
261 base += VTPMS_PER_SECTOR; in load_verify_vtpm_pages()
319 base += incr; in load_verify_vtpm_itree()
419 struct mem_group_hdr *group = dst->groups + base + i; in load_verify_group_itree()
424 printk("Error loading group %d\n", base + i); in load_verify_group_itree()
[all …]
/xen/xen/arch/arm/arm32/
A Dlivepatch.c223 const struct livepatch_elf_sec *base, in arch_livepatch_perform() argument
244 dest = base->load_addr + r_a->r_offset; /* P */ in arch_livepatch_perform()
253 dest = base->load_addr + r->r_offset; /* P */ in arch_livepatch_perform()
283 elf->name, i, rela->name, base->name); in arch_livepatch_perform()
300 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rel() argument
303 return arch_livepatch_perform(elf, base, rela, false); in arch_livepatch_perform_rel()
307 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rela() argument
310 return arch_livepatch_perform(elf, base, rela, true); in arch_livepatch_perform_rela()
/xen/xen/arch/arm/
A Dguest_walk.c120 paddr = ((paddr_t)pte.walk.base << 10) | ((gva & mask) >> 10); in guest_walk_sd()
133 *ipa = ((paddr_t)pte.pg.base << L2DESC_SMALL_PAGE_SHIFT) | (gva & mask); in guest_walk_sd()
142 *ipa = ((paddr_t)pte.lpg.base << L2DESC_LARGE_PAGE_SHIFT) | (gva & mask); in guest_walk_sd()
160 *ipa = ((paddr_t)pte.sec.base << L1DESC_SECTION_SHIFT) | (gva & mask); in guest_walk_sd()
166 *ipa |= (paddr_t)(pte.supersec.base) << L1DESC_SUPERSECTION_SHIFT; in guest_walk_sd()
341 static bool check_base_size(unsigned int output_size, uint64_t base) in check_base_size() argument
345 if ( (output_size < TCR_EL1_IPS_48_BIT_VAL) && (base & mask) ) in check_base_size()
529 ret = check_base_size(output_size, pfn_to_paddr(pte.walk.base)); in guest_walk_ld()
539 (pte.walk.base & 0xf) ) in guest_walk_ld()
561 paddr = pfn_to_paddr(pte.walk.base) & mask; in guest_walk_ld()
[all …]
/xen/xen/arch/arm/acpi/
A Dlib.c30 unsigned long base, offset, mapped_size; in __acpi_map_table() local
36 base = FIXMAP_ADDR(FIXMAP_ACPI_BEGIN); in __acpi_map_table()
49 return ((char *) base + offset); in __acpi_map_table()
/xen/xen/arch/x86/guest/xen/
A Dxen.c52 uint32_t eax, ebx, ecx, edx, base; in find_xen_leaves() local
54 for ( base = XEN_CPUID_FIRST_LEAF; in find_xen_leaves()
55 base < XEN_CPUID_FIRST_LEAF + 0x10000; base += 0x100 ) in find_xen_leaves()
57 cpuid(base, &eax, &ebx, &ecx, &edx); in find_xen_leaves()
62 ((eax - base) >= 2) ) in find_xen_leaves()
64 xen_cpuid_base = base; in find_xen_leaves()

Completed in 39 milliseconds

1234567