Lines Matching refs:args
195 struct apm_bios_arg args;
246 bzero(&args, sizeof(args));
247 args.eax = (APM_BIOS) << 8 | APM_RESUMETIMER;
248 args.ebx = PMDV_APMBIOS;
249 args.ecx = 0x0001;
250 if (ioctl(fd, APMIO_BIOS, &args)) {
253 apmerr = APMERR(args.eax);
273 tm.tm_sec = bcd2int(xh(args.ecx));
274 tm.tm_min = bcd2int(xl(args.edx));
275 tm.tm_hour = bcd2int(xh(args.edx));
276 tm.tm_mday = bcd2int(xl(args.esi));
277 tm.tm_mon = bcd2int(xh(args.esi)) - 1;
278 tm.tm_year = bcd2int(args.edi) - 1900;
295 bzero(&args, sizeof(args));
296 args.eax = (APM_BIOS) << 8 | APM_RESUMEONRING;
297 args.ebx = PMDV_APMBIOS;
298 args.ecx = 0x0002;
299 if (ioctl(fd, APMIO_BIOS, &args) == 0) {
301 args.ecx ? "en" : "dis");
357 struct apm_bios_arg args;
364 bzero(&args, sizeof(args));
365 args.eax = (APM_BIOS) << 8 | APM_RESUMETIMER;
366 args.ebx = PMDV_APMBIOS;
368 args.ecx = (int2bcd(tm->tm_sec) << 8) | 0x02;
369 args.edx = (int2bcd(tm->tm_hour) << 8) | int2bcd(tm->tm_min);
370 args.esi = (int2bcd(tm->tm_mon + 1) << 8) | int2bcd(tm->tm_mday);
371 args.edi = int2bcd(tm->tm_year + 1900);
373 args.ecx = 0x0000;
375 if (ioctl(fd, APMIO_BIOS, &args)) {