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,
55 cpuid_count(cmd->regs.eax, cmd->regs.ecx, in cpuid_smp_cpuid()
56 &cmd->regs.eax, &cmd->regs.ebx, in cpuid_smp_cpuid()
57 &cmd->regs.ecx, &cmd->regs.edx); in cpuid_smp_cpuid()
59 complete(&cmd->done); in cpuid_smp_cpuid()
73 return -EINVAL; /* Invalid chunk size */ in cpuid_read()
76 for (; count; count -= 16) { in cpuid_read()
82 cmd.regs.ecx = pos >> 32; in cpuid_read()
89 err = -EFAULT; in cpuid_read()
108 return -ENXIO; /* No such CPU */ in cpuid_open()
111 if (c->cpuid_level < 0) in cpuid_open()
112 return -EIO; /* CPUID not supported */ in cpuid_open()
144 return kasprintf(GFP_KERNEL, "cpu/%u/cpuid", MINOR(dev->devt)); in cpuid_devnode()
155 return -EBUSY; in cpuid_init()
162 cpuid_class->devnode = cpuid_devnode; in cpuid_init()