Home
last modified time | relevance | path

Searched +full:ecx +full:- +full:1000 (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/cpufreq/
H A Dlongrun.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
23 * performance_pctg = (current_freq - low_freq)/(high_freq - low_freq)
29 * longrun_get_policy - get the current LongRun policy
40 pr_debug("longrun flags are %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
42 policy->policy = CPUFREQ_POLICY_PERFORMANCE; in longrun_get_policy()
44 policy->policy = CPUFREQ_POLICY_POWERSAVE; in longrun_get_policy()
47 pr_debug("longrun ctrl is %x - %x\n", msr_lo, msr_hi); in longrun_get_policy()
53 policy->min = policy->max = longrun_high_freq; in longrun_get_policy()
55 policy->min = longrun_low_freq + msr_lo * in longrun_get_policy()
[all …]
H A Dpowernow-k8.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * (c) 2003-2006 Advanced Micro Devices, Inc.
9 u32 numps; /* number of p-states */
10 u32 batps; /* number of p-states supported on battery */
13 * vid/fid pairings, but are modified during the ->target() call
36 * handle hotplug events - so just point at cpufreq pol->cpus
53 /* Model Specific Registers for p-state transitions. MSRs are 64-bit. For */
54 /* writes (wrmsr - opcode 0f 30), the register number is placed in ecx, and */
55 /* the value to write is placed in edx:eax. For reads (rdmsr - opcode 0f 32), */
56 /* the register number is placed in ecx, and the data is returned in edx:eax. */
[all …]
H A Dpowernow-k8.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * (c) 2003-2012 Advanced Micro Devices, Inc.
8 * Based on the powernow-k7.c module written by Dave Jones.
48 #include "powernow-k8.h"
66 return 1000 * find_freq_from_fid(fid); in find_khz_freq_from_fid()
112 data->currvid = hi & MSR_S_HI_CURRENT_VID; in query_current_values_with_pending_wait()
113 data->currfid = lo & MSR_S_LO_CURRENT_FID; in query_current_values_with_pending_wait()
121 udelay((1 << data->irt) * 10); in count_off_irt()
127 udelay(data->vstable * VST_UNITS_20US); in count_off_vst()
149 u32 savevid = data->currvid; in write_new_fid()
[all …]
/linux/Documentation/devicetree/bindings/arm/
H A Dcalxeda.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
12 Bindings for boards with Calxeda Cortex-A9 based ECX-1000 (Highbank) SOC
13 or Cortex-A15 based ECX-2000 SOCs
20 - enum:
21 - calxeda,highbank
22 - calxeda,ecx-2000
/linux/arch/x86/kernel/cpu/
H A Dvmware.c20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
49 #define STEALCLOCK_NOT_AVAILABLE (-1)
57 /* only for little-endian */
132 u32 eax, ebx, ecx; in __vmware_platform() local
134 eax = vmware_hypercall3(VMWARE_CMD_GETVERSION, 0, &ebx, &ecx); in __vmware_platform()
155 early_param("no-vmw-sched-clock", setup_vmw_sched_clock);
162 early_param("no-steal-acc", parse_no_stealacc);
170 ns -= vmware_cyc2ns.cyc2ns_offset; in vmware_sched_clock()
179 clocks_calc_mult_shift(&d->cyc2ns_mul, &d->cyc2ns_shift, in vmware_cyc2ns_setup()
181 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
[all …]
H A Dmshyperv.c1 // SPDX-License-Identifier: GPL-2.0-only
45 return reg - HV_X64_MSR_SINT0 + HV_X64_MSR_NESTED_SINT0; in hv_get_nested_msr()
147 * Routines to do per-architecture handling of stimer0
236 * Hyper-V clock counter resets during hibernation. Save and restore clock
253 * - reference counter (time) now. in restore_hv_clock_tsc_state()
255 hv_adj_sched_clock_offset(hv_ref_counter_at_suspend - hv_read_reference_counter()); in restore_hv_clock_tsc_state()
260 * functions of x86_platform. The Hyper-V clock counter is reset during
261 * suspend-resume and the offset used to measure time needs to be
330 * Prior to WS2016 Debug-VM sends NMIs to all CPUs which makes
336 static atomic_t nmi_cpu = ATOMIC_INIT(-1); in hv_nmi_unknown()
[all …]
/linux/arch/arm/mach-highbank/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
/linux/arch/x86/kvm/vmx/
H A Dtdx_arch.h1 /* SPDX-License-Identifier: GPL-2.0 */
74 u32 ecx; member
128 * frequency of the core crystal clock on TDX-capable platforms, i.e. the TDX
132 #define TDX_TSC_KHZ_TO_25MHZ(tsc_in_khz) ((tsc_in_khz) / (25 * 1000))
133 #define TDX_TSC_25MHZ_TO_KHZ(tsc_in_25mhz) ((tsc_in_25mhz) * (25 * 1000))
134 #define TDX_MIN_TSC_FREQUENCY_KHZ (100 * 1000)
135 #define TDX_MAX_TSC_FREQUENCY_KHZ (10 * 1000 * 1000)
H A Dvmx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Kernel-based Virtual Machine driver for Linux
5 * This module enables machines with Intel VT-x extensions to run virtual
50 #include <asm/spec-ctrl.h>
80 MODULE_DESCRIPTION("KVM support for VMX (Intel VT-x) extensions");
143 /* Guest_tsc -> host_tsc conversion requires 64-bit division. */
170 * These 2 parameters are used to config the controls for Pause-Loop Exiting:
186 /* Default doubles per-vcpu window every exit. */
190 /* Default resets per-vcpu window every exit to ple_window. */
198 /* Default is SYSTEM mode, 1 for host-guest mode (which is BROKEN) */
[all …]
/linux/tools/testing/selftests/kvm/include/x86/
H A Dprocessor.h1 /* SPDX-License-Identifier: GPL-2.0-only */
13 #include <asm/msr-index.h>
107 * Pack the information into a 64-bit value so that each X86_FEATURE_XXX can be
136 #define X86_FEATURE_MWAIT KVM_X86_CPU_FEATURE(0x1, 0, ECX, 3)
137 #define X86_FEATURE_VMX KVM_X86_CPU_FEATURE(0x1, 0, ECX, 5)
138 #define X86_FEATURE_SMX KVM_X86_CPU_FEATURE(0x1, 0, ECX, 6)
139 #define X86_FEATURE_PDCM KVM_X86_CPU_FEATURE(0x1, 0, ECX, 15)
140 #define X86_FEATURE_PCID KVM_X86_CPU_FEATURE(0x1, 0, ECX, 17)
141 #define X86_FEATURE_X2APIC KVM_X86_CPU_FEATURE(0x1, 0, ECX, 21)
142 #define X86_FEATURE_MOVBE KVM_X86_CPU_FEATURE(0x1, 0, ECX, 22)
[all …]
/linux/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
94 * - cpu hotplug: Read serialized by cpu hotplug lock
97 * - Other callsites: Must hold pkg_temp_lock
113 ret = intel_tcc_get_temp(zonedev->cpu, &val, true); in sys_get_curr_temp()
117 *temp = val * 1000; in sys_get_curr_temp()
127 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in sys_set_trip_temp()
131 tj_max = intel_tcc_get_tjmax(zonedev->cpu); in sys_set_trip_temp()
134 tj_max *= 1000; in sys_set_trip_temp()
136 val = (tj_max - temp)/1000; in sys_set_trip_temp()
139 return -EINVAL; in sys_set_trip_temp()
[all …]
/linux/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * x86_energy_perf_policy -- set the energy versus performance
7 * Copyright (c) 2010 - 2025 Intel Corporation.
30 #define OPTARG_NORMAL (INT_MAX - 1)
31 #define OPTARG_POWER (INT_MAX - 2)
32 #define OPTARG_BALANCE_POWER (INT_MAX -
1396 get_cpuid_or_exit(unsigned int leaf,unsigned int * eax,unsigned int * ebx,unsigned int * ecx,unsigned int * edx) get_cpuid_or_exit() argument
1409 unsigned int eax, ebx, ecx, edx; early_cpuid() local
1439 unsigned int eax, ebx, ecx, edx, max_level; parse_cpuid() local
[all...]
/linux/drivers/video/fbdev/
H A Duvesafb.c1 // SPDX-License-Identifier: GPL-2.0-only
80 if (msg->seq >= UVESAFB_TASKS_MAX) in uvesafb_cn_callback()
84 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback()
86 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback()
91 utask = (struct uvesafb_task *)msg->data; in uvesafb_cn_callback()
94 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback()
95 utask->buf_len > msg->len - sizeof(*utask)) { in uvesafb_cn_callback()
100 uvfb_tasks[msg->seq] = NULL; in uvesafb_cn_callback()
103 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback()
105 if (task->t.buf_len && task->buf) in uvesafb_cn_callback()
[all …]
H A Dvesafb.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
31 /* --------------------------------------------------------------------- */
43 .height = -1,
44 .width = -1,
68 /* --------------------------------------------------------------------- */
76 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
83 "c" (offset), /* ECX */ in vesafb_pan_display()
93 int shift = 16 - depth; in vesa_setpalette()
94 int err = -EINVAL; in vesa_setpalette()
[all …]
H A Dneofb.c2 * linux/drivers/video/neofb.c -- NeoMagic Framebuffer Driver
4 * Copyright (c) 2001-2002 Denis Oliver Kropp <dok@directfb.org>
16 * - Cosmetic changes (dok)
19 * - Toshiba Libretto support, allow modes larger than LCD size if
25 * - Porting over to new fbdev api. (jsimmons)
28 * - got rid of all floating point (dok)
31 * - added module license (dok)
34 * - hardware accelerated clear and move for 2200 and above (dok)
35 * - maximum allowed dotclock is handled now (dok)
38 * - correct panning after X usage (dok)
[all …]
/linux/tools/power/x86/turbostat/
H A Dturbostat.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * turbostat -- show CPU frequency and C-state residency
19 #define VFM_MODEL_MASK GENMASK(VFM_FAMILY_BIT - 1, VFM_MODEL_BIT)
20 #define VFM_FAMILY_MASK GENMASK(VFM_VENDOR_BIT - 1, VFM_FAMILY_BIT)
21 #define VFM_VENDOR_MASK GENMASK(VFM_RSVD_BIT -
1248 unsigned int eax, ebx, ecx, edx; probe_platform_features() local
4460 unsigned int eax, ebx, ecx, edx; get_apic_id() local
6279 unsigned int eax, ebx, ecx, edx; set_my_cpu_type() local
8155 unsigned int eax, ebx, ecx, edx; get_cpu_type() local
8813 unsigned int eax, ebx, ecx, edx; process_cpuid() local
[all...]
/linux/arch/x86/crypto/
H A Daes-xts-avx-x86_64.S1 /* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */
3 // AES-XTS for modern x86_64 CPUs
9 //------------------------------------------------------------------------------
11 // This file is dual-licensed, meaning that you can use it under your choice of
17 // http://www.apache.org/licenses/LICENSE-2.0
50 * This file implements AES-XTS for modern x86_64 CPUs. To handle the
55 * AES-NI && AVX
56 * - 128-bit vectors (1 AES block per vector)
57 * - VEX-coded instructions
58 * - xmm0-xmm15
[all …]
/linux/arch/x86/kernel/cpu/microcode/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2000-2006 Tigran Aivazian <aivazian.tigran@gmail.com>
7 * 2013-2016 Borislav Petkov <bp@alien8.de>
63 * All non cpu-hotplug-callback call sites use:
65 * - cpus_read_lock/unlock() to synchronize with
66 * the cpu-hotplug-callback call sites.
80 0, /* T-101 terminator */
89 * - true: if update should stop
90 * - false: otherwise
121 * 2) Bit 31 in CPUID[1]:ECX is clear in microcode_loader_disabled()
[all …]
/linux/tools/lib/bpf/
H A Dusdt.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
24 /* libbpf's USDT support consists of BPF-side state/code and user-space
25 * state/code working together in concert. BPF-side parts are defined in
26 * usdt.bpf.h header library. User-space state is encapsulated by struct
30 * and IP-t
[all...]
/linux/arch/x86/coco/sev/
H A Dcore.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/percpu-defs.h>
25 #include <linux/psp-sev.h>
27 #include <uapi/linux/sev-guest.h>
34 #include <asm/sev-internal.h>
35 #include <asm/insn-eval.h>
109 [MSR_AMD64_SEV_ES_ENABLED_BIT] = "SEV-ES",
110 [MSR_AMD64_SEV_SNP_ENABLED_BIT] = "SEV-SNP",
142 * non-zero. The VMPL is therefore used to indicate the presence of an SVSM.
158 /* For early boot hypervisor communication in SEV-ES enabled guests */
[all …]
/linux/arch/x86/kvm/
H A Dhyperv.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * KVM Microsoft Hyper-V emulation
17 * Ben-Ami Yassour <benami@il.ibm.com>
48 * As per Hyper-V TLFS, extended hypercalls start from 0x8001
53 * 0x8001 - First extended hypercall, HvExtCallQueryCapabilities, no bit
56 * 0x8002 - Bit 0
57 * 0x8003 - Bit 1
59 * 0x8041 - Bit 63
70 return atomic64_read(&synic->sint[sint]); in synic_read_sint()
76 return -1; in synic_get_sint_vector()
[all …]
H A Dx86.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Kernel-based Virtual Machine driver for Linux
16 * Ben-Ami Yassour <benami@il.ibm.com>
48 #include <linux/user-return-notifier.h>
107 ((struct kvm_vcpu *)(ctxt)->vcpu)
110 * - enable syscall per default because its emulated by KVM
111 * - enable LME and LMA per default on 64 bit KVM
145 *(((struct kvm_x86_ops *)0)->func));
148 #include <asm/kvm-x86-ops.h>
165 /* tsc tolerance in parts per million - default to 1/2 of the NTP threshold */
[all …]