• Home
  • Raw
  • Download

Lines Matching refs:regs

121 static int tosh_emulate_fan(SMMRegisters *regs)  in tosh_emulate_fan()  argument
126 eax = regs->eax & 0xff00; in tosh_emulate_fan()
127 ecx = regs->ecx & 0xffff; in tosh_emulate_fan()
138 regs->eax = 0x00; in tosh_emulate_fan()
139 regs->ecx = (unsigned int) (al & 0x01); in tosh_emulate_fan()
149 regs->eax = 0x00; in tosh_emulate_fan()
150 regs->ecx = 0x00; in tosh_emulate_fan()
160 regs->eax = 0x00; in tosh_emulate_fan()
161 regs->ecx = 0x01; in tosh_emulate_fan()
174 regs->eax = 0x00; in tosh_emulate_fan()
175 regs->ecx = al & 0x01; in tosh_emulate_fan()
184 regs->eax = 0x00; in tosh_emulate_fan()
185 regs->ecx = 0x00; in tosh_emulate_fan()
194 regs->eax = 0x00; in tosh_emulate_fan()
195 regs->ecx = 0x01; in tosh_emulate_fan()
206 int tosh_smm(SMMRegisters *regs) in tosh_smm() argument
236 : "a" (regs) in tosh_smm()
246 SMMRegisters regs; in tosh_ioctl() local
254 if (copy_from_user(&regs, argp, sizeof(SMMRegisters))) in tosh_ioctl()
259 ax = regs.eax & 0xff00; in tosh_ioctl()
260 bx = regs.ebx & 0xffff; in tosh_ioctl()
269 err = tosh_emulate_fan(&regs); in tosh_ioctl()
274 err = tosh_smm(&regs); in tosh_ioctl()
281 if (copy_to_user(argp, &regs, sizeof(SMMRegisters))) in tosh_ioctl()
349 SMMRegisters regs; in tosh_get_machine_id() local
361 regs.eax = 0xc000; in tosh_get_machine_id()
362 regs.ebx = 0x0000; in tosh_get_machine_id()
363 regs.ecx = 0x0000; in tosh_get_machine_id()
364 tosh_smm(&regs); in tosh_get_machine_id()
365 bx = (unsigned short) (regs.ebx & 0xffff); in tosh_get_machine_id()
373 pr_debug("toshiba: debugging ID ebx=0x%04x\n", regs.ebx); in tosh_get_machine_id()
406 SMMRegisters regs; in tosh_probe() local
425 regs.eax = 0xf0f0; in tosh_probe()
426 regs.ebx = 0x0000; in tosh_probe()
427 regs.ecx = 0x0000; in tosh_probe()
428 flag = tosh_smm(&regs); in tosh_probe()
432 if ((flag==1) || ((regs.eax & 0xff00)==0x8600)) { in tosh_probe()
440 tosh_sci = regs.edx & 0xffff; in tosh_probe()