/linux/arch/x86/boot/ |
H A D | memory.c | 21 struct biosregs ireg, oreg; in detect_memory_e820() local 46 intcall(0x15, &ireg, &oreg); in detect_memory_e820() 60 if (oreg.eax != SMAP) { in detect_memory_e820() 74 struct biosregs ireg, oreg; in detect_memory_e801() local 78 intcall(0x15, &ireg, &oreg); in detect_memory_e801() 84 if (oreg.cx || oreg.dx) { in detect_memory_e801() 85 oreg.ax = oreg.cx; in detect_memory_e801() 86 oreg.bx = oreg.dx; in detect_memory_e801() 89 if (oreg.ax > 15*1024) { in detect_memory_e801() 92 boot_params.alt_mem_k = (oreg.bx << 6) + oreg.ax; in detect_memory_e801() [all …]
|
H A D | apm.c | 21 struct biosregs ireg, oreg; in query_apm_bios() local 26 intcall(0x15, &ireg, &oreg); in query_apm_bios() 28 if (oreg.flags & X86_EFLAGS_CF) in query_apm_bios() 31 if (oreg.bx != 0x504d) /* "PM" signature */ in query_apm_bios() 34 if (!(oreg.cx & 0x02)) /* 32 bits supported? */ in query_apm_bios() 43 intcall(0x15, &ireg, &oreg); in query_apm_bios() 53 if (oreg.flags & X86_EFLAGS_CF) in query_apm_bios() 60 intcall(0x15, &ireg, &oreg); in query_apm_bios() 62 if ((oreg.eflags & X86_EFLAGS_CF) || oreg.bx != 0x504d) { in query_apm_bios() 69 boot_params.apm_bios_info.version = oreg.ax; in query_apm_bios() [all …]
|
H A D | video-vesa.c | 33 struct biosregs ireg, oreg; in vesa_probe() local 44 intcall(0x10, &ireg, &oreg); in vesa_probe() 46 if (oreg.ax != 0x004f || in vesa_probe() 70 if (oreg.ax != 0x004f) in vesa_probe() 106 struct biosregs ireg, oreg; in vesa_set_mode() local 118 if (oreg.ax != 0x004f) in vesa_set_mode() 140 if (oreg.ax != 0x004f) in vesa_set_mode() 172 if (oreg.ax == 0x004f) in vesa_dac_set_8bits() 173 dac_size = oreg.bh; in vesa_dac_set_8bits() 197 if (oreg.ax != 0x004f) in vesa_store_pm_info() [all …]
|
H A D | edd.c | 25 struct biosregs ireg, oreg; in read_mbr() local 33 intcall(0x13, &ireg, &oreg); in read_mbr() 75 struct biosregs ireg, oreg; in get_edd_info() local 85 intcall(0x13, &ireg, &oreg); in get_edd_info() 87 if (oreg.eflags & X86_EFLAGS_CF) in get_edd_info() 90 if (oreg.bx != EDDMAGIC2) in get_edd_info() 102 intcall(0x13, &ireg, &oreg); in get_edd_info() 109 intcall(0x13, &ireg, &oreg); in get_edd_info() 111 if (!(oreg.eflags & X86_EFLAGS_CF)) { in get_edd_info() 112 ei->legacy_max_cylinder = oreg.ch + ((oreg.cl & 0xc0) << 2); in get_edd_info() [all …]
|
H A D | tty.c | 74 struct biosregs ireg, oreg; in gettime() local 78 intcall(0x1a, &ireg, &oreg); in gettime() 80 return oreg.dh; in gettime() 88 struct biosregs ireg, oreg; in getchar() local 92 intcall(0x16, &ireg, &oreg); in getchar() 94 return oreg.al; in getchar() 99 struct biosregs ireg, oreg; in kbd_pending() local 103 intcall(0x16, &ireg, &oreg); in kbd_pending() 105 return !(oreg.eflags & X86_EFLAGS_ZF); in kbd_pending()
|
H A D | main.c | 66 struct biosregs ireg, oreg; in keyboard_init() local 71 intcall(0x16, &ireg, &oreg); in keyboard_init() 72 boot_params.kbd_status = oreg.al; in keyboard_init() 83 struct biosregs ireg, oreg; in query_ist() local 95 intcall(0x15, &ireg, &oreg); in query_ist() 97 boot_params.ist_info.signature = oreg.eax; in query_ist() 98 boot_params.ist_info.command = oreg.ebx; in query_ist() 99 boot_params.ist_info.event = oreg.ecx; in query_ist() 100 boot_params.ist_info.perf_level = oreg.edx; in query_ist()
|
H A D | video-vga.c | 41 struct biosregs ireg, oreg; in vga_set_basic_mode() local 48 intcall(0x10, &ireg, &oreg); in vga_set_basic_mode() 49 mode = oreg.al; in vga_set_basic_mode() 247 struct biosregs ireg, oreg; in vga_probe() local 253 intcall(0x10, &ireg, &oreg); in vga_probe() 256 boot_params.screen_info.orig_video_ega_bx = oreg.bx; in vga_probe() 260 if (oreg.bl != 0x10) { in vga_probe() 263 intcall(0x10, &ireg, &oreg); in vga_probe() 265 if (oreg.al == 0x1a) { in vga_probe()
|
H A D | video.c | 24 struct biosregs ireg, oreg; in store_cursor_position() local 28 intcall(0x10, &ireg, &oreg); in store_cursor_position() 30 boot_params.screen_info.orig_x = oreg.dl; in store_cursor_position() 31 boot_params.screen_info.orig_y = oreg.dh; in store_cursor_position() 33 if (oreg.ch & 0x20) in store_cursor_position() 36 if ((oreg.ch & 0x1f) > (oreg.cl & 0x1f)) in store_cursor_position() 42 struct biosregs ireg, oreg; in store_video_mode() local 48 intcall(0x10, &ireg, &oreg); in store_video_mode() 51 boot_params.screen_info.orig_video_mode = oreg.al & 0x7f; in store_video_mode() 52 boot_params.screen_info.orig_video_page = oreg.bh; in store_video_mode()
|
H A D | video-bios.c | 31 struct biosregs ireg, oreg; in set_bios_mode() local 39 intcall(0x10, &ireg, &oreg); in set_bios_mode() 44 new_mode = oreg.al & 0x7f; in set_bios_mode()
|
H A D | boot.h | 246 void intcall(u8 int_no, const struct biosregs *ireg, struct biosregs *oreg);
|
/linux/drivers/regulator/ |
H A D | rohm-regulator.c | 14 unsigned int omask, unsigned int oreg) in set_dvs_level() argument 28 return regmap_update_bits(regmap, oreg, omask, 0); in set_dvs_level() 33 return regmap_update_bits(regmap, oreg, omask, omask); in set_dvs_level() 52 ret = regmap_update_bits(regmap, oreg, omask, in set_dvs_level() 70 unsigned int reg, mask, omask, oreg = desc->enable_reg; in rohm_regulator_set_dvs_levels() local 112 omask, oreg); in rohm_regulator_set_dvs_levels()
|
/linux/sound/pci/ |
H A D | azt3328.c | 928 u16 oreg, val; in snd_azf3328_get_mixer() local 932 oreg = snd_azf3328_mixer_inw(chip, reg.reg); in snd_azf3328_get_mixer() 933 val = (oreg >> reg.lchan_shift) & reg.mask; in snd_azf3328_get_mixer() 938 val = (oreg >> reg.rchan_shift) & reg.mask; in snd_azf3328_get_mixer() 945 reg.reg, oreg, in snd_azf3328_get_mixer() 957 u16 oreg, nreg, val; in snd_azf3328_put_mixer() local 985 oreg, reg.lchan_shift, reg.rchan_shift, in snd_azf3328_put_mixer() 987 return (nreg != oreg); in snd_azf3328_put_mixer() 1060 u16 oreg, nreg, val; in snd_azf3328_put_mixer_enum() local 1064 val = oreg; in snd_azf3328_put_mixer_enum() [all …]
|
H A D | cmipci.c | 2182 unsigned char oreg, val; in snd_cmipci_get_native_mixer() local 2186 oreg = inb(cm->iobase + reg.left_reg); in snd_cmipci_get_native_mixer() 2187 val = (oreg >> reg.left_shift) & reg.mask; in snd_cmipci_get_native_mixer() 2192 val = (oreg >> reg.right_shift) & reg.mask; in snd_cmipci_get_native_mixer() 2206 unsigned char oreg, nreg, val; in snd_cmipci_put_native_mixer() local 2210 oreg = inb(cm->iobase + reg.left_reg); in snd_cmipci_put_native_mixer() 2214 nreg = oreg & ~(reg.mask << reg.left_shift); in snd_cmipci_put_native_mixer() 2225 return (nreg != oreg); in snd_cmipci_put_native_mixer()
|
/linux/sound/ppc/ |
H A D | burgundy.c | 573 int reg, oreg; in snd_pmac_burgundy_update_automute() local 574 reg = oreg = snd_pmac_burgundy_rcb(chip, in snd_pmac_burgundy_update_automute() 588 if (do_notify && reg == oreg) in snd_pmac_burgundy_update_automute()
|