Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/cpufreq/
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 …]
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 …]
Dpowernow-k7.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - We cli/sti on stepping A0 CPUs around the FID/VID transition.
13 * - We disable half multipliers if ACPI is used on A0 stepping CPUs.
38 #include "powernow-k7.h"
69 /* divide by 1000 to get VCore voltage in V. */
74 1075, 1050, 1025, 1000, 975, 950, 925, 0,
82 150, 225, 160, 165, 170, 180, -1, -1,
95 static unsigned int minimum_speed = -1;
105 unsigned int f = fsb / 1000; in check_fsb()
107 delta = (fsbspeed > f) ? fsbspeed - f : f - fsbspeed; in check_fsb()
[all …]
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-v5.10/arch/x86/kernel/cpu/
Dvmware.c20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
55 #define STEALCLOCK_NOT_AVAILABLE (-1)
59 #define VMWARE_PORT(cmd, eax, ebx, ecx, edx) \ argument
61 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
67 #define VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) \ argument
69 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
75 #define VMWARE_VMMCALL(cmd, eax, ebx, ecx, edx) \ argument
77 "=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
83 #define VMWARE_CMD(cmd, eax, ebx, ecx, edx) do { \ argument
86 VMWARE_VMCALL(cmd, eax, ebx, ecx, edx); \
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/arm/
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-v5.10/arch/arm/mach-highbank/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 bool "Calxeda ECX-1000/2000 (Highbank/Midway)"
/Linux-v5.10/drivers/thermal/intel/
Dx86_pkg_temp_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
91 * - cpu hotplug: Read serialized by cpu hotplug lock
94 * - Other callsites: Must hold pkg_temp_lock
106 * tj-max is is interesting because threshold is set relative to this
119 *tj_max = val * 1000; in get_tj_max()
121 return val ? 0 : -EINVAL; in get_tj_max()
126 struct zone_device *zonedev = tzd->devdata; in sys_get_curr_temp()
129 rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, in sys_get_curr_temp()
132 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp()
136 return -EINVAL; in sys_get_curr_temp()
[all …]
/Linux-v5.10/tools/power/x86/x86_energy_perf_policy/
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 - 2017 Intel Corporation.
30 #define OPTARG_NORMAL (INT_MAX - 1)
31 #define OPTARG_POWER (INT_MAX - 2)
32 #define OPTARG_BALANCE_POWER (INT_MAX - 3)
33 #define OPTARG_BALANCE_PERFORMANCE (INT_MAX - 4)
34 #define OPTARG_PERFORMANCE (INT_MAX - 5)
100 fprintf(stderr, "scope: --cpu cpu-list [--hwp-use-pkg #] | --pkg pkg-list\n"); in usage()
101 fprintf(stderr, "field: --all | --epb | --hwp-epp | --hwp-min | --hwp-max | --hwp-desired\n"); in usage()
[all …]
/Linux-v5.10/drivers/idle/
Dintel_idle.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * intel_idle.c - native hardware idle loop for modern Intel processors
5 * Copyright (c) 2013 - 2020, Intel Corporation.
23 * for preventing entry into deep C-states
25 * CPU will flush caches as needed when entering a C-state via MWAIT
33 * ACPI has a .suspend hack to turn off deep c-statees during suspend
39 /* un-comment DEBUG to enable pr_debug() statements */
54 #include <asm/intel-family.h>
65 static int max_cstate = CPUIDLE_STATE_MAX - 1;
77 * Hardware C-state auto-demotion may not always be optimal.
[all …]
/Linux-v5.10/arch/x86/kernel/cpu/resctrl/
Dinternal.h1 /* SPDX-License-Identifier: GPL-2.0 */
32 #define CQM_LIMBOCHECK_INTERVAL 1000
35 #define MBM_OVERFLOW_INTERVAL 1000
49 #define MBM_CNTR_WIDTH_OFFSET_MAX (62 - MBM_CNTR_WIDTH_BASE)
61 struct kernfs_fs_context *kfc = fc->fs_private; in rdt_fc2context()
70 * struct mon_evt - Entry in the event list of a resource
81 * struct mon_data_bits - Monitoring details for each event file
116 * enum rdtgrp_mode - Mode of a RDT resource group
119 * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking
121 * allowed AND the allocations are Cache Pseudo-Locked
[all …]
/Linux-v5.10/drivers/hwmon/
Ddell-smm-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * dell-smm-hwmon.c -- Linux driver for accessing the SMM BIOS on Dell laptops.
9 * Copyright (C) 2013, 2014 Guenter Roeck <linux@roeck-us.net>
26 #include <linux/hwmon-sysfs.h>
123 unsigned int ecx __packed;
143 int eax = regs->eax; in i8k_smm_func()
146 int ebx = regs->ebx; in i8k_smm_func()
155 return -EBUSY; in i8k_smm_func()
162 "movl 8(%%rax),%%ecx\n\t" in i8k_smm_func()
171 "movl %%ecx,8(%%rax)\n\t" in i8k_smm_func()
[all …]
Dfam15h_power.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * fam15h_power.c - AMD Family 15h processor power monitoring
5 * Copyright (c) 2011-2016 Advanced Micro Devices, Inc.
11 #include <linux/hwmon-sysfs.h>
42 #define MAX_INTERVAL 1000
77 struct pci_dev *f4 = data->pdev; in power1_input_show()
79 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
96 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), in power1_input_show()
109 data->base_tdp)) << running_avg_range; in power1_input_show()
110 curr_pwr_watts -= running_avg_capture; in power1_input_show()
[all …]
/Linux-v5.10/drivers/video/fbdev/
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 …]
Dvesafb.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
30 /* --------------------------------------------------------------------- */
40 .height = -1,
41 .width = -1,
65 /* --------------------------------------------------------------------- */
73 offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; in vesafb_pan_display()
80 "c" (offset), /* ECX */ in vesafb_pan_display()
90 int shift = 16 - depth; in vesa_setpalette()
91 int err = -EINVAL; in vesa_setpalette()
[all …]
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-v5.10/arch/x86/kernel/
Dtsc.c1 // SPDX-License-Identifier: GPL-2.0-only
28 #include <asm/intel-family.h>
38 #define KHZ 1000
79 data->cyc2ns_offset = this_cpu_read(cyc2ns.data[idx].cyc2ns_offset); in cyc2ns_read_begin()
80 data->cyc2ns_mul = this_cpu_read(cyc2ns.data[idx].cyc2ns_mul); in cyc2ns_read_begin()
81 data->cyc2ns_shift = this_cpu_read(cyc2ns.data[idx].cyc2ns_shift); in cyc2ns_read_begin()
106 * cyc2ns_scale needs to be a 32-bit value so that 32-bit multiplication
107 * (64-bit result) can be used.
112 * -johnstul@us.ibm.com "math is hard, lets go shopping!"
149 * conversion algorithm shifting a 32-bit value (now specifies a 64-bit in __set_cyc2ns_scale()
[all …]
Dsmpboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * Pentium Pro and Pentium-II/Xeon MP machines.
19 * Alan Cox : By repeated request 8) - Total BogoMIPS report.
32 * Martin J. Bligh : Added support for multi-quad systems
79 #include <asm/intel-family.h>
81 #include <asm/spec-ctrl.h>
270 * topology_is_primary_thread - Check whether CPU is the primary SMT thread
279 * topology_smt_supported - Check whether SMT is supported by the CPUs
287 * topology_phys_to_logical_pkg - Map a physical package id to a logical
289 * Returns logical package id or -1 if not found
[all …]
/Linux-v5.10/tools/power/x86/turbostat/
Dturbostat.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * turbostat -- show CPU frequency and C-state residency
135 /* Indicates cores energy collection is per-core,
136 * not per-package. */
144 /* MSRs that are not yet in the kernel-provided header. */
153 * Usually truncated to 7 characters, but also handles 18 columns for raw 64-bit counters
191 unsigned long long mc6_us; /* duplicate as per-core for now, even though per module */
282 /* get_msr_sum() = sum + (get_msr() - last) */
318 offset = -1; in idx_to_offset()
347 idx = -1; in offset_to_idx()
[all …]
/Linux-v5.10/arch/x86/kvm/vmx/
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
30 #include <linux/entry-kvm.h>
47 #include <asm/spec-ctrl.h>
124 /* Guest_tsc -> host_tsc conversion requires 64-bit division. */
172 * These 2 parameters are used to config the controls for Pause-Loop Exiting:
188 /* Default doubles per-vcpu window every exit. */
192 /* Default resets per-vcpu window every exit to ple_window. */
200 /* Default is SYSTEM mode, 1 for host-guest mode */
[all …]
/Linux-v5.10/tools/include/nolibc/
Dnolibc.h1 /* SPDX-License-Identifier: LGPL-2.1 OR MIT */
3 * Copyright (C) 2017-2018 Willy Tarreau <w@1wt.eu>
14 * - The lower level is the arch-specific syscall() definition, consisting in
22 * - The second level is mostly architecture-independent. It is made of
27 * A few of them are architecture-specific because the syscalls are not all
32 * - The third level is the libc call definition. It exposes the lower raw
45 * Some stdint-like integer types are defined. These are valid on all currently
53 * The definitions start with the architecture-specific parts, which are picked
56 * target architecture, cross-compiling normally works out of the box without
59 * Finally some very common libc-level functions are provided. It is the case
[all …]
/Linux-v5.10/arch/x86/kvm/
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>
43 #include <linux/intel-iommu.h>
45 #include <linux/user-return-notifier.h>
59 #include <linux/entry-kvm.h>
88 ((struct kvm_vcpu *)(ctxt)->vcpu)
91 * - enable syscall per default because its emulated by KVM
92 * - enable LME and LMA per default on 64 bit KVM
139 /* tsc tolerance in parts per million - default to 1/2 of the NTP threshold */
[all …]
Dhyperv.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * KVM Microsoft Hyper-V emulation
17 * Ben-Ami Yassour <benami@il.ibm.com>
46 return atomic64_read(&synic->sint[sint]); in synic_read_sint()
52 return -1; in synic_get_sint_vector()
61 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) { in synic_has_vector_connected()
74 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) { in synic_has_vector_auto_eoi()
90 __set_bit(vector, synic->vec_bitmap); in synic_update_vector()
92 __clear_bit(vector, synic->vec_bitmap); in synic_update_vector()
95 __set_bit(vector, synic->auto_eoi_bitmap); in synic_update_vector()
[all …]
/Linux-v5.10/tools/power/x86/intel-speed-select/
Disst-config.c1 // SPDX-License-Identifier: GPL-2.0
3 * Intel Speed Select -- Enumerate and control features
51 static int current_clos = -1;
52 static int clos_epp = -1;
53 static int clos_prop_prio = -1;
54 static int clos_min = -1;
55 static int clos_max = -1;
56 static int clos_desired = -1;
111 unsigned int ebx, ecx, edx; in update_cpu_model() local
114 __cpuid(1, fms, ebx, ecx, edx); in update_cpu_model()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
DMakefile1 # SPDX-License-Identifier: GPL-2.0
2 dtb-$(CONFIG_ARCH_ALPINE) += \
3 alpine-db.dtb
4 dtb-$(CONFIG_MACH_ARTPEC6) += \
5 artpec6-devboard.dtb
6 dtb-$(CONFIG_MACH_ASM9260) += \
7 alphascale-asm9260-devkit.dtb
9 dtb-$(CONFIG_SOC_AT91RM9200) += \
12 dtb-$(CONFIG_SOC_AT91SAM9) += \
14 at91-qil_a9260.dtb \
[all …]

12