/drivers/char/ |
D | toshiba.c | 123 unsigned long eax,ecx,flags; in tosh_emulate_fan() local 126 eax = regs->eax & 0xff00; in tosh_emulate_fan() 132 if (eax==0xfe00) { in tosh_emulate_fan() 138 regs->eax = 0x00; in tosh_emulate_fan() 141 if ((eax==0xff00) && (ecx==0x0000)) { in tosh_emulate_fan() 149 regs->eax = 0x00; in tosh_emulate_fan() 152 if ((eax==0xff00) && (ecx==0x0001)) { in tosh_emulate_fan() 160 regs->eax = 0x00; in tosh_emulate_fan() 168 if (eax==0xfe00) { in tosh_emulate_fan() 174 regs->eax = 0x00; in tosh_emulate_fan() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg_x86.h | 62 eax, ebx, ecx, edx, si, di) \ argument 65 "=a"(eax), \ 106 eax, ebx, ecx, edx, si, di) \ argument 112 "=a"(eax), \ 131 eax, ebx, ecx, edx, si, di) \ argument 137 "=a"(eax), \ 165 eax, ebx, ecx, edx, si, di) \ argument 173 "=a"(eax), \ 192 eax, ebx, ecx, edx, si, di) \ argument 200 "=a"(eax), \
|
D | vmwgfx_msg_arm64.h | 51 unsigned long *eax, unsigned long *ebx, in vmw_port() argument 72 *eax = x0; in vmw_port() 84 unsigned long *eax, unsigned long *ebx, in vmw_port_hb() argument 105 *eax = x0; in vmw_port_hb() 113 #define VMW_PORT(cmd, in_ebx, in_si, in_di, flags, magic, eax, ebx, ecx, edx, \ argument 115 vmw_port(cmd, in_ebx, in_si, in_di, flags, magic, &eax, &ebx, &ecx, \ 118 #define VMW_PORT_HB_OUT(cmd, in_ecx, in_si, in_di, flags, magic, bp, eax, ebx, \ argument 121 0, &eax, &ebx, &ecx, &edx, &si, &di) 123 #define VMW_PORT_HB_IN(cmd, in_ecx, in_si, in_di, flags, magic, bp, eax, ebx, \ argument 126 X86_IO_W7_DIR, &eax, &ebx, &ecx, &edx, &si, &di)
|
D | vmwgfx_msg.c | 100 unsigned long eax, ebx, ecx, edx, si = 0, di = 0; in vmw_open_channel() local 106 eax, ebx, ecx, edx, si, di); in vmw_open_channel() 129 unsigned long eax, ebx, ecx, edx, si, di; in vmw_close_channel() local 139 eax, ebx, ecx, edx, si, di); in vmw_close_channel() 159 unsigned long si, di, eax, ebx, ecx, edx; in vmw_port_hb_out() local 176 eax, ebx, ecx, edx, si, di); in vmw_port_hb_out() 197 eax, ebx, ecx, edx, si, di); in vmw_port_hb_out() 216 unsigned long si, di, eax, ebx, ecx, edx; in vmw_port_hb_in() local 231 eax, ebx, ecx, edx, si, di); in vmw_port_hb_in() 248 eax, ebx, ecx, edx, si, di); in vmw_port_hb_in() [all …]
|
/drivers/hwmon/ |
D | dell-smm-hwmon.c | 114 unsigned int eax; member 163 int eax = regs->eax; in i8k_smm_func() local 225 if (rc != 0 || (regs->eax & 0xffff) == 0xffff || regs->eax == eax) in i8k_smm_func() 229 pr_debug("smm(0x%.4x 0x%.4x) = 0x%.4x (took %7lld usecs)\n", eax, ebx, in i8k_smm_func() 230 (rc ? 0xffff : regs->eax & 0xffff), duration); in i8k_smm_func() 254 struct smm_regs regs = { .eax = I8K_SMM_GET_FAN, }; in i8k_get_fan_status() 260 return i8k_smm(®s) ? : regs.eax & 0xff; in i8k_get_fan_status() 268 struct smm_regs regs = { .eax = I8K_SMM_GET_SPEED, }; in i8k_get_fan_speed() 274 return i8k_smm(®s) ? : (regs.eax & 0xffff) * data->i8k_fan_mult; in i8k_get_fan_speed() 282 struct smm_regs regs = { .eax = I8K_SMM_GET_FAN_TYPE, }; in _i8k_get_fan_type() [all …]
|
D | coretemp.c | 119 u32 eax, edx; in show_crit_alarm() local 125 rdmsr_on_cpu(tdata->cpu, tdata->status_reg, &eax, &edx); in show_crit_alarm() 128 return sprintf(buf, "%d\n", (eax >> 5) & 1); in show_crit_alarm() 152 u32 eax, edx; in show_temp() local 161 rdmsr_on_cpu(tdata->cpu, tdata->status_reg, &eax, &edx); in show_temp() 168 tdata->temp = tdata->tjmax - ((eax >> 16) & 0x7f) * 1000; in show_temp() 233 u32 eax, edx; in adjust_tjmax() local 278 err = rdmsr_safe_on_cpu(id, 0x17, &eax, &edx); in adjust_tjmax() 284 } else if (c->x86_model < 0x17 && !(eax & 0x10000000)) { in adjust_tjmax() 312 err = rdmsr_safe_on_cpu(id, 0xee, &eax, &edx); in adjust_tjmax() [all …]
|
D | via-cputemp.c | 68 u32 eax, edx; in temp_show() local 71 err = rdmsr_safe_on_cpu(data->id, data->msr_temp, &eax, &edx); in temp_show() 75 return sprintf(buf, "%lu\n", ((unsigned long)eax & 0xffffff) * 1000); in temp_show() 82 u32 eax, edx; in cpu0_vid_show() local 85 err = rdmsr_safe_on_cpu(data->id, data->msr_vid, &eax, &edx); in cpu0_vid_show() 115 u32 eax, edx; in via_cputemp_probe() local 146 err = rdmsr_safe_on_cpu(data->id, data->msr_temp, &eax, &edx); in via_cputemp_probe()
|
/drivers/cpufreq/ |
D | longrun.c | 138 u32 eax, ebx, ecx, edx; in longrun_get() local 143 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_get() 144 pr_debug("cpuid eax is %u\n", eax); in longrun_get() 146 return eax * 1000; in longrun_get() 164 u32 eax, ebx, ecx, edx; in longrun_determine_freqs() local 211 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs() 222 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); in longrun_determine_freqs() 227 pr_debug("percentage is %u %%, freq is %u MHz\n", ecx, eax); in longrun_determine_freqs() 237 if ((ecx > 95) || (ecx == 0) || (eax < ebx)) in longrun_determine_freqs() 240 edx = ((eax - ebx) * 100) / (100 - ecx); in longrun_determine_freqs()
|
D | powernow-k8.c | 462 u32 eax, ebx, ecx, edx; in check_supported_cpu() local 467 eax = cpuid_eax(CPUID_PROCESSOR_SIGNATURE); in check_supported_cpu() 469 if ((eax & CPUID_XFAM) == CPUID_XFAM_K8) { in check_supported_cpu() 470 if (((eax & CPUID_USE_XFAM_XMOD) != CPUID_USE_XFAM_XMOD) || in check_supported_cpu() 471 ((eax & CPUID_XMOD) > CPUID_XMOD_REV_MASK)) { in check_supported_cpu() 472 pr_info("Processor cpuid %x not supported\n", eax); in check_supported_cpu() 476 eax = cpuid_eax(CPUID_GET_MAX_CAPABILITIES); in check_supported_cpu() 477 if (eax < CPUID_FREQ_VOLT_CAPABILITIES) { in check_supported_cpu() 482 cpuid(CPUID_FREQ_VOLT_CAPABILITIES, &eax, &ebx, &ecx, &edx); in check_supported_cpu()
|
D | powernow-k7.c | 120 unsigned int maxei, eax, ebx, ecx, edx; in check_powernow() local 139 cpuid(0x80000007, &eax, &ebx, &ecx, &edx); in check_powernow()
|
/drivers/thermal/intel/ |
D | x86_pkg_temp_thermal.c | 113 u32 eax, edx, val; in get_tj_max() local 116 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tj_max() 120 val = (eax >> 16) & 0xff; in get_tj_max() 129 u32 eax, edx; in sys_get_curr_temp() local 132 &eax, &edx); in sys_get_curr_temp() 133 if (eax & 0x80000000) { in sys_get_curr_temp() 134 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp() 146 u32 mask, shift, eax, edx; in sys_get_trip_temp() local 161 &eax, &edx); in sys_get_trip_temp() 165 thres_reg_value = (eax & mask) >> shift; in sys_get_trip_temp() [all …]
|
D | intel_soc_dts_iosf.c | 50 u32 eax, edx; in get_tj_max() local 54 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tj_max() 58 val = (eax >> 16) & 0xff; in get_tj_max()
|
D | intel_powerclamp.c | 180 unsigned int eax, ebx, ecx, edx; in find_target_mwait() local 188 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); in find_target_mwait()
|
/drivers/video/fbdev/ |
D | uvesafb.c | 371 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_save() 379 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_state_save() 381 task->t.regs.eax, err); in uvesafb_vbe_state_save() 402 task->t.regs.eax = 0x4f04; in uvesafb_vbe_state_restore() 410 if (err || (task->t.regs.eax & 0xffff) != 0x004f) in uvesafb_vbe_state_restore() 412 task->t.regs.eax, err); in uvesafb_vbe_state_restore() 422 task->t.regs.eax = 0x4f00; in uvesafb_vbe_getinfo() 429 if (err || (task->t.regs.eax & 0xffff) != 0x004f) { in uvesafb_vbe_getinfo() 431 (u32)task->t.regs.eax, err); in uvesafb_vbe_getinfo() 502 task->t.regs.eax = 0x4f01; in uvesafb_vbe_getmodes() [all …]
|
D | neofb.c | 1295 regs.eax = 0xff00; /* HCI_SET */ in neofb_blank() 1336 regs.eax = 0xff00; /* HCI_SET */ in neofb_blank()
|
/drivers/thermal/intel/int340x_thermal/ |
D | processor_thermal_device.c | 152 u32 eax, edx; in get_tjmax() local 156 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &eax, &edx); in get_tjmax() 160 val = (eax >> 16) & 0xff; in get_tjmax() 170 u32 eax, edx; in read_temp_msr() local 177 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_THERM_STATUS, &eax, in read_temp_msr() 182 if (eax & 0x80000000) { in read_temp_msr() 183 curr_temp_off = (eax >> 16) & 0x7f; in read_temp_msr()
|
/drivers/input/misc/ |
D | wistron_btns.c | 57 u32 eax, ebx, ecx; member 70 : "=a" (regs->eax), "=b" (regs->ebx), "=c" (regs->ecx) in call_bios() 71 : "0" (regs->eax), "1" (regs->ebx), "2" (regs->ecx), in call_bios() 152 regs.eax = 0x9610; in bios_pop_queue() 157 return regs.eax; in bios_pop_queue() 165 regs.eax = 0x9610; in bios_attach() 175 regs.eax = 0x9610; in bios_detach() 185 regs.eax = 0x9610; in bios_get_cmos_address() 197 regs.eax = 0x9610; in bios_get_default_setting() 201 return regs.eax; in bios_get_default_setting() [all …]
|
/drivers/idle/ |
D | intel_idle.c | 112 #define MWAIT2flg(eax) ((eax & 0xFF) << 24) argument 135 unsigned long eax = flg2MWAIT(state->flags); in intel_idle() local 138 mwait_idle_with_hints(eax, ecx); in intel_idle() 176 unsigned long eax = flg2MWAIT(drv->states[index].flags); in intel_idle_s2idle() local 179 mwait_idle_with_hints(eax, ecx); in intel_idle_s2idle() 1211 unsigned long eax = flg2MWAIT(state->flags); in intel_idle_state_needs_timer_stop() local 1220 return !!((eax >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK); in intel_idle_state_needs_timer_stop() 1479 unsigned int eax, ebx, ecx, edx; in sklh_idle_state_table_update() local 1497 cpuid(7, &eax, &ebx, &ecx, &edx); in sklh_idle_state_table_update() 1724 unsigned int eax, ebx, ecx; in intel_idle_init() local [all …]
|
/drivers/acpi/ |
D | acpi_pad.c | 36 unsigned int eax, ebx, ecx, edx; in power_saving_mwait_init() local 46 cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); in power_saving_mwait_init()
|
/drivers/platform/x86/ |
D | acer-wmi.c | 752 u32 eax; member 759 u32 eax; member 853 args.eax = ACER_AMW0_WRITE; in AMW0_set_u32() 896 args.eax = 0x86; in AMW0_find_mailled() 959 args.eax = ACER_AMW0_WRITE; in AMW0_set_capabilities() 978 if (ret.eax & 0x1) in AMW0_set_capabilities() 1001 if (ret.eax & 0x1) in AMW0_set_capabilities()
|
D | toshiba_acpi.c | 2492 u32 in[TCI_WORDS] = { regs->eax, regs->ebx, regs->ecx, in toshiba_acpi_smm_bridge() 2504 regs->eax = out[0]; in toshiba_acpi_smm_bridge() 2538 if (regs.eax != SCI_GET && regs.eax != SCI_SET) in toshiba_acpi_ioctl()
|
/drivers/xen/xenbus/ |
D | xenbus_xs.c | 733 uint32_t eax, ebx, ecx, edx, base; in xen_strict_xenbus_quirk() local 736 cpuid(base + 1, &eax, &ebx, &ecx, &edx); in xen_strict_xenbus_quirk() 738 if ((eax >> 16) < 4) in xen_strict_xenbus_quirk()
|
/drivers/visorbus/ |
D | visorchipset.c | 1656 unsigned int eax, ebx, ecx, edx; in visorutil_spar_detect() local 1660 cpuid(UNISYS_VISOR_LEAF_ID, &eax, &ebx, &ecx, &edx); in visorutil_spar_detect()
|