Lines Matching full:ioctl
18 #include <sys/ioctl.h>
116 if (ioctl(fd, APMIO_SUSPEND, NULL) == -1) in apm_suspend()
117 err(1, "ioctl(APMIO_SUSPEND)"); in apm_suspend()
123 if (ioctl(fd, APMIO_STANDBY, NULL) == -1) in apm_standby()
124 err(1, "ioctl(APMIO_STANDBY)"); in apm_standby()
130 if (ioctl(fd, APMIO_GETINFO, aip) == -1) in apm_getinfo()
131 err(1, "ioctl(APMIO_GETINFO)"); in apm_getinfo()
138 if (ioctl(fd, APMIO_ENABLE) == -1) in apm_enable()
139 err(1, "ioctl(APMIO_ENABLE)"); in apm_enable()
141 if (ioctl(fd, APMIO_DISABLE) == -1) in apm_enable()
142 err(1, "ioctl(APMIO_DISABLE)"); in apm_enable()
223 if (ioctl(fd, APMIO_GETPWSTATUS, &aps) == -1) in print_all_info()
248 if (ioctl(fd, APMIO_BIOS, &args)) { in print_all_info()
297 if (ioctl(fd, APMIO_BIOS, &args) == 0) { in print_all_info()
334 if (ioctl(fd, APMIO_DISPLAY, &newstate) == -1) in apm_display()
335 err(1, "ioctl(APMIO_DISPLAY)"); in apm_display()
342 if (ioctl(fd, APMIO_HALTCPU, NULL) == -1) in apm_haltcpu()
343 err(1, "ioctl(APMIO_HALTCPU)"); in apm_haltcpu()
345 if (ioctl(fd, APMIO_NOTHALTCPU, NULL) == -1) in apm_haltcpu()
346 err(1, "ioctl(APMIO_NOTHALTCPU)"); in apm_haltcpu()
373 if (ioctl(fd, APMIO_BIOS, &args)) { in apm_set_timer()