/xen/xen/include/xen/ |
A D | ctype.h | 22 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument 23 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument 24 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument 25 #define isdigit(c) ((__ismask(c)&(_D)) != 0) argument 27 #define islower(c) ((__ismask(c)&(_L)) != 0) argument 29 #define ispunct(c) ((__ismask(c)&(_P)) != 0) argument 30 #define isspace(c) ((__ismask(c)&(_S)) != 0) argument 31 #define isupper(c) ((__ismask(c)&(_U)) != 0) argument 35 #define toascii(c) (((unsigned char)(c))&0x7f) argument 51 #define tolower(c) __tolower(c) argument [all …]
|
/xen/xen/arch/x86/cpu/ |
A D | common.c | 317 c->x86 = get_cpu_family(eax, &c->x86_model, &c->x86_mask); in early_cpu_init() 329 x86_cpuid_vendor_to_str(c->x86_vendor), c->x86, c->x86, in early_cpu_init() 330 c->x86_model, c->x86_model, c->x86_mask, eax); in early_cpu_init() 378 c->x86 = get_cpu_family(eax, &c->x86_model, &c->x86_mask); in generic_identify() 380 c->phys_proc_id = c->apicid; in generic_identify() 444 c->x86_model = c->x86_mask = 0; /* So far unknown... */ in identify_cpu() 453 memset(&c->x86_capability, 0, sizeof c->x86_capability); in identify_cpu() 496 snprintf(c->x86_model_id, sizeof(c->x86_model_id), in identify_cpu() 497 "%02x/%02x", c->x86_vendor, c->x86_model); in identify_cpu() 502 xstate_init(c); in identify_cpu() [all …]
|
A D | hygon.c | 14 if (c->x86_max_cores <= 1) in hygon_get_topology() 22 c->x86_max_cores /= c->x86_num_siblings; in hygon_get_topology() 23 c->cpu_core_id = ebx & 0xff; in hygon_get_topology() 28 c->phys_proc_id, c->cpu_core_id); in hygon_get_topology() 45 c->x86_capability); in init_hygon() 49 c->x86_capability); in init_hygon() 56 c->x86_capability); in init_hygon() 60 c->x86_capability); in init_hygon() 75 display_cacheinfo(c); in init_hygon() 88 hygon_get_topology(c); in init_hygon() [all …]
|
A D | amd.c | 183 if (c->x86 == 0x15 && c->cpuid_level >= 6 && cpuid_ecx(6)) in probe_masking_msrs() 200 c->x86, c->x86_model, c->cpuid_level); in probe_masking_msrs() 502 c->cpu_core_id = c->phys_proc_id & ((1<<bits)-1); in amd_get_topology() 529 cpu, c->x86_max_cores, c->phys_proc_id, in amd_get_topology() 541 if (c->x86 < 0x10 || c->x86 > 0x19 || in amd_log_freq() 670 if (c->x86 == 0xf && c->x86_model < 0x14 in init_amd() 696 if (c->x86 == 0x0f || c->x86 == 0x11) in init_amd() 744 switch(c->x86) in init_amd() 791 (c->x86_model >= 0x10) && (c->x86_model <= 0x1f) && in init_amd() 808 if (c->x86 == 0x15 && c->x86_model >= 0x02 && c->x86_model < 0x20 && in init_amd() [all …]
|
A D | intel.c | 80 if (c->x86 != 6) in probe_masking_msrs() 134 "got (%#x/%#x/%#x)\n", c->x86, c->x86_model, in probe_masking_msrs() 262 if (c->x86 == 15 && c->x86_cache_alignment == 64) in early_init_intel() 325 if ( max_cstate > 1 && (c->apicid & (c->x86_num_siblings - 1)) && in probe_c3_errata() 345 if ((c->x86 == 15) && (c->x86_model == 1) && (c->x86_mask == 1)) { in Intel_errata_workarounds() 356 (c->x86_model == 29 || c->x86_model == 46 || c->x86_model == 47)) in Intel_errata_workarounds() 469 c->x86_max_cores = num_cpu_cores(c); in init_intel() 470 detect_ht(c); in init_intel() 476 if ((c->x86 == 0xf && c->x86_model >= 0x03) || in init_intel() 477 (c->x86 == 0x6 && c->x86_model >= 0x0e)) in init_intel() [all …]
|
A D | centaur.c | 17 static void init_c3(struct cpuinfo_x86 *c) in init_c3() argument 42 if (c->x86 == 0x6 && c->x86_model >= 0xf) { in init_c3() 43 c->x86_cache_alignment = c->x86_clflush_size * 2; in init_c3() 44 __set_bit(X86_FEATURE_CONSTANT_TSC, c->x86_capability); in init_c3() 47 get_model_name(c); in init_c3() 48 display_cacheinfo(c); in init_c3() 51 static void init_centaur(struct cpuinfo_x86 *c) in init_centaur() argument 53 if (c->x86 == 6) in init_centaur() 54 init_c3(c); in init_centaur()
|
/xen/xen/include/asm-arm/arm64/ |
A D | io.h | 101 #define readb_relaxed(c) ({ u8 __v = __raw_readb(c); __v; }) argument 106 #define writeb_relaxed(v,c) ((void)__raw_writeb((v),(c))) argument 121 #define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); }) argument 122 #define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); }) argument 123 #define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); }) argument 140 #define inb(c) ( emulate_read(c) ) argument 141 #define inw(c) ( emulate_read(c) ) argument 142 #define inl(c) ( emulate_read(c) ) argument 144 #define outb(v, c) ( emulate_write(c) ) argument 145 #define outw(v, c) ( emulate_write(c) ) argument [all …]
|
/xen/xen/common/sched/ |
A D | cpupool.c | 159 if ( c ) in free_cpupool_struct() 164 xfree(c); in free_cpupool_struct() 171 if ( !c ) in alloc_cpupool_struct() 181 return c; in alloc_cpupool_struct() 216 return c; in __cpupool_get_by_id() 290 c->sched->cpupool = c; in cpupool_create() 293 *q = c; in cpupool_create() 298 c->cpupool_id, c->sched->name, c->sched->opt_name); in cpupool_create() 301 return c; in cpupool_create() 402 cpumask_or(c->cpu_valid, c->cpu_valid, cpus); in cpupool_assign_cpu_locked() [all …]
|
/xen/tools/firmware/hvmloader/ |
A D | ctype.h | 17 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument 18 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument 19 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument 20 #define isdigit(c) ((__ismask(c)&(_D)) != 0) argument 21 #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) argument 22 #define islower(c) ((__ismask(c)&(_L)) != 0) argument 23 #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0) argument 24 #define ispunct(c) ((__ismask(c)&(_P)) != 0) argument 25 #define isspace(c) ((__ismask(c)&(_S)) != 0) argument 26 #define isupper(c) ((__ismask(c)&(_U)) != 0) argument [all …]
|
/xen/tools/libxc/ |
A D | Makefile | 13 CTRL_SRCS-y += xc_altp2m.c 14 CTRL_SRCS-y += xc_core.c 21 CTRL_SRCS-y += xc_misc.c 28 CTRL_SRCS-y += xc_rt.c 30 CTRL_SRCS-y += xc_pm.c 55 GUEST_SRCS-y += xg_private.c xc_suspend.c 74 ELF_SRCS-y += libelf-tools.c libelf-loader.c 83 vpath %.c ../../xen/lib/x86 85 GUEST_SRCS-y += cpuid.c msr.c 89 GUEST_SRCS-y += xc_dom_core.c xc_dom_boot.c [all …]
|
/xen/xen/drivers/passthrough/vtd/ |
A D | iommu.h | 74 #define cap_sps_2mb(c) ((c >> 34) & 1) argument 81 #define cap_isoch(c) (((c) >> 23) & 1) argument 82 #define cap_qos(c) (((c) >> 22) & 1) argument 86 #define cap_phmr(c) (((c) >> 6) & 1) argument 87 #define cap_plmr(c) (((c) >> 5) & 1) argument 88 #define cap_rwbf(c) (((c) >> 4) & 1) argument 89 #define cap_afl(c) (((c) >> 3) & 1) argument 183 #define dma_frcd_fault_reason(c) (c & 0xff) argument 184 #define dma_frcd_source_id(c) (c & 0xffff) argument 208 #define context_present(c) ((c).lo & 1) argument [all …]
|
/xen/stubdom/grub/ |
A D | Makefile | 4 vpath %.c ../grub-upstream 23 …E2_SOURCES=builtins.c char_io.c cmdline.c common.c console.c disk_io.c graphics.c gunzip.c md5.c s… 25 NETBOOT_SOURCES=fsys_tftp.c main.c misc.c 31 STAGE2_SOURCES+=fsys_fat.c 34 STAGE2_SOURCES+=fsys_ffs.c 40 STAGE2_SOURCES+=fsys_jfs.c 43 STAGE2_SOURCES+=fsys_minix.c 49 STAGE2_SOURCES+=fsys_ufs2.c 55 STAGE2_SOURCES+=fsys_xfs.c 63 PV_GRUB_SOURCES = kexec.c mini-os.c [all …]
|
/xen/tools/misc/ |
A D | xen-hvmctx.c | 181 c.cs_sel, c.cs_base, c.cs_limit, c.cs_arbytes, in dump_cpu() 182 c.ds_sel, c.ds_base, c.ds_limit, c.ds_arbytes, in dump_cpu() 183 c.es_sel, c.es_base, c.es_limit, c.es_arbytes, in dump_cpu() 184 c.fs_sel, c.fs_base, c.fs_limit, c.fs_arbytes, in dump_cpu() 185 c.gs_sel, c.gs_base, c.gs_limit, c.gs_arbytes, in dump_cpu() 186 c.ss_sel, c.ss_base, c.ss_limit, c.ss_arbytes, in dump_cpu() 187 c.tr_sel, c.tr_base, c.tr_limit, c.tr_arbytes, in dump_cpu() 188 c.ldtr_sel, c.ldtr_base, c.ldtr_limit, c.ldtr_arbytes, in dump_cpu() 189 c.idtr_base, c.idtr_limit, in dump_cpu() 194 c.shadow_gs, c.msr_efer, in dump_cpu() [all …]
|
/xen/stubdom/ |
A D | newlib-chk.patch | 28 flags.c \ 29 fopen.c \ 30 fprintf.c \ 32 fputc.c \ 33 fputs.c \ 34 fread.c \ 38 sprintf.c \ 40 sscanf.c \ 41 stdio.c \ 42 tmpfile.c \ [all …]
|
/xen/xen/include/asm-arm/arm32/ |
A D | io.h | 78 #define readb_relaxed(c) ({ u8 __r = __raw_readb(c); __r; }) argument 80 __raw_readw(c)); __r; }) 84 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument 85 #define writew_relaxed(v,c) __raw_writew((__force u16) cpu_to_le16(v),c) argument 86 #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) argument 88 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument 89 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument 90 #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) argument 92 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument 93 #define writew(v,c) ({ __iowmb(); writew_relaxed(v,c); }) argument [all …]
|
/xen/xen/arch/arm/ |
A D | cpufeature.c | 100 void identify_cpu(struct cpuinfo_arm *c) in identify_cpu() argument 102 c->midr.bits = READ_SYSREG32(MIDR_EL1); in identify_cpu() 103 c->mpidr.bits = READ_SYSREG(MPIDR_EL1); in identify_cpu() 122 c->pfr32.bits[0] = READ_SYSREG32(ID_PFR0_EL1); in identify_cpu() 123 c->pfr32.bits[1] = READ_SYSREG32(ID_PFR1_EL1); in identify_cpu() 125 c->dbg32.bits[0] = READ_SYSREG32(ID_DFR0_EL1); in identify_cpu() 127 c->aux32.bits[0] = READ_SYSREG32(ID_AFR0_EL1); in identify_cpu() 129 c->mm32.bits[0] = READ_SYSREG32(ID_MMFR0_EL1); in identify_cpu() 130 c->mm32.bits[1] = READ_SYSREG32(ID_MMFR1_EL1); in identify_cpu() 131 c->mm32.bits[2] = READ_SYSREG32(ID_MMFR2_EL1); in identify_cpu() [all …]
|
/xen/xen/xsm/flask/ss/ |
A D | services.c | 1493 c = c->next; in security_irq_sid() 1533 c = c->next; in security_iomem_sid() 1566 c = c->next; in security_iterate_iomem_sids() 1593 c = c->next; in security_iterate_iomem_sids() 1621 c = c->next; in security_ioport_sid() 1654 c = c->next; in security_iterate_ioport_sids() 1681 c = c->next; in security_iterate_ioport_sids() 2130 c; before_c = c, c = c->next ) in security_ocontext_del() 2155 c; before_c = c, c = c->next ) in security_ocontext_del() 2181 c; before_c = c, c = c->next ) in security_ocontext_del() [all …]
|
/xen/stubdom/grub.patches/ |
A D | 50fs_fulldisk.diff | 1 diff -urN grub-0.97.orig/stage2/fsys_ext2fs.c grub-0.97/stage2/fsys_ext2fs.c 2 --- grub-0.97.orig/stage2/fsys_ext2fs.c 2004-08-08 18:19:18.000000000 +0000 3 +++ grub-0.97/stage2/fsys_ext2fs.c 2008-09-16 19:31:15.000000000 +0000 13 diff -urN grub-0.97.orig/stage2/fsys_fat.c grub-0.97/stage2/fsys_fat.c 14 --- grub-0.97.orig/stage2/fsys_fat.c 2005-03-15 16:52:00.000000000 +0000 15 +++ grub-0.97/stage2/fsys_fat.c 2008-09-16 19:31:26.000000000 +0000 25 diff -urN grub-0.97.orig/stage2/fsys_ffs.c grub-0.97/stage2/fsys_ffs.c 27 +++ grub-0.97/stage2/fsys_ffs.c 2008-09-16 19:31:32.000000000 +0000 37 diff -urN grub-0.97.orig/stage2/fsys_minix.c grub-0.97/stage2/fsys_minix.c 49 diff -urN grub-0.97.orig/stage2/fsys_ufs2.c grub-0.97/stage2/fsys_ufs2.c [all …]
|
/xen/xen/common/ |
A D | sort.c | 57 for ( r = i; r * 2 + size < n; r = c ) in sort() 59 c = r * 2 + size; in sort() 60 if ( (c < n - size) && (cmp(base + c, base + c + size) < 0) ) in sort() 61 c += size; in sort() 62 if ( cmp(base + r, base + c) >= 0 ) in sort() 64 swap(base + r, base + c, size); in sort() 72 for ( r = 0; r * 2 + size < i; r = c ) in sort() 74 c = r * 2 + size; in sort() 75 if ( (c < i - size) && (cmp(base + c, base + c + size) < 0) ) in sort() 76 c += size; in sort() [all …]
|
/xen/xen/arch/x86/boot/ |
A D | cmdline.c | 88 for ( ; *s != (char)c; ++s ) in strchr() 219 const char *c; in edd_parse() local 223 if ( !c ) in edd_parse() 234 const char *c; in edid_parse() local 238 if ( !c ) in edid_parse() 280 const char *c; in vga_parse() local 285 if ( !c ) in vga_parse() 294 c += strlen("text-80x"); in vga_parse() 299 vesa_width = strtoui(c + strlen("gfx-"), "x", &c); in vga_parse() 309 ++c; in vga_parse() [all …]
|
/xen/tools/firmware/rombios/32bit/ |
A D | util.c | 24 static void putchar(char c); 25 #define isdigit(c) ((c) >= '0' && (c) <= '9') argument 310 c = *++fmt; in _doprint() 311 if ( (c == '-') || isdigit(c) ) in _doprint() 319 for ( pad = 0; isdigit(c); c = *++fmt ) in _doprint() 325 c = *++fmt; in _doprint() 327 if ( (c == 'd') || (c == 'u') || (c == 'o') || (c == 'x') ) in _doprint() 335 c == 'o' ? 8 : (c == 'x' ? 16 : 10)); in _doprint() 338 else if ( (c == 'O') || (c == 'D') || (c == 'X') ) in _doprint() 343 c == 'O' ? 8 : (c == 'X' ? 16 : 10)); in _doprint() [all …]
|
/xen/tools/fuzz/x86_instruction_emulator/ |
A D | fuzz-emul.c | 97 unsigned char c; in maybe_fail() local 100 if ( !input_read(s, &c, sizeof(c)) ) in maybe_fail() 109 if ( c > 0xc0 ) in maybe_fail() 111 else if ( c > 0x80 ) in maybe_fail() 421 *reg = c->segments[seg]; in fuzz_read_segment() 467 *val = c->cr[reg]; in fuzz_read_cr() 489 old = c->cr[reg]; in fuzz_write_cr() 490 c->cr[reg] = val; in fuzz_write_cr() 494 c->cr[reg] = old; in fuzz_write_cr() 870 if ( (c->cr[0] & X86_CR0_PG) && !(c->cr[0] & X86_CR0_PE) ) in check_state() [all …]
|
/xen/tools/libs/gnttab/ |
A D | Makefile | 9 SRCS-GNTTAB += gnttab_core.c 10 SRCS-GNTSHR += gntshr_core.c 12 SRCS-$(CONFIG_Linux) += $(SRCS-GNTTAB) $(SRCS-GNTSHR) linux.c 13 SRCS-$(CONFIG_MiniOS) += $(SRCS-GNTTAB) gntshr_unimp.c minios.c 14 SRCS-$(CONFIG_FreeBSD) += $(SRCS-GNTTAB) $(SRCS-GNTSHR) freebsd.c 15 SRCS-$(CONFIG_SunOS) += gnttab_unimp.c gntshr_unimp.c 16 SRCS-$(CONFIG_NetBSD) += gnttab_unimp.c gntshr_unimp.c
|
/xen/xen/include/acpi/ |
A D | acutils.h | 90 int acpi_ut_to_upper(int c); 92 int acpi_ut_to_lower(int c); 107 #define ACPI_IS_DIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_DI)) argument 108 #define ACPI_IS_SPACE(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_SP)) argument 109 #define ACPI_IS_XDIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_XD)) argument 110 #define ACPI_IS_UPPER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_UP)) argument 111 #define ACPI_IS_LOWER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO)) argument 112 #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACP… argument 113 #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) argument
|
/xen/xen/common/libfdt/ |
A D | Makefile.libfdt | 9 LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c 10 LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
|