Home
last modified time | relevance | path

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

1234567

/xen-4.10.0-shim-comet/xen/include/asm-x86/
A Dmsr.h127 unsigned long base; in __rdfsbase() local
135 return base; in __rdfsbase()
140 unsigned long base; in __rdgsbase() local
148 return base; in __rdgsbase()
153 unsigned long base; in rdfsbase() local
158 rdmsrl(MSR_FS_BASE, base); in rdfsbase()
160 return base; in rdfsbase()
165 unsigned long base; in rdgsbase() local
170 rdmsrl(MSR_GS_BASE, base); in rdgsbase()
172 return base; in rdgsbase()
[all …]
A Dmsi.h148 #define msi_control_reg(base) (base + PCI_MSI_FLAGS) argument
149 #define msi_lower_address_reg(base) (base + PCI_MSI_ADDRESS_LO) argument
150 #define msi_upper_address_reg(base) (base + PCI_MSI_ADDRESS_HI) argument
151 #define msi_data_reg(base, is64bit) \ argument
152 ( (is64bit == 1) ? base+PCI_MSI_DATA_64 : base+PCI_MSI_DATA_32 )
153 #define msi_mask_bits_reg(base, is64bit) \ argument
154 ( (is64bit == 1) ? base+PCI_MSI_MASK_BIT : base+PCI_MSI_MASK_BIT-4)
165 #define msix_control_reg(base) (base + PCI_MSIX_FLAGS) argument
166 #define msix_table_offset_reg(base) (base + PCI_MSIX_TABLE) argument
167 #define msix_pba_offset_reg(base) (base + PCI_MSIX_PBA) argument
A Dmtrr.h44 uint64_t base; member
65 extern int mtrr_add(unsigned long base, unsigned long size,
67 extern int mtrr_add_page(unsigned long base, unsigned long size,
69 extern int mtrr_del(int reg, unsigned long base, unsigned long size);
70 extern int mtrr_del_page(int reg, unsigned long base, unsigned long size);
/xen-4.10.0-shim-comet/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()
422 int base; in vsnprintf() local
508 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-4.10.0-shim-comet/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.c58 static int find_next_rmrr(uint32_t base) in find_next_rmrr() argument
90 uint64_t base, max; in pci_setup() member
400 mem_resource.base = pci_mem_start; in pci_setup()
402 io_resource.base = 0xc000; in pci_setup()
440 high_mem_resource.base = high_mem_resource.base - in pci_setup()
459 base = (resource->base + bar_sz - 1) & ~(uint64_t)(bar_sz - 1); in pci_setup()
473 base = (base + bar_sz - 1) & ~(bar_sz - 1); in pci_setup()
478 bar_data |= (uint32_t)base; in pci_setup()
480 base += bar_sz; in pci_setup()
482 if ( (base < resource->base) || (base > resource->max) ) in pci_setup()
[all …]
A Dhvmloader.c125 uint32_t base; in init_hypercalls() local
127 for ( base = 0x40000000; base < 0x40010000; base += 0x100 ) in init_hypercalls()
129 cpuid(base, &eax, &ebx, &ecx, &edx); in init_hypercalls()
140 BUG_ON(strcmp("XenVMMXenVMM", signature) || ((eax - base) < 2)); in init_hypercalls()
143 cpuid(base + 2, &eax, &ebx, &ecx, &edx); in init_hypercalls()
148 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in init_hypercalls()
/xen-4.10.0-shim-comet/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.c123 last_fixed_start = base; in update_fixed_last()
135 update_fixed_last(base, base + step, *types); in print_fixed()
139 last_fixed_end = base + step; in print_fixed()
144 update_fixed_last(base, base + step, *types); in print_fixed()
165 base += 8 * step; in print_mtrr_state()
284 *base = 0; in generic_get_mtrr()
298 *base = _base >> PAGE_SHIFT; in generic_get_mtrr()
331 base_lo = (uint32_t)vr->base; in set_mtrr_var_ranges()
519 if (!(base + size < 0x70000 || base > 0x7003F) && in generic_validate_add_page()
529 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-4.10.0-shim-comet/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-4.10.0-shim-comet/unmodified_drivers/linux-2.6/platform-pci/
A Dplatform-pci.c123 uint32_t base, eax, ebx, ecx, edx; in xen_cpuid_base() local
126 for (base = 0x40000000; base < 0x40010000; base += 0x100) { in xen_cpuid_base()
127 cpuid(base, &eax, &ebx, &ecx, &edx); in xen_cpuid_base()
134 return base; in xen_cpuid_base()
145 base = xen_cpuid_base(); in init_hypercall_stubs()
146 if (base == 0) { in init_hypercall_stubs()
152 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in init_hypercall_stubs()
160 cpuid(base + 2, &pages, &msr, &ecx, &edx); in init_hypercall_stubs()
196 uint32_t base, ecx, edx, pages, msr, i; in resume_hypercall_stubs() local
198 base = xen_cpuid_base(); in resume_hypercall_stubs()
[all …]
/xen-4.10.0-shim-comet/xen/drivers/passthrough/amd/
A Diommu_acpi.c114 iommu->exclusion_base = base; in reserve_iommu_exclusion_range()
138 new_top = base + length; in reserve_unity_map_for_device()
143 length = new_top - base; in reserve_unity_map_for_device()
166 if ( base < iommu_top ) in register_exclusion_range_for_all_devices()
170 length = range_top - base; in register_exclusion_range_for_all_devices()
176 base = iommu_top; in register_exclusion_range_for_all_devices()
208 if ( base < iommu_top ) in register_exclusion_range_for_device()
212 length = range_top - base; in register_exclusion_range_for_device()
219 base = iommu_top; in register_exclusion_range_for_device()
245 if ( base < iommu_top ) in register_exclusion_range_for_iommu_devices()
[all …]
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/xen/arch/x86/hvm/svm/
A Dvmcb.c138 vmcb->cs.base = 0; in construct_vmcb()
139 vmcb->es.base = 0; in construct_vmcb()
140 vmcb->ss.base = 0; in construct_vmcb()
141 vmcb->ds.base = 0; in construct_vmcb()
142 vmcb->fs.base = 0; in construct_vmcb()
143 vmcb->gs.base = 0; in construct_vmcb()
154 vmcb->idtr.base = 0; in construct_vmcb()
158 vmcb->gdtr.base = 0; in construct_vmcb()
163 vmcb->ldtr.base = 0; in construct_vmcb()
169 vmcb->tr.base = 0; in construct_vmcb()
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/
A Dlivepatch.c152 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rel() argument
161 const struct livepatch_elf_sec *base, in arch_livepatch_perform_rela() argument
170 uint8_t *dest = base->load_addr + r->r_offset; in arch_livepatch_perform_rela()
200 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
201 (r->r_offset + sizeof(uint64_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
217 if ( r->r_offset >= base->sec->sh_size || in arch_livepatch_perform_rela()
218 (r->r_offset + sizeof(uint32_t)) > base->sec->sh_size ) in arch_livepatch_perform_rela()
226 elf->name, i, rela->name, base->name); in arch_livepatch_perform_rela()
242 elf->name, base->name); in arch_livepatch_perform_rela()
/xen-4.10.0-shim-comet/xen/arch/x86/pv/
A Demul-gate-op.c115 unsigned long base, limit; member
131 addr += goc->cs.base; in read_mem()
193 unsigned long off, base, limit; in pv_emulate_gate_op() local
217 if ( !pv_emul_read_descriptor(regs->cs, v, &ctxt.cs.base, &ctxt.cs.limit, in pv_emulate_gate_op()
263 base = x86_insn_operand_ea(state, &seg); in pv_emulate_gate_op()
264 rc = read_mem(seg, base + (x86_insn_opsize(state) >> 3), in pv_emulate_gate_op()
289 if ( !pv_emul_read_descriptor(sel, v, &base, &limit, &ar, 0) || in pv_emulate_gate_op()
339 !pv_emul_read_descriptor(ss, v, &base, &limit, &ar, 0) || in pv_emulate_gate_op()
366 if ( !pv_emul_read_descriptor(regs->ss, v, &base, in pv_emulate_gate_op()
375 ((unsigned int)base + regs->esp + nparm * 4); in pv_emulate_gate_op()
[all …]
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/docs/misc/
A Dpvrdtscp.c214 u32 eax, ebx, ecx, edx, base; in running_on_xen() local
217 for (base=0x40000000; base < 0x40010000; base += 0x100) { in running_on_xen()
219 hvm_cpuid(base,0,&eax,&ebx,&ecx,&edx); in running_on_xen()
221 pv_cpuid(base,0,&eax,&ebx,&ecx,&edx); in running_on_xen()
224 if (!strcmp("XenVMMXenVMM",&sig.csig[0]) && (eax >= (base+2))) { in running_on_xen()
226 hvm_cpuid(base+1,0,&eax,&ebx,&ecx,&edx); in running_on_xen()
228 pv_cpuid(base+1,0,&eax,&ebx,&ecx,&edx); in running_on_xen()
/xen-4.10.0-shim-comet/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-4.10.0-shim-comet/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-4.10.0-shim-comet/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 …]

Completed in 32 milliseconds

1234567