Lines Matching refs:regs

134 static int tosh_emulate_fan(SMMRegisters *regs)  in tosh_emulate_fan()  argument
139 eax = regs->eax & 0xff00; in tosh_emulate_fan()
140 ecx = regs->ecx & 0xffff; in tosh_emulate_fan()
151 regs->eax = 0x00; in tosh_emulate_fan()
152 regs->ecx = (unsigned int) (al & 0x01); in tosh_emulate_fan()
162 regs->eax = 0x00; in tosh_emulate_fan()
163 regs->ecx = 0x00; in tosh_emulate_fan()
173 regs->eax = 0x00; in tosh_emulate_fan()
174 regs->ecx = 0x01; in tosh_emulate_fan()
187 regs->eax = 0x00; in tosh_emulate_fan()
188 regs->ecx = al & 0x01; in tosh_emulate_fan()
197 regs->eax = 0x00; in tosh_emulate_fan()
198 regs->ecx = 0x00; in tosh_emulate_fan()
207 regs->eax = 0x00; in tosh_emulate_fan()
208 regs->ecx = 0x01; in tosh_emulate_fan()
219 int tosh_smm(SMMRegisters *regs) in tosh_smm() argument
249 : "a" (regs) in tosh_smm()
259 SMMRegisters regs; in tosh_ioctl() local
267 if (copy_from_user(&regs, argp, sizeof(SMMRegisters))) in tosh_ioctl()
272 ax = regs.eax & 0xff00; in tosh_ioctl()
273 bx = regs.ebx & 0xffff; in tosh_ioctl()
282 err = tosh_emulate_fan(&regs); in tosh_ioctl()
287 err = tosh_smm(&regs); in tosh_ioctl()
294 if (copy_to_user(argp, &regs, sizeof(SMMRegisters))) in tosh_ioctl()
375 SMMRegisters regs; in tosh_get_machine_id() local
387 regs.eax = 0xc000; in tosh_get_machine_id()
388 regs.ebx = 0x0000; in tosh_get_machine_id()
389 regs.ecx = 0x0000; in tosh_get_machine_id()
390 tosh_smm(&regs); in tosh_get_machine_id()
391 bx = (unsigned short) (regs.ebx & 0xffff); in tosh_get_machine_id()
399 printk("toshiba: debugging ID ebx=0x%04x\n", regs.ebx); in tosh_get_machine_id()
432 SMMRegisters regs; in tosh_probe() local
451 regs.eax = 0xf0f0; in tosh_probe()
452 regs.ebx = 0x0000; in tosh_probe()
453 regs.ecx = 0x0000; in tosh_probe()
454 flag = tosh_smm(&regs); in tosh_probe()
458 if ((flag==1) || ((regs.eax & 0xff00)==0x8600)) { in tosh_probe()
466 tosh_sci = regs.edx & 0xffff; in tosh_probe()