Lines Matching +full:ecx +full:- +full:2000
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* ----------------------------------------------------------------------- *
4 * Copyright 2000-2008 H. Peter Anvin - All Rights Reserved
6 * ----------------------------------------------------------------------- */
16 * and the upper 32 bits of the file position as the incoming %ecx,
54 cpuid_count(cmd->regs.eax, cmd->regs.ecx, in cpuid_smp_cpuid()
55 &cmd->regs.eax, &cmd->regs.ebx, in cpuid_smp_cpuid()
56 &cmd->regs.ecx, &cmd->regs.edx); in cpuid_smp_cpuid()
58 complete(&cmd->done); in cpuid_smp_cpuid()
72 return -EINVAL; /* Invalid chunk size */ in cpuid_read()
75 for (; count; count -= 16) { in cpuid_read()
81 cmd.regs.ecx = pos >> 32; in cpuid_read()
88 err = -EFAULT; in cpuid_read()
107 return -ENXIO; /* No such CPU */ in cpuid_open()
110 if (c->cpuid_level < 0) in cpuid_open()
111 return -EIO; /* CPUID not supported */ in cpuid_open()
128 return kasprintf(GFP_KERNEL, "cpu/%u/cpuid", MINOR(dev->devt)); in cpuid_devnode()
159 return -EBUSY; in cpuid_init()